![]() |
#1 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
![]()
A simple question because either I'm doing something wrong or they don't work in FW 3.0.0. (I hadn't tested before).
I've made two tries:
And I continue seeing lonely single lines at the end / beginning of the pages. ![]() ![]() |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
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):
|
|
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,000
Karma: 150500000
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
This is probably not your issue but how have you been editing kepub-book.css? I found that I needed to use a text editor (Notepad++) that left the end of line as a simple LF character.
Regards, David |
![]() |
![]() |
![]() |
#5 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
As a test I've redone my kepub-book.css with this setting: Code:
* { widows: 2; orphans: 2; text-decoration: line-through; } ![]() Hey, in Terry Pratchet's "The Carpet People", I have even found a page starting with a widow line and ending with an orphan one. ![]() Now seriously, have any of you made widows and orphans work as expected? Last edited by arspr; 11-19-2013 at 04:41 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Looks like Kobo have changed something with 3.0.0. For some time I have had the following in my kepub-book.css:
Code:
body { orphans: 0 !important; widows: 0 !important; } This is just a quick test on one book. I'll have more of a play later and see if I am right. |
![]() |
![]() |
![]() |
#7 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,000
Karma: 150500000
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I was checking with 3.0.0 and several of the changes I put into the kepub-book.css are no longer showing up. I'm currently browsing for some non-DRMed kepub.epub books so I can a look at the internal CSS to see if any changes have been made. Regards, David |
|
![]() |
![]() |
![]() |
#8 | ||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
Quote:
Nevertheless, and as you also say 2 should be the default value which should have filtered out lonely lines (but in the rare, very rare books which have this property set). My memory is not perfect and I was not looking for this effect, (probably because I was pretty used to it not working fine in my old Sony PRS-650, possible related to the weird rendering Adobe built-in renderer does in long paragraphs, when the weekday is Monday or when it's raining outside), but I'm nearly sure this feature has not worked since at least FW 2.8.1. I mean, I'm nearly sure I've never seen this feature working since I bought my Aura HD one month ago more or less. EDITED ------ Because of some edits I've made to the book I'm currently reading (Las Legiones Malditas, which is the sideloaded kepubized epub in the previous screenshots), I can also say that neither page-break-inside: avoid;, nor page-break-after: avoid;, nor page-break-before: avoid; seem to work... Last edited by arspr; 11-20-2013 at 03:04 PM. |
||
![]() |
![]() |
![]() |
#9 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
As sadly expected, this issue is also present in FW 3.1.0 in either widows, orphans and page-breaks.
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2013
Device: kobo aura
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Touch Widows and Orphans and firmware, oh my! | MacEachaidh | Kobo Reader | 5 | 05-02-2013 11:14 AM |
using widows & orphans | cybmole | Sigil | 11 | 05-16-2011 01:07 AM |
Widows and Orphans | danrodney | ePub | 10 | 12-08-2010 02:08 PM |
Widows and Orphans - Taking Control | Themus | Calibre | 2 | 05-24-2010 09:40 AM |
A question about CSS: widows and orphans | Jellby | ePub | 5 | 08-31-2009 03:54 PM |