View Single Post
Old 10-24-2011, 06:33 AM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,127
Karma: 4938208
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by daxp View Post
I've downloaded a German-English dictionary from here, but I cannot get it to show up as anything other than an English dictionary. I've installed Mobi2Mobi, it says it's German. Calibre says it's German. The only thing I've found that disagrees is my Kindle. I'm probably missing something rather simple, especially since it's late...but I just can't see what.
Unfortunately the dictionary creator didn't use the correct language codes for the source and target languages.
In the German-English.opf file, he defined both input and output languages as English:

Code:
<DictionaryInLanguage>en-us</DictionaryInLanguage>
<DictionaryOutLanguage>en-us</DictionaryOutLanguage>
This means that this dictionary will never work as a lookup dictionary on a Kindle.
However, since his dictionaries were GPL 2 licensed, you can fix his mistake:

1. Unpack the .mobi file and change the languages in the German-English.opf file as follows:

Code:
<DictionaryInLanguage>de</DictionaryInLanguage>
<DictionaryOutLanguage>en</DictionaryOutLanguage>
2. Re-compile the mobi file with Mobipocket Creator.

(You can edit the .opf file directly or simply double-click the .opf file and change the languages in the Book Settings dialog box.)

Last edited by Doitsu; 10-24-2011 at 06:35 AM.
Doitsu is offline   Reply With Quote