View Single Post
Old 06-14-2014, 01:45 PM   #774
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,714
Karma: 5444398
Join Date: Nov 2009
Device: many
For Testing Only: KindleUnpack v070 Experimental

Hi tkeo,

This is alpha/beta quality code for testing purposes only.

It adds experimental support for the following:

- properly unpacking PAGE information from kindlegen generated PAGE sections to create page-map.xml in mobi 8 (this only works for mobi 8 part)

- create a new HDImage folder and populate it with HDImages but does not replace the corresponding image in either the old mobi or mobi 8

- very very experimental support for passing in an associated .apnx file with an .azw3 to generate a page-map.xml file.

****Important****, this will only work for apnx files that are not just made-up offsets, but were instead generated from an epub that had actual page information provided (and proper id= tags for the page start positions).

To try unpacking an azw3/apnx combination simply:

python kindleunpack.py -d -r -p PATH_TO_APNX PATH_TO_AZW3 PATH_TO_OUTPUT_DIR

Please post any successes or failures here with any of the new features. Please note, this has only been tested and shown to work for one ebook so far

NOTE: these experimental features code have been thrown together quickly to show proof of concept. It really really needs to be cleaned up before being used for any production purposes. In fact kindleunpack.py has reached the point it should be refactored and soon. Perhaps after tkeo's epub 3 features have been integrated.

Thanks,

KevinH
Attached Files
File Type: zip KindleUnpack_v070_experimental.zip (68.8 KB, 172 views)

Last edited by KevinH; 06-14-2014 at 02:25 PM. Reason: caveat about very ugly code
KevinH is offline   Reply With Quote