View Single Post
Old 05-30-2015, 02:13 PM   #6
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,860
Karma: 6120478
Join Date: Nov 2009
Device: many
Actually, this is not easy as it sounds in that you must go through every link/anchor/aside/footnote, etc in every xhtml file looking for changed file names in internal links.

The code to actually do exactly this is built into Sigil in a C++ routine that performs UniversalUpdates and it is run when the epub is first loaded since the paths to the files will change due to being moved into the epub directory structure used by Sigil.

In the end, it might be easier to change the builtin updates routine then to recreate all of that code in a plugin.

KevinH
KevinH is online now   Reply With Quote