On Wed, Mar 30, 2011 at 07:32:35PM +0200, Mojca Miklavec wrote:
On Wed, Mar 30, 2011 at 17:16, Khaled Hosny wrote:
On Wed, Mar 30, 2011 at 04:47:07PM +0200, Mojca Miklavec wrote:
If you are comfortable with writing PEG grammar (I'm not), writing a mediawiki parser for luanamark[1] might be a good choice, it has a ConTeXt writer already (and markdown parser).
This seems like a very reasonable solution, however it will take too long before I understand LPEG enough to write some useful code.
I pet pandoc have mediawiki support as well, so you may try it.
I started installing it, but then realized that it only supports output to mediawiki, no input.
It seems like writing my own parser (a few regular expressions in language that is not lua) will probably be the fastest solution after all.
There is also http://sourceforge.net/projects/wiki2tex/ but it generates LaTeX, tweaking it to generate ConTeXt should not be hard (as long as you can build it; written in C++ and requires cmake, Qt and what not, luckily it built here just fine). Regards, Khaled -- Khaled Hosny Egyptian Arab