12-19-2018, 02:33 PM | #76 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
And, for reference, my actual setup, with @jcn363's footer-killing patch .
Code:
Dec 19 20:31:41 nickel: ( 99.991 @ 0x553010 / ui.debug) draw widget: 46 QStackedWidget QRect(0,11 1080x1429) Dec 19 20:31:41 nickel: ( 99.991 @ 0x553010 / ui.debug) ===> parent widget: AbstractMainWindow Dec 19 20:31:41 nickel: ( 100.036 @ 0x553010 / ui.debug) draw widget: 46 QFrame QRect(0,55 1080x1385) Dec 19 20:31:41 nickel: ( 100.036 @ 0x553010 / ui.debug) ===> parent widget: ReadingView Last edited by NiLuJe; 12-19-2018 at 02:36 PM. |
12-19-2018, 06:00 PM | #77 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
And remember, you are using a hack to enable a function only available by turning on a developers option. You shouldn't be to surprised when there are problems. |
|
Advert | |
|
12-19-2018, 08:48 PM | #78 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Thanks for the testing jcn363 and NiLuJe. The results make me think the blank header/booter space is not being set by directly adjusting the viewport height, and I haven't been able to find anywhere in the code where the viewport height is being calculated, which makes me think it might be done via CSS properties.
Had anyone tried changing the heights or top/bottom margin/padding of likely objects in the compressed CSS streams in nickel? One to try mught be MediumVertSpacer which has the right heights, but it is probably being used for a lot of different things. E.g. a patch to halve MediumVertSpacer height (nickel.yaml) Spoiler:
|
12-19-2018, 08:54 PM | #79 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@GeoffR: A quick glance at stuff with a 44px size (both in zlib streams and in literals) indeed yields quite a few things. Some stuff can easily be discarded as "probably not it" given the context, and I was indeed afraid what was left would be one of those spacers, which do look like they might be used in quite a few places...
I hadn't yet gone around to actually try it though, so all of this was theoretical so far . But I'll see how that behaves tomorrow, thanks for keeping at it! . EDIT: Out of curiosity, besides this example, has anyone tried any of those other ones? (Ideally so I don't spend my time testing stuff that someone already checked ). Last edited by NiLuJe; 12-19-2018 at 08:57 PM. |
12-19-2018, 09:00 PM | #80 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
The other approach I can see (correct/stop me if I'm wrong, this is way out of my wheelhouse) would be to figure out where the final computation of that ReadingView QFrame/QRect is being done, and brute-force an adjustment in there somehow. Could the offset pointed out in the logs be used to step into the memory at runtime via gdb to help figure this out? Or is this a vain effort without debug symbols?
|
Advert | |
|
12-19-2018, 09:14 PM | #81 |
Guru
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
|
|
12-19-2018, 10:13 PM | #82 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Great, that is progress then. So the questions are:
- Does it affect the footer too? (when the "Show footer" option is unticked.) - Does it affect KePub books in the same way? - Does it cause problems elsewhere in the UI? I guess the next step will be to find whereabouts in the code this particular MediumVertSpacer is being constructed, so it can be changed without affecting other places that type of spacer is used. |
12-19-2018, 10:49 PM | #83 | |||
Guru
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
|
Quote:
2. Yes 3. Not yet noticed Quote:
Quote:
Correct if I'm wrong. Last edited by Semwize; 12-19-2018 at 11:16 PM. |
|||
12-20-2018, 12:11 AM | #84 | |||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
But perhaps something has changed and @page doesn't work anymore, or maybe the patch can no longer overrides the @page margin set in the book's stylesheet? If that has happened then it would break the `ePub fixed/adjustable top/bottom margins` patch too. |
|||
12-20-2018, 12:40 AM | #85 | ||
Guru
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
|
I put 00px in the patch
Quote:
Quote:
|
||
12-20-2018, 01:29 AM | #86 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Testing ePub @page margins
Attached is a small ePub book that has a large (100px) page margin set in its stylesheet. The first page is a thin rectangle, following pages are Lorum Ipsum text. Sideload it as an ePub (don't convert to KePub)
If you don't have either of the `ePub fixed top/bottom margins` or `ePub fixed/adjustable top/bottom margins` patches enabled, then the book should display with all four page margins 100px wide (in addition to any header footer.) If you have one of the above patches enabled then the book's large page margins should be ignored and the page margins should be whatever you have set in the patch. Just interested to know if @page is still working as it did in previous firmware versions. |
12-20-2018, 01:46 AM | #87 |
Guru
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
|
Yes, patches work, remove the margin.
|
12-20-2018, 01:50 AM | #88 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
12-20-2018, 01:53 AM | #89 |
Guru
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
|
GeoffR,
first checked with disabled patch, then turned on, margin was remove. patches work |
12-20-2018, 01:58 AM | #90 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
But then I can't explain why the `ePub fixed top/bottom margins` patch doesn't increase the top margin when you changed the value from 00px to 12px. |
|
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
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 09:59 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM |
Instructions for patching firmware 3.16.0 | GeoffR | Kobo Developer's Corner | 74 | 08-12-2015 02:12 PM |
Instructions for patching firmware 3.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 05:14 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 09:22 AM |