It's a massive task, probably months of work.
I don't think so - I'd bet a determined hacker could do it in a much shorter time given what's already available.
A while back I put together an extension to ease the difficulty in swapping in alternative syntax engines:
http://www.mediawiki.org/wiki/Extension:AlternateSyntaxParser
It comes with built-in support for Textile and Markdown, but it also adds a hook called 'AlternateSyntaxParser' for extensibility. A wikicreole implementation might look like like this:
---------------------------------------- $wgAlternateSyntaxParserLanguage = 'WIKICREOLE'; $wgHooks['AlternateSyntaxParser'][] = 'wikiCreoleParser'; function wikiCreoleParser( &$parser, &$text, $lang ) { if ($lang!='WIKICREOLE') return true; // somehow render the wikicreole text in $text into $rendered_text $text = $rendered_text; return false; } ----------------------------------------
There's already a PEAR Package for parsing wikicreole text (or so the download page would have me believe - there's no official documentation that I could find):
http://pear.php.net/package/Text_Wiki_Creole/download/All
I'm not an expert on PEAR, so I can't be sure if this would be an acceptable engine, but if it is - then the project would appear to be a simple plumbing job at this point ;)
-- Jim R. Wilson (jimbojw)
On 8/14/07, Thomas Dalton thomas.dalton@gmail.com wrote:
So, I would like to ask, would anyone be interested in developing the alternative Creole parser for MediaWiki?
I don't remember anyone volunteering last time we discussed it. It's a massive task, probably months of work. Someone interested in writing a parser from scratch would probably do better spending their time re-writing the MediaWiki parser (which is probably a larger job, but I expect it would be more useful - I'm not sure, though, since I don't even understand the parser well enough to truly understand the problems with it).
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l