View Single Post
Old 01-11-2012, 10:43 PM   #8
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: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi,

K8 mobi files use special additional indexes (a skeleton index and a div table index for lack of better names) that can be parsed to recreate the original xhtml file structure. It also uses FDST records info to split out flow items. If you use the latest mobi_unpack.py and support code (should be identical or close to what user_none gave you) and turn on all DEBUG settings you can see almost everything.

Focus on the code in mobi_k8proc.py and mobi_html.py to see how to unpack the K8 mobi and build an epub from it.

If you have questions about the code, ask in the Mobi Decoder topic in the Mobi forum (or pm me directly and I can explain it and the format).

Take Care,

KevinH
KevinH is online now   Reply With Quote