View Single Post
Old 12-20-2018, 08:57 AM   #147
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
Creating Koboroot.tgz continually fails

My device is Kobo Touch (N905). I'm on fw. 4.12.12111. I downloaded the relative patch and firmware (zip) just as indicated in the instructions and also followed them further. I edited only four of the patches in libnickel.so.1.0.0.yaml, but at clicking on kobopatch.bat at last, the black box for creating the koboroot.tgz opens for a few seconds and then closes without happening something else.
I tried so hard to find out the reason but couldn't find nothing. So I would kindly ask someone of the cracks to have a look at my settings in order to find out where the error is.
The first is:

Code:
Set KePub hyphenation:
  - Enabled: yes
  - Description: |
      The built-in KePub stylesheet has a line * { -webkit-hyphens: auto; }
      to turn on hyphenation, but it is only used if the device's justification
      button is set to full justification. With this patch enabled hyphenation
      will always be turned on, regardless of justification button setting.
      
      (The publisher can still turn hyphenation off/on in the book's stylesheet.)
  - ReplaceBytes: {Offset: 0x9E4E48, FindH: 3D F6 4E E2, ReplaceH: 01 20 01 20} # Alternative 1: Always turn KePub hyphenation on
# - ReplaceBytes: {Offset: 0x9E4E48, FindH: 3D F6 4E E2, ReplaceH: 00 20 00 20} # Alternative 2: Never turn KePub hyphenation on
but I scarcely think that there could be an error.
The second is:
Code:
Un-force font-family override p tags (std epubs):
  - Enabled: yes
  - PatchGroup: ePub force font alternatives
  - Description: |
      This patch allows the font set for paragraphs by the publisher in the epub
      stylesheet to override the font selected by the reader from the device.
    #     body, p { font-family: -ua-default !important; }
    # --> body    { font-family: -ua-default !important; }
  - FindBaseAddressString: "body, p { font-family: -ua"
  - ReplaceString: {Offset: 0, Find: "body, p", Replace: "body  \x20", MustMatchLength: yes}
but this seems not the problem as well.
The third is:
Code:
Un-Force user font-family in KePubs:
  - Enabled: yes
  - Description: |
      The KePub reader uses a very heavy-handed method of setting the font selected
      by the user, overriding all fonts set by the publisher in the book unless
      "Publisher Default" is selected.
      This patch lets the font-family set by the publisher in the KePub stylesheet
      override the font-family selected by the reader from the device in some
      cases, which allows a mix of user-selected and publisher-selected fonts.
      Alternatives 1-3 give increasing preference to the publisher-selected fonts.
  - FindBaseAddressString: "* { font-family: %1 !important; }\n"
    #
    # Alternative 1:
    #     * { font-family: %1 !important; }\n
    # --> div,p{font-family:%1!important; }\n
 # - ReplaceString:
 #     Offset: 0
#      Find: "* { font-family: %1 !important; }\n"
 #     Replace: "div,p{font-family:%1!important; }\n"
#      MustMatchLength: yes
    #
    # Alternative 2: (Similar to ePub default)
    #     * { font-family: %1 !important; }\n
    # --> body,p{font-family:%1!important;}\n
 - ReplaceString:
     Offset: 0
     Find: "* { font-family: %1 !important; }\y"
     Replace: "body,p{font-family:%1!important;}\y"
     MustMatchLength: yes
    #
    # Alternative 3: (similar to ePub with `Un-force font-family override p tags`)
    #     * { font-family: %1 !important; }\n
    # --> body{font-family:%1 !important; }\n
# - ReplaceString:
#     Offset: 0
#     Find: "* { font-family: %1 !important; }\n"
#     Replace: "body{font-family:%1 !important; }\n"
#     MustMatchLength: yes
There might be a problem, but I tried a lot of things without any change. I set the value of "FindBaseAddressString" to "y", but it didn't help.
And the last is:
Code:
KePub stylesheet additions:
  - Enabled: yes
  - Description: Makes room to add some additional CSS to the default KePub stylesheet.
    # See replacement CSS below for examples.
  - FindBaseAddressString: ".KBHighlighting, .KBSearchResult {"
  - ReplaceString: {Offset: 0x0000, Find: ".KBHighlighting, .KBSearchResult { background-color: #C6C6C6 !important; } \t",                                                                         Replace: ".KBHighlighting,.KBSearchResult{background-color:#C6C6C6!important}.KBSearch", MustMatchLength: yes}
  - ReplaceString: {Offset: 0x004C, 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: 0x00C7, Find: ".KBAnnotation[writingMode=\"horizontal-tb\"], .KBAnnotationContinued[writingMode=\"horizontal-tb\"] { border-bottom: 2px solid black !important; } \t", Replace: "ode=\"horizontal-tb\"],.KBAnnotationContinued[writingMode=\"horizontal-tb\"]{border-bottom:2px solid black!important}.KBAnnotation[writingMode=\"vert", MustMatchLength: yes}
  - ReplaceString: {Offset: 0x0157, Find: ".KBAnnotation[writingMode=\"vertical-rl\"], .KBAnnotationContinued[writingMode=\"vertical-rl\"] { border-right: 2px solid black !important; } \t",      Replace: "ical-rl\"],.KBAnnotationContinued[writingMode=\"vertical-rl\"]{border-right:2px solid black!important}.KBAnnotation[writingMode=\"vertical-lr\"]", MustMatchLength: yes}
  - ReplaceString: {Offset: 0x01E2, Find: ".KBAnnotation[writingMode=\"vertical-lr\"], .KBAnnotationContinued[writingMode=\"vertical-lr\"] { border-left: 2px solid black !important; }",          Replace: ",.KBAnnotationContinued[writingMode=\"vertical-lr\"]{border-left:2px solid black!important}/*********************************************/", MustMatchLength: yes}
    #
    # Replacement value: CSS string of exactly 47 characters in length:
    #
    # Example 1: Make full justification the default:
- ReplaceString: {Offset: 0x023B, 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.
# - ReplaceString: {Offset: 0x023B, 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.
# - ReplaceString: {Offset: 0x023B, 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.
# - ReplaceString: {Offset: 0x023B, Find: "/*********************************************/", Replace: "#book-inner{font-size:1.5em                   }", MustMatchLength: yes}
but there should be no error either.
I know it's a lot that I'm asking, but I'm really at the end of my possibilities. All the former patches worked. Please, help!
Leonatus is offline   Reply With Quote