View Single Post
Old 09-29-2023, 07:50 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Vanguard3000 View Post
I couldn't find this in search, but I'm basically wondering if there's a way to basically do the inverse of the "Delete unused stylesheet selectors" function.

I'm converting over a detailed game guide that originally consisted of several hundred Google docs, which I had downloaded as html and imported to Sigil.

[...]

I could then do an actual "Delete unused stylesheet selectors" to get rid of the DELETEME classes.
You would want to do a:
  • Calibre EPUB->EPUB conversion

This would merge all dozens/hundreds of CSS files into unique classes.

From there, you would use the "surgical" approach I described in:

this would let you find/merge all the "duplicate" classes in sucessive conversions.

Since 2021, KevinH has also added that cleanup functionality into Sigil too! It's called the "CSSToolbox", and I described it in more detail here:
Tex2002ans is offline   Reply With Quote