Skip to main content

The Project Gutenberg tool to generate EPUBs and other ebook formats.

Project description

# EbookMaker

EbookMaker is the tool used for format conversion at Project Gutenberg. It builds EPUB2 and Kindle files from HTML. Also it builds HTML4, EPUB2, Kindle, and PDF files from reST sources.

## Prerequisites

  • Python2 >= 2.7 or Python3 >= 3.3

  • HTMLTidy,

  • Kindlegen,

  • TexLive, and

  • groff.

Tested with Python 3.6

## Install

(dev branch, editable install) pipenv install ebookmaker

Use the ebookmaker.conf file to pass a path to your kindlegen, tex, and groff programs if they’re not in your PATH

## Sample invocation

ebookmaker -v -v –make=epub.images –output-dir=/Documents/pg /Documents/library/58669/58669-h/58669-h.htm

## Test

Use python setup.py test

Travis-CI will run tests on branches committed in the gutenbergtools org

## new to pipenv?

Install pipenv (might be pip install –user pipenv, depending on your default python)

$ pip3 install –user pipenv

Change directories to where you want to have your ebookmaker environment. Then, to initialize a python 3 virtual environment, do

$ pipenv –three

Whenever you want to enter this environment, move to this directory and do:

$ pipenv shell

Install the gutenberg modules:

$ pipenv install ebookmaker

Check your install:

$ ebookmaker –version EbookMaker 0.6.0

Since you’re in the shell, you can navigate to a book’s directory and convert it:

$ ebookmaker -v -v –make=epub.images –ebook 10001 –title “The Luck of the Kid” –author “Ridgwell Cullum” luck-kid.html

Project details


Release history Release notifications | RSS feed

This version

0.7.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ebookmaker-0.7.3.tar.gz (134.6 kB view details)

Uploaded Source

File details

Details for the file ebookmaker-0.7.3.tar.gz.

File metadata

  • Download URL: ebookmaker-0.7.3.tar.gz
  • Upload date:
  • Size: 134.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for ebookmaker-0.7.3.tar.gz
Algorithm Hash digest
SHA256 3b90dbc3f3896102325eee893b7b01979ddcd55f705ad0bf3334148e5160d53d
MD5 70adf947048e58e213a323cd194243b9
BLAKE2b-256 432cc4147b392364bfcbf60d83ed5dad963d34bbbebd590da4fbea97ab1edd5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page