Re: Tag names and spaces



On Di, 2008-01-08 at 23:40 +0100, Lorenzo Milesi wrote:
> > Or, if commas are valid in tag names, maybe the tag editor should
> > display them with an escape character like "\," and interpret them the
> > same way? To be able to use "\" in tag names, that would have to be
> > converted to "\\", respectively.
> 
> You're right. Maybe enclosing tag names in "" in the tag editor. Adding
> a \ would be really bad for users.

That's OK if only tags containing commas are enclosed in quotation
marks, since forcing the user to enclose every tag in "" would be
annoying.

But how should quotation marks in tag names be handled then? Not that I
want to use them, but I can image people wanting to have tags named like
'lorenzo "maxxer" milesi'. Using \" would bring up the same usability
issue that you mention above, using "" would be delusive (imagine a tag
printed as '"this ""is a"" tag"').

It's not surprising that if you want to concatenate strings using a
printable character, you have to invent a special treatment for this
character in case the strings contain it, or you have to simply ban this
character. Maybe instead of a comma we should use a seldomly used utf-8
character like "ౠ" to separate the tags?

OK, that was a joke. Any serious ideas on how to treat quotation marks?

[x] ulf 

-- 
"Portability is for people who cannot write new programs." -- Linus
Torvalds



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]