View Single Post
Old 11-16-2019, 05:07 PM   #386
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by jackie_w View Post
I think the only thing stopping your custom patch working in 4.18.13737 is the first Find/Replace, i.e. the line beginning:
Code:
- {Find: "#batteryStatus[localeName=\"ja\"]
Kobo have added an extra Chinese locale (zh-HK) so this line is no longer correct. However, based on what you are actually changing in this patch I don't think you need this line at all, so just delete it. It's only there to free up some space if the patch needs extra code to be added. The changes you've posted don't need any extra.


In case you're interested ...

If you only need the Dragon settings I think your custom patch could be much simplified to the following and should work for all these models: AuraHD, H2O, H2Ov2, GloHD, ClaraHD.

Spoiler:
Code:
Resize info panel:
  - Enabled: yes
  - Description: |
      Custom patch to change the width of the info panel.
  - FindZlib: "#infoWidget"
  - ReplaceZlibGroup:
      Replacements:
          # #infoWidget reduce width
        - {Find: "width: 470px;", Replace: "width: 235px;"}  #Dragon
          # #infoWidget, #infoFrame: reduce top/bottom/right margins
        - {Find: "Margin: 22px;", Replace: "Margin: 11px;"}  #Dragon
          # #infoFrame: reduce left margin
        - {Find: "leftMargin: 44px;", Replace: "leftMargin: 22px;"}  #Dragon
Thanks, jackie_w, that worked perfectly!
BenChen is offline   Reply With Quote