New Version: opf_id_updater_v3
For those interested.
I have now updated the opf_id_updater to v3. It now will look up meta property refines and update any that point into manifest ids which are common when media overlays are used (smil) files.
I included a new test case package.opf which is the opf from the official epub3 media-overlay example file Moby-Dick. I used it to convert the package.opf to npackage.opf
As far as I know, this v3 version should be the *final* version.
So barring unforeseen issues, I will either include this as a new Sigil plugin or possibly as a internal Sigil python3lib internal tool. I have not decided if this is needed/useful to a broad enough audience to include internally in Sigil for everyone.
To run the program after unzipping opf_id_updater_v3:
cd into that folder and run:
python3 ./fix_opf_ids.py ./package.opf > newpackage.opf
Then you can compare your newpackage.opf to the included npackage.opf.
Feedback and comments welcome.
Especially whether you think this tool would be useful to enough people to actually include inside Sigil under the Tools menu or if it would be better as a standalone Sigil plugin interested users can choose to download and install.
Hope this helps.
|