View Single Post
Old 11-23-2006, 10:58 AM   #20
fireproof
Enthusiast
fireproof began at the beginning.
 
Posts: 45
Karma: 16
Join Date: Mar 2004
Device: Palm Tungsten|TX, Sony Reader^H^H^H^H, iLiad, iPhone
outline of HTML -> LRF using makelrf 0.3

Quote:
Originally Posted by Stingo
When I download LRF files from the Manybooks online site they flow and apparently are soft hyphenated. I can change the font and the margins align at each size. According to the web site notes they seem to use Makelrf 0.3. I have tried that program and my lrfs do not come out with soft hyphens. Is there any software out there now that will create lrfs with soft hyphens?
Seriously, I do use makelrf 0.3! (I just checked my script to be certain).

The text files from PG are converted to an interim HTML, as a first step. That includes reflowing all the linebreaks using "gut".

After that, depending on the output format, extra linefeeds are removed, HTML tags are stripped, and the temp text file is saved as book.txt.

The script makes an info.xml and a image.gif file for makelrf to use, and then runs a command like this:

Code:
makelrf -x info.xml -o outputfile.lrf -i /tmp/image.gif -a "Author Name" /tmp/image.gif -f '/tmp/book.txt'
Perhaps your text files have hard line-breaks at the end of each line?
fireproof is offline   Reply With Quote