On 10/12/2007, David Gerard dgerard@gmail.com wrote:
I got hold of an internal conversion script someone here used (which I probably can't release if it proves any good, sadly) which I'll be having a hack at.
This will be my last resort, because the next one looks like a promising second-last resort:
My last resort will be using MoinMoin's internal DocBook export and then hacking on the hacky blender.org DocBook-to-Mediawiki converter. The problem with DocBook export in MoinMoin 1.5.2 is that it doesn't indicate links in any way at all. The experimental DocBook branch of 1.6 apparently does, but it's more than a simple matter of dropping the new .py file into place.
On further inspection, 1.5.2 does in fact indicate internal links where the page exists. Phew! They're all a <ulink> element, with the external links being prefixed http:// .
The blender.org xml2wiki.pl script does okay except that (a) it doesn't generate valid MediaWiki XML (b) it doesn't do anything with the DocBook tags <ulink>, <emphasis> or <screen> generated by MoinMoin (c) it doesn't preserve multiple levels of bullet points. So hack the Perl script.
(I'm unlikely to be allowed to release my work - gah - but if it works then reinventing this wheel shouldn't be hard for someone else.)
I wasn't pleased to find pages in our wiki that make the DocBook converter script crash. Not sure how much of a problem this will be in practice. If it's a lot of pages then this approach is unlikely to be feasible.
- d.