View Single Post
Old 03-15-2008, 01:53 PM   #292
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Kovid,
I have run into an oddity with lit2lrf. I have a lit file with the DRM removed. When I convert it either from the Mac GUI or the Mac terminal I get a .lrf file in which the line spacing increases by one line height with every new paragraph. By the time you get to the end of the document there is one line per page, and it is a short teaser file. I can only imagine what it would be like if it were a full book.

I then used clit to create a HTML file and then used both the GUI and command line versions of html2.lrf. The GUI simply produced a document that I could not open in the viewer. The command line resulted in a file that was only 28kb in length (I would have expected something about 100k) and the following messages in my terminal.

Code:
Last login: Sat Mar 15 12:26:38 on ttys000
Macintosh-3:~ billc$ cd desktop/ow
Macintosh-3:ow billc$ html2lrf --verbose index.1252.html
[INFO] convert_from.pyo:359: Processing /Users/billc/Desktop/OW/index.1252.html
[INFO] convert_from.pyo:312: 	Parsing HTML...
[INFO] convert_from.pyo:347: Written preprocessed HTML to /var/folders/pK/pK4oxuulGwSmGODViAxxxk+++TI/-Tmp-/html2lrf-verbose.html
[INFO] convert_from.pyo:373: 	Converting to BBeB...
[INFO] convert_from.pyo:294: 	Rationalizing font sizes...
Traceback (most recent call last):
  File "/Users/billc/Downloads/libprs500.app/Contents/Resources/html2lrf.py", line 9, in <module>
    main()
  File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1859, in main
  File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1770, in process_file
  File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1662, in writeto
  File "libprs500/ebooks/lrf/pylrs/pylrs.pyo", line 629, in renderLrf
  File "libprs500/ebooks/lrf/pylrs/pylrf.pyo", line 716, in writeFile
  File "libprs500/ebooks/lrf/pylrs/pylrf.pyo", line 751, in writeObjects
  File "libprs500/ebooks/lrf/pylrs/pylrf.pyo", line 557, in write
  File "libprs500/ebooks/lrf/pylrs/pylrf.pyo", line 392, in write
  File "libprs500/ebooks/lrf/pylrs/pylrf.pyo", line 84, in writeSignedWord
  File "struct.pyo", line 63, in pack
  File "warnings.pyo", line 62, in warn
  File "warnings.pyo", line 102, in warn_explicit
DeprecationWarning: 'h' format requires -32768 <= number <= 32767
Macintosh-3:ow billc$
And I haven't a clue as to what to try next.
Deputy-Dawg is offline   Reply With Quote