![]() |
#61 |
my parent's oops...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 1477570
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->iOS/L2
|
Playing around with the patch file on my H2O, I have settled on the following footer modification:
Code:
replace_string = DBDC0D, `min-height: 70px;`, `min-height: 40px;` replace_string = DBDC20, `max-height: 70px;`, `max-height: 40px;` replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 040;` replace_string = DBDC58, `font-size: 16px;`, `font-size: 26px;` replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom:12px;` replace_string = DBDC80, `margin-top: 0px;`, `margin-top:-5px;` ![]() I had to increase the padding-bottom value to 12 (removed space to make sure exact character length remained the same) to make sure that the "g" of the "Page" read footer wasn't cut off the bottom of the screen. To get the most lines I could per page at my font settings, I used a smaller height of 40 and a negative margin-top (again ensuring that the exact character length of the code remained the same). I have also used font-family Georgia for the default footer font. Now, I am curious, can we specify different font-family from Avenir, Amasis, and Georgia for the footer? How about using a side-loaded font for the footer? Has anyone tried this? Last edited by slantybard; 10-27-2014 at 08:55 PM. Reason: tweaked code again + added screenshot |
![]() |
![]() |
![]() |
#62 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
In the previous firmware version Kobo used footerMargin values of 15 for Glo/Aura, 20 for AuraHD/H2O and 40 for other devices. For this version Kobo changed the values to 170 for AuraHD/H2O and 105 for other devices. The example patches just preserve the values set by Kobo in case they are important for something.
It should be okay to use other fonts for the footer, but if the font has a long name then you will need to edit the first replace_string in the patch to make it fit. (those of you familliar with css might want to delete all the examples and just work with the first replace_string line by itself anyway.) I suggest Avenir or Georgia because these fonts are used in other places in the UI, so they are probably already in the device's memory, but you will have to experiment and see what else works. |
![]() |
![]() |
Advert | |
|
![]() |
#63 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
With my dislectic problem,I explained before I see pages or posts like pictures,it makes me read at a big speed. But, I have problems with long strings of numbers, I have to device them into blocks of 2,same with telephone numbers,social security numbers,bank accounts,so I will never manage to edit those long strings ![]() That is why I like the finetune things you made, because I now know how to handle, but the things like min-height and max-height interact with the long first replacestring ?? Because if I ever need to change the big string, I have always ask you for your help.. |
|
![]() |
![]() |
![]() |
#64 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,107
Karma: 135621627
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The min-height, etc. strings are also in the long string. I like the way that GeoffR split out the bits of that string that are being replaced since it is easier for most people to work with the shorter strings. In my opinion, it is also easier to notice errors such as a replacement string that is too long with the short strings. For those who have multiple devices, it makes keeping changing setups easier -- just remove the #'s from the one you want to use and add them to the ones you don't want to use.
Last edited by DNSB; 10-28-2014 at 12:38 PM. |
![]() |
![]() |
![]() |
#65 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2013
Device: Kobo Glo
|
Thank you very much guys, always a great job
Last edited by gisozar; 10-28-2014 at 03:18 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#66 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,137
Karma: 16059044
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
moved
Last edited by jackie_w; 10-28-2014 at 03:23 PM. Reason: Poster moved their question to a different thread |
![]() |
![]() |
![]() |
#67 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2013
Device: Kobo Glo
|
Quote:
sorry again for the OT |
|
![]() |
![]() |
![]() |
#68 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
As long as I don't have to change things in the long string myself i can handle it,if I have to make changes as per device in that long string then I can forget it, thanks for making this clear for me. Last edited by Nick_1964; 10-28-2014 at 04:01 PM. |
|
![]() |
![]() |
![]() |
#69 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa, Samsung Galaxy Note 8, Galaxy Tab S2 8.0
|
Quote:
|
|
![]() |
![]() |
![]() |
#70 | |
my parent's oops...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 1477570
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->iOS/L2
|
Quote:
Last edited by slantybard; 10-28-2014 at 11:35 PM. Reason: added screenshots of larger text. |
|
![]() |
![]() |
![]() |
#71 | ||
my parent's oops...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 1477570
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->iOS/L2
|
Thanks for the thoughts about changing the footer font. I have now done the following:
Custom footer code for H2O: Quote:
Quote:
To get the font of the footer to match my custom side loaded font, I changed the custom font metrics to "Delima" (you need to use a typography program to do this) and dropped the fake "Delima" fonts into the fonts folder on my Aura H2O. Now, the H2O thinks my custom font is the system font Delima. I also changed the font-family in the footer string in the libnickel patch file to Delima and then patched as per normal. **I had to refresh the fonts on my device for this to show up properly - I did this by changing the font in the book I was reading** Below is the screenshot showing the results where both the book text and the footer text are the same custom side-loaded font. This also worked at larger sizes. A big thanks to all those who helped in answering my questions AND for making it possible to patch my device! ![]() |
||
![]() |
![]() |
![]() |
#72 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa, Samsung Galaxy Note 8, Galaxy Tab S2 8.0
|
Thank you! I'm changing my patch settings to these.
|
![]() |
![]() |
![]() |
#73 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
Karma: 19838
Join Date: Sep 2013
Location: UK
Device: Kobo aura
|
This new version is driving me mad! On my Aura before the upgrade I had the footer settings perfect but I cannot do any better than the attached now. Not terrible but there are still a good 2 or 3 wasted lines there.
# Example for Glo/Aura: replace_string = DBDC0D, `min-height: 70px;`, `min-height: 40px;` replace_string = DBDC20, `max-height: 70px;`, `max-height: 40px;` replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 040;` replace_string = DBDC58, `font-size: 16px;`, `font-size: 26px;` replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom:13px;` replace_string = DBDC80, `margin-top: 0px;`, `margin-top:-5px;` Also anybody know how to run the patcher on a mac? No joy so far so I am having to use my work PC |
![]() |
![]() |
![]() |
#74 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
Code:
replace_string = DBDC0D, `min-height: 70px;`, `min-height: 40px;` replace_string = DBDC20, `max-height: 70px;`, `max-height: 40px;` replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 105;` replace_string = DBDC58, `font-size: 16px;`, `font-size: 28px;` replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom: 7px;` replace_string = DBDC80, `margin-top: 0px;`, `margin-top:10px;` It seems like the first 2 strings define how big the footer is, but if the total of the other exeedes the min or max hight it wents totally out of balance. At me, when font size,padding bottom and marging top are not "around" the min or max height it wents out of balance. When I remove the padding bottom value, or change the margin-top, my logics say, there is more space within the footer margings, but when I do that, the text is 3 of 4 lines higher and the footer size is bigger (more blanc lines between txt and footer) so I don't understand exactly what happens but with above patcher my page is perfect. (I do have to go after patch into the margins menu and move some sliders so the page is rendered again,or else the footer is under the bezel) I hope this works okay for you. |
|
![]() |
![]() |
![]() |
#75 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,040
Karma: 71733976
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Instructions and the latest Firmware Versions | mitchwah | Ectaco jetBook | 113 | 10-24-2023 10:02 PM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 08:28 AM |
Instructions for patching firmware 3.8.0 | GeoffR | Kobo Developer's Corner | 92 | 10-22-2014 08:22 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 |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 02:23 PM |