View Single Post
Old 03-01-2023, 09:01 AM   #29
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,035
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by jackie_w View Post
I can confirm that setting widows/orphans to 1, in <body>, does not work if the [Reading] options readingAdobeOrphans & readingAdobeWidows are not set in the Kobo config file.
Great!

Quote:
Originally Posted by jackie_w View Post
I'm going to guess that it stopped working at the same time the config options were introduced.
Prior this thread, I never heard about this option before. You have inside information? It is also very kobo specific, so you still have to include orphans/widows in the CSS when you use other ereader devices.

Quote:
Originally Posted by jackie_w View Post
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.
Seems a correct deduction. However, how did you determined the orphans/widows setting to become "2"? Is this somewhere mentioned?

So summarizing, Kobo CSS evaluation is (according to you):
  1. kobo hardcoded defaults,
  2. epub CSS settings,
  3. kobo config file settings.
in which each level is overriding the previous one.
And: the kobo config file settings only overrides the <body> orphans/widows settings.
Interesting
DrChiper is offline   Reply With Quote