Having just set up the very shiny new Mediawiki wikifarm on our intranet, my boss keeps mentioning that converting the existing MoinMoin wiki would be *very nice thank you*.
Now then, there are two approaches:
1. Adapt an existing script.
* mm2mw.pl is at http://www.littlejohnconsulting.com/node/18 - this is what Wikia recommends for people wanting to move a Moin wiki to Wikia. * moin2media is a Python script done by the Linux Foundation for in-house use - http://www.linux-foundation.org/en/Old_LSB_Wiki .
Has anyone here used either of these? How did they do? Did they pull in histories? (We can live without histories but we'd rather not.)
2. Roll our own.
* We could adapt one of the above or write a new direct converter from scratch - a simple if laborious matter of programming. * Moin includes export to DocBook (of varying quality) and there's a DocBook to Mediawiki converter (of varying quality). This is likely to resemble work, however. * I'm not even going to attempt to keep histories if we do this.
3. Importing the resulting wikitext or XML.
Is there an easy batch-importer?
- d.
On Dec 11, 2007 12:05 AM, David Gerard dgerard@gmail.com wrote:
Having just set up the very shiny new Mediawiki wikifarm on our intranet, my boss keeps mentioning that converting the existing MoinMoin wiki would be *very nice thank you*.
Now then, there are two approaches:
- Adapt an existing script.
- mm2mw.pl is at http://www.littlejohnconsulting.com/node/18 - this is
what Wikia recommends for people wanting to move a Moin wiki to Wikia.
I wasn't actually recommending it. I was just collecting scripts I found randomly on that page. I've not personally used it and don't know anyone who has.
If you can convert the original to XML, you can use Special:Import to import the content (2MB at a time via the wiki or more if you can do it directly on the server).
Angela
On 10/12/2007, Angela beesley@gmail.com wrote:
On Dec 11, 2007 12:05 AM, David Gerard dgerard@gmail.com wrote:
- mm2mw.pl is at http://www.littlejohnconsulting.com/node/18 - this is
what Wikia recommends for people wanting to move a Moin wiki to Wikia.
I wasn't actually recommending it. I was just collecting scripts I found randomly on that page. I've not personally used it and don't know anyone who has.
I just tried mm2mw.pl. Problem: It converts all CamelCase to [[Camel Case]] ... including in the middle of external links. This makes too much of a hash of things for us to use it.
The Linux Foundation moin2media.py script doesn't do this, and only mucks up *some* external links by trying to convert them into wikilinks. However, it doesn't understand multiple levels of bullet points.
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.
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.
I shall report back on whatever seems to work!
- d.
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.
mediawiki-l@lists.wikimedia.org