Installing EpubMaker

Installing EpubMakerEpubMaker is Project Gutenberg’s file converter. It can convert from PG-RST to HTML, EPUB, PDF and plain text.WindowsPrerequisitesInstall Python.Assuming you don’t have python yet. If you have either version 2.6 or 2.7 already installed, skip this.Fromhttp://www.python.org/download/releases/2.7/download theWindows x86 MSI Installer (2.7)and run it.Select all the default options and install.Install Python Setuptools.Fromhttp://pypi.python.org/pypi/setuptoolsdownloadsetuptools-0.6c11.win32-py2.7.exe(or any newer version) and run it.If you are using python 2.6 get the setuptools for 2.6.Install Groff. (You can skip this step if you don’t want to generate plain text files.)Fromhttp://gnuwin32.sourceforge.net/packages/groff.htmdownloadComplete package, except sources - Setup(groff-1.20.1-setup.exe) and run it.Select all the default options and install.Install TexLive. (You can skip this step if you don’t want to generate PDF files.)Go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl.zip. Then say:> unzip install-tl.zip> cd install-tl*> install-tlThis will open the TeX Live installation wizard. Follow the instructions. When in doubt use the defaults.This will take quite a while. (3 hours on an old Dell Vostro 1000 laptop. It installs about 2.5 GB in 93,000 files.) If you experience download problems, restart the wizard: it will resume the download where it left off.Long installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003Install HTML Tidy. (You can skip this step if you only want to process RST files and don’t want to build EPUBs from HTML input.)If you are a post-processor you already have this.http://tidy.sourceforge.net/Update your PATH.Start | Control Panel | System | Advanced | Environment Variables. Click "Path" in the User variables at the top. Click "Edit"If the field is empty just enter (all in one line):C:\Python27;C:\Python27\Scripts;C:\Program Files\GnuWin32\bin;If the field contains data, go to the end of that data and add a semicolon if there isn’t one already and then add the string above.Click Ok three times.EpubMakerAt the command prompt run:> easy_install epubmakerTest your installation:> epubmaker --help> epubmaker https://www.gutenberg.org/masters/rst/181/181.rstDebianPrerequisites(Does not work with python 3 yet. If your distribution uses python 3 as default (not likely!), you’ll have to parallel install python 2.6 or 2.7.)# apt-get install python python-setuptools python-lxml# apt-get install groff tidy# apt-get install libpng-dev libjpeg-dev libfreetype6-devNote: To get PDF generation to work, you have to use TeX Live version 2009-11 or newer. You can get those from debian testing or unstable. If don’t want to switch from debian stable, you have to install TeX Live manually.If you are on testing or unstable:# apt-get install texlive texlive-latex-extra texlive-xetex# apt-get install ttf-linux-libertine ttf-dejavuElse, to install TeX Live manually, go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl-unx.tar.gz. Unpack it. Then:# cd /path/where/unpacked# perl install-tl -guiLong installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003EpubMaker# easy_install epubmakerKindlegen(Optional: Used only to make Kindle files):$ wget http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v1.2.tar.gz$ tar -xzf kindlegen_linux_2.6_i386_v1.2.tar.gz

Installing EpubMakerEpubMaker is Project Gutenberg’s file converter. It can convert from PG-RST to HTML, EPUB, PDF and plain text.WindowsPrerequisitesInstall Python.Assuming you don’t have python yet. If you have either version 2.6 or 2.7 already installed, skip this.Fromhttp://www.python.org/download/releases/2.7/download theWindows x86 MSI Installer (2.7)and run it.Select all the default options and install.Install Python Setuptools.Fromhttp://pypi.python.org/pypi/setuptoolsdownloadsetuptools-0.6c11.win32-py2.7.exe(or any newer version) and run it.If you are using python 2.6 get the setuptools for 2.6.Install Groff. (You can skip this step if you don’t want to generate plain text files.)Fromhttp://gnuwin32.sourceforge.net/packages/groff.htmdownloadComplete package, except sources - Setup(groff-1.20.1-setup.exe) and run it.Select all the default options and install.Install TexLive. (You can skip this step if you don’t want to generate PDF files.)Go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl.zip. Then say:> unzip install-tl.zip> cd install-tl*> install-tlThis will open the TeX Live installation wizard. Follow the instructions. When in doubt use the defaults.This will take quite a while. (3 hours on an old Dell Vostro 1000 laptop. It installs about 2.5 GB in 93,000 files.) If you experience download problems, restart the wizard: it will resume the download where it left off.Long installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003Install HTML Tidy. (You can skip this step if you only want to process RST files and don’t want to build EPUBs from HTML input.)If you are a post-processor you already have this.http://tidy.sourceforge.net/Update your PATH.Start | Control Panel | System | Advanced | Environment Variables. Click "Path" in the User variables at the top. Click "Edit"If the field is empty just enter (all in one line):C:\Python27;C:\Python27\Scripts;C:\Program Files\GnuWin32\bin;If the field contains data, go to the end of that data and add a semicolon if there isn’t one already and then add the string above.Click Ok three times.EpubMakerAt the command prompt run:> easy_install epubmakerTest your installation:> epubmaker --help> epubmaker https://www.gutenberg.org/masters/rst/181/181.rstDebianPrerequisites(Does not work with python 3 yet. If your distribution uses python 3 as default (not likely!), you’ll have to parallel install python 2.6 or 2.7.)# apt-get install python python-setuptools python-lxml# apt-get install groff tidy# apt-get install libpng-dev libjpeg-dev libfreetype6-devNote: To get PDF generation to work, you have to use TeX Live version 2009-11 or newer. You can get those from debian testing or unstable. If don’t want to switch from debian stable, you have to install TeX Live manually.If you are on testing or unstable:# apt-get install texlive texlive-latex-extra texlive-xetex# apt-get install ttf-linux-libertine ttf-dejavuElse, to install TeX Live manually, go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl-unx.tar.gz. Unpack it. Then:# cd /path/where/unpacked# perl install-tl -guiLong installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003EpubMaker# easy_install epubmakerKindlegen(Optional: Used only to make Kindle files):$ wget http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v1.2.tar.gz$ tar -xzf kindlegen_linux_2.6_i386_v1.2.tar.gz

