Actually, KF8 is more than just a compiled version of epub as it actually starts the process used in AZK and KFX of extracting sections of text (fragments) from the remaining (mainly common) pieces of the html page (the skeleton) and then these fragments can be loaded on demand using javascript to create a page for azk. Kindleunpack simply reinserts all of these fragments back into their skeletons, recreates the internal and external links, re-inserts extracted svg, rebuilds the ncx, and etc all to make a KF8 look like an epub2 (or in the case of fixed format and epub3).
But once you get to the concept of a base skeleton with fragments inserted (used in the AZK) it is not much of a step to pre-style the fragments, record their relative positioning and create a completely standard single skeleton, and then tokenize to speed processing and save space.
KevinH
|