Quote:
Originally Posted by kovidgoyal
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).
:-(