Thread: LIT output
View Single Post
Old 03-09-2009, 06:34 PM   #36
mathuin
Junior Member
mathuin began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2009
Device: Sony PSP
Hello! I am very excited about calibre's .lit file generation feature but I'm running into some unexpected results so I thought I'd ask here.

First, some background: I use my Sony PSP as an ebook reader. I extract the .lit files from the freely downloadable Baen Free Library CDs. I have written a collection of shell and Python scripts which use ConvertLIT's clit tool to extract content from .lit files and transmogrify it into collections of HTML pages, and it works really well. I have another document I'd like to have as an ebook in this structure, so the easiest thing to do was convert it to .lit so it could be deconverted along with the hundreds of other .lit files.

I created an OPF using the examples from the BFL CDs, then translated my document into HTML. When I built the .lit file using oeb2lit.exe (my other code runs on FreeBSD and it was easy to get calibre installed on a Windows box), I got the following (hand-transcribed) output:

WARNING: Parsing file 'mybook.htm' as HTML
INFO: Generating in-line TOC...
INFO: Applying case-transforming CSS...
INFO: Flattening CSS and remapping font sizes...
INFO: Source base font size is 12.00000pt
INFO: Rasterizing SVG images...
INFO: Trimming unused files from manifest...
WARNING: More than six anchors in file 'mybook.htm'. Some links may not work properly.
INFO: Output written to C:\mybook.lit

I then used clit to extract the content and compare it to the input content, and noticed a number of differences, primarily additional files and some CSS. The additional files don't bother me as I throw them away in my scripts, but the additional CSS is causing problems. How can I disable the CSS-generation feature of oeb2lit.exe?

Thanks!
mathuin is offline   Reply With Quote