View Single Post
Old 02-28-2015, 08:44 AM   #3
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 pdurrant View Post
As far as I know, the only thing that creates Kindle dictionaries is Mobipocket Creator[...]
Kindle dictionaries can also be generated with Kindlegen. However, since Amazon apparently hasn't updated the mobi7 dictionary code in a while, I'd also recommend using Mobipocket Creator instead, because it'll automatically generate an .opf file with the non-standard entries required for Kindle dictionaries.

@Ricsie:
A minimal dictionary source file with two entries (and inflections) looks like this:

Code:
<html>
<body>

<idx:entry>
	<b><idx:orth>book
	<idx:infl>
		<idx:iform value="books"/>
	</idx:infl>
	</idx:orth> </b> 
	<i>noun</i> <br/>
	A written or printed work
</idx:entry>
<br/>
<hr/>

<idx:entry>
	<b><idx:orth>go
	<idx:infl>
		<idx:iform value="goes"/>
		<idx:iform value="going"/>
		<idx:iform value="went"/>
		<idx:iform value="gone"/>
	</idx:infl>
	</idx:orth> </b> 
	<i>verb</i> <br/>
	To move from one place to another
</idx:entry>

</body>
</html>
I.e., your workflow would be as follows:

1. Open each .html file with a text editor and wrap each dictionary entry in <idx:entry>...</idx:entry> tags and each headword in <idx:orth>...</idx:orth> tags using regular expressions.
2. Create a new dictionary project with Mobipocket Creator and add all .html files.
3. Add the dictionary metadata and compile the dictionary.
Doitsu is offline   Reply With Quote