View Single Post
Old 02-25-2013, 06:10 PM   #151
RobbieClarken
Addict
RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.
 
Posts: 371
Karma: 1002274
Join Date: Mar 2008
Location: Australia
Device: Kindle
Quote:
Originally Posted by Ephemerality View Post
I've actually been working quite a bit over the past week on creating an x-ray builder that generates all of the loc and chapter information by unpacking the mobi file and running through the raw book content (the page-by-page info is calculated on the Kindle itself).
The format is fairly simple, each loc points to a point in the book and defines the excerpts you see on that character's page. The locations are positions within the raw html file (I've been unpacking the mobis with mobi_unpack using the -r flag to get the raw markup).
Thanks for the info Ephemerality! I've been working on writing a python script to generate the xray file and I've run into a problem.

I have generated the raw markup language with kindleunpack.py but when I compare the locs from the xray file they don't exactly match up with the positions in the rawml file.

For one book, each loc is 14 characters off the position in the rawml file. For another book, the discrepancy ranges from 22 to 2000 characters.

Have you come across this? (I get the same issue using the version of mobi_unpack you link to.)
RobbieClarken is offline   Reply With Quote