Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-23-2015, 07:56 AM   #1
sautecambre
Junior Member
sautecambre began at the beginning.
 
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
sautecambre is offline   Reply With Quote
Old 03-23-2015, 10:57 AM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by sautecambre View Post
... am I unlucky or is Aura HD fragile ?
Both I'd say. All current eink readers are fragile.
Quote:
Originally Posted by sautecambre View Post
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 ?
I think the patch labelled
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`
and experiment if the default of 25px is not enough.
jackie_w is offline   Reply With Quote
Old 03-23-2015, 01:29 PM   #3
sautecambre
Junior Member
sautecambre began at the beginning.
 
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 ?
sautecambre is offline   Reply With Quote
Old 03-23-2015, 01:48 PM   #4
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by sautecambre View Post
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 ?
On the Aura HD 99px is less than 1cm. You could uncomment the two optional replace_string lines in the `ePub fixed/adjustable top/bottom margins` patch but change the first one from:
Code:
replace_string = C99F1E, `%\01`, `2\05`
to:
Code:
replace_string = C99F1E, `%\01\0p\0x`, `1\05\0m\0m`
to get a top margin of 15mm and bottom margin of zero. (this is for firmware 3.12.1, but the same change will work in later versions too.)
GeoffR is offline   Reply With Quote
Old 03-23-2015, 03:30 PM   #5
sautecambre
Junior Member
sautecambre began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2015
Device: Aura HD
It works !!! cool, thank you very much !
sautecambre is offline   Reply With Quote
Reply

Tags
aurahd, patch, top margin


Forum Jump

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


All times are GMT -4. The time now is 04:37 PM.


MobileRead.com is a privately owned, operated and funded community.