EpubMaker is Project Gutenberg’s file converter. It can convert from PG-RST to HTML, EPUB, PDF and plain text.

WindowsPrerequisitesInstall Python.Assuming you don’t have python yet. If you have either version 2.6 or 2.7 already installed, skip this.Fromhttp://www.python.org/download/releases/2.7/download theWindows x86 MSI Installer (2.7)and run it.Select all the default options and install.Install Python Setuptools.Fromhttp://pypi.python.org/pypi/setuptoolsdownloadsetuptools-0.6c11.win32-py2.7.exe(or any newer version) and run it.If you are using python 2.6 get the setuptools for 2.6.Install Groff. (You can skip this step if you don’t want to generate plain text files.)Fromhttp://gnuwin32.sourceforge.net/packages/groff.htmdownloadComplete package, except sources - Setup(groff-1.20.1-setup.exe) and run it.Select all the default options and install.Install TexLive. (You can skip this step if you don’t want to generate PDF files.)Go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl.zip. Then say:> unzip install-tl.zip> cd install-tl*> install-tlThis will open the TeX Live installation wizard. Follow the instructions. When in doubt use the defaults.This will take quite a while. (3 hours on an old Dell Vostro 1000 laptop. It installs about 2.5 GB in 93,000 files.) If you experience download problems, restart the wizard: it will resume the download where it left off.Long installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003Install HTML Tidy. (You can skip this step if you only want to process RST files and don’t want to build EPUBs from HTML input.)If you are a post-processor you already have this.http://tidy.sourceforge.net/Update your PATH.Start | Control Panel | System | Advanced | Environment Variables. Click "Path" in the User variables at the top. Click "Edit"If the field is empty just enter (all in one line):C:\Python27;C:\Python27\Scripts;C:\Program Files\GnuWin32\bin;If the field contains data, go to the end of that data and add a semicolon if there isn’t one already and then add the string above.Click Ok three times.EpubMakerAt the command prompt run:> easy_install epubmakerTest your installation:> epubmaker --help> epubmaker https://www.gutenberg.org/masters/rst/181/181.rst

PrerequisitesInstall Python.Assuming you don’t have python yet. If you have either version 2.6 or 2.7 already installed, skip this.Fromhttp://www.python.org/download/releases/2.7/download theWindows x86 MSI Installer (2.7)and run it.Select all the default options and install.Install Python Setuptools.Fromhttp://pypi.python.org/pypi/setuptoolsdownloadsetuptools-0.6c11.win32-py2.7.exe(or any newer version) and run it.If you are using python 2.6 get the setuptools for 2.6.Install Groff. (You can skip this step if you don’t want to generate plain text files.)Fromhttp://gnuwin32.sourceforge.net/packages/groff.htmdownloadComplete package, except sources - Setup(groff-1.20.1-setup.exe) and run it.Select all the default options and install.Install TexLive. (You can skip this step if you don’t want to generate PDF files.)Go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl.zip. Then say:> unzip install-tl.zip> cd install-tl*> install-tlThis will open the TeX Live installation wizard. Follow the instructions. When in doubt use the defaults.This will take quite a while. (3 hours on an old Dell Vostro 1000 laptop. It installs about 2.5 GB in 93,000 files.) If you experience download problems, restart the wizard: it will resume the download where it left off.Long installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003Install HTML Tidy. (You can skip this step if you only want to process RST files and don’t want to build EPUBs from HTML input.)If you are a post-processor you already have this.http://tidy.sourceforge.net/Update your PATH.Start | Control Panel | System | Advanced | Environment Variables. Click "Path" in the User variables at the top. Click "Edit"If the field is empty just enter (all in one line):C:\Python27;C:\Python27\Scripts;C:\Program Files\GnuWin32\bin;If the field contains data, go to the end of that data and add a semicolon if there isn’t one already and then add the string above.Click Ok three times.

Install Python.

Assuming you don’t have python yet. If you have either version 2.6 or 2.7 already installed, skip this.

Fromhttp://www.python.org/download/releases/2.7/download theWindows x86 MSI Installer (2.7)and run it.

