View Single Post
Old 11-10-2013, 12:48 PM   #21
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
Perhaps some other field in the header needs to be changed.

Here is the output of DumpMobiHeader_v012.py for the first header:

Code:
First Header Dump from Section 0
Header Version is: 0x6
Header start position is: 0x0
Header Length is: 0x108
  Field:     compression_type   Offset: 0x000   Width:  2   Value: 0x02
  Field:                fill0   Offset: 0x002   Width:  2   Value: 0x00
  Field:          text_length   Offset: 0x004   Width:  4   Value: 0x7904
  Field:         text_records   Offset: 0x008   Width:  2   Value: 0x08
  Field:     max_section_size   Offset: 0x00a   Width:  2   Value: 0x1000
  Field:          crypto_type   Offset: 0x00c   Width:  2   Value: 0x00
  Field:                fill1   Offset: 0x00e   Width:  2   Value: 0x00
  Field:                magic   Offset: 0x010   Width:  4   Value: MOBI
  Field:        header_length   Offset: 0x014   Width:  4   Value: 0x0108
  Field:                 type   Offset: 0x018   Width:  4   Value: 0x0002
  Field:             codepage   Offset: 0x01c   Width:  4   Value: 0xfde9
And here is the same piece for the second header:

Code:
Second Header Dump from Section 22
Header Version is: 0x8
Header start position is: 0x16
Header Length is: 0x108
  Field:     compression_type   Offset: 0x000   Width:  2   Value: 0x02
  Field:                fill0   Offset: 0x002   Width:  2   Value: 0x00
  Field:          text_length   Offset: 0x004   Width:  4   Value: 0x8732
  Field:         text_records   Offset: 0x008   Width:  2   Value: 0x0a
  Field:     max_section_size   Offset: 0x00a   Width:  2   Value: 0x1000
  Field:          crypto_type   Offset: 0x00c   Width:  2   Value: 0x00
  Field:                fill1   Offset: 0x00e   Width:  2   Value: 0x00
  Field:                magic   Offset: 0x010   Width:  4   Value: MOBI
  Field:        header_length   Offset: 0x014   Width:  4   Value: 0x0108
  Field:                 type   Offset: 0x018   Width:  4   Value: 0x0002
  Field:             codepage   Offset: 0x01c   Width:  4   Value: 0xfde9
Notice the mobi type field which has value 2. In the Mobileread Wiki under mobi, there are many other possible values:

The kind of Mobipocket file this is
2 Mobipocket Book
3 PalmDoc Book
4 Audio
232 mobipocket? generated by kindlegen1.2
248 KF8: generated by kindlegen2
257 News
258 News_Feed
259 News_Magazine
513 PICS
514 WORD
515 XLS
516 PPT
517 TEXT
518 HTML

Perhaps the mobi type needs to be changed as well?

Sorry, but I am really fishing here as I can not recreate your issue since I do not own a PW or even a standalone Kindle device of any sort.

KevinH

Last edited by KevinH; 11-10-2013 at 12:50 PM.
KevinH is offline   Reply With Quote