View Single Post
Old 03-05-2021, 05:16 PM   #162
Coleccionista
Connoisseur
Coleccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to beholdColeccionista is a marvel to behold
 
Posts: 73
Karma: 11638
Join Date: Aug 2010
Location: Spain
Device: iPad, Kindle Paperwhite, Kobo Libra 2
Lightbulb Saved searches

On the topic of Saved Searches I'd love to see in Sigil or in a Sigil plugin something that would not rely on a static list of entries. I sometimes find myself working with an ebook that let's say has 100s of <i class="xx">...</i> but I cannot expect to know beforehand the contents.

I want to search and replace for the appropiate <i>, <em> or <cite> tags and even add the lang/xml:lang when needed so I cannot really use Search&Replace because every 2 matches I need to switch the replace pattern.

What I would like is something like the spellchecker window where you would enter a tag pattern to search for (i.ex: <i class="xx">) and it will return an orderable, alphabetically and/or by frequency, list of all the text found inside this tag:
Code:
Text                    Number of times       Replace tag       Language code
Origin of Species       24                           cite                  en
alea                     14                             i                   -
Der Weiss Kunig          10                          cite                  de
¡basta!                    2                           em                 -
The idea is that in one swoop you would replace all the bland <i>/<em> or whatever styles for ones that are correct in language and semantics.
Once you have selected the changes Sigil would run all the list of Search and Replaces.
Coleccionista is offline   Reply With Quote