View Single Post
Old 08-23-2010, 06:48 AM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by kmashlea
The title is whatever is found by Calibre, at worst you will end up with the odd extra chapter/title that may be picked up by mistake but that would be much better than no chapters/titles.
The TOC (remember users and setup their own xpaths to find elements and use custom text) just points to an element in the intermediate document. That element could be anything. So there is no reliable way to detect what is the actual chapter from that element because the element could be an anchor point.

Quote:
Originally Posted by kmashlea
The fb2 output currently has
<a id="calibre_link-2"/><strong><p>CHAPTER 1</p></strong><p>
.......
</p><a id="calibre_link-3"/><strong><p>CHAPTER 2</p></strong><p> etc
In this case the FB2 output isn't detecting the chapter or doing anything special. The source book has the chapter heading in a tag that is translated to strong in the FB2 output.

The FB2 output has no idea what a chapter or chapter heading is. It is possible to use h tags to determine this but that isn't compatible with calibre TOC system because TOC items don't have to be h tags. A TOC item can be defined as pretty much anything.
user_none is offline   Reply With Quote