![]() |
#16 | |||
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
Quote:
I like to justify just my paragraphs, thank you. YMMV. Quote:
Boy, that were a lot of "don't-s", don't you think? ![]() |
|||
![]() |
![]() |
![]() |
#17 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
body { margin-left: 0.5em; margin-right: 0.5em; orphans: 1; widows: 1; text-align: justify; } It's a lot of don't because it's a lot of you don't need. It can all be done in body. And yes, it does work. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,477
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
#20 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
If it's just widows/orphans I probably wouldn't have noticed because I have also set Code:
[Reading] readingAdobeOrphans=1 readingAdobeWidows=1 |
|
![]() |
![]() |
![]() |
#22 | |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
Originally, I just used the earlier by others above stated <body> definition: Code:
body { . . . orphans: 1; widows: 1; . . . } About a month ago, I had a text with mixed paragraphs comprising multiple lines and noticed they behaved funny at the kobo bottom page boundaries. That is, a paragraph sometimes was completely moved to the next page, leaving a kind of huge gap at the bottom of the current displayed page. This is odd, as the orphans/widows setting indicates at least 1 line of the next paragraph must be placed on the current page. I tried several things, dived again in the CSS documentation, but could not find a solution. Reasoning did suggest that the orphans/widows settings were not inherited by the paragraph <p> (and <div>), which I could not really believe. But hey, paper specs are not always (correctly) translated into code I knew from past experiences. So I did hard coded my CSS <p> & <div> settings to include orphans/widows to check this. And then it worked perfectly. QED Well, for me that is. Some rumors in this thread still doubt this ![]() So I suggest to try it yourself and see whether it works for you as YMMV. It might be that my kobo's are mondaymorning devices (latest FW) Let us know so we may learn. ![]() |
|
![]() |
![]() |
![]() |
#23 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
In addition, I should mention that because I had issues with so-called assumed "default" values, which did not seemed to contain the assumed default value at all (cannot remember whether it was Kobo / Sony / other), I always include at the top of my CSS the following:
Code:
* { margin: 0; padding: 0; line-height: normal; } But as always, YMMV ![]() |
![]() |
![]() |
![]() |
#24 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@DrChiper, please go o the following post and download the ePub I've posted and see if you get widows & orphans or not. Thanks.
https://www.mobileread.com/forums/sh...&postcount=297 |
![]() |
![]() |
![]() |
#25 | |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
See screenshots: left your epub unaltered, right epub adjusted to my *, <body>, <p> settings. Your welcome. Last edited by DrChiper; 03-01-2023 at 07:40 AM. |
|
![]() |
![]() |
![]() |
#26 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#27 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
I don't have the tech skills to do a deep dive into the firmware code to confirm any of this but a plausible explanation of observations may be... Whatever config values are set in readingAdobeOrphans & readingAdobeWidows will always override whatever values (if any) are present in <body>.
If readingAdobeOrphans & readingAdobeWidows are absent from config both default to a value of 2. In which case any widows/orphans values present in <body> will be overridden with a value of 2. Any widows/orphans CSS hard-coded anywhere other than <body> should follow the normal rules of CSS inheritance and specificity. |
|
![]() |
![]() |
![]() |
#28 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
|
![]() |
![]() |
![]() |
#29 | |||
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
Quote:
Quote:
So summarizing, Kobo CSS evaluation is (according to you):
And: the kobo config file settings only overrides the <body> orphans/widows settings. Interesting ![]() |
|||
![]() |
![]() |
![]() |
#30 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
![]() Quote:
Personally I don't keep any widows/orphans CSS at all in my calibre master epubs. I auto-apply whatever is needed (if anything) during my send-to-device process. Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Widows and Orphans | jhowell | Kindle Formats | 89 | 08-26-2021 10:38 PM |
Widows and Orphans | jonathanc | Amazon Kindle | 13 | 05-23-2020 02:32 AM |
Widows and Orphans | Waylander | Kobo Reader | 31 | 05-18-2020 06:54 AM |
Widows and Orphans | Calenorn | Kobo Reader | 3 | 10-21-2019 10:52 AM |
Widows and Orphans | danrodney | ePub | 10 | 12-08-2010 02:08 PM |