View Single Post
Old 06-14-2022, 05:24 PM   #5
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,109
Karma: 92190133
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by WEricBr View Post
So, is the MOBI header the same for all versions up to offset 204?
As far as I know the fields in MOBI header were intended to have the same meaning for all versions. More fields were added over time to support new features so the header can have various possible lengths.

Quote:
Originally Posted by WEricBr View Post
From what I can tell (looking at KindleUnpack/DumpMobiHeader_v023.py and other resources, the MOBI header is the same until you get to offset 204, which is:
MOBI6/7 = "first_content'" consisting of 2 bytes
MOBI8 = "fdst_offset" consisting of 4 bytes
That does appear to be an exception. It seems to me that the value of the field at offset 0xc4 (fdst_flow_count) is 2 or more then it holds the fdst_offset otherwise it is a pair of values.

Kindleunpack is incorrect in assuming that only KF8 can have multiple flows and an FDST record. I have seen that in some dictionaries.

Quote:
Originally Posted by WEricBr View Post
Does the KFX have the same header information or is it completely different?
MOBI files are based on the Palm Pilot PRC file format. KFX is a totally different format, based on Amazon Ion. It has no data structures in common with MOBI.
jhowell is offline   Reply With Quote