View Single Post
Old 03-05-2020, 10:45 AM   #31
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,144
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Leonatus View Post
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?
It's nothing you've done. It's an error with the patch. The solution/fix is in post #6 of this thread (page 1).
JSWolf is offline   Reply With Quote