Quote:
Originally Posted by Aleron Ives
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?