Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python based script to create epub format ebooks from a text file
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
renders
test
.gitignore
README.md
ebook.py
ebook_get_cover_art.py

README.md

ebook-maker

Simple script to create an ebook in epub format.

This program will scan a directory of sub-folders, where each sub-folder resprents a book. Within each sub-folder, there should be a series of text files for each chapter. For example the folder structure should look like this:

Book Title - Last Name, First Name.text
  chapter 1 - Introduction.text
  chapter 2 - More about ebooks.text
  ...

Each chapter should just be a plain text. It can have some limited html markup, such as bold , italic e.t.c.

Running example will generate an example source file to get one started.

Usage:
    ebook -h
    ebook scan TEXT_SOURCE_FOLDER EBOOK_DESTINATION_FOLDER [-f FORMAT]
    ebook example TEXT_SOURCE_FOLDER EBOOK_DESTINATION_FOLDER
    ebook license

Options:
    -h --help           Print this screen
    -f --format FORMAT  Ebook format [default: epub], only one option for now

Dependencies

To install the dependencies run

pip install mako docopt
Something went wrong with that request. Please try again.