View Single Post
Old 04-05-2023, 09:53 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,109
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
second The toolbox plugin. (also for Sigil)
BUT it removes a specified tag , by a specified criteria.
eg
remove a span that has no attribute (naked).
Modify span class="slanty" and make it <i> (optionally keep the attribute)

But it is not intelligent. You need to understand WHY the code IS the way it is. (your example is extreme.

The Editor has a CSS clean function that combines all the identical CSS entries (but does not change the code in the book)
What I do is run the clean/combine. Then use the toolbox to reduce the combined items to 1 selector ( a bit tedious, but fairly quick each pass)
theducks is offline   Reply With Quote