View Single Post
Old 05-07-2007, 11:22 PM   #1
EatingPie
Blueberry!
EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.
 
EatingPie's Avatar
 
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
Arrow Pielrf - Text to LRF with Easy TOC, Headers, Curly-Quotes, etc. (Mac!)

Announcing pielrf, 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.

Headers

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!

Paragraphs

By default, pielrf automatically detects paragraphs. If it guesses wrong, you can force it to use the correct method.

Additional Features

+ 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 - &amp;, &pound, &uumlat, 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!

Installation

Requires install of Python 2.5.The pielrf 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...
pielrf -h
or
python pielrf -h
-Pie
Attached Files
File Type: zip pielrf-1.7.zip (1.03 MB, 1052 views)
File Type: zip pielrf-1.7.1.zip (783.4 KB, 961 views)
File Type: zip pielrf-2.0.zip (721.4 KB, 945 views)
File Type: zip pielrf-2.0.1.zip (721.8 KB, 942 views)
File Type: zip pielrf-2.0.2.zip (726.9 KB, 940 views)
File Type: zip pielrf-2.0.3.zip (727.0 KB, 970 views)
File Type: zip pielrf-2.1.zip (173.8 KB, 1040 views)
File Type: zip pielrf-2.1.1.zip (175.2 KB, 982 views)
File Type: zip pielrf-2.1.2.zip (175.5 KB, 1175 views)
File Type: zip pielrf-2.1.3.zip (176.9 KB, 1967 views)

Last edited by EatingPie; 10-09-2007 at 07:43 PM. Reason: Version 1.7 and Beyond - FAST TOC!!
EatingPie is offline   Reply With Quote