File | Date | Author | Commit |
---|---|---|---|
bin | 2023-04-14 |
![]() |
[9e3f7a] ===== ebookgentools-0.8 ===== |
sample-book | 2021-09-18 |
![]() |
[9a785a] Add inclusion of optional preview of another bo... |
.gitattributes | 2017-04-28 |
![]() |
[a4637b] Add .gitattributes file to specify exclusions f... |
.gitignore | 2015-03-11 |
![]() |
[41d367] Add project files |
COPYING | 2015-03-11 |
![]() |
[41d367] Add project files |
README.md | 2023-04-14 |
![]() |
[9e3f7a] ===== ebookgentools-0.8 ===== |
EBookGenTools is a set of GNU/Linux shell scripts to process plain
text for a book into HTML and electronic book formats. It was
developed to create EPUB and DOC files from book text exported
from novel writing software such as Manuskript, StoryBook, or your
favourite text editor.
EBookGenTools builds on the power of other software to create the
following ebook formats:
These tools can be used directly to create ebooks. The advantage
provided by EBookGenTools is to automate the process, thus saving an
author time when creating and recreating ebook formats.
EBookGenTools is a shortened form for Electronic Book Generation
Tools.
You provide the following three (or four) files:
Novel content Novel book Novel details: Optional
in plain text cover image author, etc. book excerpt
+-----------+ +-----------+ +-----------+ +-------------+
| novel.txt | | novel.jpg | | novel.cfg | | preview.txt |
+-----------+ +-----------+ +-----------+ +-------------+
\ | / /
-----------------+----------------- <----------------
|
v
/---------------------\
Execute | book2html novel.txt | Creates HTML
\---------------------/
|
v
+------------+
| novel.html |
+------------+
|
v
/-----------------------\
Execute | html2ebook novel.html | Creates EPUB, DOC
\-----------------------/
|
---------+---------
/ \
v v
+------------+ +------------+
| novel.epub | | novel.doc |
+------------+ +------------+
Note that you can optionally check for common generation issues that
arise from the novel content plain text file, such as mismatched
quotation marks, with the checkbookhtml novel.html
command.
Make a copy of the ebookgentools scripts.
Either - download a release tarball and extract it:
tar -xvf ~/Downloads/ebookgentools-*.tar.gz -C ~
Or - clone the git repository.
git clone git://git.code.sf.net/p/ebookgentools/code ~/ebookgentools
Add ebookgentools/bin
directory to the PATH environment
variable.
export PATH="$HOME/ebookgentools/bin:$PATH"
To make this PATH addition persist across computer reboots,
edit ~/.profile
and append lines similar to the following:
# Extend path with ebookgentools
if [ -d "$HOME/ebookgentools/bin" ] ; then
PATH="$HOME/ebookgentools/bin:$PATH"
fi
Install the following software package dependencies:
Create a directory to hold your ebook files.
mkdir yourbook
cd yourbook
Prepare book text in the required ebookgentools format.
The ebookgentools text format is basically plain text with some
additional rquirements to ensure correct processing of chapters
and scenes. The required format is documented in the
sample-book.txt
file. The optional preview.txt
file should be
an excerpt from another book in the same required format.
Save yourbook.txt
in yourbook
directory.
Note that novel writing tools such as Manuskript and StoryBook
provide Compile or Export options respectively to create the
required plain text yourbook.txt
file.
Copy configuration file sample-book.cfg
to yourbook.cfg
, and
edit the content to be specific to your novel.
Copy your novel cover yourbook.jpg
into yourbook
directory.
Suggested JPEG file size is about 1 MiB with dimensions 1594x2550
pixels. To change image size consider adjusting the image quality
percentage in a graphic tool such as GIMP.
Generate html file yourbook.html
from the book text.
book2html yourbook.txt
View yourbook.html
file in a web browser and check if html is
valid.
Check html file for common errors arising from book text and fix if
appropriate.
checkbookhtml yourbook.html
Generate .epub and .doc book files.
html2ebook yourbook.html
Note that the file yourbook.doc
styles will need editing.
Consider checking the validity of the generated yourbook.epub
EPUB file.
epubcheck yourbook.epub
EBookGenTools is distributed under the GNU General Public License
version 3 or (at your option) any later version.
EBookGenTools was written by Curtis Gedak.
Website: http://ebookgentools.sourceforge.net
Email: gedakc@users.sf.net
Greek mythology thrillers by Linda Temple:
Cyberpunk thriller by Linda Temple:
The EBookGenTools scripts were originally written to process exported
book text from StoryBook. StoryBook was open source novel writing
software that has since disappeared from Sourceforge.net. The code
has since been forked into the oStoryBook
project. Next the EBookGenTools scripts were updated to
work with book text compiled from
Manuskript. More recently
these scripts have been updated to work with a small subset of
MarkDown, and also
markdown text exported from Org mode for Emacs.