03-23-2015, 07:56 AM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Mar 2015
Device: Aura HD
|
patch top margin ?
I have got an Aura HD, and unfortunately the top part of the screen is now no more functional (drop from 20cm on the floor, am I unlucky or is Aura HD fragile ?). It means that approx 1.5cm on the upper part of the screen does not work properly (line ...). I want to keep the e-reader and do not throw it to the garbage. So I used Calibre in order to put an additional margin (70 pixels) at the top and I use the patch developped to reduce greatly the bottom margin, in order to get maximum height for the text. It works. But I am wondering if I can add some lines in the patch or an additionnal patch in order to add a top margin, thus I would not need to reformat all my epub books ?
Thanks in advance |
03-23-2015, 10:57 AM | #2 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Both I'd say. All current eink readers are fragile.
Quote:
patch_name = `ePub fixed/adjustable top/bottom margins` should do the trick. You'll need to uncomment the replace_string line in the section: Code:
# Optional replacement value: Uncomment for a fixed top margin size in px, # default 25px. Replacement value is margin size, two digits separated by \0 # (Leave commented out for an adjustable top margin.) #replace_string = C99F1E, `%\01`, `2\05` |
|
Advert | |
|
03-23-2015, 01:29 PM | #3 |
Junior Member
Posts: 8
Karma: 10
Join Date: Mar 2015
Device: Aura HD
|
I tested the pacth, there is no error but it doesn't change the top margin, even if I increased it up to 99 pixels ... Any other idea ?
|
03-23-2015, 01:48 PM | #4 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Code:
replace_string = C99F1E, `%\01`, `2\05` Code:
replace_string = C99F1E, `%\01\0p\0x`, `1\05\0m\0m` |
|
03-23-2015, 03:30 PM | #5 |
Junior Member
Posts: 8
Karma: 10
Join Date: Mar 2015
Device: Aura HD
|
It works !!! cool, thank you very much !
|
Advert | |
|
Tags |
aurahd, patch, top margin |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Top-margin (bottom-margin?) for Kobo? | Notjohn | Sigil | 14 | 02-28-2015 06:43 AM |
CSS: margin-top and margin | Leonatus | ePub | 16 | 06-16-2014 04:29 AM |
Adjustable top/bottom margin patch testing | GeoffR | Kobo Developer's Corner | 19 | 06-15-2014 05:30 PM |
CSS margin instead of margin-top, etc. | icallaci | Conversion | 24 | 10-19-2013 09:52 AM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 06:58 AM |