Quote:
Originally Posted by KevinH
I am not quite sure what you mean by "HTML TOC".
|
Mobi can contains two distinct ToCs: NCX TOC and "HTML" TOC. Kindle Previewer calls the first one as "NCX" and the second one as "Table of Contents". Check an attachment.
I know how to find existence of "NCX" digging into header dump (grep "NCX Index") but I don't know how to find existence of "Table of Contents".
As far as I understand your answer finding it require unpacking entire mobi and looking into content.opf for <reference type="toc" title="Table of Contents" href="example.html#filepos657133" />. Sad…
I thought that it's possible by simple grep of header dump…
I'm writing sort of bash quality mobi batch script that runs quickly through hundreds of mobis looking for missing covers, missing ncx, missing ToC which are critical important for good book experience so unpacking entire mobi slows down process dramatically.