Hi,
On Mon, Apr 18, 2011 at 09:30, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
On 04/18/2011 09:49 AM, Vincent Massol wrote:
Hi Marius,
On Apr 18, 2011, at 8:38 AM, Marius Dumitru Florea wrote:
> On 04/18/2011 09:14 AM, Vincent Massol wrote:
>>
>> On Apr 18, 2011, at 7:27 AM, Marius Dumitru Florea wrote:
>>
>>> On 04/17/2011 11:02 PM, Vincent Massol wrote:
>>>> Hi Marius,
>>>>
>>>> On Apr 13, 2011, at 4:37 PM, Marius Dumitru Florea wrote:
>>>>
>>>>> Hi devs,
>>>>>
>>>>> Do we have a specification for what a tag is inside XWiki? On
>>>>>
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tag+Application
>>>>> tags are defined as keywords
but no constraints are specified.
>>>>>
>>>>> I'd like to enforce this two constraints on tags:
>>>>> * tags can't have leading and trailing white space characters
>>>>
>>>
>>>> I'm not sure if you mean using space as a separator or not here. If
space is used as a separator then it should be allowed to use quotes (such
as: "<space>*tagvalue<space>*").
>>>
>>> Since some users want to be able to use space inside a tag, only
leading
>>> and trailing space will be removed.
For instance:
>>>
>>> " Word of mouth , foo " -> 2 tags "Word of mouth"
and "foo"
>>
>
>> How do I enter leading spaces if I want? I'd like to be able to enter
*any* character in any part of the tag name.
I need valid use cases. I know it's nice to be able to do everything but
it's not worth to implement the quotes and the escaping character if no
one will ever used them in real life. How many tags did you see with
leading or trailing spaces? How many containing a comma?
Well we can say the exact same thing for document
names... Consistency is
good. Should we do the same and forbid document names with
leading/trailing
spaces? (it's been asked before I think, although I'm tempted to say no to
this, except in UI which could trim spaces).
IMO tags are different. Page names are closer to free text.
Tags are 99% keywords and IMO it's best to
establish some simple rules:
* no leading or trailing spaces
* no comma inside
rather than implementing something that is useful in 1% of the cases.
Now, I didn't started this thread to re-implement or re-design the tags
UI.
It's not about UI but you *did* start the
thread about starting a spec
for tags and specs cannot be imprecise, they need 100%
conciseness.
I'm fine if we decide we'll never need to enter trailing/leading spaces
nor use the separator but it has to be brought to the table and discussed,
otherwise this spec will just be a joke.
I agree.
I also think that trailing / leading spaces are useless in tags. They're
more often a mistake than an intentional choice. Thus I'm +1 to
automatically remove them and say they're not allowed as part of the tags
specifications.