Mobileread
Widows and Orphans
#1  Calenorn 10-21-2019, 08:11 AM
What is the Kobo firmware default for widows and orphans? 2 or 3, I would guess.

Can this be over-ridden by a book's CSS?

Hope this is an easy question. Thanks for helping an amateur!
Reply 

#2  JSWolf 10-21-2019, 08:31 AM
Quote Calenorn
What is the Kobo firmware default for widows and orphans? 2 or 3, I would guess.

Can this be over-ridden by a book's CSS?

Hope this is an easy question. Thanks for helping an amateur!
Widows and orphans default to 2 for both.

You can override this in the CSS. This is the CSS code I use.

Code
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify;
}
There is also a patch for the 4.18.x firmware to set the default widows and orphans to 1.
Reply 

#3  davidfor 10-21-2019, 10:12 AM
Quote JSWolf
Widows and orphans default to 2 for both.

You can override this in the CSS. This is the CSS code I use.

Code
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify;
}
The only issue with that is that if the widows and orphans are set in the paragraph styles, this will not override them. You will need to remove those as well.

And kepub ignore the widows and orphans in the CSS and always use 1.
Reply 

#4  JSWolf 10-21-2019, 11:52 AM
Quote davidfor
The only issue with that is that if the widows and orphans are set in the paragraph styles, this will not override them. You will need to remove those as well.

And kepub ignore the widows and orphans in the CSS and always use 1.
Thanks for that reminder. I did forget that I do remove any instances of windows and orphans and all I'm left with it the ones in <body>.
Reply 

Today's Posts | Search this Thread | Login | Register