, a Python command line tool to convert text to Reader LRF format -- provides more features than Sony Connect eBooks! Designed primarily for Mac OS X
users, it works under Windows and Linux as well.
Current Version: 2.1.3
Added Preferences File, Verse and Justified Formatting, Extra ConvertLit formatting, Etc., Etc.!
Mac OS X GUI also available, thanks to simmepimme!
Features very easy
Table of Content creation, top-of-page headers (ala Connect Store eBooks), curly quotes and paragraph autoflow, just to name a few.
pielrf -i flatland.txt -o flatland.lrf -t "Flatland" -a "Abbott, Edwin A."
This will create a book with chapters added to the Reader's Table of Contents Menu, a header at the top/right of every page with the book's title, all quotes converted to curly quotes, paragraphs indented and flowed, em-dashes, italics, boldface, etc., etc., etc.
Chapters / Table of Contents
To create chapters, simply add "<chapter>" before the chapter name.
<chapter>Chapter One -- The Beginning
This will add "Chapter One -- The Beginning" to the main Table of Contents Menu, along with an entry on the Table of Contents page at the beginning of the book.
The header displays the book title at the top-right of each page, just like Sony Connect EBooks. Pielrf
can also use the current chapter name, the book title and
chapter name, or no header at all. You can even specify a header from the command line!
By default, pielrf
automatically detects paragraphs. If it guesses wrong, you can force it to use the correct method.
+ Table of Contents Menu and Page via the <chapter> tag.
+ Top-of-Page headers
+ Curly (typographic) quotes.
+ Paragraph auto-flow.
+ Can make whole book Bold to increase contrast.
+ Understands HTML tags <i></i>, <b></b>, <center></center>, <sub></sub>, <sup></sup>, <p></p>, <h1></h1>-<h3></h3>.
+ Understands ALL HTML Ampersand tags - &, £, üat, etc.
+ Paragraphs can be delimited by tabs, spaces, vertical whitespace.
+ Font size / weight (bold) can be controlled from command line.
+ Ability to control almost everything else from the command line too!
Requires install of Python 2.5.
distribution includes -- and automatically
installs -- required python modules Pylrs and ElementTree. Simply download and unzip, then go to the "pielrf-1.x" directory in the Terminal and type the following:
python setup.py install
Then to get a list of options...
python pielrf -h