View Single Post
Old 07-07-2013, 03:01 AM   #5
Doitsu
Grand Sorcerer
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: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Buddhaxe View Post
I have found a Dutch EPUB dictionary and after a whole day of trying, I have been able to convert it to mobi format (Calibre couldn't handle a file with so many indexes).

However, my kindle does not recognize this file as a dictionary. Is there any way to change this?
Mobi dictionaries require two special non-standard <x-metadata> entries in the .opf file. For example, for a Dutch-English dictionary, you'd need the following entries:

Code:
<metadata>
...
	<x-metadata>
		...
		<DictionaryInLanguage>nl</DictionaryInLanguage>
		<DictionaryOutLanguage>en</DictionaryOutLanguage>
	</x-metadata>

</metadata>
Without these .opf entries dictionaries will be treated like any other Kindle book. Also dictionary entries need to be wrapped in special <idx:entry> and <idx:orth> dictionary tags.

A minimal Dutch-English dictionary looks like this:

Code:
<html>
<body>

<idx:entry>
	<b><idx:orth>boek
	<idx:infl>
		<idx:iform value="boeken"/>
	</idx:infl>
	</idx:orth> </b> 
	<i>substantief</i> <br/>
	book (n)
</idx:entry>
<br/><br/>
<hr/>

</body>
</html>
I.e. simply converting epub dictionaries usually won't work.

Last edited by Doitsu; 07-07-2013 at 01:43 PM.
Doitsu is offline   Reply With Quote