![]() |
#31 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,773
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#32 |
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Jan 2021
Location: Italy
Device: Kobo Libra 2, Kindle Paperwhite (1st gen)
|
Sorry for the delay in the answer, I left for a trip on the 30th and things have been a bit hectic. I flashed your file and the results were the same, so it seems the problem is a device one.
I'll be away for a bit without a PC to make tests, but when I get back I intend to try and downgrade my Libra 2 (if it's possible) to see if the patching works with older versions. In the meantime, thanks for the help! |
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,773
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#34 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2022
Device: Kobo Libra 2
|
I tried the "Un-Force user text-align in div,p tags in KePubs" patch, but after enabling that I can't seem to change the alignment anymore in any of the books I own, they just remain the default publisher alignment and won't change. Is that a known issue?
|
![]() |
![]() |
![]() |
#35 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Users who *don't* enable this patch shouldn't be surprised when kepub text which the publisher intended to be centre/right-justified no longer is when Kobo Justification is set to anything other than 'Off'. Users who *do* enable it shouldn't be surprised when the Kobo Justification selection has no effect, because, now, the publisher alignment is no longer being overridden as aggressively as it was without the patch. |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
Hi,
I'm trying to create a kobopatch.yaml file but I don't understand how to replace customizable strings like in this example: Code:
Change Wikipedia search language: - Enabled: yes - Description: | The patch set the search language in Wikipedia. Replace the "en" (in both the replace_string lines) to language code you want. For example English is "en" (set as default), for German is "de", for Russian is "ru". - FindReplaceString: Find: "\0https://%1.m.wikipedia.org/wiki/Special:Search\0" Replace: "\0https://it.m.wikipedia.org/wiki/Special:Search\0" - FindReplaceString: Find: "\0https://%1.wikipedia.org/wiki/Special:Search\0" Replace: "\0https://it.wikipedia.org/wiki/Special:Search\0" |
![]() |
![]() |
![]() |
#37 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,773
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#38 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
Well, that would make kobopatch file totally unhelpful. If I still need to change one of the files, there is no value in using this mechanism.
However I tried the below format and I didn't get any error from the patching process. Are you sure it is not accepted? Code:
src/libnickel.so.1.0.0.yaml: My 24 line spacing values: yes Custom font sizes: yes Set KePub hyphenation: yes Change Wikipedia search language: yes - FindReplaceString: Find: "\0https://%1.m.wikipedia.org/wiki/Special:Search\0" Replace: "\0https://it.m.wikipedia.org/wiki/Special:Search\0" - FindReplaceString: Find: "\0https://%1.wikipedia.org/wiki/Special:Search\0" Replace: "\0https://it.wikipedia.org/wiki/Special:Search\0" Always show confirmation dialog before upgrading: yes Unify font sizes: yes |
![]() |
![]() |
![]() |
#39 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
My fault, I was in the wrong folder. I got this error:
Error: could not load config file: error reading kobopatch.yaml: yaml: line 38: mapping values are not allowed in this context |
![]() |
![]() |
![]() |
#40 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,773
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I do is put in a comment that I've customized a patch. So I know to go look at the previous version and the new version to put in the customization in the new patches.
The problem is that even if you were able to put the customized patches in the kobopatch.yaml file, you could still have to redo it if the patch needs to be changed for the latest firmware. |
![]() |
![]() |
![]() |
#41 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
When a new fw is released you can then update the main libnickel.so.1.0.0.yaml file with the new version without worrying about your custom values being overwritten. The only change you'll need to make to kobopatch.yaml is the 2 lines at the top containing fw version number. ... and, just in case you were wondering, you can also use the same approach for custom nickel.yaml patches. Very few nickel patches contain hex offsets, so can often survive, unchanged, for many firmware releases. Some of mine haven't changed for years. Last edited by jackie_w; 08-07-2022 at 05:33 PM. |
|
![]() |
![]() |
![]() |
#42 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
|
Great solution! Thanks!
|
![]() |
![]() |
![]() |
#43 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 214
Karma: 1228988
Join Date: Sep 2019
Location: The Netherlands
Device: Kindle Paperwhite 4, Kobo Libra 2
|
Just wondering if I'm doing something wrong or if this patch is no longer working because of Kobo.
I would like my footer font to change to a sideloaded font (Exo 2). Is that at all possible? Custom header/footer captions: # Un-comment and customise ONLY ONE of the following to change header/footer font-family #- {Find: font-family: Avenir;, Replace: font-family:'Exo 2';} #- {Find: "font-family: Avenir;", Replace: "font-family:Avenir; background:transparent;"} |
![]() |
![]() |
![]() |
#44 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
You can probably switch between Georgia and Avenir in some patches, and possibly some of the CJK fonts, but that's about the limit of what still works. For your specific question, the only working method I currently know of to change the Avenir font in the GUI, is to completely replace the built-in Avenir system font with a font of your choice. You can easily use the 'files:' section of kobopatch.yaml to assist with this. However, before you do this you do need to be able to use a font editor (e.g. FontForge or ttfedit) to change the *internal* filename of your chosen font to Avenir Next. The Kobo is then fooled into thinking it's using Avenir when it's actually using your custom font. Needing to use a font editor is possibly what deters many users from trying this. If you did want to try it please be aware that it will affect the whole GUI, not just headers/footers in a book, so you need to choose the replacement font wisely. |
|
![]() |
![]() |
![]() |
#45 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 214
Karma: 1228988
Join Date: Sep 2019
Location: The Netherlands
Device: Kindle Paperwhite 4, Kobo Libra 2
|
Thank you for explaining, Jackie!
I'm not sure I want to go this far to only change the font of the footer. But I will keep it in mind. |
![]() |
![]() |
![]() |
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 06:15 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 05:35 PM |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 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 |