You can create wordwise enabled .mobi files for Amazon Kindle by using
- either standalone executables or
- pure python script (runs faster)
- You need to have calibre on your device.
- If you are on windows, download executables/wisecreator.exe
- If you are on linux, download executables/wisecreator
- Finally run the below commands in a shell
Windows:wisecreator.exe PATH_TO_YOUR_MOBI_BOOK
Linux :./wisecreator PATH_TO_YOUR_MOBI_BOOK
You can move standalone wisecreator file anywhere you like on your computer, but if you are using calibre portable, make sure you add your calibre portable folder to the PATH environment variable
- You need to have calibre on your device.
- To run the script you need to have Python3
- Make sure you have these Python libs:
NLTK
sqlite3 - included in standard library, or if your python has been built from source, usepip install pysqlite3
- Run wisecreator:
./main.py PATH_TO_YOUR_MOBI_BOOK
calibre console utility "ebook-convert" is used inside the script
- You need to have root access to your android phone.
- Follow the script or executable and get new .mobi and .kll files
- Rename
LanguageLayer.en.ASIN.kll
toWordWise.en.ASIN.db
- Push the .mobi book to
Android/data/com.amazon.kindle/files
- Push the WordWise.en.ASIN.db file to
/data/user/0/com.amazon.kindle/databases
. You need root access for this. - set the permissions for the wordwise file by running
chcon u:object_r:app_data_file:s0:c512,c768 [filename].db
from a terminal emulator app or via adb shell at the above path.
To develop:
You need pyinstaller to pack executables. You can install it with pip.