![]() |
#121 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 710
Karma: 2483502
Join Date: Jul 2011
Device: Kobo Aura
|
I've seen the long-paragraph bug (which has apparently been fixed), but I've never encountered an instance where only a single line is moved to the next page like in your example. Hard to say what's going on. I get the majority of my epubs from Feedbooks.com. I don't know if that makes a difference.
|
![]() |
![]() |
![]() |
#122 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Not quite right. 0 is not a positive integer.
If you want to turn widows and orphans off, set them to 1 -- it's a bit hard to leave less than 1 line at the top/bottom of a page. CSS Level 3 makes this clear -- "Only positive integers are allowed as values of ‘orphans’ and ‘widows’. Negative values and zero are invalid and must cause the declaration to be ignored." From a discussion in another forum, it appears that for one ereader if the declaration is ignored, the default value (2) will be used. Regards, David Last edited by DNSB; 07-15-2014 at 10:12 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#123 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 83
Karma: 674
Join Date: Oct 2010
Device: Kindle Oasis 2017, Kindle Voyage, Kindle Paperwhite, Kindle Keyboard
|
I see that this update did not fix the kepub cut off F's and italics on the lowest margin settings.
|
![]() |
![]() |
![]() |
#124 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I did some tests with epub in 3.3.0 and 3.5.0 (https://wiki.mobileread.com/wiki/EPub_Reader_Test), I noticed:
- Even with 3.3.0, I didn't see the long paragraph bug in the sample text. Maybe I'd need longer paragraphs, but as noted that was enough to trigger the bug in the Orizon. - Auto margins work! It should now be possible to center blocks of text or tables. - The bug with low-bitdepth PNGs seems fixed! - Missing characters do not show as a question mark or rectangle, instead they show blank or as some other character, which may be more confusing. - Left-to-right text works! At least in Hebrew, Arabic ligatures are probably more demanding. |
![]() |
![]() |
![]() |
#125 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,534
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
Advert | |
|
![]() |
#126 | ||||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
The worst case is when your paragraph has n (let's say 3 as the commonest example) lines and widows (2) + orphans (2) = n+1 (4). Then, of course, there's no way that paragraph can be split at the end of a page. And you can get n-1 (2) blank lines at the bottom in the worst scenario. Or, as you can have more available space it could nearly look like having n (3) blank lines. I mean imagine that the available space you have at the bottom is enough for 2.9 lines... But, if the space looks like n+1 lines (4), then it's BUGGY. (Or as I posted if in a 5 line paragraph, there's a blank space of more than 1 line and 3 lines in the second page). Quote:
It's a matter of personal preferences. But the discussion here is that RMSDK is BUGGY when applying widows and orphans despite if you like/use/avoid/despise or not that property/feature. And it shouldn't... (Exactly as, IMO, ACCESS shouldn't have directly killed it. Kobo could have set it to 1 as default, if they thought it was the prettiest setting, but they should have left the final decision to the ebook publishers or users). Quote:
Quote:
![]() Last edited by arspr; 07-15-2014 at 03:58 PM. Reason: Wrong math!!! |
||||
![]() |
![]() |
![]() |
#127 |
Bookaholic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
|
![]() |
![]() |
![]() |
#128 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
I've just got used to it and ignore it, but it is a bug nevertheless... Last edited by arspr; 07-15-2014 at 10:59 AM. |
|
![]() |
![]() |
![]() |
#129 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Yep, i also don't like those cut off characters: all fonts with a negative right side baring (rsb), of which the "f" is probably the most common.
I don't know if this works for kepubs but it works for regular epubs. Do not use the margin property to set page margins, use the padding property instead. This won't cut off characters with negative side barings. CSS Code:
Do not use: @page {margin:0;} p,div {margin:0;padding:0;} /* optional / necessery if all default values are set in the body tag */ div.page-margins { margin-left:2%; margin-right:2%; } Use this @page {margin:0;} p,div {margin:0;padding:0;} /* optional / necessery if all default values are set in the body tag */ div.page-margins { padding-left:2%; padding-right:2%; } Code:
<body> <div class="page-margins"> … </div> </body> Last edited by Anak; 07-15-2014 at 02:07 PM. |
![]() |
![]() |
![]() |
#130 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
That's what I call a hack...
Pretty similar to the 99% one I use for covers... (Thread and post here) Nevertheless I'll probably test it for my kepubs. Thanks. OTOH, have you tried using 1%? Why do you insert a div tag? Why don't you set it directly in body? |
![]() |
![]() |
![]() |
#131 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,786
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#132 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,786
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#133 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,534
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#134 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
We're not talking about a binary on/off setting; W&O isn't something that can somehow not exist. The default value is 2: "Allow two lines, but no fewer, to exist on a page by themselves. If the affected paragraph contains fewer than two lines, put them at the bottom of the first page." The lowest value that makes any sense is 1: "Allow one line, but no fewer, to exist on a page by itself. If the affected paragraph contains fewer than one line, put it at the bottom of the first page." Since the paragraph cannot contain less than one line, the second sentence (which administers the W&O setting) is effectively ignored; the paragraph falls wherever there's room for it. How would zero work; what would it do? How would you write that instruction, as I did with 1 and 2 above? Explain this to me, please. Quote:
"Works" applies to a specific combination of code, rendering engine, device, and (in some cases) subjective opinion. ADE, as a renderer, is expected to handle all valid code - but it's also expected to tolerate some flawed code, because many ebooks fall short of the "valid" bar...such as, say, by setting W&O to zero. In that case, the proper thing for ADE to do is ignore the invalid value, but it can do that in many ways. One of them, which is what it sounds like is happening, is to treat it as 1 instead. Another equally "correct" way of handling that error would be to completely ignore the bad line, thus leaving the default value of 2 in place. In a particularly drastic case, equally "correct" and defensible, but which most people would regard as a bad solution, it could treat 0 as "maximum" in the same way that some 8-bit software treats 0 as 256; since 0 is not allowed, the coder "obviously" intended to indicate the maximum, which there's no other way to do. (In the 8-bit example, this changes the value's range from 0-255 to 1-256.) Of course, that opens the question of what "maximum" means - maximum number of lines that can be shown on one page in the current configuration, highest value the rendering engine can handle, or what? |
||
![]() |
![]() |
![]() |
#135 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
Quote:
Quote:
Quote:
Now, with respect to display bugs, line boxes are also relevant. In its simplest form (but this is VERY simplified; see section 10.8 for the nitty-gritty), the height of a line box is the same as the absolute line-height for the tallest text within that line. Technically speaking, W&O calculations apply to line boxes, so anything that affects those affects W&O display. Thus, if your font is 20px tall and your line-height is 1.2, the line box is (at least, assuming no weirdness) 24px tall. If the space at the bottom of a page is only 47px, then regardless of how loudly someone argues that there's plenty of room for two lines there, it's just not true. Sure, it's picky - but picky is what computers do. It's their job. When we tell them to be picky about displaying text...well, you know. They'll be ruthlessly picky, in ways that a person applying judgment might not be. |
||||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo Firmware 2.6.1 | MDK | Kobo Reader | 515 | 10-22-2013 06:40 PM |
Kobo Firmware 2.4.0 | kaikara | Kobo Reader | 253 | 04-15-2013 10:55 AM |
Glo Kobo Firmware 2.3.1 | danskmacabre | Kobo Reader | 304 | 02-07-2013 01:52 AM |
Touch Kobo Touch Firmware 1.9.12 | MDK | Kobo Reader | 172 | 02-15-2012 02:56 AM |
kobo firmware | The Terminator | Kobo Reader | 1 | 12-13-2010 06:26 PM |