12 Nov
2011
12 Nov
'11
4:40 p.m.
On Sat, Nov 12, 2011 at 05:31:23PM +0100, Philipp Gesang wrote:
(Beware that processing wiki text from WP is extremely complicated due to WP’s using special plugins (“templates” and stuff). So the only way to make sure that a parser accept any well formed WP page would be to include all those plugins. Which would entail rewriting the PHP code in Lua for use as a context script. And then you’d have to decide for every plugin what its output should look like in Context.[0] If you have the time ...)
I think scraping the MediaWiki-generated HTML would be simpler. Regards, Khaled