Rowan Collins wrote:
Have you worked out how to deal with "MagicWord" i18n yet?
Not entirely, but mostly :)
Here are my thoughts:
* Redirects are not passed through the lex/yacc parser at all. They can be recognised with a regular expression that takes the magic words into account.
* Things like __NOTOC__ and stuff can be handled like this: * Regard *everything* of the form __CAPITALLETTERS__ as a special token * Have the post-processing step remove and process them * What to do with unrecognised ones is open to debate. Options: 1. turn them back into text 2. ignore them. They're rare enough to require <nowiki> if you want to actually write them.
* The "Media", "Image" and other namespaces are handled in post-processing. The parser sees them as text within the link target.
* The template pseudo-variables (e.g. CURRENTMONTH) are similarly handled in post-processing.
* HTML tags and extension names are either not internationalised, or all translations of them are made to work on all Wikipedias.
Timwi