![]() |
#241 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
I have released kobopatch v0.10.3 with a new MustMatchLength option for FindReplaceString and ReplaceString. This option will make sure the replacement string is not shorter than the original (in addition to the default check to make sure it is not longer). This is useful for CSS string replacements. The behaviour of this option (and lack thereof) is fully backwards-compatible.
I have updated the patches for 4.11.11980 to use this new option. |
![]() |
![]() |
![]() |
#242 | |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Quote:
![]() geek1011 please, could you add the error line number or the replace statement into log.txt when error trigger? Code:
validating patch file --> length of strings must match (and not be shorter) in `PROGRESIVE` Thanks in advance. |
|
![]() |
![]() |
Advert | |
|
![]() |
#243 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
As for the error message, I'll correct that in the next version (I put that check before the one for too long by accident). |
|
![]() |
![]() |
![]() |
#244 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
I have released kobopatch v0.10.4 with the changes requested by jcn363.
- Error message for MustMatchLength has been improved - Instruction numbers (basically just count the dashes) have been added to error messages |
![]() |
![]() |
![]() |
#245 | |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Quote:
![]() EDIT: Code:
validating patch file --> i256: length of strings must match (and not be shorter) in `PROGRESIVE` I need a translation/explanation. ![]() In the previous log-system was clear where has raised error. Don't you can use it? Good luck. Last edited by jcn363; 11-07-2018 at 04:30 PM. Reason: EDIT |
|
![]() |
![]() |
Advert | |
|
![]() |
#246 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#247 | |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Quote:
![]() I think the ideal will be to make verbose when error raising. If you find easiest to implement the verbose option... go ahead! Good luck. |
|
![]() |
![]() |
![]() |
#248 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I'm having a problem with FindBaseAddressString using kobopatch-apply (linux 64-bit), not sure if it is a problem with kobopatch-apply or a problem with my yaml.
I made `My 10 line spacing values` (libnickel.so.1.0.0) into a multi-version patch. Here is the patch32lsb version: Spoiler:
Here is the kobopatch yaml version: Spoiler:
The patch32lsb version applies to libnickel.so.1.0. as expecued, but kobopatch-apply gives this error message for the yaml version: Spoiler:
Last edited by GeoffR; 11-13-2018 at 08:09 PM. Reason: Fixed a mistake in first replace line of both patches |
![]() |
![]() |
![]() |
#249 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
Here is a fixed version: Spoiler:
Another thing you might want to consider is using integers for the additional offsets (i.e. the ones which aren't absolute addresses), as it makes it more readable and consistent with the newer kobopatch patches. Thanks for updating your line spacing patches (and for all the help during the early stages of kobopatch)! Also, I'm planning to make a proper site for kobopatch along with some proper documentation. Last edited by geek1011; 11-13-2018 at 08:23 PM. |
|
![]() |
![]() |
![]() |
#250 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 17
Karma: 630
Join Date: Sep 2018
Device: Kobo glo hd
|
I am sorry but I don't understand the phrase "use the overrides in kobopatch.yaml to keep your options separate". What options? What exactly does it mean?
|
![]() |
![]() |
![]() |
#251 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,466
Karma: 167847011
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The default from kobopatch.yaml: Code:
## You can put lines in the following section to override the enabled state of patches. ## The indentation matters! Each override should be indented by 4 spaces. Add to the ## section below. This section can be copy and pasted into newer patch versions to ## keep your selections. ## ## Example of how it should look: ## overrides: ## src/nickel.yaml: ## Custom synopsis/details line spacing: yes ## Whatever the yaml is called: no ## src/libadobe.so.yaml: ## You get the idea: yes overrides: src/nickel.yaml: src/libadobe.so.yaml: src/libnickel.so.1.0.0.yaml: src/libnickel-PROGRESIVE.yaml src/librmsdk.so.1.0.0.yaml: Code:
## You can put lines in the following section to override the enabled state of patches. ## The indentation matters! Each override should be indented by 4 spaces. Add to the ## section below. This section can be copy and pasted into newer patch versions to ## keep your selections. ## ## Example of how it should look: ## overrides: ## src/nickel.yaml: ## Custom synopsis/details line spacing: yes ## Whatever the yaml is called: no ## src/libadobe.so.yaml: ## You get the idea: yes overrides: src/nickel.yaml: Show all games: no Remove forgot pin button from lock screen: no Remove recommendations (row1col2) from home screen: no Change pop-up footnote font-family: no # PATCH GROUP - DON'T ENABLE MORE THAN 1 Disable reading footer: no Custom reading footer style: yes # END GROUP Custom synopsis/font size: no Custom synopsis/details line spacing: no # PATCH GROUP - DON'T ENABLE MORE THAN 1 Custom menubar - reduce height by 33%: yes Custom menubar - reduce height by 50%: no # END GROUP Dictionary pop-up - increase available text area: no Fix reading stats/author name cut off when series is showing: no Changing the info panel in full size screensaver- beta 1: no Increase the cover size in library: no Increase the view details container size: no Increase size of kepub chapter progress chart: no Custom font to collection and author titles: no Increase headlines font: no New home screen subtitle custom font: no # PATCH GROUP - DON'T ENABLE MORE THAN 1 Remove footer (row3) and increase cover size on new home screen: no Remove footer (row3) on new home screen: no New home screen increasing cover size: no # END GROUP src/libadobe.so.yaml: src/libnickel-PROGRESIVE.yaml: Dictionary, remove long winded closest match notification: no unclassified (PROGRESIVE): no MY ePub/Kepub fixed font sharpness: no Wikipedia Search language: no MY KePub stylesheet additions: no My Dictionary text font-family/font-size/line-height: no src/libnickel.so.1.0.0.yaml: Rename new home screen footer: no Set slide to unlock: no Enable rotation on all devices: no Both page turn buttons go next: no Replace adobe page numbers toggle with invert screen: yes Rename settings: no # PATCH GROUP - DON'T ENABLE MORE THAN 1 My 10 line spacing values: no My 24 line spacing values: no # END GROUP Custom left & right margins: yes Custom font sizes: yes Freedom to advanced fonts control: yes # PATCH GROUP - DON'T ENABLE MORE THAN 1 ePub fixed/adjustable top/bottom margins: no ePub fixed top/bottom margins: no ePub disable built-in body padding-bottom: no # END GROUP Custom kepub default margins: no Block WiFi firmware upgrade: no Custom footer (page number text): no Custom Sleep/Power-off timeouts: no Set KePub hyphenation: no Fix three KePub fullScreenReading bugs: no Force user line spacing in KePubs: no Force user line spacing in ePubs (part 1 of 2): no # PART 2 in librmsdk.so.1.0.0.yaml # PATCH GROUP - DON'T ENABLE MORE THAN 1 Un-force font-family override p tags (std epubs): no Force user font-family in ePubs (Part 1 of 2): no # PART 2 in librmsdk.so.1.0.0.yaml # END GROUP ePub constant font sharpness: no KePub constant font sharpness: no Un-Force user text-align in div,p tags in KePubs: no Always display chapter name on navigation menu: no Un-Force user font-family in KePubs: no Un-force link decoration in KePubs: no KePub stylesheet additions: no Change dicthtml strings to micthtml: no Allow searches on Extra dictionaries: no Ignore .otf fonts: no Brightness fine control: no Clock display duration: no # PATCH GROUP - DON'T ENABLE MORE THAN 1 Keyboard template (Mini/Touch/Glo/Aura): no Keyboard template (AuraHD/H2O): no Keyboard template (GloHD/ClaraHD/AuraOne/H2O2): no Cyrillic keyboard (Mini/Touch/Glo/Aura/AuraHD/H2O): no Cyrillic Keyboard (GloHD/ClaraHD/AuraOne/H2O2): no Arabic keyboard (Mini/Touch/Glo/Aura/AuraHD/H2O): no Hebrew keyboard (Mini/Touch/Glo/Aura): no Hebrew keyboard (AuraHD/H2O): no Hebrew keyboard (GloHD/ClaraHD/AuraOne/H2O2): no Greek Keyboard (GloHD/ClaraHD/AuraOne/H2O2): no # END GROUP Dictionary text font-family/font-size/line-height - beta: no Dictionary, remove long winded closest match notification: no Wikipedia Search language: no src/librmsdk.so.1.0.0.yaml: Disable orphans/widows avoidance: yes Default ePub monospace font (Courier): yes Default ePub serif font (Amasis): no Default ePub sans-serif font (Gill Sans): no Default ePub symbol font (Symbol): no Force user line spacing in ePubs (Part 2 of 2): no # PART 1 in libnickel.so.1.0.0.yaml Force user font-family in ePubs (Part 2 of 2): no # PART 1 in libnickel.so.1.0.0.yaml Ignore ePub book Adobe XPGT stylesheet (page-template.xpgt): no Ignore ePub book CSS and Adobe XPGT stylesheets: no Ignore ePub TOC navpoints: no Last edited by DNSB; 11-12-2018 at 02:57 PM. |
|
![]() |
![]() |
![]() |
#252 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 17
Karma: 630
Join Date: Sep 2018
Device: Kobo glo hd
|
Quote:
Thank you, David. I get the idea now. The kobopatch.yaml looks so neat! But one more question. Suppose I have edited my kobopatch.yaml, do I need to copy it to the src file to let it take effect? |
|
![]() |
![]() |
![]() |
#253 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
![]() |
![]() |
![]() |
#254 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 17
Karma: 630
Join Date: Sep 2018
Device: Kobo glo hd
|
|
![]() |
![]() |
![]() |
#255 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
![]() |
![]() |
![]() |
Tags |
kobo, kobopatch, patch, patch32lsb |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
kobopatch - A new (WIP) patching system | geek1011 | Kobo Developer's Corner | 93 | 05-27-2018 03:04 PM |
Patching H2O | Maillemom | Kobo Developer's Corner | 8 | 10-19-2016 09:58 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.8.0 | GeoffR | Kobo Developer's Corner | 92 | 10-22-2014 07:22 AM |
how to clean more disk space in root file system to upgrade system | chinaet | iRex | 1 | 12-18-2006 03:54 PM |