A utility to change the primary font used in an epub file.
To create the repackaged epub file this tool will perform the following steps:
- Extract the contents of an epub file to a temp directory
- Copy the CSS file and Font file to the temp directory
- Add the CSS file and Font file to the epub manifest
- Add a link to the CSS file in all identifiable xhtml and html files
- Compress the temp directory contents into the new epub file
This will not delete or overwrite the existing epub file. It will generate a new epub with -repacked
appended
to the file name.
From the root of the project directory execute the powershell script CreateVenv.ps1
then run the following command:
python -m repack <Path_To_Epub>
replacing <Path_To_Epub> with the absolute path to the epub file.