View Single Post
Old 07-01-2009, 04:30 AM   #369
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by JSWolf View Post
I have just found yet another ePub conversion bug. toc.ncx is now being generated as ONE line. It used to be generated so it was in a nicely readable form.
Unfortunately, the toc.ncx has been generated as one line since the latest few versions of 0.5.x . It's a simple matter of running it through tidy or similar to get a readable form.

Quote:
Also, can we have the anchors used in toc.ncx removed? All they do is slow down the ToC on the 505 & 700.
Depending on how the source file and/or calibre is setup, this may not be the best thing to do.
If calibre splits the xhtml stream at TOC items (eg: Chapter headings) then removing anchors will have no negative effects, and indeed speeds up navigation. I realise that this is what happens for the majority of conversions.
However, if calibre ends up splitting the xhtml stream purely by the 300K size limit, then the anchors are necessary for correct navigation.
And then of course, there is level 2 and 3 TOC elements, which often have several occurrence in one xhtml split. Again anchors are required for correct navigation.

What I'd like to see is calibre detecting a scenario of one TOC element per xhtml split (eg: when there is a page break at every chapter) and omitting the anchors when this is the case.
sherman is offline