Quote:
Originally Posted by twynn92
Resurrecting an essentially dead topic here, but if I used the command-line interface from the KFX plugin and Kindleunpack to make an epub for both KFX and KF8 files respectively, will the manifest in the opf list the images in the same order?
|
No, they will not. The order of images in the OPF manifest when converted to EPUB provides no useful information. It will be alphabetical in both of these cases.
Images in KF8 are assigned numbers based on their order in the file. That often follows the order in which they are called out in the book, but not always. Images in KFX tend to have more arbitrary names assigned to them in different ways that have changed over time.
Parsing the HTML files that make up the book in spine sequence to generate a list of image names in order of reference would probably work best. Those would correspond between AZW3 and KFX formats in most cases, although there may be some circumstances where the lists might need to be tweaked a bit. Those lists could be used as the basis for substituting the proper files by renaming the ones from KFX to match the AZW3 names.