01-06-2015, 06:43 PM | #106 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
If you want the top margin 25px and bottom margin zero, just enable the patch and don't change anything else, the example already sets the margin to 25px.
But in general: 1. Select one of the alternatives by uncommenting one and commenting out the other, but don't edit these lines otherwise. 2. Set the margin size by changing the replacement value in the last line of the patch. The margin size you set in the last line applies to both alternatives. The example changes the initial value from 10px to 25px. Last edited by GeoffR; 01-06-2015 at 06:45 PM. Reason: spelling |
01-06-2015, 08:42 PM | #107 | |
Resident Curmudgeon
Posts: 76,310
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
replace_string = C99BAC, `1\x000`, `0\x000` |
|
Advert | |
|
01-06-2015, 08:49 PM | #108 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
There is no default top @page margin in the unpatched firmware. The small top margin you see with epubs in normal reading mode (I see 15px on my Glo) doesn't seem to be set via the stylesheet, I think it is either a spacing widget, or a reduction in the viewport. Any @page margin size is in addition to that built-in margin.
|
01-06-2015, 08:59 PM | #109 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Improved `ePub fixed/adjustable top/bottom margins` patch.
I have a new patch that replaces both the `ePub adjustable top/bottom margin` and `ePub fixed top/bottom margin` patches.
With this patch you can choose the top and bottom @page margin behaviour independently. E.g. you can choose an adjustable top margin with a fixed bottom margin of custom size, or both margins adjustable, or both margins of different fixed sizes, etc. Spoiler:
Last edited by GeoffR; 01-06-2015 at 09:09 PM. Reason: spelling |
01-07-2015, 10:44 AM | #110 | |
Guru
Posts: 794
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Quote:
|
|
Advert | |
|
01-08-2015, 07:14 PM | #111 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Sep 2014
Device: Kobo Aura HD
|
Quote:
Thanks for all you do for us. |
|
01-09-2015, 10:23 AM | #112 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2015
Device: Kobo H20
|
Hi,
I'd also like to thank you for your work! This patcher makes my KoboH2O experience way more joyful. I may have overlooked it, but is there a patch/setting to disable the header on (sideloaded) kepubs and to keep the footer displayed? I like to have the number of pages to the next chapter shown to me, which does not seem to be possible with the epub-engine. King regards, VR |
01-09-2015, 09:09 PM | #113 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
There used to be a ShowPageHeader feature setting that could be added to the device's .conf file, but it doesn't work with the current firmware, and anyway it only removed the title, the big gap at the top of the page remained. I could probably make a patch to do something similar, i.e. one that just makes the title invisible without changing the size of the header, but I guess that is not what you want. |
|
01-09-2015, 09:21 PM | #114 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
From the discussion in this thread it appears that the `Fix kepub side bearing font cut-off bug (synced kepubs only)` patch won't work with some synced kepubs.
The kepubs affected are those synced kepubs which don't have an epub2 download option (i.e. ones where the publisher has supplied Kobo with an epub3 instead of an epub2). Using the `Fix kepub side bearing font cut-off bug (all kepubs)` version of the patch instead will work, but there might be some side effects on the layout of some of those kepubs. |
01-10-2015, 02:57 AM | #115 | |
how YOU doin?
Posts: 1,100
Karma: 7371047
Join Date: Feb 2009
Location: India
Device: Kindle Keyboard, iPad Pro 10.5”, Kobo Aura H2O, Kobo Libra 2
|
Quote:
|
|
01-10-2015, 03:02 AM | #116 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Is this with firmware 3.12.0? When I tried it on my Glo but it didn't have any effect.
|
01-10-2015, 06:17 AM | #117 |
how YOU doin?
Posts: 1,100
Karma: 7371047
Join Date: Feb 2009
Location: India
Device: Kindle Keyboard, iPad Pro 10.5”, Kobo Aura H2O, Kobo Libra 2
|
|
01-10-2015, 06:36 AM | #118 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2015
Device: Kobo H20
|
Quote:
I am primarily interested to get the number of pages to the next chapter in some quick way, which is displayed in the menu on kepubs, so the full screen reading mode on kepubs would be perfectly fine for me. However, I'm currently dealing with 'sliced' text at the bottom and top of my pages, which is why I'm settling with regular epubs for now. Some pixel of the last line of a page are being displayed, the rest of the line is being cut and displayed on the top of the next page. I will try to add more padding with the `Fix kepub side bearing font cut-off bug (all kepubs, padding all sides)` and see if this fixes the problem, when I find the time. Kind regards, VR |
|
01-10-2015, 06:40 AM | #119 |
how YOU doin?
Posts: 1,100
Karma: 7371047
Join Date: Feb 2009
Location: India
Device: Kindle Keyboard, iPad Pro 10.5”, Kobo Aura H2O, Kobo Libra 2
|
I had that when I enabled the setting to disable header. When I closed the current book and opened up another one, the sliced text disappeared and hasn't been back since then.
|
01-10-2015, 09:01 AM | #120 |
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
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |
Instructions for patching firmware 3.8.0 | GeoffR | Kobo Developer's Corner | 92 | 10-22-2014 07:22 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 10:06 AM |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |