View Single Post
Old 07-03-2012, 10:40 AM   #202
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: 74,037
Karma: 129333114
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 kiwidude View Post
Ahhh... *less* than zero is the trick, thanks, that now makes sense.

I think this plugin should follow along those same lines then. If your defaults are set to less than zero, then it will do its *current* behaviour of omitting attributes from the style, and with my fixes propagate that to removing the style if it has no other attribution, then the css file if it has no other styles. So with the new version JSWolf should just be able to run the plugin again against your epubs and have all the stuff you don't like disappear. Note however if the @page or body style has other attributes set on it (like padding for instance) it will stay in the css file with just those attributes, just like it does today.

If you set your calibre margin defaults to either zero or a positive value, then the plugin will *always* write out that value, which is different to how it behaves today but inline with what a calibre conversion does.

Hopefully that is the right middle ground on this.
Let me get this straight. If I set to no margins, then the plugin will (in a future version) delete the @page. Is this correct?

Can we please have the @page and the body dealt with separately? While yes, I want the @page changed, I may not want the body style changed.
JSWolf is offline   Reply With Quote