For those following along, I have slightly modified opf_id_update_v3.zip (see earlier post) and incorporated it into Sigil via its embedded python interface to create a new Epub Tool menu routine:
Rebase OPF Manifest IDs using Current Filenames
It will take the current OPF and pass it through that python opf_update_ids_v3 code to rebase all of the current manifest IDs based on its current filename.
It will properly update the OPF:
- metadata cover-image
- any meta refines that point to something in the manifest
- the spine toc attribute
- the spine itemrefs
- the manifest media-overlay and fallback properties
- the bindings handler if any exist.
This new tool will be part of our next release.
|