View Single Post
Old 06-26-2014, 05:02 PM   #3
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,651
Karma: 5433388
Join Date: Nov 2009
Device: many
Hi,

I grabbed the source from github.

Nicely done!

I do not have libxml2.dylib on my machine so I configured without it and it built just fine on my Mac OS X Mavericks machine.

Interesting. I am glad to see that at least someone is making use of the KindleUnpack code and the code we contributed to calibre to support KF8 and joint mobis! ;-)

A few things:

1. when using the -s option you probably should remove the all the aid="blah" attributes on tags as they are all kindlegen generated and are not legal html5 and they will be added yet again if you pass that back through kindlegen.

(perhaps this would have happened if I had libxml2.dylib in /usr/local/lib/)?

2. you might want to grab the latest KindleUnpack testing version (v072f at the moment) and examine the code added to parse PAGE sections, and HD CONT sections and CRES sections as the first is used to create apnx files and the latter two are related to HD Images which are stored in CRES sections that come after the new CONT container boundary that comes after all of the kf8 sections.

It also has code to unpack to epub version 2 or epub version 3.

If you ever have questions about what the KindleUnpack code does, just let me know and I would be happy to help. Currently, I am working on unpacking .azk ebooks which are basically just a zip archive of json fragments and skeletons (so it is much like a KF8) but with its own form of dictionary based compression that whose keys are mapped into the Braille region of (x2800) unicode code points so that the jsonp objects are pure unicode strings.

Lots of fun with that one.

Take care,

KevinH

Last edited by KevinH; 06-26-2014 at 05:05 PM.
KevinH is offline   Reply With Quote