Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to convert an XML dump of whole Deus Ex Wikia to my Kindle. How can I do that?

Here's the compressed XML file if anyone wants to try their solutions before posting an answer: http://dumps.wikia.net/e/en/endeusex/pages_current.xml.gz

share|improve this question
    
If not on Windows, you could maybe try using Mobipocket in Wine. About your xml file : It's in a very specific format, so I doubt that any ready-made tool will do the work. You might have to write a converter to some known format that is accepted by calibre (which is simply the world's most extensive converter). –  harrymc Dec 27 '12 at 15:52
    
I think the same, but before I jump to programming, I preferred to ask. Perhaps somebody already solved this problem before. –  d33tah Dec 27 '12 at 16:44

3 Answers 3

It looks like you can do this with Mobipocket.

Building from XML

share|improve this answer
    
Haven't tried yet. Would need some Windows box to run it. –  d33tah Dec 27 '12 at 16:05
    
Help in testing if it works is appreciated ;) –  d33tah Dec 27 '12 at 16:05
    
Well, I finally read the documentation and it appears that to build the book I'd also need some XSL code. Bearing in mind that the XML contains Wikimedia markup, I don't think it'd be the easiest approach. –  d33tah Dec 27 '12 at 21:55

I don't know your Wiki system, but if it can export to PDF instead of XML, then calibre is one tool that can convert pdf to almost any ebook format.

share|improve this answer
1  
The solution sucks. You usually don't want to mess with with pdf unless it really is the only possible solution. –  d33tah Jan 1 '13 at 3:08
1  
calibre handles pdf like any other format and will not take hours to do the job. So what's the problem with pdf? –  harrymc Jan 1 '13 at 8:11
    
Never knew before? Read up on manual.calibre-ebook.com/conversion.html, section "Convert PDF documents". –  d33tah Jan 1 '13 at 9:48
    
PDF files can be horribly complex, but simple ones are no problem. If you post the PDF export of your wiki, I'll have a go at it with calibre. –  harrymc Jan 1 '13 at 11:13
up vote 0 down vote accepted

I figured out a way to do it without too much effort. I've set up my own Mediawiki installation and imported the XML (I needed to increase the limits in PHP configuration - the ones concering the maximum execution time and uploaded file size). It took quite a lot of time on my netbook. On the result page, I could copy the list of the pages, then use egrep -v to filter out non-content pages, such as user profiles, discussions, templates etc.

Then I installed EPubExport. I visited Special:EpubPrintpage and copied the filtered-out list of pages there. Generating the ebook took ages and then converting the EPUB to .mobi was another two hours. The output file is suspiciously long (I doubt that users wrote as much content as Mitchell did in "Cloud Atlas" book), but judging from the preview, it looks legit. It lacks images because they weren't in the XML, though. I'll read it once I'll have some more spare time and let you know how it worked in the long run. If you want to read the ebook by yourself, it can be found here. You'll need to jump to the "Deus Ex" article, because I forgot to cut the index page from the output file.

share|improve this answer
    
Too bad I can't award the bounty to myself. –  d33tah Dec 28 '12 at 20:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.