View Single Post
Old 07-09-2012, 06:37 PM   #20
pirl8
Pest
pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.
 
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
Quote:
Originally Posted by kovidgoyal View Post
calibre-debug --inspect-mobi filename.mobi
I build a simple book with nothing else but a content page, a font, a cover image and a stylesheet. There are many differences between KindleGen and Calibre generated file, but most are different offsets.

The most noticeable ones are the "KF8 resources (images/fonts) count (125)" EXTH header which is 0 for KindleGen and 4 for Calibre and a couple of fields which are present in the KindleGen EXTH header and absent in Calibre:
Code:
fontsignature (300): '\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbb\xfd\xe9\xe6'
KF8 cover URI (129): 'kindle:embed:0001'
In the KindleGen file I've set all the payload bytes in the "fontsignature" header to "0x2A": it still displayed the font.
I've also unsuccesfully tried to manually add the header to the Calibre generated file (changed EXTH header length, file count and padding but obviously I'm missing something).

:-(
pirl8 is offline   Reply With Quote