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 08-10-2015, 10:14 AM   #16
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,771
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 Rockin View Post
I believe you really want {orphans: 1; widows: 1} as the zero would be undefined behavior. Zeros don't make sense if you read the definition of orphans and widows.
In a binary world, 0 means off. So 1 means one line and 0 means off which means the same thing in this case.
JSWolf is offline   Reply With Quote
Old 08-10-2015, 11:04 AM   #17
IanD
Enthusiast
IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.IanD ought to be getting tired of karma fortunes by now.
 
IanD's Avatar
 
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.
IanD is offline   Reply With Quote
Advert
Old 08-10-2015, 01:33 PM   #18
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,280
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
In a binary world, 0 means off. So 1 means one line and 0 means off which means the same thing in this case.
That depends on the way the software handles that setting. I've seen at least one case where setting widows and orphans to 0 reverted to the default 3.
DNSB is offline   Reply With Quote
Old 08-10-2015, 02:20 PM   #19
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,945
Karma: 70880793
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by JSWolf View Post
In a binary world, 0 means off. So 1 means one line and 0 means off which means the same thing in this case.
Could you provide a link (for the definition of "binary world")? This description of binary sounds more famaliar (to me):

https://en.m.wikipedia.org/wiki/Binary_number
John F is offline   Reply With Quote
Old 08-10-2015, 04:03 PM   #20
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
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.
Ripplinger is offline   Reply With Quote
Advert
Old 08-10-2015, 05:11 PM   #21
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,771
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 DNSB View Post
That depends on the way the software handles that setting. I've seen at least one case where setting widows and orphans to 0 reverted to the default 3.
What program did that bit of stupidity?
JSWolf is offline   Reply With Quote
Old 08-10-2015, 07:50 PM   #22
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
In a binary world, 0 means off. So 1 means one line and 0 means off which means the same thing in this case.
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.
davidfor is offline   Reply With Quote
Old 08-10-2015, 10:52 PM   #23
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,280
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
In a binary world, 0 means off. So 1 means one line and 0 means off which means the same thing in this case.
Stepping onto soapbox....

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:
13.3.2 Breaks inside elements: 'orphans', 'widows'

'orphans'
Value: <integer> | inherit
Initial: 2
Applies to: block container elements
Inherited: yes
Percentages: N/A
Media: visual, paged
Computed value: as specified

'widows'
Value: <integer> | inherit
Initial: 2
Applies to: block container elements
Inherited: yes
Percentages: N/A
Media: visual, paged
Computed value: as specified

The 'orphans' property specifies the minimum number of lines in a block container that must be left at the bottom of a page. The 'widows' property specifies the minimum number of lines in a block container that must be left at the top of a page. Examples of how they are used to control page breaks are given below.

Only positive values are allowed.
Also note the following from the CSS2/3 specification:

Quote:
if any value is considered invalid (as unsupported values must be), CSS requires that the entire declaration be ignored.
As has been pointed out ad nausem, widows and orphans must be set to a positive integer which 0, by definition, is not. At least, the definitions I've seen of a positive integer states "Positive integers refers to all whole number greater than zero." or an equivalent. So setting widows or orphans to 0 should result in the entire declaration being ignored which means the code should fall back to the default 2 value.

Off the soapbox and back to our regular babbling....

Quote:
Originally Posted by JSWolf View Post
What program did that bit of stupidity?
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?
DNSB is offline   Reply With Quote
Old 08-11-2015, 02:55 AM   #24
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
In a binary world, 0 means off. So 1 means one line and 0 means off which means the same thing in this case.
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.
Jellby is offline   Reply With Quote
Old 08-11-2015, 08:53 AM   #25
robko
Wizard
robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.
 
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.
robko is offline   Reply With Quote
Old 08-11-2015, 12:45 PM   #26
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,532
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by robko View Post
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.
What fun is that? It's the same as the neverending linux vs Windows threads.
PeterT is offline   Reply With Quote
Old 08-11-2015, 03:16 PM   #27
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,280
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by robko View Post
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.
Spoilsport! Taking all the fun out of my day.
DNSB is offline   Reply With Quote
Old 08-11-2015, 04:53 PM   #28
robko
Wizard
robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.
 
Posts: 2,454
Karma: 5469320
Join Date: Jul 2010
Device: Kobo
Quote:
Originally Posted by DNSB View Post
Spoilsport! Taking all the fun out of my day.
Yes I am on this one . I just don't want to have to wade through a rehash of what was thoroughly previously.
robko is offline   Reply With Quote
Old 08-11-2015, 05:10 PM   #29
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Ripplinger View Post
So it's down to something I forgot to mention in the above post. It's livable, just not preferable for me, where unless you have justification off, kepubs override all centered text and align everything left.
If you're using the Kobo Patcher one of the kepub patches can fix that for you.
Spoiler:
Code:
<Patch>
patch_name = `Un-Force user text-align in div,p tags in KePubs`
patch_enable = `yes`
# Multi-version patch: 3.3.0 - 3.16.0+
#
# This patch allows the text alignment set by the publisher in the kepub
# stylesheet to override the alignment selected by the reader from the device.
#
#     div, p { text-align: %1 !important; }
# --> body   { text-align: %1 !important; }
#
find_base_address = `d\0i\0v\0,\0 \0p\0 \0{\0 \0t\0e\0x\0t\0-\0a\0l\0i\0g\0n\0:\0 \0%\01\0 \0!\0i\0m\0p\0o\0r\0t\0a\0n\0t\0;\0 \0}`
replace_string = 0000, `d\0i\0v\0,\0 \0p`, `b\0o\0d\0y\0 \0 `
</Patch>

This should make text-alignment overriding for kepubs work the same as epubs.
jackie_w is offline   Reply With Quote
Old 08-11-2015, 07:56 PM   #30
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
Quote:
Originally Posted by jackie_w View Post
If you're using the Kobo Patcher one of the kepub patches can fix that for you.
This should make text-alignment overriding for kepubs work the same as epubs.
I do use the Kobo Patcher, I'll have to enable this one and give it a try. Thanks for the info.

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.
Ripplinger is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 05:12 PM.


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