View Single Post
Old 07-18-2024, 01:24 PM   #100
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,930
Karma: 6361444
Join Date: Nov 2009
Device: many
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.
KevinH is offline   Reply With Quote