View Single Post
Old 03-03-2020, 09:25 AM   #8
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,846
Karma: 150249631
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 geek1011 View Post
That should have worked... I thought I tested it. Try changing the instruction for the commented out replacements to FindReplaceString, and remove the Offset.

Here:

Code:
KePub stylesheet additions:
  - Enabled: no
  - Description: Makes room to add some additional CSS to the default KePub stylesheet.
    # See replacement CSS below for examples.
  - FindBaseAddressString: ".KBHighlighting, .KBSearchResult {"
  - ReplaceString: {Offset:   0, Find: ".KBHighlighting, .KBSearchResult { background-color: #C6C6C6 !important; } \t",                                                                         Replace: ".KBHighlighting,.KBSearchResult{background-color:#C6C6C6!important}.KBSearch", MustMatchLength: yes}
  - ReplaceString: {Offset:  76, Find: ".KBSearchResult, .KBAnnotation, .KBHighlighting { font-size: 100% !important; -webkit-text-combine: inherit !important; } \t",                          Replace: "Result,.KBAnnotation,.KBHighlighting{font-size:100%!important;-webkit-text-combine:inherit!important}.KBAnnotation[writingM", MustMatchLength: yes}
  - ReplaceString: {Offset: 199, Find: ".KBAnnotation[writingMode=\"horizontal-tb\"] { border-bottom: 2px solid black !important; } \t", Replace: "ode=\"horizontal-tb\"]{border-bottom:2px solid black!important}.KBAnnotation[writingMode=\"ver", MustMatchLength: yes}
  - ReplaceString: {Offset: 290, Find: ".KBAnnotation[writingMode=\"vertical-rl\"] { border-right: 2px solid black !important; } \t",      Replace: "tical-rl\"]{border-right:2px solid black!important}.KBAnnotation[writingMode=\"vertical-lr", MustMatchLength: yes}
  - ReplaceString: {Offset: 378, Find: ".KBAnnotation[writingMode=\"vertical-lr\"] { border-left: 2px solid black !important; }",          Replace: "\"]{border-left:2px solid black!important}/******************************************/", MustMatchLength: yes}
    #
    # Replacement value: CSS string of exactly 44 characters in length:
    #
    # Example 1: Make full justification the default:
# - FindReplaceString: {Find: "/******************************************/", Replace: "body{text-align:justify                    }", MustMatchLength: yes}
    #
    # Example 2: text-rendering:optimizeSpeed: Disables kerning, but fixes some
    # rendering problems that affect fully justified text.
# - FindReplaceString: {Find: "/******************************************/", Replace: "body{text-rendering:optimizeSpeed          }", MustMatchLength: yes}
    #
    # Example 3: text-rendering:optimizeLegibility: Enables ligatures, but causes
    # some additional rendering problems for fully justified text.
# - FindReplaceString: {Find: "/******************************************/", Replace: "body{text-rendering:optimizeLegibility     }", MustMatchLength: yes}
    #
    # Example 4: Make KePub font sizes match ePub font sizes: ePubs render with
    # 1.5 times the font size of KePubs by default. With this enabled they match.
# - FindReplaceString: {Find: "/******************************************/", Replace: "#book-inner{font-size:1.5em                }", MustMatchLength: yes}
That seems to have worked. It did allow the patches to be applied.

Do you know if he 4.19 Sickel patch still works or does it have to be reworked? This is the 4.19 patch.

Code:
sickel reboot timeout (20 sec):
  - Enabled: no
  - Description: increases sickel reboot time if no ping from 10s to 20s
  - PatchGroup: sickel reboot timeout
  - ReplaceBytes: {Offset: 0x0035E0, FindH: 42 F2 10 71, ReplaceH: 44 F6 20 61}
  - ReplaceBytes: {Offset: 0x0035F2, FindH: 42 F2 10 71, ReplaceH: 44 F6 20 61}
  - ReplaceBytes: {Offset: 0x00383E, FindH: 44 F6 20 61, ReplaceH: 49 F6 40 41}
      
sickel reboot timeout (30 sec):
  - Enabled: yes
  - Description: increases sickel reboot time if no ping from 10s to 30s
  - PatchGroup: sickel reboot timeout
  - ReplaceBytes: {Offset: 0x0035E0, FindH: 42 F2 10 71, ReplaceH: 47 F2 30 51}
  - ReplaceBytes: {Offset: 0x0035F2, FindH: 42 F2 10 71, ReplaceH: 47 F2 30 51}
  - ReplaceBytes: {Offset: 0x00383E, FindH: 44 F6 20 61, ReplaceH: 4E F6 60 21}
JSWolf is offline   Reply With Quote