* Magnus Manske magnusmanske@googlemail.com [2008-02-29 11:05]:
On Wed, Feb 27, 2008 at 10:31 PM, Simetrical Simetrical+wikilist@gmail.com wrote:
On Wed, Feb 27, 2008 at 2:24 PM, Dirk Riehle dirk@riehle.org wrote:
(Wiki Creole is a subset of MediaWiki syntax; it might be sufficient for what your XHTML files express---you probably don't have templates etc.)
I know that there are some tools to make a rough job at converting XHTML to MediaWiki markup, although it's never going to be very reliable or consistent. I can't seem to find them in a couple minutes' Googling, unfortunately.
Can OpenOffice be run with shell parameters? It should be able to read XHTML, and it exports MediaWiki AFAIK.
It can [1] and I was going to suggest exactly the same, until I looked at the output of the export. In my limited tests, it didn't handle nested lists at all (OpenOffice v2.3 from Ubuntu Gutsy), so it's not a solution right now, but could be a nice thing in the future.
Thomas
[1] Shell alone doesn't work, you need to script OOo with e.g. Python, but it's definitely possible.