View Single Post
Old 02-12-2008, 05:17 AM   #1
drago
Enthusiast
drago began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jul 2006
Location: Budapest, Hungary
Device: KPW, BrokenfirstgeniLiad
How to create your own mobipocket dictionary for any language:

I was very gratefull to Adam B for porting the Stardict dictonary tool for the Iliad, but I allways longed for the kind of instant lookup, which is possible from mobipocket. Unfortunately mobipocket dictionaries are not available for more exotic languages, so I allways wanted to create my own mobipocket dictionaries. It seems I have now found a solution:

First you need to get hold of a tab delimited dictionary file. (example. dictionary.txt)

(Stardict dictionary files are available from: http://stardict.sourceforge.net/Dictionaries.php
These can be converted into a tab delimited file by the stardict editor programe, which you can find here: http://stardict.sourceforge.net/other.php )

Once you have such a file, use tab2opf.py from http://www.klokan.cz/projects/stardict-lingea/
This is a free python script by Petr Klokan, so you’ll need python isntalled.

Type tab2opf.py dictionary.txt into the command line to run the script.

This will give you a dictionary.opf file, and a number of dictionary0.html files

Edit the dictionary.opf file, to specify the name of the dictionary, and the impot output languages.

Get mobigen.exe form - http://www.mobipocket.com/soft/prcgen/mobigen.zip

Extract mobigen exe

Run mobigen.exe dictionary.opf

If you did everything right, you’ll get dictionary.mobi which’ll be the desired mobipocket dictionary.

Cheers!

D.
drago is offline   Reply With Quote