Hard coding of Table of Contents Failing
I have a single-file exceptionally clean HTML e-book, with hard-coded TOC included. I'm converting to .mobi (Kindle). My hand-coded TOC works beautifully if I check "Do not add TOC to book". However, Kindle doesn't recognize my TOC as a valid TOC. Calibre claims to be able to handle this if you tell it in the meta data that you're including your own hard-coded TOC, but the documentation doesn't list how to do that in your meta data.
I need Calibre to recognize my TOC and pass that info on to the Kindle. Its already set up with the links and class names that Kindle should recognize. It would be a plus if it could create the toc.ncx file as well, for Kindle location data, I just don't want Calibre to visually add its own TOC at the end of the book. Is there a way to do any of this?
As a side note, I may have found a bug in the TOC Filters. If you set the TOC level 1 filter to look for all tags (*) that have class="toc1", it will ignore any items that are images. If you use an image to start a chapter, it won't make it into the auto-generated TOC. You can create other rules that get around this and make it work, but you have to play with it.
Thanks!
|