Quote:
Originally Posted by roger64
Hi
If you change this original file with a SVG wrapper using this fine plugin, and then delete the original file, the new SVG wrapper file name is not updated in both tocs.
|
When I'm replacing a page with a simple image with an SVG one, I use the plugin to make a new file, then copy all the code in it and paste it over the original image file code, delete the new SVG_... file. Any links to or semantics of the original file work as before. If it's an EPUB3, also use "Tools/Epub3 Tools/Update Manifest Properties" to add the SVG tag to the file in the manifest.
If there are any ID anchors in the original file, you can preserve them or adjust any links to them to just be to the file, not the anchor. Epubcheck will tell you if you need to do that.
If it's a cover image, as long as the original cover file was tagged as "Cover" (in the OPF), then the Sigil built-in "Add cover" will overwrite it, again preserving all links.
Possibly the SVG plugin could have an additional option allowing you to choose the target filename, either the default (new) one as now or an existing one to overwrite.