View Single Post
Old 11-19-2013, 11:10 AM   #3
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by davidfor View Post
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).
Attached Thumbnails
Click image for larger version

Name:	Orphan - Official kepub.jpg
Views:	607
Size:	561.2 KB
ID:	115430   Click image for larger version

Name:	Orphan - Sideloaded kepubized epub.jpg
Views:	591
Size:	694.0 KB
ID:	115431   Click image for larger version

Name:	Widow - Sideloaded kepubized epub.jpg
Views:	585
Size:	674.4 KB
ID:	115432   Click image for larger version

Name:	Widow - Official kepub.jpg
Views:	594
Size:	614.4 KB
ID:	115433  
arspr is offline   Reply With Quote