German to English dictionary in the Kindle

I wanted to read books in German in my Kindle, but because I don't know any German, I need a dictionary. If that's what you want, a dictionary for German that works in the Kindle, then download this:
Long version:

I went through a lot of problem converting the StarDict dictionary of German to English. It really took me days. So let me dump the process here, roughly:
  • download the stardict file. I believe the extension is .xdxf
  • use pyglossary to convert it to a tab-separate text file
  • use tab2opf from this dude to convert the text file into an OPF set of files (.opf plus a bunch of HTMLs)
  • go to http://www.mobipocket.com/dev/ and download the proprietary "kindlegen" tool
  • use kindlegen on the .opf file. If all goes right, you'll get a .mobi file at the end.
After that, put the mobi file in the Kindle (I use Calibre for that) and make it the default dictionary, by going to Home, then Menu, Settings, then Menu, then Change Primary Dictionary.

There's a big catch. They clearly tune the Kindle to use as less power as possible. So it makes sense for the English language to save a few CPU cycles by skipping dictionary lookups when the word starts with an uppercase letter in the middle of a phrase. Like for example if in this phrase: "I think Amazon sucks at making internalized products". In English, a dictionary lookup for "Amazon" doesn't make sense.

As you, a smart reader, knows, the German language uses capitalized letters for all nouns. So it's effectively impossible to lookup the meaning of for example Weihnachten (christmas). The only workaround I could think it's to edit the content of the book and search all capitalized letters by lower case ones.

Or, alternatively, stop wasting time tuning the Kindle and go study German so you don't need a dictionary in the first place :-).

UPDATE: Thanks to helpful suggestions from Ea and stehk from MobileReads, I changed directions and decided to buy a better dictionary that actually works with all inflections, and is much better overall. The process was very complicated, but here's the outline:
  • buy the book from mobipocket.com (this one is good, thanks stehk!)
  • download their mobile reader. Because I don't have Windows, I had to setup it up using "msiexec mobireadersetup.msi"
  • run the reader.exe from wine
  • find your way through their hideous interface to login, download and activate your books
  • make sure you can open that book from their reader
  • go to the list of ebooks in the reader program, right+click and take a look at the properties, to see where the file is now. From outside Wine, copy that file to somewhere you know. Like /var/tmp
  • Go to mobipocket.com and find the PID of your "device". Device in this case it's actually the "Windows" Mobipocket Reader.
  • Use MobiDeDRM to decrypt your book. As explained here. If you keep getting "invalid PID checksum" errors, try a different version of the script. Sample command:
    • python mobidedrm.py pons_gross_de2.prc pons.prc 'KYJZGSJ$HC'
      • (this is a fake number. Note that I enclosed the PID with single quotes)
      • (this command can take several minutes depending on the book size. It took about 10 minutes for this 20MB dictionary)
I have no words to describe how disgusted I am with all of this. First, we all know how stupid DRM is, in so many levels. It just makes the lives of honest dudes more difficult (I'm freaking BUYING the book and not distributing it). But worst of all, AMAZON OWNS MOBIPOCKET.COM!!! And I'm having to DE-DRM their own ebooks so I can read them on my Kindle!!!!!1

Are you also angry? Than use inkmesh.com or a simular search engine to find *other* ebook stores that sell books compatible to the Kindle. Don't buy everything from Amazon. Besides all, they seem to be doing predatory prices too, which is bad for all consumers in the long term.

Popular posts from this blog

How to crack Windows Terminal Services 3 month trial

Caveats about Linux connection tracking and high traffic servers

How to install VirtualBox on Scaleway's x86_64 servers