View Single Post
Old 05-23-2010, 10:20 PM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Themus View Post
Quick question. Is there any way to control widows and orphans in an ePub. I spent 15 years in electronic pre-press and the perfection in me wishes my ePub to look the best possible. Hence, I don't like single lines at the bottom of a page or the start of a new page.

Seems like it would be trick to control this in an ePub when it is put on so many different devices. Still, I thought I would ask the experts in the ePub field.

Mega thanks as always!
I use external fonts on my ePubs and also an external css file. I include settings for widows and orphans in the file (I think it helps but I won't swear that it helps.)
html, body {
font-family: "Futura", sans-serif;
widows: 0;
orphans: 0;
margin: 0;
padding: 0;
}
You might be able to add the code for widows and orphans to the extra css prior to conversion in Calibre or open the ePub in Sigil and add in the widows and orphans code to css file directly.

I have no real expertise but this might lead you in the right direction.
DoctorOhh is offline   Reply With Quote