View Single Post
Old 04-06-2014, 04:13 PM   #21
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
It was actually Nick I meant to address, rather than yourself. Sorry I didn't make that clear However...

Quote:
Originally Posted by speakingtohe View Post
Do you mean no CSS file at all or just the rule you place the important with.? Doesn't seem that way to me, as I have some important (line-height: 1.0 !important for example in my preferences and this does nothing at all AFAIK. Same old line heights and text sizes etc. after a conversion. ( I copied it from a post by DSNB I think and never bothered to remove it)
It was as if the whole css file was missing, not just a single style rule, namely:
- all text left-aligned (incl headings which should have been centred)
- all paragraphs separated by a blank line (i.e. margin-top & margin-bottom 1em)
- no paragraphs indented.

See this post, in the Kobo Driver thread, where I first mentioned it. I don't know the full whys and wherefores but it was during the great debate about 'all Kobo's line spacing settings are too big' (before the Kobo Patcher came along and made that problem go away). I hadn't used the p {line-height: 1.0 !important} in any calibre conversion Prefs settings, but in the Kobo Driver's "Modify CSS" option, which would just have copied that style rule, verbatim, to the bottom of each epub css file during send-to-device.

With that negative experience I've stayed away from !important ever since. But I don't know why that simple addition was so destructive to the styling.

As that post was from August 2013 (several fw versions ago), for interest, I just tried it again to see if anything had changed -- same result. However it's quite possible that !important is less destructive when used in other circumstances. Who knows?

Quote:
Originally Posted by speakingtohe View Post
And wouldn't removing the all of the line heights be more or less the same as making all the line heights the same?
Oh, yes, it wouldn't be perfect. Some books may have some of their detailed styling spoiled (e.g. headings, dropcaps). But that may be a lesser-of-two-evils option in order to have all the standard body text paragraphs spaced to taste and which can be achieved with a mass epub-epub conversion using the Look&Feel - Filter option with line-height.

The only perfect solution is to hand-edit every epub to add/remove line-heights where they need to be added/removed. Most people aren't prepared to do that - and who can blame them?

The trouble with hard-coding specific line-height values in all your epubs is that any given value will only look good with some font families and will look terrible with others. If you only ever read with one font, now and forever more, perhaps this won't ever be a problem, but if you like to vary fonts and use a variety of reading devices and reader apps then the less hard-coded settings the better IMHO. Trying to future-proof epubs is tricky .
jackie_w is offline   Reply With Quote