View Single Post
Old 11-08-2020, 02:25 AM   #10
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,394
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by G2B View Post
I have no problem getting rid of unused css. the Calibre editor does that very efficiently. I would love if it could merge with a little bit more ruthless efficiency, e.g. bring ALL the italics rules together in one rule, all the bolds in one rule instead of having like 50 different rules for each when I merge books.
Perhaps an automated fix for those books where the p tag setup in the stylesheet includes "font-size: 1em;" and then every blasted paragraph has a <p><span class="block2"> and in the stylesheet, block2 has "font-size: 1em;" as it's only entry.

My issue with cleaning stylesheets with the calibre editor is that at time, it's removal of unused css gets too efficient when someone has gotten too cute with their css. The type of stylesheet where you have to parse multiple entries with a lot of them involving media queries and a love for ::.
DNSB is offline   Reply With Quote