View Single Post
Old 12-06-2013, 02:01 PM   #108
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
Quote:
Originally Posted by KevinH View Post
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.
Attached Thumbnails
Click image for larger version

Name:	Kindle_Previewer_Info.png
Views:	808
Size:	30.1 KB
ID:	116319  
quiris is offline   Reply With Quote