09-26-2020, 10:35 PM | #16 | |
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Quote:
|
|
09-27-2020, 08:32 AM | #17 |
Grand Sorcerer
Posts: 6,394
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I have a "small" problem:
Spoiler:
|
Advert | |
|
09-27-2020, 08:33 AM | #18 |
Grand Sorcerer
Posts: 6,394
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
The problem is when I add different dictionaries, but as I can copy them manually, no problem at all.
|
09-27-2020, 09:10 AM | #19 |
Wizard
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
That's because I currently read the entire file into memory.
I'll fix and release that next week (if you want to do it, it's just using os.Open to open the file, the file .Stat to get the size for the tar header, then io.Copy for writing to the tar). That dictionary is quite large (638 MB). Does it have images? |
09-27-2020, 12:08 PM | #20 |
Wizard
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
|
Advert | |
|
09-27-2020, 01:33 PM | #21 | |
Grand Sorcerer
Posts: 6,394
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
09-28-2020, 10:57 AM | #22 |
Wizard
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
Is there something we can do about the (ugly) imbalanced header/footer spacing? I've already enabled the Reduce new header/footer height patch, but there is still a lot of space left at the bottom. Attached are images comparing the same page in firmware 4.9.x and 4.24.15676 in a (real) kepub. I much prefer the 4.9.x layout where there is a little more space at the top and almost none at the bottom. 4.24.x layout is the other way around, which just feels upside down for me.
Additionally, strangely, some pages seem to render 26 lines while others render 27. It doesn't seem to be a widow/orphan thing, because the page with 26 lines ends with a single line from a new paragraph... ?! Any ideas? Thanks EDIT: Sorry for the messy pics, I haven't got screenshots enabled Last edited by Mrs_Often; 09-28-2020 at 11:02 AM. |
09-28-2020, 11:19 AM | #23 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Mrs_Often: This may not actually be relevant, because I don't use the footer & header *at all*, but see my notes on a possibly related subject here.
NOTE: I haven't actually *read* in Nickel in quite a while, so this may be somewhat outdated. |
09-28-2020, 11:37 AM | #24 | |
Resident Curmudgeon
Posts: 76,510
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I know what's going on in the middle and right photos. In the middle, the is not enough space between the last line and the footer to add another line. So that space will not be the same as the header where the top line starts at the same place. The one on the right is the old widows and orphans issue. There is patch or a configuration (in the .conf file0 option. But, some eBooks do specify widows and orphans of 2 and the only way to fix that is to edit the CSS as long as the eBook has no DRM. |
|
09-28-2020, 11:58 AM | #25 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
@geek1011 has a nifty demo tool for looking at the effects of some of these patches. I'll post a link in a minute when I find it. |
|
09-28-2020, 12:00 PM | #26 | |||
Wizard
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
Thank you both for your quick replies!
Quote:
Quote:
Quote:
The book in question is a real kepub synced to/from Kobo, so I don't think I can change the CSS. |
|||
09-28-2020, 12:02 PM | #27 | |||
Wizard
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
Quote:
Quote:
Quote:
|
|||
09-28-2020, 12:08 PM | #28 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@Mrs_Often, Here's the link.
Perhaps, what I said earlier was a bit misleading. You can have both patches enabled simultaneously, but the patch Reduce top/bottom page spacer effects are visible when the header and/or footer is disabled. Last edited by jackie_w; 09-28-2020 at 12:12 PM. |
09-28-2020, 02:34 PM | #29 | ||
Wizard
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
Quote:
Quote:
But if I can't get used to the unbalanced text distance from the header/footer I might just have to go back to 4.9.x after all*. Poo. I'll wait to decide until geek1011 decides/judges the two requested patches (Discover tab -> Pocket tab; frontlight ≥ 1%) though. Those could just about convince me to stay (Although I do spend more time reading than on the home screen... hmmm ) *Rather off topic by now, but does anyone know if I can do that safely without resetting first? Sideloading 4.24.x over 4.9.x didn't go too smoothly: the update worked fine, but then I couldn't open the library. Whenever I tried to open it (with or without patches on), the ereader just froze for several minutes and then restarted eventually. (The database was not corrupt, according to Kobo plugin in Calibre.) I had to go back to 4.9.x and properly update via WiFi before it worked. |
||
09-28-2020, 05:16 PM | #30 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
It will also happen if the book's CSS styling for its standard paragraph has a non-zero top margin (however small). Compare the vertical gap between - lines 1 and 2 of the same paragraph - the last line of one paragraph and the first line of the next paragraph If they're different then the number of visible lines-per-page will be more on a page containing just one very long paragraph versus a page full of conversational dialogue with a lot of short paragraphs. The first line of every page always starts in exactly the same place but the last line on each page is going to vary in the scenario I outlined above. To compensate you might want to reduce the height even further in the Reduce new header/footer height patch. What values are you currently using and for which device? |
|
Tags |
kobopatch, patch, patch32lsb, patches, patching |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.13.1 | GeoffR | Kobo Developer's Corner | 56 | 07-01-2016 10:59 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 04:40 AM |
Instructions for patching firmware 3.16.0 | GeoffR | Kobo Developer's Corner | 74 | 08-12-2015 03:12 PM |
Instructions for patching firmware 3.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 06:14 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 11:06 AM |