This version is 1.5 alpha version and written on python 3
Requirement
Python 3 or later
Supported epub generator
- epubgen.jar
- pages (export to epub)
- calibre (tested with version 0.8)
- InDesign (tested with CS 5)
How to use
Add all .epub file in same path of convert.py and convert with following command
$python convert.py [font family] [font file]
Font File
If you want to use custom file , add font.ttf in data/[your font file].ttf
Example :
$python3 convert.py "Pyidaungsu" Pyidaungsu-Book.ttf
Pyidaungsu-Book.ttf must be in data folder (data/Pyidaungsu-Book.ttf)
Add Cover
If you want to add cover, your .epub and [cover].png must be same name.
Example :
Epub file : myBook.epub , Cover file: myBook.png
FAQ
Got error message IOError: [Errno 20] Not a directory:
It's a bug of python 2.6. Please, upgrade to python 2.7 or patched the latest python 2.6 zip file.
Read more about bug in here.
Change Log
Aug 8, version 1.6
- Fixed for pyhton3
Feb 8 , version 1.5
- support cover
- support custom font