View Single Post
Old 11-03-2014, 04:11 AM   #16
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by anacreon View Post
I've just had problems with a poor epub (converted to kepub when transferred to the reader), where I lost a line of text at the bottom (saw just the extreme top of a few letters). I noticed that it had no page_style, so copied one from a good epub and set it to 5 pt top and bottom.
I've tried adding it to my added CSS for conversions, so

body { orphans: 1; widows: 1; } div, p , blockquote {line-height: 1.0}, page { margin-bottom: 5pt; margin-top: 5pt }

but don't know whether it is the right syntax. The beginning was copied from some advice somewhere, and I have no knowledge of the language (Python is it?).

I'd welcome advice.
If you are converting to kepub then I doubt that will have any useful effect: the kepub reader ignores orphans/widows settings, overrides the line height with the height selected on the device, and already has large built-in margins so adding more with @page is probably not helpful.

Edit: On second thought, div {line-height: 1.0} might have an effect, as the kepub reader only overrides line-height for body, p, but I think it is just as likely to be a bad effect as a good one.

Last edited by GeoffR; 11-03-2014 at 04:55 AM. Reason: kepub reader doesn't override line-height for div
GeoffR is offline   Reply With Quote