View Single Post
Old 09-14-2009, 03:25 PM   #3
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,830
Karma: 4193095
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
Further testing ...

Thanks for your reply Kovid.

I have done as you suggest. This is the job detail output from an LRF conversion:-

Convert book 1 of 1 (Verse_css)
Processing archive...
InputFormatPlugin: HTML Input running on c:\docume~1\jackies\locals~1\temp\calibre_0.6.12_u s924a_plumber\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Verse_css.htm ...
Parsing jsebook.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Detected chapter: Centred verse
Detected chapter: Right-aligned verse
Auto generated TOC with 2 entries.
Inserting metadata into book...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating LRF Output...
Unable to find serif family None
Unable to find sans family None
Unable to find mono family None
Processing 'c:\\docume~1\\jackies\\locals~1\\temp\\calibre_0. 6.12_bmm3z6_lrf_output\\jacket.xhtml'
Parsing HTML...
Written preprocessed HTML to c:\docume~1\jackies\locals~1\temp\html2lrf-verbose.html
Converting to BBeB...
Processing 'c:\\docume~1\\jackies\\locals~1\\temp\\calibre_0. 6.12_bmm3z6_lrf_output\\Verse_css.htm'
Parsing HTML...
Written preprocessed HTML to c:\docume~1\jackies\locals~1\temp\html2lrf-verbose.html
Converting to BBeB...
Could not read stylesheet: jsebook.css
Rationalizing font sizes...
LRF output written to c:\docume~1\jackies\locals~1\temp\calibre_0.6.12_m gf9_l.lrf


I can see that it did not like the CSS file but I'm not sure why.

I also did an EPUB conversion with all the same conversion parameters. This was the job output:-

Convert book 1 of 1 (Verse_css)
Processing archive...
InputFormatPlugin: HTML Input running on c:\docume~1\jackies\locals~1\temp\calibre_0.6.12_e q6hja_plumber\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Verse_css.htm ...
Parsing jsebook.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Detected chapter: Centred verse
Detected chapter: Right-aligned verse
Auto generated TOC with 2 entries.
Inserting metadata into book...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating EPUB Output...
Splitting on page-break
Splitting on page-break
Looking for large trees in Verse_css.htm...
No large trees found
Split into 2 parts
Looking for large trees in jacket.xhtml...
No large trees found
Removing anchor from TOC href: Verse_css_split_0.htm#calibre_toc_2
Removing anchor from TOC href: Verse_css_split_1.htm#calibre_toc_3
EPUB output written to c:\docume~1\jackies\locals~1\temp\calibre_0.6.12_j s1crb.epub

I'm not sure what this tells me.


Viewing both LRF and EPUB via the ebook/lrf-viewers shows the formatting has not been used. Viewing the ZIP via the ebook-viewer shows the formatting as OK.

To an expert eye, there may be something very obviously wrong with the CSS or HTML file. Have I missed some kind of header(s)? I'm going to feel such an idiot when I find out what it is! I've attached the small HTML and CSS files I used. If you could spare any time to have a look I'd be very grateful.
Regards, Jackie
Attached Files
File Type: txt Verse_css.htm.txt (749 Bytes, 129 views)
File Type: txt jsebook.css.txt (2.1 KB, 100 views)

Last edited by jackie_w; 09-14-2009 at 03:42 PM. Reason: missed the front-end of the LRF output
jackie_w is offline   Reply With Quote