View Single Post
Old 05-10-2025, 07:02 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,698
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by ElMiko View Post
Yeah, I'm thinking about other potential "prettification" operations. If there are several, it seems like tying them all to one of the Automations and assigning a shortcut might be most efficient.

Is that something that would work, or am I misunderstanding the use cases for the "Run Automate List" function?
For me, I would collect those search/replace operations into a saved search group and run them by clicking on the group name. I don't think you could add a search to an automation list since the add to automation list only shows Sigil builtin tools and plugins.

For instance, I really dislike items in the ToC such as Chapter Thirty-Three. I also prefer to have the ToC built from a title="" rather than directly from the text in the header. I ended up with a saved search group that first adds the chapter header number to a title="Chapter ..." and then converts title="Chapter text number" to title="Chapter numeric number". I beat my head against the second part for a while and finally just brute-forced it by generating the search list outside Sigil and then importing it.

So <h3>Thirty-Three</h3> ends up as <h3 title="Chapter 33">Thirty-Three</h3> giving me what I want in to ToC.

Last edited by DNSB; 05-10-2025 at 07:05 PM.
DNSB is online now   Reply With Quote