Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2018, 04:24 AM   #121
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Quote:
Originally Posted by NiLuJe View Post
Can I forgo commenting the default blank overrides: in the config and just append mine at the bottom of the file? (I won't ask you to make it commented out by default, because I know how confusing that might be to some users, as #110 just proved ).
Good question, something I have asked, too - including the commenting of the empty overrides.

I have submitted a pull request to allow reading a config file from a cmd line argument or stdin, and I would alter the question here: what besides the actual firmware zip file is version dependent? I see two times the version appearing in the yaml file: the `version` tag and the `in` tag.

Does the `version` tag carry any inherent meaning?

And if not, would it be an option (I can look at the code) to override the `in` tag with a command line argument? It really seems strange that everything looks so version independent but the version number still appears.
norbusan is offline   Reply With Quote
Old 07-14-2018, 08:56 AM   #122
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Houston, we have a problem!
Try #1
Spoiler:
Code:
tshering's BAD EYES adaptation (PROGRESIVE):
  - Enabled: no
  - Description: |
      source: tshering/KBPatcher17_4.4.9995/4_plus_source/nickel
#zlib stream: offset_hex(0x1EB1B) offset_int32(125723) len_int32(57346) sha1(1cf332fe21aa7d78aede52e5712286393618cd81)
#  - FindZlibHash: 1cf332fe21aa7d78aede52e5712286393618cd81
  - FindZlib:  "QWidget[small"
  - ReplaceZlib: {Find: "font-size: 91px", Replace: "font-size:91px"}
  - ReplaceZlib: {Find: "font-size: 77px", Replace: "font-size:77px"}
  - ReplaceZlib: {Find: "font-size: 74px", Replace: "font-size:74px"}
  - ReplaceZlib: {Find: "font-size: 71px", Replace: "font-size:71px"}
  - ReplaceZlib: {Find: "font-size: 62px", Replace: "font-size:62px"}
  - ReplaceZlib: {Find: "font-size: 60px", Replace: "font-size:60px"}
  - ReplaceZlib: {Find: "font-size: 57px", Replace: "font-size:59px"}
  - ReplaceZlib: {Find: "font-size: 55px", Replace: "font-size:57px"}
  - ReplaceZlib: {Find: "font-size: 50px", Replace: "font-size:53px"}
  - ReplaceZlib: {Find: "font-size: 47px", Replace: "font-size:50px"}
  - ReplaceZlib: {Find: "font-size: 46px", Replace: "font-size:49px"}
  - ReplaceZlib: {Find: "font-size: 45px", Replace: "font-size:48px"}
  - ReplaceZlib: {Find: "font-size: 39px", Replace: "font-size:42px"}
  - ReplaceZlib: {Find: "font-size: 37px", Replace: "font-size:40px"}
  - ReplaceZlib: {Find: "font-size: 36px", Replace: "font-size:39px"}
  - ReplaceZlib: {Find: "font-size: 35px", Replace: "font-size:38px"}
  - ReplaceZlib: {Find: "font-size: 34px", Replace: "font-size:37px"}
  - ReplaceZlib: {Find: "font-size: 32px", Replace: "font-size:36px"}
  - ReplaceZlib: {Find: "font-size: 31px", Replace: "font-size:35px"}
  - ReplaceZlib: {Find: "font-size: 30px", Replace: "font-size:34px"}
  - ReplaceZlib: {Find: "font-size: 29px", Replace: "font-size:33px"}
  - ReplaceZlib: {Find: "font-size: 28px", Replace: "font-size:32px"}
  - ReplaceZlib: {Find: "font-size: 27px", Replace: "font-size:31px"}
  - ReplaceZlib: {Find: "font-size: 26px", Replace: "font-size:30px"}
  - ReplaceZlib: {Find: "font-size: 24px", Replace: "font-size:28px"}
  - ReplaceZlib: {Find: "font-size: 23px", Replace: "font-size:27px"}
  - ReplaceZlib: {Find: "font-size: 22px", Replace: "font-size:26px"}
  - ReplaceZlib: {Find: "font-size: 21px", Replace: "font-size:25px"}
  - ReplaceZlib: {Find: "font-size: 20px", Replace: "font-size:24px"}
  - ReplaceZlib: {Find: "font-size: 19px", Replace: "font-size:23px"}
  - ReplaceZlib: {Find: "font-size: 17px", Replace: "font-size:21px"}
  - ReplaceZlib: {Find: "font-size: 16px", Replace: "font-size:20px"}
  - ReplaceZlib: {Find: "font-size: 14px", Replace: "font-size:18px"}
  - ReplaceZlib: {Find: "font-size: 13px", Replace: "font-size:17px"}
  - ReplaceZlib: {Find: ";\n  ", Replace: ";"}
  - ReplaceZlib: {Find: ",\n", Replace: ","}
  - ReplaceZlib: {Find: " {", Replace: "{"}
  - ReplaceZlib: {Find: "] {\n  ", Replace: "]{"}
  - ReplaceZlib: {Find: ";\n}", Replace: "}"}
  - ReplaceZlib: {Find: ": ", Replace: ":"}
Error #1
Spoiler:
Code:
          ResetBaseAddress()
          Enabled: true
          applying patch `tshering's BAD EYES adaptation (PROGRESIVE)`
        looping over instructions
          skipping non-instruction Enabled(), PatchGroup() or Description()
          skipping non-instruction Enabled(), PatchGroup() or Description()
          FindZlib("QWidget[small") | hex:515769646765745b736d616c6c
          ReplaceZlib(0, "font-size: 91px", "font-size:91px")
          ReplaceZlib(0, "font-size: 77px", "font-size:77px")
          ReplaceZlib(0, "font-size: 74px", "font-size:74px")
          ReplaceZlib(0, "font-size: 71px", "font-size:71px")
          ReplaceZlib(0, "font-size: 62px", "font-size:62px")
          ReplaceZlib(0, "font-size: 60px", "font-size:60px")
          ReplaceZlib(0, "font-size: 57px", "font-size:59px")
          ReplaceZlib(0, "font-size: 55px", "font-size:57px")
        could not apply patch: ReplaceZlib: new compressed data is 2 bytes longer than old data (try removing whitespace or unnecessary css)
Fatal: Could not apply patch file src/nickel-BADEYES.yaml: ReplaceZlib: new compressed data is 2 bytes longer than old data (try removing whitespace or unnecessary css)
Try #2 The same in different order
Spoiler:
Code:
tshering's BAD EYES adaptation (PROGRESIVE):
  - Enabled: no
  - Description: |
      source: tshering/KBPatcher17_4.4.9995/4_plus_source/nickel
#zlib stream: offset_hex(0x1EB1B) offset_int32(125723) len_int32(57346) sha1(1cf332fe21aa7d78aede52e5712286393618cd81)
#  - FindZlibHash: 1cf332fe21aa7d78aede52e5712286393618cd81
  - FindZlib:  "QWidget[small"
  - ReplaceZlib: {Find: ";\n  ", Replace: ";"}
  - ReplaceZlib: {Find: ",\n", Replace: ","}
  - ReplaceZlib: {Find: " {", Replace: "{"}
  - ReplaceZlib: {Find: "] {\n  ", Replace: "]{"}
  - ReplaceZlib: {Find: ";\n}", Replace: "}"}
  - ReplaceZlib: {Find: "font-size: 91px", Replace: "font-size:91px"}
  - ReplaceZlib: {Find: "font-size: 77px", Replace: "font-size:77px"}
  - ReplaceZlib: {Find: "font-size: 74px", Replace: "font-size:74px"}
  - ReplaceZlib: {Find: "font-size: 71px", Replace: "font-size:71px"}
  - ReplaceZlib: {Find: "font-size: 62px", Replace: "font-size:62px"}
  - ReplaceZlib: {Find: "font-size: 60px", Replace: "font-size:60px"}
  - ReplaceZlib: {Find: "font-size: 57px", Replace: "font-size:59px"}
  - ReplaceZlib: {Find: "font-size: 55px", Replace: "font-size:57px"}
  - ReplaceZlib: {Find: "font-size: 50px", Replace: "font-size:53px"}
  - ReplaceZlib: {Find: "font-size: 47px", Replace: "font-size:50px"}
  - ReplaceZlib: {Find: "font-size: 46px", Replace: "font-size:49px"}
  - ReplaceZlib: {Find: "font-size: 45px", Replace: "font-size:48px"}
  - ReplaceZlib: {Find: "font-size: 39px", Replace: "font-size:42px"}
  - ReplaceZlib: {Find: "font-size: 37px", Replace: "font-size:40px"}
  - ReplaceZlib: {Find: "font-size: 36px", Replace: "font-size:39px"}
  - ReplaceZlib: {Find: "font-size: 35px", Replace: "font-size:38px"}
  - ReplaceZlib: {Find: "font-size: 34px", Replace: "font-size:37px"}
  - ReplaceZlib: {Find: "font-size: 32px", Replace: "font-size:36px"}
  - ReplaceZlib: {Find: "font-size: 31px", Replace: "font-size:35px"}
  - ReplaceZlib: {Find: "font-size: 30px", Replace: "font-size:34px"}
  - ReplaceZlib: {Find: "font-size: 29px", Replace: "font-size:33px"}
  - ReplaceZlib: {Find: "font-size: 28px", Replace: "font-size:32px"}
  - ReplaceZlib: {Find: "font-size: 27px", Replace: "font-size:31px"}
  - ReplaceZlib: {Find: "font-size: 26px", Replace: "font-size:30px"}
  - ReplaceZlib: {Find: "font-size: 24px", Replace: "font-size:28px"}
  - ReplaceZlib: {Find: "font-size: 23px", Replace: "font-size:27px"}
  - ReplaceZlib: {Find: "font-size: 22px", Replace: "font-size:26px"}
  - ReplaceZlib: {Find: "font-size: 21px", Replace: "font-size:25px"}
  - ReplaceZlib: {Find: "font-size: 20px", Replace: "font-size:24px"}
  - ReplaceZlib: {Find: "font-size: 19px", Replace: "font-size:23px"}
  - ReplaceZlib: {Find: "font-size: 17px", Replace: "font-size:21px"}
  - ReplaceZlib: {Find: "font-size: 16px", Replace: "font-size:20px"}
  - ReplaceZlib: {Find: "font-size: 14px", Replace: "font-size:18px"}
  - ReplaceZlib: {Find: "font-size: 13px", Replace: "font-size:17px"}
  - ReplaceZlib: {Find: ": ", Replace: ":"}
Error #2
Spoiler:
Code:
          ResetBaseAddress()
          Enabled: true
          applying patch `tshering's BAD EYES adaptation (PROGRESIVE)`
        looping over instructions
          skipping non-instruction Enabled(), PatchGroup() or Description()
          skipping non-instruction Enabled(), PatchGroup() or Description()
          FindZlib("QWidget[small") | hex:515769646765745b736d616c6c
          ReplaceZlib(0, ";\n  ", ";")
          ReplaceZlib(0, ",\n", ",")
          ReplaceZlib(0, " {", "{")
          ReplaceZlib(0, "] {\n  ", "]{")
          ReplaceZlib(0, ";\n}", "}")
          ReplaceZlib(0, "font-size: 91px", "font-size:91px")
          ReplaceZlib(0, "font-size: 77px", "font-size:77px")
          ReplaceZlib(0, "font-size: 74px", "font-size:74px")
          ReplaceZlib(0, "font-size: 71px", "font-size:71px")
          ReplaceZlib(0, "font-size: 62px", "font-size:62px")
          ReplaceZlib(0, "font-size: 60px", "font-size:60px")
          ReplaceZlib(0, "font-size: 57px", "font-size:59px")
          ReplaceZlib(0, "font-size: 55px", "font-size:57px")
          ReplaceZlib(0, "font-size: 50px", "font-size:53px")
        could not apply patch: ReplaceZlib: new compressed data is 6 bytes longer than old data (try removing whitespace or unnecessary css)
Fatal: Could not apply patch file src/nickel-BADEYES.yaml: ReplaceZlib: new compressed data is 6 bytes longer than old data (try removing whitespace or unnecessary css)
Try #3 Only font-size
Spoiler:
Code:
tshering's BAD EYES adaptation (PROGRESIVE):
  - Enabled: no
  - Description: |
      source: tshering/KBPatcher17_4.4.9995/4_plus_source/nickel
#zlib stream: offset_hex(0x1EB1B) offset_int32(125723) len_int32(57346) sha1(1cf332fe21aa7d78aede52e5712286393618cd81)
#  - FindZlibHash: 1cf332fe21aa7d78aede52e5712286393618cd81
  - FindZlib:  "QWidget[small"
  - ReplaceZlib: {Find: "font-size: 91px", Replace: "font-size:91px"}
  - ReplaceZlib: {Find: "font-size: 77px", Replace: "font-size:77px"}
  - ReplaceZlib: {Find: "font-size: 74px", Replace: "font-size:74px"}
  - ReplaceZlib: {Find: "font-size: 71px", Replace: "font-size:71px"}
  - ReplaceZlib: {Find: "font-size: 62px", Replace: "font-size:62px"}
  - ReplaceZlib: {Find: "font-size: 60px", Replace: "font-size:60px"}
  - ReplaceZlib: {Find: "font-size: 57px", Replace: "font-size:59px"}
  - ReplaceZlib: {Find: "font-size: 55px", Replace: "font-size:57px"}
  - ReplaceZlib: {Find: "font-size: 50px", Replace: "font-size:53px"}
  - ReplaceZlib: {Find: "font-size: 47px", Replace: "font-size:50px"}
  - ReplaceZlib: {Find: "font-size: 46px", Replace: "font-size:49px"}
  - ReplaceZlib: {Find: "font-size: 45px", Replace: "font-size:48px"}
  - ReplaceZlib: {Find: "font-size: 39px", Replace: "font-size:42px"}
  - ReplaceZlib: {Find: "font-size: 37px", Replace: "font-size:40px"}
  - ReplaceZlib: {Find: "font-size: 36px", Replace: "font-size:39px"}
  - ReplaceZlib: {Find: "font-size: 35px", Replace: "font-size:38px"}
  - ReplaceZlib: {Find: "font-size: 34px", Replace: "font-size:37px"}
  - ReplaceZlib: {Find: "font-size: 32px", Replace: "font-size:36px"}
  - ReplaceZlib: {Find: "font-size: 31px", Replace: "font-size:35px"}
  - ReplaceZlib: {Find: "font-size: 30px", Replace: "font-size:34px"}
  - ReplaceZlib: {Find: "font-size: 29px", Replace: "font-size:33px"}
  - ReplaceZlib: {Find: "font-size: 28px", Replace: "font-size:32px"}
  - ReplaceZlib: {Find: "font-size: 27px", Replace: "font-size:31px"}
  - ReplaceZlib: {Find: "font-size: 26px", Replace: "font-size:30px"}
  - ReplaceZlib: {Find: "font-size: 24px", Replace: "font-size:28px"}
  - ReplaceZlib: {Find: "font-size: 23px", Replace: "font-size:27px"}
  - ReplaceZlib: {Find: "font-size: 22px", Replace: "font-size:26px"}
  - ReplaceZlib: {Find: "font-size: 21px", Replace: "font-size:25px"}
  - ReplaceZlib: {Find: "font-size: 20px", Replace: "font-size:24px"}
  - ReplaceZlib: {Find: "font-size: 19px", Replace: "font-size:23px"}
  - ReplaceZlib: {Find: "font-size: 17px", Replace: "font-size:21px"}
  - ReplaceZlib: {Find: "font-size: 16px", Replace: "font-size:20px"}
  - ReplaceZlib: {Find: "font-size: 14px", Replace: "font-size:18px"}
  - ReplaceZlib: {Find: "font-size: 13px", Replace: "font-size:17px"}
Error #3
Spoiler:
Code:
          ResetBaseAddress()
          Enabled: true
          applying patch `tshering's BAD EYES adaptation (PROGRESIVE)`
        looping over instructions
          skipping non-instruction Enabled(), PatchGroup() or Description()
          skipping non-instruction Enabled(), PatchGroup() or Description()
          FindZlib("QWidget[small") | hex:515769646765745b736d616c6c
          ReplaceZlib(0, "font-size: 91px", "font-size:91px")
          ReplaceZlib(0, "font-size: 77px", "font-size:77px")
          ReplaceZlib(0, "font-size: 74px", "font-size:74px")
          ReplaceZlib(0, "font-size: 71px", "font-size:71px")
          ReplaceZlib(0, "font-size: 62px", "font-size:62px")
          ReplaceZlib(0, "font-size: 60px", "font-size:60px")
          ReplaceZlib(0, "font-size: 57px", "font-size:59px")
          ReplaceZlib(0, "font-size: 55px", "font-size:57px")
        could not apply patch: ReplaceZlib: new compressed data is 2 bytes longer than old data (try removing whitespace or unnecessary css)
Fatal: Could not apply patch file src/nickel-BADEYES.yaml: ReplaceZlib: new compressed data is 2 bytes longer than old data (try removing whitespace or unnecessary css)
Try #4 Only altered font-size
Spoiler:
Code:
tshering's BAD EYES adaptation (PROGRESIVE):
  - Enabled: no
  - Description: |
      source: tshering/KBPatcher17_4.4.9995/4_plus_source/nickel
#zlib stream: offset_hex(0x1EB1B) offset_int32(125723) len_int32(57346) sha1(1cf332fe21aa7d78aede52e5712286393618cd81)
#  - FindZlibHash: 1cf332fe21aa7d78aede52e5712286393618cd81
  - FindZlib:  "QWidget[small"
  - ReplaceZlib: {Find: "font-size: 57px", Replace: "font-size:59px"}
  - ReplaceZlib: {Find: "font-size: 55px", Replace: "font-size:57px"}
  - ReplaceZlib: {Find: "font-size: 50px", Replace: "font-size:53px"}
  - ReplaceZlib: {Find: "font-size: 47px", Replace: "font-size:50px"}
  - ReplaceZlib: {Find: "font-size: 46px", Replace: "font-size:49px"}
  - ReplaceZlib: {Find: "font-size: 45px", Replace: "font-size:48px"}
  - ReplaceZlib: {Find: "font-size: 39px", Replace: "font-size:42px"}
  - ReplaceZlib: {Find: "font-size: 37px", Replace: "font-size:40px"}
  - ReplaceZlib: {Find: "font-size: 36px", Replace: "font-size:39px"}
  - ReplaceZlib: {Find: "font-size: 35px", Replace: "font-size:38px"}
  - ReplaceZlib: {Find: "font-size: 34px", Replace: "font-size:37px"}
  - ReplaceZlib: {Find: "font-size: 32px", Replace: "font-size:36px"}
  - ReplaceZlib: {Find: "font-size: 31px", Replace: "font-size:35px"}
  - ReplaceZlib: {Find: "font-size: 30px", Replace: "font-size:34px"}
  - ReplaceZlib: {Find: "font-size: 29px", Replace: "font-size:33px"}
  - ReplaceZlib: {Find: "font-size: 28px", Replace: "font-size:32px"}
  - ReplaceZlib: {Find: "font-size: 27px", Replace: "font-size:31px"}
  - ReplaceZlib: {Find: "font-size: 26px", Replace: "font-size:30px"}
  - ReplaceZlib: {Find: "font-size: 24px", Replace: "font-size:28px"}
  - ReplaceZlib: {Find: "font-size: 23px", Replace: "font-size:27px"}
  - ReplaceZlib: {Find: "font-size: 22px", Replace: "font-size:26px"}
  - ReplaceZlib: {Find: "font-size: 21px", Replace: "font-size:25px"}
  - ReplaceZlib: {Find: "font-size: 20px", Replace: "font-size:24px"}
  - ReplaceZlib: {Find: "font-size: 19px", Replace: "font-size:23px"}
  - ReplaceZlib: {Find: "font-size: 17px", Replace: "font-size:21px"}
  - ReplaceZlib: {Find: "font-size: 16px", Replace: "font-size:20px"}
  - ReplaceZlib: {Find: "font-size: 14px", Replace: "font-size:18px"}
  - ReplaceZlib: {Find: "font-size: 13px", Replace: "font-size:17px"}
Error #4
Spoiler:
Code:
          ResetBaseAddress()
          Enabled: true
          applying patch `tshering's BAD EYES adaptation (PROGRESIVE)`
        looping over instructions
          skipping non-instruction Enabled(), PatchGroup() or Description()
          skipping non-instruction Enabled(), PatchGroup() or Description()
          FindZlib("QWidget[small") | hex:515769646765745b736d616c6c
          ReplaceZlib(0, "font-size: 57px", "font-size:59px")
          ReplaceZlib(0, "font-size: 55px", "font-size:57px")
          ReplaceZlib(0, "font-size: 50px", "font-size:53px")
          ReplaceZlib(0, "font-size: 47px", "font-size:50px")
          ReplaceZlib(0, "font-size: 46px", "font-size:49px")
        could not apply patch: ReplaceZlib: new compressed data is 3 bytes longer than old data (try removing whitespace or unnecessary css)
Fatal: Could not apply patch file src/nickel-BADEYES.yaml: ReplaceZlib: new compressed data is 3 bytes longer than old data (try removing whitespace or unnecessary css)
Try #5 All involved text
Spoiler:
Code:
tshering's BAD EYES adaptation (PROGRESIVE):
  - Enabled: no
  - Description: |
      source: tshering/KBPatcher17_4.4.9995/4_plus_source/nickel
#zlib stream: offset_hex(0x1EB1B) offset_int32(125723) len_int32(57346) sha1(1cf332fe21aa7d78aede52e5712286393618cd81)
#  - FindZlibHash: 1cf332fe21aa7d78aede52e5712286393618cd81
  - FindZlib:  "QWidget[small"
  - ReplaceZlib:
      Find:    "QCheckBox[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "QCheckBox[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "QCheckBox[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "QCheckBox[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "QCheckBox[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "QCheckBox[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "QCheckBox[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "QCheckBox[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "QCheckBox[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "QCheckBox[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "QCheckBox[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "QCheckBox[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find:    "QRadioButton[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "QRadioButton[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "QRadioButton[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "QRadioButton[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "QRadioButton[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "QRadioButton[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "QRadioButton[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "QRadioButton[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "QRadioButton[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "QRadioButton[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "QRadioButton[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "QRadioButton[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find:    "N3ButtonLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "N3ButtonLabel[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "N3ButtonLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "N3ButtonLabel[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "N3ButtonLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "N3ButtonLabel[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "N3ButtonLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "N3ButtonLabel[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "N3ButtonLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "N3ButtonLabel[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "N3ButtonLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "N3ButtonLabel[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsTrilogy=true] {\n  font-size: 30px;\n}
      Replace: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsTrilogy=true]{font-size:34px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsPhoenix=true] {\n  font-size: 36px;\n}
      Replace: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsPhoenix=true]{font-size:39px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsDragon=true] {\n  font-size: 46px;\n}
      Replace: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsDragon=true]{font-size:49px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsAlyssum=true] {\n  font-size: 50px;\n}
      Replace: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsAlyssum=true]{font-size:53px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsNova=true] {\n  font-size: 50px;\n}
      Replace: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsNova=true]{font-size:53px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsDaylight=true] {\n  font-size: 60px;\n}
      Replace: |
        N3ButtonLabel[labelSize="medium"][qApp_deviceIsDaylight=true]{font-size:60px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsTrilogy=true] {\n  font-size: 23px;\n}
      Replace: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsTrilogy=true]{font-size:27px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsPhoenix=true] {\n  font-size: 28px;\n}
      Replace: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsPhoenix=true]{font-size:32px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsDragon=true] {\n  font-size: 36px;\n}
      Replace: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsDragon=true]{font-size:39px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsAlyssum=true] {\n  font-size: 39px;\n}
      Replace: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsAlyssum=true]{font-size:42px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsNova=true] {\n  font-size: 39px;\n}
      Replace: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsNova=true]{font-size:42px;}
  - ReplaceZlib:
      Find: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsDaylight=true] {\n  font-size: 46px;\n}
      Replace: |
        N3ButtonLabel[labelSize="small"][qApp_deviceIsDaylight=true]{font-size:49px;}

  - ReplaceZlib:
      Find:    "SmallButtonLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 14px;\n  min-height: 0px;\n}"
      Replace: "SmallButtonLabel[qApp_deviceIsTrilogy=true]{font-size:18px;min-height:0px;}"
  - ReplaceZlib:
      Find:    "SmallButtonLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 19px;\n  min-height: 0px;\n}"
      Replace: "SmallButtonLabel[qApp_deviceIsPhoenix=true]{font-size:23px;min-height:0px;}"
  - ReplaceZlib:
      Find:    "SmallButtonLabel[qApp_deviceIsDragon=true] {\n  font-size: 24px;\n  min-height: 0px;\n}"
      Replace: "SmallButtonLabel[qApp_deviceIsDragon=true]{font-size:28px;min-height:0px;}"
  - ReplaceZlib:
      Find:    "SmallButtonLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 27px;\n}"
      Replace: "SmallButtonLabel[qApp_deviceIsAlyssum=true]{font-size:31px;}"
  - ReplaceZlib:
      Find:    "SmallButtonLabel[qApp_deviceIsNova=true] {\n  font-size: 27px;\n}"
      Replace: "SmallButtonLabel[qApp_deviceIsNova=true]{font-size:31px;}"
  - ReplaceZlib:
      Find:    "SmallButtonLabel[qApp_deviceIsDaylight=true] {\n  font-size: 31px;\n  min-height: 0px;\n}"
      Replace: "SmallButtonLabel[qApp_deviceIsDaylight=true]{font-size:35px;min-height:0px;}"

  - ReplaceZlib:
      Find:    "TouchLineEdit[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "TouchLineEdit[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "TouchLineEdit[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "TouchLineEdit[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "TouchLineEdit[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "TouchLineEdit[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "TouchLineEdit[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "TouchLineEdit[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "TouchLineEdit[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "TouchLineEdit[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "TouchLineEdit[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "TouchLineEdit[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find:    "DisplayLabel {\n  font-family: Georgia;\n  font-size: 50px;\n}"
      Replace: "DisplayLabel{font-family:Georgia;font-size:53px;}"

  - ReplaceZlib:
      Find:    "DisplayLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 55px;\n}"
      Replace: "DisplayLabel[qApp_deviceIsPhoenix=true]{font-size:57px;}"
  - ReplaceZlib:
      Find: |
        DisplayLabel[qApp_deviceIsPhoenix=true][qApp_localeName="ja_JP"] {\n  font-size: 45px;\n}
      Replace: |
        DisplayLabel[qApp_deviceIsPhoenix=true][qApp_localeName="ja_JP"]{font-size:48px;}
  - ReplaceZlib:
      Find:    "DisplayLabel[qApp_deviceIsDragon=true] {\n  font-size: 71px;\n}"
      Replace: "DisplayLabel[qApp_deviceIsDragon=true]{font-size:71px;}"
  - ReplaceZlib:
      Find: |
        DisplayLabel[qApp_deviceIsDragon=true][qApp_localeName="ja_JP"] {\n  font-size: 57px;\n}
      Replace: |
        DisplayLabel[qApp_deviceIsDragon=true][qApp_localeName="ja_JP"]{font-size:59px;}
  - ReplaceZlib:
      Find:    "DisplayLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 77px;\n}"
      Replace: "DisplayLabel[qApp_deviceIsAlyssum=true]{font-size:77px;}"
  - ReplaceZlib:
      Find: |
        DisplayLabel[qApp_deviceIsAlyssum=true][qApp_localeName="ja_JP"] {\n  font-size: 62px;\n}
      Replace: |
        DisplayLabel[qApp_deviceIsAlyssum=true][qApp_localeName="ja_JP"]{font-size:62px;}
  - ReplaceZlib:
      Find:    "DisplayLabel[qApp_deviceIsNova=true] {\n  font-size: 77px;\n}"
      Replace: "DisplayLabel[qApp_deviceIsNova=true]{font-size:77px;}"
  - ReplaceZlib:
      Find: |
        DisplayLabel[qApp_deviceIsNova=true][qApp_localeName="ja_JP"] {\n  font-size: 62px;\n}
      Replace: |
        DisplayLabel[qApp_deviceIsNova=true][qApp_localeName="ja_JP"]{font-size:62px;}
  - ReplaceZlib:
      Find:    "DisplayLabel[qApp_deviceIsDaylight=true] {\n  font-size: 91px;\n}"
      Replace: "DisplayLabel[qApp_deviceIsDaylight=true]{font-size:91px;}"
  - ReplaceZlib:
      Find: |
        DisplayLabel[qApp_deviceIsDaylight=true][qApp_localeName="ja_JP"] {\n  font-size: 74px;\n}
      Replace: |
        DisplayLabel[qApp_deviceIsDaylight=true][qApp_localeName="ja_JP"]{font-size:74px;}

  - ReplaceZlib:
      Find:    "HeaderMediumElidedLabel[qApp_deviceIsTrilogy=true],\nHeaderMediumTouchLabel[qApp_deviceIsTrilogy=true],\nHeaderMediumLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 30px;\n}"
      Replace: "HeaderMediumElidedLabel[qApp_deviceIsTrilogy=true],HeaderMediumTouchLabel[qApp_deviceIsTrilogy=true],HeaderMediumLabel[qApp_deviceIsTrilogy=true]{font-size:34px;}"
  - ReplaceZlib:
      Find:    "HeaderMediumElidedLabel[qApp_deviceIsPhoenix=true],\nHeaderMediumTouchLabel[qApp_deviceIsPhoenix=true],\nHeaderMediumLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 36px;\n}"
      Replace: "HeaderMediumElidedLabel[qApp_deviceIsPhoenix=true],HeaderMediumTouchLabel[qApp_deviceIsPhoenix=true],HeaderMediumLabel[qApp_deviceIsPhoenix=true]{font-size:39px;}"
  - ReplaceZlib:
      Find:    "HeaderMediumElidedLabel[qApp_deviceIsDragon=true],\nHeaderMediumTouchLabel[qApp_deviceIsDragon=true],\nHeaderMediumLabel[qApp_deviceIsDragon=true] {\n  font-size: 46px;\n}"
      Replace: "HeaderMediumElidedLabel[qApp_deviceIsDragon=true],HeaderMediumTouchLabel[qApp_deviceIsDragon=true],HeaderMediumLabel[qApp_deviceIsDragon=true]{font-size:49px;}"
  - ReplaceZlib:
      Find:    "HeaderMediumElidedLabel[qApp_deviceIsAlyssum=true],\nHeaderMediumTouchLabel[qApp_deviceIsAlyssum=true],\nHeaderMediumLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 50px;\n}"
      Replace: "HeaderMediumElidedLabel[qApp_deviceIsAlyssum=true],HeaderMediumTouchLabel[qApp_deviceIsAlyssum=true],HeaderMediumLabel[qApp_deviceIsAlyssum=true]{font-size:53px;}"
  - ReplaceZlib:
      Find:    "HeaderMediumElidedLabel[qApp_deviceIsNova=true],\nHeaderMediumTouchLabel[qApp_deviceIsNova=true],\nHeaderMediumLabel[qApp_deviceIsNova=true] {\n  font-size: 50px;\n}"
      Replace: "HeaderMediumElidedLabel[qApp_deviceIsNova=true],HeaderMediumTouchLabel[qApp_deviceIsNova=true],HeaderMediumLabel[qApp_deviceIsNova=true]{font-size:53px;}"
  - ReplaceZlib:
      Find:    "HeaderMediumElidedLabel[qApp_deviceIsDaylight=true],\nHeaderMediumTouchLabel[qApp_deviceIsDaylight=true],\nHeaderMediumLabel[qApp_deviceIsDaylight=true] {\n  font-size: 60px;\n}"
      Replace: "HeaderMediumElidedLabel[qApp_deviceIsDaylight=true],HeaderMediumTouchLabel[qApp_deviceIsDaylight=true],HeaderMediumLabel[qApp_deviceIsDaylight=true]{font-size:60px;}"

  - ReplaceZlib:
      Find:    "HeaderSmallLabel {\n  font-family: Georgia;\n  font-size: 23px;\n}"
      Replace: "HeaderSmallLabel{font-family:Georgia;font-size:27px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 28px;\n}"
      Replace: "HeaderSmallLabel[qApp_deviceIsPhoenix=true]{font-size:32px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallLabel[qApp_deviceIsDragon=true] {\n  font-size: 36px;\n}"
      Replace: "HeaderSmallLabel[qApp_deviceIsDragon=true]{font-size:39px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 39px;\n}"
      Replace: "HeaderSmallLabel[qApp_deviceIsAlyssum=true]{font-size:42px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallLabel[qApp_deviceIsNova=true] {\n  font-size: 39px;\n}"
      Replace: "HeaderSmallLabel[qApp_deviceIsNova=true]{font-size:42px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallLabel[qApp_deviceIsDaylight=true] {\n  font-size: 47px;\n}"
      Replace: "HeaderSmallLabel[qApp_deviceIsDaylight=true]{font-size:50px;}"

  - ReplaceZlib:
      Find:    "HeaderSmallElidedLabel,\nHeaderSmallItalicLabel {\n  font-family: Georgia;\n  font-style: italic;\n  font-size: 23px;\n  padding-left: 12px;\n  padding-right: 12px;\n  qproperty-alignment: 'AlignLeft|AlignVCenter';\n}"
      Replace: "HeaderSmallElidedLabel,HeaderSmallItalicLabel{font-family:Georgia;font-style:italic;font-size:27px;padding-left:12px;padding-right:12px;qproperty-alignment:'AlignLeft|AlignVCenter';}"
  - ReplaceZlib:
      Find:    "HeaderSmallElidedLabel[qApp_deviceIsPhoenix=true],\nHeaderSmallItalicLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 28px;\n  padding-left: 15px;\n  padding-right: 15px;\n}"
      Replace: "HeaderSmallElidedLabel[qApp_deviceIsPhoenix=true],HeaderSmallItalicLabel[qApp_deviceIsPhoenix=true]{font-size:32px;padding-left:15px;padding-right:15px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallElidedLabel[qApp_deviceIsDragon=true],\nHeaderSmallItalicLabel[qApp_deviceIsDragon=true] {\n  font-size: 36px;\n  padding-left: 20px;\n  padding-right: 20px;\n}"
      Replace: "HeaderSmallElidedLabel[qApp_deviceIsDragon=true],HeaderSmallItalicLabel[qApp_deviceIsDragon=true]{font-size:39px;padding-left:20px;padding-right:20px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallElidedLabel[qApp_deviceIsAlyssum=true],\nHeaderSmallItalicLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 39px;\n}"
      Replace: "HeaderSmallElidedLabel[qApp_deviceIsAlyssum=true],HeaderSmallItalicLabel[qApp_deviceIsAlyssum=true]{font-size:42px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallElidedLabel[qApp_deviceIsNova=true],\nHeaderSmallItalicLabel[qApp_deviceIsNova=true] {\n  font-size: 39px;\n}"
      Replace: "HeaderSmallElidedLabel[qApp_deviceIsNova=true],HeaderSmallItalicLabel[qApp_deviceIsNova=true]{font-size:42px;}"
  - ReplaceZlib:
      Find:    "HeaderSmallElidedLabel[qApp_deviceIsDaylight=true],\nHeaderSmallItalicLabel[qApp_deviceIsDaylight=true] {\n  font-size: 47px;\n  padding-left: 26px;\n  padding-right: 26px;\n}"
      Replace: "HeaderSmallElidedLabel[qApp_deviceIsDaylight=true],HeaderSmallItalicLabel[qApp_deviceIsDaylight=true]{font-size:50px;padding-left:26px;padding-right:26px;}"

  - ReplaceZlib:
      Find:    "RegularAdjustingLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "RegularAdjustingLabel[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "RegularAdjustingLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "RegularAdjustingLabel[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "RegularAdjustingLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "RegularAdjustingLabel[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "RegularAdjustingLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "RegularAdjustingLabel[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularAdjustingLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "RegularAdjustingLabel[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularAdjustingLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "RegularAdjustingLabel[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find: |
        RegularAdjustingLabel[qApp_deviceIsTrilogy=true][qApp_localeName="ja_JP"] {\n  font-size: 17px;\n}
      Replace: |
        RegularAdjustingLabel[qApp_deviceIsTrilogy=true][qApp_localeName="ja_JP"]{font-size:21px;}
  - ReplaceZlib:
      Find: |
        RegularAdjustingLabel[qApp_deviceIsPhoenix=true][qApp_localeName="ja_JP"] {\n  font-size: 20px;\n}
      Replace: |
        RegularAdjustingLabel[qApp_deviceIsPhoenix=true][qApp_localeName="ja_JP"]{font-size:24px;}
  - ReplaceZlib:
      Find: |
        RegularAdjustingLabel[qApp_deviceIsDragon=true][qApp_localeName="ja_JP"] {\n  font-size: 27px;\n}
      Replace: |
        RegularAdjustingLabel[qApp_deviceIsDragon=true][qApp_localeName="ja_JP"]{font-size:31px;}
  - ReplaceZlib:
      Find: |
        RegularAdjustingLabel[qApp_deviceIsAlyssum=true][qApp_localeName="ja_JP"] {\n  font-size: 30px;\n}
      Replace: |
        RegularAdjustingLabel[qApp_deviceIsAlyssum=true][qApp_localeName="ja_JP"]{font-size:34px;}
  - ReplaceZlib:
      Find: |
        RegularAdjustingLabel[qApp_deviceIsNova=true][qApp_localeName="ja_JP"] {\n  font-size: 30px;\n}
      Replace: |
        RegularAdjustingLabel[qApp_deviceIsNova=true][qApp_localeName="ja_JP"]{font-size:34px;}
  - ReplaceZlib:
      Find: |
        RegularAdjustingLabel[qApp_deviceIsDaylight=true][qApp_localeName="ja_JP"] {\n  font-size: 35px;\n}
      Replace: |
        RegularAdjustingLabel[qApp_deviceIsDaylight=true][qApp_localeName="ja_JP"]{font-size:38px;}

  - ReplaceZlib:
      Find:    "RegularLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "RegularLabel[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "RegularLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "RegularLabel[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "RegularLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "RegularLabel[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "RegularLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "RegularLabel[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "RegularLabel[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "RegularLabel[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find: |
        RegularLabel[qApp_deviceIsTrilogy=true][qApp_localeName="ja_JP"] {\n  font-size: 17px;\n}
      Replace: |
        RegularLabel[qApp_deviceIsTrilogy=true][qApp_localeName="ja_JP"]{font-size:21px;}
  - ReplaceZlib:
      Find: |
        RegularLabel[qApp_deviceIsPhoenix=true][qApp_localeName="ja_JP"] {\n  font-size: 20px;\n}
      Replace: |
        RegularLabel[qApp_deviceIsPhoenix=true][qApp_localeName="ja_JP"]{font-size:24px;}
  - ReplaceZlib:
      Find: |
        RegularLabel[qApp_deviceIsDragon=true][qApp_localeName="ja_JP"] {\n  font-size: 27px;\n}
      Replace: |
        RegularLabel[qApp_deviceIsDragon=true][qApp_localeName="ja_JP"]{font-size:31px;}
  - ReplaceZlib:
      Find: |
        RegularLabel[qApp_deviceIsAlyssum=true][qApp_localeName="ja_JP"] {\n  font-size: 30px;\n}
      Replace: |
        RegularLabel[qApp_deviceIsAlyssum=true][qApp_localeName="ja_JP"]{font-size:34px;}
  - ReplaceZlib:
      Find: |
        RegularLabel[qApp_deviceIsNova=true][qApp_localeName="ja_JP"] {\n  font-size: 30px;\n}
      Replace: |
        RegularLabel[qApp_deviceIsNova=true][qApp_localeName="ja_JP"]{font-size:34px;}
  - ReplaceZlib:
      Find: |
        RegularLabel[qApp_deviceIsDaylight=true][qApp_localeName="ja_JP"] {\n  font-size: 35px;\n}
      Replace: |
        RegularLabel[qApp_deviceIsDaylight=true][qApp_localeName="ja_JP"]{font-size:38px;}

  - ReplaceZlib:
      Find:    "HeaderBarLabel[qApp_deviceIsTrilogy=true],\nRegularReversibleLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "HeaderBarLabel[qApp_deviceIsTrilogy=true],RegularReversibleLabel[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "HeaderBarLabel[qApp_deviceIsPhoenix=true],\nRegularReversibleLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "HeaderBarLabel[qApp_deviceIsPhoenix=true],RegularReversibleLabel[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "HeaderBarLabel[qApp_deviceIsDragon=true],\nRegularReversibleLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "HeaderBarLabel[qApp_deviceIsDragon=true],RegularReversibleLabel[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "HeaderBarLabel[qApp_deviceIsAlyssum=true],\nRegularReversibleLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "HeaderBarLabel[qApp_deviceIsAlyssum=true],RegularReversibleLabel[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "HeaderBarLabel[qApp_deviceIsNova=true],\nRegularReversibleLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "HeaderBarLabel[qApp_deviceIsNova=true],RegularReversibleLabel[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "HeaderBarLabel[qApp_deviceIsDaylight=true],\nRegularReversibleLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "HeaderBarLabel[qApp_deviceIsDaylight=true],RegularReversibleLabel[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find:    "RegularTouchLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "RegularTouchLabel[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "RegularTouchLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "RegularTouchLabel[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "RegularTouchLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "RegularTouchLabel[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "RegularTouchLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "RegularTouchLabel[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularTouchLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "RegularTouchLabel[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularTouchLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "RegularTouchLabel[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find:    "RegularElidedLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "RegularElidedLabel[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "RegularElidedLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "RegularElidedLabel[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "RegularElidedLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "RegularElidedLabel[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "RegularElidedLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "RegularElidedLabel[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularElidedLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "RegularElidedLabel[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularElidedLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "RegularElidedLabel[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find:    "RegularElidableLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}"
      Replace: "RegularElidableLabel[qApp_deviceIsTrilogy=true]{font-size:23px;}"
  - ReplaceZlib:
      Find:    "RegularElidableLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}"
      Replace: "RegularElidableLabel[qApp_deviceIsPhoenix=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "RegularElidableLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}"
      Replace: "RegularElidableLabel[qApp_deviceIsDragon=true]{font-size:33px;}"
  - ReplaceZlib:
      Find:    "RegularElidableLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}"
      Replace: "RegularElidableLabel[qApp_deviceIsAlyssum=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularElidableLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}"
      Replace: "RegularElidableLabel[qApp_deviceIsNova=true]{font-size:36px;}"
  - ReplaceZlib:
      Find:    "RegularElidableLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
      Replace: "RegularElidableLabel[qApp_deviceIsDaylight=true]{font-size:40px;}"

  - ReplaceZlib:
      Find: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}
      Replace: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsTrilogy=true]{font-size:23px;}
  - ReplaceZlib:
      Find: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}
      Replace: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsPhoenix=true]{font-size:27px;}
  - ReplaceZlib:
      Find: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}
      Replace: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsDragon=true]{font-size:33px;}
  - ReplaceZlib:
      Find: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}
      Replace: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsAlyssum=true]{font-size:36px;}
  - ReplaceZlib:
      Find: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsNova=true] {\n  font-size: 32px;\n}
      Replace: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsNova=true]{font-size:36px;}
  - ReplaceZlib:
      Find: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}
      Replace: |
        RegularItalicLabel[qApp_localeName="ja_JP"][qApp_deviceIsDaylight=true]{font-size:40px;}

  - ReplaceZlib:
      Find:    "PageLabel[qApp_deviceIsTrilogy=true],\nSmallElidedLabel[qApp_deviceIsTrilogy=true],\nSmallTouchLabel[qApp_deviceIsTrilogy=true],\nSmallLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 17px;\n}"
      Replace: "PageLabel[qApp_deviceIsTrilogy=true],SmallElidedLabel[qApp_deviceIsTrilogy=true],SmallTouchLabel[qApp_deviceIsTrilogy=true],SmallLabel[qApp_deviceIsTrilogy=true]{font-size:21px;}"
  - ReplaceZlib:
      Find:    "PageLabel[qApp_deviceIsPhoenix=true],\nSmallElidedLabel[qApp_deviceIsPhoenix=true],\nSmallTouchLabel[qApp_deviceIsPhoenix=true],\nSmallLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 22px;\n}"
      Replace: "PageLabel[qApp_deviceIsPhoenix=true],SmallElidedLabel[qApp_deviceIsPhoenix=true],SmallTouchLabel[qApp_deviceIsPhoenix=true],SmallLabel[qApp_deviceIsPhoenix=true]{font-size:26px;}"
  - ReplaceZlib:
      Find:    "PageLabel[qApp_deviceIsDragon=true],\nSmallElidedLabel[qApp_deviceIsDragon=true],\nSmallTouchLabel[qApp_deviceIsDragon=true],\nSmallLabel[qApp_deviceIsDragon=true] {\n  font-size: 26px;\n}"
      Replace: "PageLabel[qApp_deviceIsDragon=true],SmallElidedLabel[qApp_deviceIsDragon=true],SmallTouchLabel[qApp_deviceIsDragon=true],SmallLabel[qApp_deviceIsDragon=true]{font-size:30px;}"
  - ReplaceZlib:
      Find:    "PageLabel[qApp_deviceIsAlyssum=true],\nSmallElidedLabel[qApp_deviceIsAlyssum=true],\nSmallTouchLabel[qApp_deviceIsAlyssum=true],\nSmallLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 30px;\n}"
      Replace: "PageLabel[qApp_deviceIsAlyssum=true],SmallElidedLabel[qApp_deviceIsAlyssum=true],SmallTouchLabel[qApp_deviceIsAlyssum=true],SmallLabel[qApp_deviceIsAlyssum=true]{font-size:34px;}"
  - ReplaceZlib:
      Find:    "PageLabel[qApp_deviceIsNova=true],\nSmallElidedLabel[qApp_deviceIsNova=true],\nSmallTouchLabel[qApp_deviceIsNova=true],\nSmallLabel[qApp_deviceIsNova=true] {\n  font-size: 30px;\n}"
      Replace: "PageLabel[qApp_deviceIsNova=true],SmallElidedLabel[qApp_deviceIsNova=true],SmallTouchLabel[qApp_deviceIsNova=true],SmallLabel[qApp_deviceIsNova=true]{font-size:34px;}"
  - ReplaceZlib:
      Find:    "PageLabel[qApp_deviceIsDaylight=true],\nSmallElidedLabel[qApp_deviceIsDaylight=true],\nSmallTouchLabel[qApp_deviceIsDaylight=true],\nSmallLabel[qApp_deviceIsDaylight=true] {\n  font-size: 34px;\n}"
      Replace: "PageLabel[qApp_deviceIsDaylight=true],SmallElidedLabel[qApp_deviceIsDaylight=true],SmallTouchLabel[qApp_deviceIsDaylight=true],SmallLabel[qApp_deviceIsDaylight=true]{font-size:37px;}"

  - ReplaceZlib:
      Find:    "MetaDataElidedLabel[qApp_deviceIsTrilogy=true],\nMetaDataLabel[qApp_deviceIsTrilogy=true],\nMetaDataAdjustingLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 13px;\n}"
      Replace: "MetaDataElidedLabel[qApp_deviceIsTrilogy=true],MetaDataLabel[qApp_deviceIsTrilogy=true],MetaDataAdjustingLabel[qApp_deviceIsTrilogy=true]{font-size:17px;}"
  - ReplaceZlib:
      Find:    "MetaDataElidedLabel[qApp_deviceIsPhoenix=true],\nMetaDataLabel[qApp_deviceIsPhoenix=true],\nMetaDataAdjustingLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 16px;\n}"
      Replace: "MetaDataElidedLabel[qApp_deviceIsPhoenix=true],MetaDataLabel[qApp_deviceIsPhoenix=true],MetaDataAdjustingLabel[qApp_deviceIsPhoenix=true]{font-size:20px;}"
  - ReplaceZlib:
      Find:    "MetaDataElidedLabel[qApp_deviceIsDragon=true],\nMetaDataLabel[qApp_deviceIsDragon=true],\nMetaDataAdjustingLabel[qApp_deviceIsDragon=true] {\n  font-size: 21px;\n}"
      Replace: "MetaDataElidedLabel[qApp_deviceIsDragon=true],MetaDataLabel[qApp_deviceIsDragon=true],MetaDataAdjustingLabel[qApp_deviceIsDragon=true]{font-size:25px;}"
  - ReplaceZlib:
      Find:    "MetaDataElidedLabel[qApp_deviceIsAlyssum=true],\nMetaDataLabel[qApp_deviceIsAlyssum=true],\nMetaDataAdjustingLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 23px;\n}"
      Replace: "MetaDataElidedLabel[qApp_deviceIsAlyssum=true],MetaDataLabel[qApp_deviceIsAlyssum=true],MetaDataAdjustingLabel[qApp_deviceIsAlyssum=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "MetaDataElidedLabel[qApp_deviceIsNova=true],\nMetaDataLabel[qApp_deviceIsNova=true],\nMetaDataAdjustingLabel[qApp_deviceIsNova=true] {\n  font-size: 23px;\n}"
      Replace: "MetaDataElidedLabel[qApp_deviceIsNova=true],MetaDataLabel[qApp_deviceIsNova=true],MetaDataAdjustingLabel[qApp_deviceIsNova=true]{font-size:27px;}"
  - ReplaceZlib:
      Find:    "MetaDataElidedLabel[qApp_deviceIsDaylight=true],\nMetaDataLabel[qApp_deviceIsDaylight=true],\nMetaDataAdjustingLabel[qApp_deviceIsDaylight=true] {\n  font-size: 27px;\n}"
      Replace: "MetaDataElidedLabel[qApp_deviceIsDaylight=true],MetaDataLabel[qApp_deviceIsDaylight=true],MetaDataAdjustingLabel[qApp_deviceIsDaylight=true]{font-size:31px;}"
Error #5
Spoiler:
Code:
          ResetBaseAddress()
          Enabled: true
          applying patch `tshering's BAD EYES adaptation (PROGRESIVE)`
        looping over instructions
          skipping non-instruction Enabled(), PatchGroup() or Description()
          skipping non-instruction Enabled(), PatchGroup() or Description()
          FindZlib("QWidget[small") | hex:515769646765745b736d616c6c
          ReplaceZlib(0, "QCheckBox[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}", "QCheckBox[qApp_deviceIsTrilogy=true]{font-size:23px;}")
          ReplaceZlib(0, "QCheckBox[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}", "QCheckBox[qApp_deviceIsPhoenix=true]{font-size:27px;}")
          ReplaceZlib(0, "QCheckBox[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}", "QCheckBox[qApp_deviceIsDragon=true]{font-size:33px;}")
          ReplaceZlib(0, "QCheckBox[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}", "QCheckBox[qApp_deviceIsAlyssum=true]{font-size:36px;}")
        could not apply patch: ReplaceZlib: new compressed data is 5 bytes longer than old data (try removing whitespace or unnecessary css)
Fatal: Could not apply patch file src/nickel-BADEYES.yaml: ReplaceZlib: new compressed data is 5 bytes longer than old data (try removing whitespace or unnecessary css)
I'm missing something?
I think all of them should work. (In fact, they do with patch32lsb).
I don't really know if I making once and again the same mistake, there is a problem with the compression method...

Good luck.
jcn363 is offline   Reply With Quote
Old 07-14-2018, 09:38 AM   #123
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
The fix for that is pretty easy. Just combine more of the ReplaceZlib instructions into one long replacement. This is a side effect of the way I do replacements, where the instructions are all executed individually. This means each individual instructions needs to compress well enough. I'm working on fixing this though to make it more convenient.

I'd suggest you group every 4-5 replacements into one long ReplaceZlib. Have a look at some of the patches I converted for examples of this. If you want, I can help you with this one.
geek1011 is offline   Reply With Quote
Old 07-14-2018, 09:41 AM   #124
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by norbusan View Post
Good question, something I have asked, too - including the commenting of the empty overrides.

I have submitted a pull request to allow reading a config file from a cmd line argument or stdin, and I would alter the question here: what besides the actual firmware zip file is version dependent? I see two times the version appearing in the yaml file: the `version` tag and the `in` tag.

Does the `version` tag carry any inherent meaning?

And if not, would it be an option (I can look at the code) to override the `in` tag with a command line argument? It really seems strange that everything looks so version independent but the version number still appears.
That exists for 2 reasons. Firstly, in the future, I may do a check on the version for the downloaded firmware, especially with the recently misleading version numbers in the update zip. Secondly, I want users to consciously upgrade their patches, not just blindly copy and paste.

For overriding the in tag, it would be simple (just setting cfg.In). I would need to add pflag for command line parsing, so tell me before you make a PR, if you are planning to. I can do this myself if you want.
geek1011 is offline   Reply With Quote
Old 07-14-2018, 09:51 AM   #125
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by geek1011 View Post
The fix for that is pretty easy. Just combine more of the ReplaceZlib instructions into one long replacement. This is a side effect of the way I do replacements, where the instructions are all executed individually. This means each individual instructions needs to compress well enough. I'm working on fixing this though to make it more convenient.

I'd suggest you group every 4-5 replacements into one long ReplaceZlib. Have a look at some of the patches I converted for examples of this. If you want, I can help you with this one.

I'll try.


Good luck.
jcn363 is offline   Reply With Quote
Old 07-14-2018, 03:08 PM   #126
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by geek1011 View Post
... I want users to consciously upgrade their patches, not just blindly copy and paste.
I couldn't agree more with this sentiment. I'm all for convenience but, where hacking is concerned, the brain needs to be engaged.

I've now migrated all my personal patches to the .yaml format. I'm very happy with the result. The FindZlib function for nickel is a great addition to the patching portfolio.

@geek1011,
I do have a question. Am I right in thinking that preparing a patch for a nickel nozlib CSS stream is exactly the same as preparing a patch for one of the other 3 files? i.e. it's essential for find/replace string lengths to be maintained at all times.

All we need now is another new firmware so we can fully test the theory that it should be easier to prepare/apply patches in future
jackie_w is offline   Reply With Quote
Old 07-14-2018, 03:45 PM   #127
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jackie_w View Post
@geek1011,
I do have a question. Am I right in thinking that preparing a patch for a nickel nozlib CSS stream is exactly the same as preparing a patch for one of the other 3 files? i.e. it's essential for find/replace string lengths to be maintained at all times.

All we need now is another new firmware so we can fully test the theory that it should be easier to prepare/apply patches in future
Yes, maintaining string length is required for nozlib patches. In the future (maybe in a few months), I will probably implement css-specific functions to allow patching CSS without even bothering with string replacements or finding the correct stream (I might have mentioned the details somewhere above).

As for the new firmware, I also hope it comes soon, as I'm on vacation later this summer and I want to be able to be there when the new firmware comes out. GeoffR finally responded to my PM, and I've told him everything needed to release a new version, so it should work out fine even if I'm not available. Basically, you just make a new dir for the new firmware, you comment out the outdated patches, you update the ones you can, you check the build status, then you create a GitHub release. The zips are automatically generated and tested.
geek1011 is offline   Reply With Quote
Old 07-15-2018, 01:13 AM   #128
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Preserving (some) custom patch options from one version to the next

One simple approach keeping some customised patch options from one firmware version to the next could be to implement a depends keyword, similar to the patch_group keyword: This could also be used for the current two-part patches, where each part would simply depend on the other part.

depends = `NAME`

means that the current patch depends on another patch called NAME also being enabled. If the current patch is enabled but NAME is not, then throw an error.

A patch XXX with a small number of discrete options A, B, C, could be split into a base patch XXX-base, plus three patches XXX-option-A, XXX-option-B, XXX-option-C that each depend on XXX-base. (If they are mutually-exclusive options then they could also belong to patch_group XXX-options.)

It wouldn't help with patch options that have a wide range of possible values, those would still need to be edited by hand each time, but I think it would work okay for patches such as:

`ePub fixed/adjustable top/bottom margins`
`Set KePub hyphenation`
`KePub stylesheet additions`

For some other patches it would also be possible for individuals to create their own custom configuration patch that they keep, and simply paste it into the file with each new version, (or the patch tool could implement a method of including it automatically?), instead of editing the existing patch. This would be especially useful where the custom configuration patch could be made version-independent but the main patch could not. Examples of where this might be useful are:

`My 24 line spacing values`
`Custom reading footer style`

This could all be done with the existing patch32lsb tools, with the depends line commented out as with the patch_group line, but it would not give useful error messages when the dependencies were not satisfied.

I'll create some concrete examples later that might help explain it better.

Edit: Added a simple example for splitting up `KePub stylesheet additions` here.

Last edited by GeoffR; 07-15-2018 at 04:45 AM. Reason: added link to `KePub stylesheet additions` example
GeoffR is offline   Reply With Quote
Old 07-15-2018, 10:09 AM   #129
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
That's a really good idea! I'll implement it sometime in the next few weeks. There's a bit of complexity due to dependency resolution though, but I think I will use topological sorting to deal with it.

Last edited by geek1011; 07-18-2018 at 09:54 AM.
geek1011 is offline   Reply With Quote
Old 07-16-2018, 09:23 AM   #130
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Anyone knows how to manage special characters > and !?
I tried:
\ (works for "),
|,>,
HTML Entity (#33 for exclamation mark),
Unicode block (u+0021 for exclamation mark)
...
Spoiler:
Code:
tshering's BAD EYES adaptation (PROGRESIVE):
  - Enabled: no
  - Description: |
      source: tshering/KBPatcher17_4.4.9995/4_plus_source/nickel
#zlib stream: offset_hex(0x47BC4E) offset_int32(4701262) len_int32(3159) sha1(6ea1f8ffb6a83b60a8cdeb3891f37207e23e90ef)
  - FindZlib: "#barContainer[qApp_deviceIsTrilogy=true]"
  - ReplaceZlib:
      Find:    "#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true] {\n  font-size: 16px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n  font-size: 20px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDragon=true] {\n  font-size: 28px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDaylight=true] {\n  font-size: 36px;\n}"
      Replace: "#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:39px;}"

#zlib stream: offset_hex(0x240894) offset_int32(2361492) len_int32(3744) sha1(2ff51c25daf4c135c9aeda24e110677892616a6a)
  - FindZlib: "reader_head"
  - ReplaceZlib:
      Find: ".reader_head {\n  text-align: left !important;\n  word-wrap: break-word;\n}"
      Replace: ".reader_head{text-align:right !important;word-wrap:break-word;}"
allways the same Error
Spoiler:
Code:
          FindZlib("#barContainer[qApp_deviceIsTrilogy=true]") | hex:23626172436f6e7461696e65725b714170705f64657669636549735472696c6f67793d747275655d
          ReplaceZlib(0, "#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true] {\n  font-size: 16px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n  font-size: 20px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDragon=true] {\n  font-size: 28px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDaylight=true] {\n  font-size: 36px;\n}", "#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:39px;}")
        could not apply patch: ReplaceZlib: find string not found in stream (#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true]{font-size:16px;}#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true]{font-size:20px;}#tabContainer > N3TabItem[qApp_deviceIsDragon=true]{font-size:28px;}#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:36px;})
Fatal: Could not apply patch file src/nickel-BADEYES.yaml: ReplaceZlib: find string not found in stream (#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true]{font-size:16px;}#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true]{font-size:20px;}#tabContainer > N3TabItem[qApp_deviceIsDragon=true]{font-size:28px;}#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:36px;})

Good luck.
jcn363 is offline   Reply With Quote
Old 07-16-2018, 09:39 AM   #131
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jcn363 View Post
Anyone knows how to manage special characters > and !?
I tried:
\ (works for "),
|,>,
HTML Entity (#33 for exclamation mark),
Unicode block (u+0021 for exclamation mark)
...
Spoiler:
Code:
tshering's BAD EYES adaptation (PROGRESIVE):
  - Enabled: no
  - Description: |
      source: tshering/KBPatcher17_4.4.9995/4_plus_source/nickel
#zlib stream: offset_hex(0x47BC4E) offset_int32(4701262) len_int32(3159) sha1(6ea1f8ffb6a83b60a8cdeb3891f37207e23e90ef)
  - FindZlib: "#barContainer[qApp_deviceIsTrilogy=true]"
  - ReplaceZlib:
      Find:    "#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true] {\n  font-size: 16px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n  font-size: 20px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDragon=true] {\n  font-size: 28px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDaylight=true] {\n  font-size: 36px;\n}"
      Replace: "#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:39px;}"

#zlib stream: offset_hex(0x240894) offset_int32(2361492) len_int32(3744) sha1(2ff51c25daf4c135c9aeda24e110677892616a6a)
  - FindZlib: "reader_head"
  - ReplaceZlib:
      Find: ".reader_head {\n  text-align: left !important;\n  word-wrap: break-word;\n}"
      Replace: ".reader_head{text-align:right !important;word-wrap:break-word;}"
allways the same Error
Spoiler:
Code:
          FindZlib("#barContainer[qApp_deviceIsTrilogy=true]") | hex:23626172436f6e7461696e65725b714170705f64657669636549735472696c6f67793d747275655d
          ReplaceZlib(0, "#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true] {\n  font-size: 16px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n  font-size: 20px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDragon=true] {\n  font-size: 28px;\n}\n#tabContainer > N3TabItem[qApp_deviceIsDaylight=true] {\n  font-size: 36px;\n}", "#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:39px;}")
        could not apply patch: ReplaceZlib: find string not found in stream (#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true]{font-size:16px;}#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true]{font-size:20px;}#tabContainer > N3TabItem[qApp_deviceIsDragon=true]{font-size:28px;}#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:36px;})
Fatal: Could not apply patch file src/nickel-BADEYES.yaml: ReplaceZlib: find string not found in stream (#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true]{font-size:16px;}#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true]{font-size:20px;}#tabContainer > N3TabItem[qApp_deviceIsDragon=true]{font-size:28px;}#tabContainer > N3TabItem[qApp_deviceIsDaylight=true]{font-size:36px;})

Good luck.
Try using single quotes instead of double quotes. Remember that kobopatch uses YAML, so you can find everything in the spec. http://yaml.org/spec/1.2/spec.html#id2788097

Last edited by geek1011; 07-16-2018 at 09:42 AM.
geek1011 is offline   Reply With Quote
Old 07-16-2018, 09:50 AM   #132
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by geek1011 View Post
Try using single quotes instead of double quotes. Remember that kobopatch uses YAML, so you can find everything in the spec. http://yaml.org/spec/1.2/spec.html#id2788097

I do.
I'll try again.


Good luck.

Edit: NO way!
I'll find a workaround.

Last edited by jcn363; 07-16-2018 at 02:24 PM. Reason: I don't find a a solution.
jcn363 is offline   Reply With Quote
Old 07-17-2018, 08:53 AM   #133
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Could we pass the device as a parameter or use a variable?

Spoiler:
Code:
./bin/kobopatch-linux-64bit AuraOne

  vars:
    device: AuraOne

  Parameters:
    DevType:
      Description: Device type.
      Default: AuraOne
      Type: String
      AllowedValues:
        - Touch # Trilogy
        - Touch2 # Pika
        - Mini # Pixie
        - AuraHD # Dragon
        - Aura # Phoenix
        - Glo # uses the values of Phoenix
        - H2O # uses the values of Dragon
        - GloHD # Alyssum
        - ClaraHD # Nova
        - AuraOne # Daylight
      ConstraintDescription: must specify a value.
Good luck.
jcn363 is offline   Reply With Quote
Old 07-17-2018, 09:33 AM   #134
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
What would that be for?
geek1011 is offline   Reply With Quote
Old 07-17-2018, 09:41 AM   #135
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by geek1011 View Post
What would that be for?
To use something like:
Code:
      Replace: "QCheckBox[qApp_deviceIs {{ device }} =true]{font-size:40px;}"
jcn363 is offline   Reply With Quote
Reply

Tags
kobo, kobopatch, patch, patch32lsb


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kobopatch - A new (WIP) patching system geek1011 Kobo Developer's Corner 93 05-27-2018 03:04 PM
Patching H2O Maillemom Kobo Developer's Corner 8 10-19-2016 09:58 AM
Instructions for patching firmware 3.17.3 GeoffR Kobo Developer's Corner 60 09-17-2015 05:35 PM
Instructions for patching firmware 3.8.0 GeoffR Kobo Developer's Corner 92 10-22-2014 07:22 AM
how to clean more disk space in root file system to upgrade system chinaet iRex 1 12-18-2006 03:54 PM


All times are GMT -4. The time now is 03:46 PM.


MobileRead.com is a privately owned, operated and funded community.