View Single Post
Old 01-02-2008, 08:56 AM   #2
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by erikk View Post
So I'm starting to play around with using libprs500 to convert various LIT and HTML files and was wondering if anyone that had been doing this for a long time had suggestions on the defaults to use and why.

Thanks in advance for any suggestions.
Most of the default defaults are pretty good -- probably why kovid made them that way ;-). Exceptions I've found:
  • From looking at kovid's code and messing a bit, it appears having something in the bottom 18 or so pixels of the screen sometimes crashes the Reader quite spectacularly (why, Sony, why?). libprs500 accounts for this automatically and won't put anything there, but this leaves an effective lower margin I find jarring with the default side margins. I compensate by adding larger side margins with --left-margin=34 --right-margin=34 (or whatever value looks right to you).
  • I like to have the book title the header, so I add --header --headerformat="%t" to the options.
  • html2lrf contains code to automatically detect chapters and insert page breaks at appropriate points. Most of the LIT files I have, however, already have a TOC and page breaks in the right places, so the detection/insertion code can only make mistakes. To disable it I add --page-break-before-tag='$' --disable-chapter-detection to the options.

Quote:
Originally Posted by erikk View Post
Also is there any user guide anywhere for it? I mean someplace that described the different settings and such?
Try html2lrf --help -- that should show you all the available options.
llasram is offline   Reply With Quote