zippy
a simple python CLI for 'bionifying' eBooks. Bionification is a technique that bolds the initial letters of words to improve reading speed and comprehension. This tool specifically targets eBooks in the ePub format and is ideal for use with Kindle devices.
git clone https://github.com/yourusername/zippy.git
cd zippy
It is recommended to use a virtual environment to manage dependencies.
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
Install the required Python packages using pip
:
pip3 install -r requirements.txt
To bionify an ePub eBook, use the following command:
python3 zippy.py <input_file> <output_file> [--algorithm <algorithm>]
python3 zippy.py "Lying (Sam Harris).epub" "Lying (Sam Harris) Bionic.epub"
You can customize the bionification algorithm using the --algorithm
parameter. The default algorithm is "- 0 1 1 2 0.4"
. This parameter controls how many letters are bolded based on word length and other factors.
python zippy.py "Lying (Sam Harris).epub" "Lying (Sam Harris) Bionic.epub" --algorithm "- 0 1 1 2 0.4"
This project is inspired by and uses parts of the code from Bionify Chrome extension.