View Single Post
Old 12-12-2019, 09:13 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,637
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
In fw 4.19 Kobo changed something to do with the default font for one of the Chinese locales. See the line in red. Try changing it to (with the correct indentation)
Code:
        - {Find: "#caption[localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Simplified, sans-serif;\n  font-style: normal;\n}", Replace: "\n"}
and try again. Or, alternatively, just comment out this line.

I haven't had time to test geek1011's changes to this patch yet. If the above doesn't work I'll have better info when I've done my own testing.
It doesn't work.

Code:
          |   Patch("Custom new header/footer font") enabled=true
          |     ResetBaseAddress()
          |     applying
          |     looping over instructions
          |       kobopatch.FindZlib index=3 line=320
          |         FindZlib("ReadingFooter") | hex:52656164696e67466f6f746572
          |       kobopatch.ReplaceZlibGroup index=4 line=322
          |         ReplaceZlibGroup(0, []struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"[qApp_deviceIsPhoenix=true] {\n  font-size: 16px;\n}", Replace:"[qApp_deviceIsPhoenix=true] {\n  font-size: 16px;\n}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"[qApp_deviceIsDragon=true] {\n  font-size: 21px;\n}", Replace:"[qApp_deviceIsDragon=true] {\n  font-size: 26px;\n}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"[qApp_deviceIsAlyssum=true] {\n  font-size: 23px;\n}", Replace:"[qApp_deviceIsAlyssum=true] {\n  font-size: 23px;\n}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"[qApp_deviceIsNova=true] {\n  font-size: 23px;\n}", Replace:"[qApp_deviceIsNova=true] {\n  font-size: 23px;\n}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"[qApp_deviceIsStorm=true] {\n  font-size: 25px;\n}", Replace:"[qApp_deviceIsStorm=true] {\n  font-size: 25px;\n}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"[qApp_deviceIsDaylight=true] {\n  font-size: 27px;\n}", Replace:"[qApp_deviceIsDaylight=true] {\n  font-size: 27px;\n}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"#caption[newHeader=true][qApp_deviceIsTrilogy=true],\n#caption[newFooter=true][qApp_deviceIsTrilogy=true] {\n  font-size: 13px;\n}", Replace:"#caption[newHeader=true][qApp_deviceIsTrilogy=true] {\n  font-size: 13px;\n}\n#caption[newFooter=true][qApp_deviceIsTrilogy=true] {\n  font-size: 13px;\n}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"#caption[newFooter=true][qApp_deviceIsTrilogy=true] {\n  font-size: 13px;\n}", Replace:"#caption[newFooter=true] {\n  font-size: 13px; margin-top: -11px;}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"#caption[newHeader=true][qApp_deviceIsTrilogy=true] {\n  font-size: 13px;\n}", Replace:"#caption[newHeader=true] {\n  font-size: 13px; margin-bottom: -10px;}"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"#caption[localeName=\"ja\"] {\n  font-family: Sans-SerifJP, sans-serif;\n  font-style: normal;\n}", Replace:"\n"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"#caption[localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Simplified, sans-serif;\n  font-style: normal;\n}", Replace:"\n"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"#caption[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}", Replace:"\n"}, struct { Find string "yaml:\"Find\""; Replace string "yaml:\"Replace\"" }{Find:"#caption[localeName=\"zh-TW\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}", Replace:"\n"}})
          |         could not apply patch "Custom new header/footer font": line 322: inst 4: ReplaceZlib: find string not found in stream (#caption[localeName="ja"]{font-family:Sans-SerifJP, sans-serif;font-style:normal;})
        --> could not apply patch "Custom new header/footer font": line 322: inst 4: ReplaceZlib: find string not found in stream (#caption[localeName="ja"]{font-family:Sans-SerifJP, sans-serif;font-style:normal;})
I do need the space as I'm 1 compressed byte short.
JSWolf is offline   Reply With Quote