Skip to content

Python based script to create epub format ebooks from a text file

Notifications You must be signed in to change notification settings

hg9x/ebook-maker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python based script to create epub format ebooks from a text file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%