Quote:
Originally Posted by sjheiss
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.