View Single Post
Old 01-25-2016, 04:00 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by phossler View Post
I merged a number of stories into a single epub and there was a lot of redundant attributes across them. I wanted to be neat and make sure the styling was consistent where is needed to be
Ummm... the tool that is the topic of this thread will not undo the damage caused by inconsistent styling in the original sources (or else whatever later conversions may have done)...

So I am still wondering what that has to do with this thread.

Quote:
Originally Posted by phossler View Post
Does having a number of unused CSS styles from a my 'House Rules' CSS add anything significant to the overhead of size or performance? (serious question since I don't know)
It can... every little bit helps. And then there are the monstrous house styles used by BPH ebook makers, which have hundreds and hundreds of unused rules (and attributes) and noticeably decreases the file size when cleaned up!

Quote:
I've never worried about unused CSS rules in my standard CSS file (currently epub34.css) , since for example I have a <p> that I like, also headings, tables, etc. I have TOC-related CSS that makes the HTML TOC the way I prefer.

Admittedly when I'm done I could put the epub on a diet to get rid of all that fat. Just never thought about it because of the way my workflow has developed.
And now you are worrying about missing unused CSS rules.
It is one thing to not be concerned about putting your EPUB on a diet. It is another thing entirely to have a tool you used for other reasons, give your EPUB a free diet, and then protest that you want the fat back!


So I don't see why you need a workaround to add back in the styles you aren't using, just because "I try to keep my 'standard' stylesheet consistent so even though rules are not used in a given book, I'd like to keep them".

Unless you really, really want to, just Because.
But if so, I don't think calibre is going to add another option just for that.

Last edited by eschwartz; 01-25-2016 at 04:02 PM.
eschwartz is offline   Reply With Quote