After a whole day of struggles, I finally managed to convert a wordnet3 infused dictionary (that you can get here: http://eb.lv/) from .mobi format to .dict format (suitable for KOReader).
I tested this process on Arch Linux, so your process might be different from mine.
- Download the KindleUnpack program from here: https://github.com/kevinhendricks/KindleUnpack
- Extract the .zip
- Start the GUI with python 2 (IMPORTANT: python3 doesn't work!):
python2 KindleUnpack.pyw - Select the .mobi file as input and choose your output directory
- (optional) I don't know if it is necessary, but select ePub Output type: Auto-Detect
- Click the Start button and wait
- A file called book.html is now present in the output directory
- Download the mobi2stardict.py script from here: https://github.com/anezih/mobi2stardict
- Place the script in the same folder as the book.html file
- Run it with python (I used python3):
python mobi2stardict.py --fix-links --dict-name wordnet3 - A file called book.gls is now present in the same directory as the mobi2stardict.py script
- Download stardict-editor (it is packaged with other stardict tools)
- Arch-linux (using yay for AUR):
yay -S stardict-tools(source https://aur.archlinux.org/packages/stardict-tools) - Ubuntu:
sudo apt install stardict-tools(it should be in the repository, otherwise just search for it online)
- Arch-linux (using yay for AUR):
- Open a terminal and type:
stardict-editor - A GUI should now be opened, go to "Compile" tab and click on "Browse" to select your book.gls file
- Select "Babylon file" from the drop-down menu in the bottom of the editor and press "Compile"
- A few files called book.dict, book.idx, book.ifo and book.syn should now be present in the same folder
- (optional) If you want to change the dictionary name (it is book by default) then open book.ifo with a text editor and update "bookname" entry to
bookname=wordnet3
- Copy ALL the files (book.dict, book.idx, book.ifo, book.syn) to koreader/data/dict/
- Restart KOReader
- From KOReader select the magnifying glass > Dictionary settings > Manage dictionaries > and select wordnet3
Could you pls share the file. Thx u.