Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2023, 09:52 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Libra 2 ignoring widows/orphans

My nice new Libra 2 displays pages of quite widely varying length on any book I read. I have put "widows:1; orphans:1;" in the CSS for <body> in one of the books to see if this fixes it, but it doesn't. All my books are EPUBs.

The device seems to be using 3 as the value for both -- a 4-line para gets shifted in its entirety onto the next page, for example. The effect is quite jarring; I always feel like I'm at the end of a chapter when I read one of the short pages (21 lines rather than the normal 24 at the font size I'm using) and then I turn the page to discover that there's more...

Is there anything else I can do to stop this happening?

Last edited by Phssthpok; 02-27-2023 at 09:55 AM.
Phssthpok is offline   Reply With Quote
Old 02-27-2023, 10:34 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Phssthpok View Post
My nice new Libra 2 displays pages of quite widely varying length on any book I read. I have put "widows:1; orphans:1;" in the CSS for <body> in one of the books to see if this fixes it, but it doesn't. All my books are EPUBs.

The device seems to be using 3 as the value for both -- a 4-line para gets shifted in its entirety onto the next page, for example. The effect is quite jarring; I always feel like I'm at the end of a chapter when I read one of the short pages (21 lines rather than the normal 24 at the font size I'm using) and then I turn the page to discover that there's more...

Is there anything else I can do to stop this happening?
This is the CSS code I use. It works because I make sure there are no other widows and orphans in the CSS code. Also, some eBooks have multiple CSS and I make sure there's none there as well.
Code:
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
JSWolf is offline   Reply With Quote
Advert
Old 02-27-2023, 10:45 AM   #3
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
There is an option in Kobo eReader.conf (.kobo/kobo) on a Kobo that will ignore widows/orphans with epubs. This can be overridden in the CSS. But if you remove all widows and orphans from CSS or set them to 1, this should work.

Code:
[Reading]
readingAdobeOrphans=1
readingAdobeWidows=1
You can edit the conf file with Notepad.
Sirtel is offline   Reply With Quote
Old 02-27-2023, 11:23 AM   #4
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by JSWolf View Post
This is the CSS code I use. It works because I make sure there are no other widows and orphans in the CSS code. Also, some eBooks have multiple CSS and I make sure there's none there as well.
Code:
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
I have checked, double-checked and triple-checked. There are no other widows/orphans definitions anywhere. Something else must be going on.
Phssthpok is offline   Reply With Quote
Old 02-27-2023, 11:33 AM   #5
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by Sirtel View Post
There is an option in Kobo eReader.conf (.kobo/kobo) on a Kobo that will ignore widows/orphans with epubs. This can be overridden in the CSS. But if you remove all widows and orphans from CSS or set them to 1, this should work.

Code:
[Reading]
readingAdobeOrphans=1
readingAdobeWidows=1
You can edit the conf file with Notepad.
And at a stroke, the problem is solved. You are indeed a grand sorcerer, sir.

Incidentally, is there any documentation anywhere for all these mysterious config options? I'm intrigued as to what other possible values there might be in settings like e.g. "LastLibraryViewType_author=viewBy5List()". The widows/orphans options are not listed in https://wiki.mobileread.com/wiki/Kob...ration_Options, for example

Last edited by Phssthpok; 02-27-2023 at 11:44 AM.
Phssthpok is offline   Reply With Quote
Advert
Old 02-27-2023, 11:36 AM   #6
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Phssthpok View Post
Incidentally, is there any documentation anywhere for all these mysterious config options? I'm intrigued as to what other possible values there might be in settings like e.g. "LastLibraryViewType_author=viewBy5List()".
https://wiki.mobileread.com/wiki/Kob...ration_Options
Sirtel is offline   Reply With Quote
Old 02-27-2023, 12:48 PM   #7
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by Sirtel View Post
Yes, but I don't see the widows/orphans settings you gave me anywhere there... Where did you discover those?
Phssthpok is offline   Reply With Quote
Old 02-27-2023, 02:32 PM   #8
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Phssthpok View Post
Yes, but I don't see the widows/orphans settings you gave me anywhere there... Where did you discover those?
I had the same problem as you a while back (after an update) and someone here posted this solution.

I think there's also a patch for it, but I've never used it. I do use a heap of other patches, though. They've improved the reading experience a lot for me. Take a look at them. You can do many things with patching.
https://www.mobileread.com/forums/sh...d.php?t=350805
Sirtel is offline   Reply With Quote
Old 02-27-2023, 03:00 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Sirtel View Post
There is an option in Kobo eReader.conf (.kobo/kobo) on a Kobo that will ignore widows/orphans with epubs. This can be overridden in the CSS. But if you remove all widows and orphans from CSS or set them to 1, this should work.

Code:
[Reading]
readingAdobeOrphans=1
readingAdobeWidows=1
You can edit the conf file with Notepad.
Notepad++ as it keeps the correct line endings.
JSWolf is offline   Reply With Quote
Old 02-27-2023, 03:05 PM   #10
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,466
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by JSWolf View Post
Notepad++ as it keeps the correct line endings.
I've never had an issue with the ordinary Notepad.
Sirtel is offline   Reply With Quote
Old 02-27-2023, 03:21 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Sirtel View Post
I've never had an issue with the ordinary Notepad.
I've not used Notepad in years. Notepad++ is just so much better and it respects Linux line endings.
JSWolf is offline   Reply With Quote
Old 02-27-2023, 04:26 PM   #12
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by JSWolf View Post
I've not used Notepad in years. Notepad++ is just so much better and it respects Linux line endings.
I use both Textpad and Notepad++. Each has a few features the other is missing.
Phssthpok is offline   Reply With Quote
Old 02-27-2023, 04:47 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Phssthpok View Post
I use both Textpad and Notepad++. Each has a few features the other is missing.
Yes, either will work.
JSWolf is offline   Reply With Quote
Old 02-28-2023, 06:42 AM   #14
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
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 Posted by Sirtel View Post
There is an option in Kobo eReader.conf (.kobo/kobo) on a Kobo that will ignore widows/orphans with epubs. This can be overridden in the CSS. But if you remove all widows and orphans from CSS or set them to 1, this should work.
Code:
[Reading]
readingAdobeOrphans=1
readingAdobeWidows=1
Thats a great find

I had recently the same issue, but solved it in the CSS itself, so it also works on other devices:
Code:
body {
  font-family: serif;
  margin: 0 1%;
  orphans: 1;
  widows: 1;
}
p, div {
  font-size: 1em;
  text-align: justify;
  orphans: 1;
  widows: 1;
}
DrChiper is offline   Reply With Quote
Old 02-28-2023, 07:57 AM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DrChiper View Post
Thats a great find

I had recently the same issue, but solved it in the CSS itself, so it also works on other devices:
Code:
body {
  font-family: serif;
  margin: 0 1%;
  orphans: 1;
  widows: 1;
}
p, div {
  font-size: 1em;
  text-align: justify;
  orphans: 1;
  widows: 1;
}
You don't need widows and orphans any other place in the CSS but body. Also, you don't need a font size of 1em. 1em is the default font size. And you don't need justify except in body. And don't use % for a margin as it changes based on the screen/window size.

Last edited by JSWolf; 02-28-2023 at 10:22 AM.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:35 PM.


MobileRead.com is a privately owned, operated and funded community.