| Title | Allow leading/trailing hyphen in WikiName |
| Date | 15-Nov-2005 16:55:58 EET |
| JSPWiki version | 2.2.28 |
| Submitter | GregorHagedorn |
| Idea Category | MarkupIdea |
| Reference | |
| Idea Status | NewIdea |
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.
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.
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