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
Last edited by KevinH; 06-14-2014 at 02:25 PM.
Reason: caveat about very ugly code
|