Select all the default options and install.

Install Python Setuptools.

Fromhttp://pypi.python.org/pypi/setuptoolsdownloadsetuptools-0.6c11.win32-py2.7.exe(or any newer version) and run it.

If you are using python 2.6 get the setuptools for 2.6.

Install Groff. (You can skip this step if you don’t want to generate plain text files.)

Fromhttp://gnuwin32.sourceforge.net/packages/groff.htmdownloadComplete package, except sources - Setup(groff-1.20.1-setup.exe) and run it.

Select all the default options and install.

Install TexLive. (You can skip this step if you don’t want to generate PDF files.)

Go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl.zip. Then say:

> unzip install-tl.zip> cd install-tl*> install-tl

This will open the TeX Live installation wizard. Follow the instructions. When in doubt use the defaults.

This will take quite a while. (3 hours on an old Dell Vostro 1000 laptop. It installs about 2.5 GB in 93,000 files.) If you experience download problems, restart the wizard: it will resume the download where it left off.

Long installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003

Install HTML Tidy. (You can skip this step if you only want to process RST files and don’t want to build EPUBs from HTML input.)

If you are a post-processor you already have this.

http://tidy.sourceforge.net/

Update your PATH.

Start | Control Panel | System | Advanced | Environment Variables. Click "Path" in the User variables at the top. Click "Edit"

If the field is empty just enter (all in one line):

C:\Python27;C:\Python27\Scripts;C:\Program Files\GnuWin32\bin;

If the field contains data, go to the end of that data and add a semicolon if there isn’t one already and then add the string above.

Click Ok three times.

EpubMakerAt the command prompt run:> easy_install epubmakerTest your installation:> epubmaker --help> epubmaker https://www.gutenberg.org/masters/rst/181/181.rst

At the command prompt run:

> easy_install epubmaker

Test your installation:

> epubmaker --help> epubmaker https://www.gutenberg.org/masters/rst/181/181.rst

DebianPrerequisites(Does not work with python 3 yet. If your distribution uses python 3 as default (not likely!), you’ll have to parallel install python 2.6 or 2.7.)# apt-get install python python-setuptools python-lxml# apt-get install groff tidy# apt-get install libpng-dev libjpeg-dev libfreetype6-devNote: To get PDF generation to work, you have to use TeX Live version 2009-11 or newer. You can get those from debian testing or unstable. If don’t want to switch from debian stable, you have to install TeX Live manually.If you are on testing or unstable:# apt-get install texlive texlive-latex-extra texlive-xetex# apt-get install ttf-linux-libertine ttf-dejavuElse, to install TeX Live manually, go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl-unx.tar.gz. Unpack it. Then:# cd /path/where/unpacked# perl install-tl -guiLong installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003EpubMaker# easy_install epubmakerKindlegen(Optional: Used only to make Kindle files):$ wget http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v1.2.tar.gz$ tar -xzf kindlegen_linux_2.6_i386_v1.2.tar.gz

Prerequisites(Does not work with python 3 yet. If your distribution uses python 3 as default (not likely!), you’ll have to parallel install python 2.6 or 2.7.)# apt-get install python python-setuptools python-lxml# apt-get install groff tidy# apt-get install libpng-dev libjpeg-dev libfreetype6-devNote: To get PDF generation to work, you have to use TeX Live version 2009-11 or newer. You can get those from debian testing or unstable. If don’t want to switch from debian stable, you have to install TeX Live manually.If you are on testing or unstable:# apt-get install texlive texlive-latex-extra texlive-xetex# apt-get install ttf-linux-libertine ttf-dejavuElse, to install TeX Live manually, go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl-unx.tar.gz. Unpack it. Then:# cd /path/where/unpacked# perl install-tl -guiLong installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003

(Does not work with python 3 yet. If your distribution uses python 3 as default (not likely!), you’ll have to parallel install python 2.6 or 2.7.)

# apt-get install python python-setuptools python-lxml# apt-get install groff tidy# apt-get install libpng-dev libjpeg-dev libfreetype6-dev

Note: To get PDF generation to work, you have to use TeX Live version 2009-11 or newer. You can get those from debian testing or unstable. If don’t want to switch from debian stable, you have to install TeX Live manually.

If you are on testing or unstable:

# apt-get install texlive texlive-latex-extra texlive-xetex# apt-get install ttf-linux-libertine ttf-dejavu

Else, to install TeX Live manually, go tohttp://mirror.ctan.org/systems/texlive/tlnetand download the fileinstall-tl-unx.tar.gz. Unpack it. Then:

# cd /path/where/unpacked# perl install-tl -gui

Long installation instructions can be found athttp://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-150003

EpubMaker# easy_install epubmaker

# easy_install epubmaker

Kindlegen(Optional: Used only to make Kindle files):$ wget http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v1.2.tar.gz$ tar -xzf kindlegen_linux_2.6_i386_v1.2.tar.gz

(Optional: Used only to make Kindle files):

$ wget http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v1.2.tar.gz$ tar -xzf kindlegen_linux_2.6_i386_v1.2.tar.gz


Back to IndexNext