Introduction
These tools convert text files in the format worddefinitions into .mobi dictionaries for Amazon Kindle with a focus for Vietnamese dictionaries.
Steps
- Install Python 3.x
- Create/update definition file (like dict/TudienAnhVietBeta.txt)
- Run createhtml.bat to create .html files (actually OPF format for ebook) using Python program tab2opf.py
- Run createmobi.bat to create Kindle dictionary files using Amazon tools mobigen.exe. Output files are in ../dict folder above
For programmers
Create new environment in Python 3
python -m venv c:\path\to\myenv
Activate
c:\path\to\myenv\Scripts\activate.bat
Create list of packages
pip freeze > requirements.txt
Install list of packages
pip install -r requirements.txt
Create executable
pyinstaller -F python_main.py
English inflections
In order to generate inflections (words form for plurals, verb tenses, etc.) for English, you need to run Python program create_english_inflections.py. That needs pattern library. The easiest way to install it is to use Anaconda which comes with hundreds modules.