goaspy has sent me a the book and apnx file that he was looking at.
Here's what I've figured out so far:
The file starts with
Code:
{"contentGuid":"8d3d16e0","asin":"B002RHGYOA","cdeType":"EBOK","fileRevisionId":"1296868639127"} ) = {"asin":"1906694184","pageMap":"(4,a,1)"}
- contentGuid is most likely just a guid used to differentiate the file from others.
- The first asin is the amazon asin for the Kindle version of the book.
- cdeType is a Mobi document type specified as ebook. I haven't played with it much but I'm going to assume this is important. The 3.1 update looks to have a new navigation system for periodicals. Most likely the apnx will have a different meaning (but same format) depending on the cdeType.
- fileRevisionId should be obvious.
- The second asin is the isbn for the paper back version of the book.
- Don't know what pageMap does yet.
Following this header is a list of 4 byte sequences of big endian ints. They are in an increasing order. The total number of the 4 byte sequences is 573. The first 3 ints are all 0 which leads me to believe they are padding. The total number of pages within the book are 570 (as shown on the Kindle itself). I need to do some testing but it looks like my assumption is correct and the apnx file is a list o file locations where each is the beginning of a new page.