View Single Post
Old 10-03-2022, 09:26 PM   #217
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: 47,324
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Aleron Ives View Post
What's involved in this cleaning process? It sounds like a pretty arduous process to me, considering just how much CSS alone I've seen in the few e-books I've checked so far.
My choice is to use Sigil to do much of the cleaning. The builtin Delete Unused Stylesheet Selectors (remove unused stylesheet entries) and the plugin cssUndefined Classes (remove undefined classes in the html files) do a very decent first pass. For those epubs where the author went for inline styles, the RemoveInlineStyles creates a stylesheet and moves the inline styles to the stylesheet. At times, after running those in Sigil, I will then use calibre's editor to merge similar styles—do you really need 6 paragraph styles with the only difference being the line height being set from 1.0 to 1.35?
DNSB is offline   Reply With Quote