TitleAllow leading/trailing hyphen in WikiName
Date15-Nov-2005 16:55:58 EET
JSPWiki version2.2.28
SubmitterGregorHagedorn
Idea CategoryMarkupIdea
Reference
Idea StatusNewIdea

When using wiki to create a glossary, the strict removal of punctuation other than underscore and period become a problem. I can not find an intuitive way of expressing prefix and suffix definitions. Compare http://en.wiktionary.org/wiki/tetra-

Proposal: allow hyphen and start at end of wiki word, while continuing to remove it in the middle. This should cause minimal problems with existing data, where hyphen and start end could always be removed from wiki word.

Gregor Hagedorn.


Mmmhhh... I'm considering relaxing the namespace altogether - there's little need to do this removal of punctuation anyway. You can trivially patch it yourself by changing the MarkupParser.PUNCTUATION_CHARS_ALLOWED constant and recompiling until then.

-- JanneJalkanen

Perhaps this could then be turned into a property file option for the non-java-experts among us.

-- Gregor

Yes, maybe. But it will introduce an inconsistency - your wiki will be able to have names which, when moved to another wiki, will break.

-- JanneJalkanen

What about the originally proposed change, to treat leading/trailing hyphens as a special case, similar to period and underscore being treated specially? I think it would be worth it and enable the use of JSPWiki for glossary-projects.

-- Gregor

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-5) was last changed on 18-Nov-2005 10:56 by GregorHagedorn [RSS]