View Single Post
Old 01-25-2012, 08:24 PM   #7
PeterHatch
Member
PeterHatch began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2012
Device: Kindle
Quote:
Originally Posted by KevinH View Post
If we could determine the exact order of these resources that would help. For example: Do fonts always come first, are images intermixed with other non-image sections, what order do the FCIS, FLIS, DATP, FDST come in, does the content.opf determine the order of resources files like images and fonts or does something else.
Just checking using mobi_unpack, based on the number it gives to the font and the images, they are intermixed, and it seems to be based on parsing the HTML files listed in the order given in the spine section of the opf, adding images in order, and parsing the CSS after the HTML file that uses it.

Quote:
Originally Posted by KevinH View Post
The more I think about it. It might be possible to create a KF8 mobi and then zero out the rawml for the older mobi part (or replace it with a placeholder), 0xffffffff out the old index tables from the old header and remove or make zero size all of those indx pieces, leaving pretty much just a simple header section to represent the old side, to be followed by the images and things and then the K8 side.
Rather than zeroing out or using a placeholder, could we substitute in that section from another .mobi file, assuming it used no images or fonts? I'd like to have a simple custom message in there.
PeterHatch is offline   Reply With Quote