Quote:
Originally Posted by davidfor
Widows and orphans do work in kepubs, but as the default value for both is 2, you won't see a change with what you are doing. Set them to 1 or 0. Strictly, 1 is the minimum value, but 0 seems to work as well.
You might also need to add "!important" in the kebup-book.css. This will force it to override the setting if it has been done in the book.
|
Well, in that case then there's a clear bug here.
Unless I'm completely wrong, the number in
widows and
orphans specifies the
minimum amount on lines that should be rendered in a paragraph at the end or at the beginning of a page. (CSS reference for
widows and
orphans).
In this way, lonely lines are not permitted if a value of 2 is used (which is also the default one).
I upload four examples of these settings being violated, (but I can actually swear that I've seen this issue in
all the books I've opened so far):
- Two in a sideloaded kepubized epub, where, you can trust me, there's no orphans or widows setting inside the book. (I've checked it with Sigil).
- Two in an "official" kepub from my Kobo account. (I cannot check it as it is DRM protected, but I doubt that it has any kind of setting about orphans or widows, because nearly no book has them).