![]() |
#16 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In a binary world, 0 means off. So 1 means one line and 0 means off which means the same thing in this case.
|
![]() |
![]() |
![]() |
#17 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 275602
Join Date: Jul 2015
Location: York, UK
Device: Glo HD, PW2
|
I'm interested to see how this is going to turn out. As it stands (with no CSS modifications), it's as if the default is way larger than 2. I get very large gaps at the bottom of pages - much bigger than 2 lines.
UPDATE: Tried editing stylesheet directly and adding the CSS to the Calibre conversion tool. Both methods work just great. Thanks for that. Last edited by IanD; 08-10-2015 at 12:34 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,280
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#19 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,945
Karma: 70880793
Join Date: Feb 2009
Device: Kobo Clara 2E
|
Quote:
https://en.m.wikipedia.org/wiki/Binary_number |
|
![]() |
![]() |
![]() |
#20 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
I honestly do not add anything to my css sheets about orphans and widows, my experience in the screenshots posted above are just default conversion settings (where I have to convert) or just the epub as published. Which is why I think GeoffR's patch must be why I don't see the issue anymore and is the easiest fix to the problem.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Jon, we've been around this before. If you could actually tell me what "off" meant in terms of widows and orphans, then maybe I would agree. The specs I could find do not say what will happen when the setting is zero. And the only meaning I can think of is almost definitely not what you want.
|
![]() |
![]() |
![]() |
#23 | |||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,280
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
How many times has it been pointed out that widows and orphans are NOT binary values and the epub 2 and 3 standards refers to the CSS specification which states: Quote:
Quote:
Off the soapbox and back to our regular babbling.... One old reader for Mac (Mac OS 8 or 9 as far as I recall -- it's been a few years and I seem to recall it started as implementing the Open eBook standard and updated to epub1) and a couple of epub3 readers for Windows. I've also seen odd results with some epub2/3 readers for Windows but haven't played much with any other than ADE and Calibre lately. As I mentioned above, falling back to the default setting when an invalid value is specified is—probably—the correct behaviour—annoying but correct. These experiences led to my preference for 1 where the end result is defined—avoid problems where you can instead of hoping that someone else has taken care of any potential issues. Takes me back to the good(?) old days of arguing whether you should start numbering at 0 or 1. Last edited by DNSB; 08-10-2015 at 11:23 PM. Reason: Fat fingers cause typos.... what else is old? |
|||
![]() |
![]() |
![]() |
#24 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
But this is not a binary world, and these are not binary settings. According to the spec, they must be integers larger than 0, and once you understand what they mean, it makes no sense to use anything lower than 1 (what does "off" mean other than "one line"?). Using 0 might work in some readers, but again according to the spec, since it's an invalid value, it should be ignored and the default used, which is 2; so in complying systems it turns out 0 = 2.
|
![]() |
![]() |
![]() |
#25 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,454
Karma: 5469320
Join Date: Jul 2010
Device: Kobo
|
Can the widows and orphans people please take their never ending argument back to this thread: https://www.mobileread.com/forums/sho...+binary&page=6 where it was argued out over many pages and please not add 20 pages of argument over it to this page. Thank you.
|
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,532
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
|
|
![]() |
![]() |
![]() |
#27 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,280
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,454
Karma: 5469320
Join Date: Jul 2010
Device: Kobo
|
|
![]() |
![]() |
![]() |
#29 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Spoiler:
This should make text-alignment overriding for kepubs work the same as epubs. |
|
![]() |
![]() |
![]() |
#30 | |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Quote:
Edit: Works great, thanks again. While I really don't see the advantage of kepub over epub for myself, I don't mind kepubs anymore like before. Last edited by Ripplinger; 08-11-2015 at 08:10 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub vs kepub | aceflor | Kobo Reader | 47 | 11-21-2014 06:34 AM |
Aura HD Kepub or Epub | Nick_1964 | Kobo Reader | 18 | 04-25-2014 04:39 AM |
Touch .kepub.epub | davidfor | Kobo Reader | 233 | 01-12-2014 08:15 AM |
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! | the_m | Kobo Reader | 4 | 01-24-2013 10:01 PM |
Glo KePub vs ePub | Big McLargeHuge | Kobo Reader | 11 | 11-16-2012 08:10 PM |