On 29/11/2007, Thomas Dalton thomas.dalton@gmail.com wrote:
On 28/11/2007, Mark Jaroski mark@geekhive.net wrote:
Steve Bennett wrote:
Yes, except for the special rules for "apostrophe-italic" sequences.
This works: L'''amour'' est un oiseau rebel. ''italics test''<br>
This doesn't: L'''amour'' est un oiseau rebel. ''italics test<br>
*groan*
Please let's declare that a bug.
That could justifiably be called a feature. What's definitely a bug is the "4 apostrophes means 2 literal apostrophes and an italic toggle" thing - that's completely unjustifiable.
I think we need a clean separation between the grammar of apostrophes and their semantics. That way anything language-specific could be handled on a per-wiki basis at the semantic stage.
Most wikis are monolingual so would only need one piece of semantic code, but others are multilingual overall or in specific areas such as Wiktionary.
The language-specific semantics could be handled by extensions or by parameters but at least a parser hook to allow extensions is a must.
There should probably be basic semantics for clear cut cases such as balanced unambiguous italic and bold markers, with anything unbalanced or ambiguous being left to the language- or wiki-specific semantic stage.
This way we can have the common-sense ''italics'' and '''bold''' and treat everything else as a special case which may be determined by the wiki. This might in theory even make proper handling of double apostrophes in Neapolitan possible.
Andrew Dunbar (hippietrail)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l