View Single Post
Old 12-27-2011, 11:03 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,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by sjheiss View Post
I could find relies on StarDict files, TAB files specifically, and I can't get those since my dictionary is not a StarDict one, rather from a CHM file compiled from a website.
You don't have to use tab2opf.py. Since .chm source files are .html files, you could use Microsoft HTML Help Workshop to decompile the .chm file and do a global search and replace to create .html files that you can compile with Mobipocket Creator.

A dictionary entry must be enclosed by <idx:entry> and <idx:orth> tags.
(<a name/> tags are only required if the dictionary contains cross references.)

A minimal Mobipocket dictionary source file with two entries looks like this:

Code:
<html>
	<body>
   
		<idx:entry>
			<a name="apurtu">
			<idx:orth>apurtu</idx:orth><br />
			to break, smash, shatter 
		</idx:entry>
		<hr />

		<idx:entry>
			<a name="adiskide">
			<idx:orth>adiskide</idx:orth><br />
			friend 
		</idx:entry>
		<hr />

		<!-- more entries-->

	</body>
</html>
If you format your dictionary in this way, Mobipocket Creator will automatically create a search index.
For more information on dictionary source files, see the Mobipocket Developer Website.

Last edited by Doitsu; 12-27-2011 at 04:12 PM.
Doitsu is offline   Reply With Quote