View Single Post
Old 01-19-2015, 12:30 PM   #5
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,887
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi,

I agree with Jellby. I often will delete an image and later replace it with an improved version. I would not want the link to be removed nor would I want all of the "alt" text I wrote to go away either.

So I think DiapDealer's idea of either using a regular expression replacement or a plugin would be the best way to go. Regular Expression search and replacement can easily be done in Sigil right now and there are a number of Regular Expression experts here in this Forum and the Calibre forum can probably show you possible ways to accomplish what you want.

The plugin approach would take a bit more work, but perhaps someone will create a selectable toolbox of transformations plugin to make things easier. Something like this might be perfect example case for a tool like that. For example: It could use a regular expression to present a list of all of the img tags and allow the user to either select the ones to keep or the ones to remove.

KevinH
KevinH is offline   Reply With Quote