View Single Post
Old 07-07-2013, 06:25 AM   #8
Buddhaxe
Member
Buddhaxe began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by Doitsu View Post
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.
@Doitsu: Thank you for your reply! This is valuable information and it looks like this is the direction I need to go in order to solve my problem. However, how would I have to add the code you mention? The format I have is EPUB (though I managed to convert it to MOBI format via a website). I guess I should unpack the mobi file first? And then edit the opf file with notepad? Where should I add the code you mention? At the end or the front? I'm not too experencied with editing metadata of ebooks you see

Also, I found this post which looks like it could be a solution to my problem. Only, it requires me to execute a pearl script. I can't get it to work. Maybe any of you have tried the procedure mentioned already:

https://www.mobileread.com/forums/sho...81#post2562381

again to all for your kindness!
Buddhaxe is offline   Reply With Quote