View Single Post
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,808
Karma: 7423683
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