View Single Post
Old 09-08-2007, 02:59 PM   #1
phrodod
Enthusiast
phrodod began at the beginning.
 
phrodod's Avatar
 
Posts: 43
Karma: 28
Join Date: Aug 2007
Device: Sony Reader PRS-500
Tolstoy, Leo: Anna Karenina, v1.6 12 Sept 2007

I noticed that this one was missing from the downloads site, and wanted to play with a new method of generating lrf files. I took the PG version and changed the markup to match Restructured Text (rst) format that comes with Python's DocUtils module. I then used rst2html to convert it to HTML, then html2lrf to make a reader format. All told, it took me about an hour for the first time.

I expect future books would go much faster.

The only problem I'm having is that the Table of Contents (TOC) generated by html2lrf gets confused, but the TOC generated by rst2html works well. It's just inside the first pages of the book.

(Note: Starting with v1.1, I've separated the parts into separate files, so the reader version of the TOC for the book now just contains a list of the parts. Inside each part, there's a separate TOC for just that part.)

The zip file attached contains the rst markup version (the original PG text split into 10 files, with slight reformatting), the HTML version generated by rst2html, and a makefile to show how I invoke each tool. I thought it might be useful to others to see what I did if this format seems good.

Phrodod
This work is in the Canadian public domain OR the copyright holder has given specific permission for distribution. It may still be under copyright in some countries. If you live outside Canada, check your country's copyright laws. If the book is under copyright in your country, do not download or redistribute this work.

To report a copyright violation you can contact us here.
Attached Files
File Type: lrf tolstoy_karenina_v1.6_20070912.lrf (1.11 MB, 932 views)
File Type: zip tolstoy_karenina_v1.6_20070912.zip (1.46 MB, 496 views)

Last edited by phrodod; 09-15-2007 at 03:33 AM. Reason: Updated version numbering to be consistent
phrodod is offline   Reply With Quote