View Single Post
Old 05-21-2012, 05:22 PM   #346
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
calibre does rationalize css. Basically all css is applied to the actual HTML, then processed/transformed and then written out. This process automatically discards all rules from the input document that do not apply to anything.
There is a style sheet. There are styles in that style sheet. Some of these styles are used. So why is it that Calibre is converting some/all of these used styles to different styles? Why can't Calibre see what's used and leave it be and when a style is not used, delete it from the CSS? Just create new styles when Calibre sees code inside the XML that should be part of the CSS? That would make things a lot easier and people would like Calibre conversions so much better.

So when I have <p class="para">, leave it be. Just modify para in the CSS as needed based on the options. Don't then give me <p class="calibre8"> when para was perfectly OK.
JSWolf is offline   Reply With Quote