View Single Post
Old 03-05-2020, 10:38 AM   #30
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,060
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Kobo Touch A.
I steadily apply the Kobo Patches, which really is a great thing, many thanks for it!
One of my favourite patches is the "Make full justification the default" in "KEPUB stylesheet additions" of libnickel.so.1.0.0.yaml. My setting is this:
Code:
    # Example 1: Make full justification the default:
  - ReplaceString: {Offset: 467, Find: "/******************************************/", Replace: "body{text-align:justify                    }", MustMatchLength: yes}
    #
and I receive this message:
Code:
 kobopatch.ReplaceString index=9 line=993
          |         ReplaceString(467, "/******************************************/", "body{text-align:justify                    }")
          |         could not apply patch "KePub stylesheet additions": line 993: inst 9: ReplaceString: could not find specified bytes
        --> could not apply patch "KePub stylesheet additions": line 993: inst 9: ReplaceString: could not find specified bytes
I checked what I could but could not find the error. Can someone, please, help?
All other patches work fine!

Edit: In earlier patches the offset was 0x023B. Does this matter?
Edit': Thje same error happens when I try to activate #Example 2

Last edited by Leonatus; 03-05-2020 at 10:48 AM.
Leonatus is offline   Reply With Quote