03-01-2011, 03:33 PM | #1 |
Junior Member
Posts: 4
Karma: 310
Join Date: Jan 2011
Device: kindle 3
|
converting an XML file (making a dictionary)
hey, i'm still new to this, so apologies if this is in the wrong place. Is there anyone who can advise on how i can go about converting an XML file to something readable by the Kindle? Done a bit of looking online but not found anything superhelpful yet. Appreciate any advice - more info here:
I was looking for a Swedish-English dictionary to use with my Kindle, but can't find one... So was wondering if i could make one from the open content at: http://lexin.nada.kth.se/sve-eng.html Where it's possible to download the whole thing as an XML file - which looks like this (as an example): <word value="abaft" lang="en" class="ab"> <translation value="akter ut"/> </word> <word value="abaft" lang="en" class="pp"> <translation value="akter om" comment="sjöterm"/> </word> <word value="abandoned" lang="en" class="jj"> <translation value="lössläppt"/> <translation value="otyglad"/> <translation value="utsvävande"/> <translation value="fördärvad"/> <example value="otyglat beteende"> <translation value="abandoned behaviour"/> </example> </word> |
03-01-2011, 03:39 PM | #2 |
Wizard
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
Have you seen the "Indexes and Dictionaries" section under http://www.mobipocket.com/dev/articl...Folder=prcgen?
You might be able to use XSLT to write a conversion, if you are good at XSLT (which is kind of a pain). Or, you might have to parse out the XML, then output the appropriate HTML for conversion. Perl has several goog XML parsers (I like XML::Twig). |
Advert | |
|
06-13-2011, 11:32 AM | #3 |
Junior Member
Posts: 9
Karma: 4388
Join Date: Jun 2011
Device: Kindle 3
|
Hey Meehrcat, have you come up with something in the meantime? I'm looking for a SWE-EN dictionary for my Kindle, too. Thanks in advance!
|
Tags |
conversion, dictionary, kindle, swedish, xml files |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting XSL + XML into Epub, is there an easy way? | Rogier | Calibre | 5 | 09-19-2012 12:20 AM |
Converting DocBook XML source book with calibre! | baccilus | Calibre | 1 | 12-04-2010 01:32 AM |
Converting XML + XSL to Epub. Is there an easy way to do it? | Rogier | ePub | 4 | 04-22-2009 11:26 AM |
Making a Dictionary for Gen 3 | bbusybookworm | Bookeen | 5 | 06-08-2008 02:43 AM |
Making a Mobipocket dictionary | jbenny | Kindle Formats | 0 | 02-22-2008 04:59 PM |