Skip to content

HOWTO Convert to mobi for the Kindle

Mickaël Schoentgen edited this page Nov 24, 2023 · 10 revisions

Pre-requisite

Download the kindlegen executable. For that howto, it put the file at the root of the Penelope repository.

Setup

$ git clone https://github.com/pettarin/penelope.git
$ cd penelope

Conversion

The conversion (for the FR dictionary) is as follow:

$ export LOCALE=fr
$ wget "https://github.com/BoboTiG/ebook-reader-dict/releases/download/${LOCALE}/dicthtml-${LOCALE}-${LOCALE}.zip"
$ python -m penelope -i "dicthtml-${LOCALE}-${LOCALE}.zip" -j kobo \
    -o "${LOCALE}-${LOCALE}.mobi" -p mobi \
    -f "${LOCALE}" -t "${LOCALE}" \
    --website https://github.com/BoboTiG/ebook-reader-dict \
    --license MIT \
    --email "" \
    --description "Dictionary ${LOCALE}-${LOCALE}" \
    --kindlegen-path ./kindlegen

And find the fr.mobi file you can use for your Kindle. Adapt the LOCALE variable to generate another language.

Clone this wiki locally