Mobileread
EXTH Header Records differences
#1  WEricBr 06-09-2022, 02:46 PM
While looking into the EXTH Records types, I found that there are differences between what is documented in the Wiki, Calibre Headers.py file, KindleUnpack-DumpMobiHeader_v023.py.

The ones that are missing are easy to merge together, if I know which version is correct. However, there are a few that have different "names" for a given "type".

The Type Code/Type Name that don't match between at least 2 of the sources are:
131 , 405, 504, 508, 517, 522, 534, 535, 536, 538, 543

The ones that appear in DumpMobiHeader_v023.py but is missing in at least 1 of the other resources are:
4, 99, 150, 400, 405, 406, 420, 450, 451, 452, 453, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 526, 527, 528, 529, 530, 531, 532, 533, 534, 536, 538, 539, 540, 541, 542, 544, 599

The ones that appear in Calibre Header.py but not in the others are:
301

I have included a zip file that includes an Excel spreadsheet, HTML file and a tab-delmited file that contains a comparison the Type Values and Type Names from the 3 different sources to make it easy to see the differences.

Which of these should be considered the authoritative source?

Thanks,

Eric
[zip] EXTH Record Type Comparison.zip (22.5 KB, 114 views)
Reply 

#2  JSWolf 06-09-2022, 02:59 PM
#405 is the rented book flag.
Reply 

#3  jhowell 06-09-2022, 04:37 PM
The most authoritative source I have seen so far is the HXDATA enumeration found in EpubToKFXConverter-4.0.jar which is a component of Amazon's Kindle Previewer software. That closely matches the names found in KindleUnpack other than differences in punctuation.
Reply 

#4  WEricBr 06-09-2022, 05:59 PM
Is HXData a file within the jar or is it in a particular file that is within the jar file?

Thanks,

Eric
Reply 

#5  jhowell 06-09-2022, 06:40 PM
Quote WEricBr
Is HXData a file within the jar or is it in a particular file that is within the jar file?
It is data in a Java class inside of that jar file. In the most recent recent version of Kindle Previewer (3.65) it is in com/amazon/K/l/b$c.class.
Reply 

#6  WEricBr 06-09-2022, 07:42 PM
Thanks. After installing java and a decompiler, and following your directions, I know have the HXData_* to compare to the existing EXTH Header Record type values from the other 3 resources.

Thanks again,

Eric
Reply 

Today's Posts | Search this Thread | Login | Register