https://github.com/boon-code/cepub
document to EPUB converter (uses unoconv)
https://github.com/boon-code/cepub
Last synced: about 2 months ago
JSON representation
document to EPUB converter (uses unoconv)
- Host: GitHub
- URL: https://github.com/boon-code/cepub
- Owner: boon-code
- Created: 2014-07-06T00:39:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-23T09:18:07.000Z (over 9 years ago)
- Last Synced: 2025-03-09T16:36:21.724Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Create EPUB
===========
Simple ``python`` script to convert documents to **EPUB** format. To use
this tool, you have to create a **JSON** file describing the document to
create and some options how to create the final **EPUB** file.
Sample JSON file
----------------
A typical **JSON** description could look like this:
{
"title" : "First Awesome Book",
"bookdir" : "/home/user/books",
"filename" : "Awesome-Book.docx",
"outname" : "Awesome_Book",
"authors" : "Author Name",
"cover" : "/home/user/pictures/cover-awsome-book.jpg",
"comments" : "This is a totally awesome book!",
"language" : "de",
"outdir" : "/home/user/epubs"
}
This will convert the file ``/home/user/books/Awsome-Book.docx`` to an
**EPUB** version ``/home/user/epubs/Awsome_Book.epub`` containing the
cover image ``/home/user/pictures/cover-awsome-book.jpg``. It will
also include the comment *This is a totally awesome book!*.
Usage
-----
Let's assume, the **JSON** file above has been saved to a file named
``awesome_book.json``. To convert the book, you simply have to issue
the following command:
python cepub.py some_dir/awesome_book.json