View Single Post
Old 10-02-2019, 05:54 PM   #43
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
@vostro,

I may have had at least some success (I think) with this patch.

It changes both Georgia/Avenir to Code2000 without changing any of the "zh-TW" specific CSS at all. You don't need to change anything in it and it should be safe. It targets the whole of the main GUI, which includes most of Book list.

Custom GUI Eng system fonts to Code2000
Spoiler:
Code:
Custom GUI Eng system fonts to Code2000:
  - Enabled: yes
  - Description: Fonts Georgia/Avenir to Code2000. Leave all zh locale CSS alone
  - FindZlib: "QWidget[smallIconHeight=true][qApp_deviceIsTrilogy=true]"
  - ReplaceZlibGroup:
      Replacements:
        - {Find: "font-family: Georgia;", Replace: "font-family:Code2000,Georgia;"}
        - {Find: "font-family: Avenir;",  Replace: "font-family:Code2000,Avenir;"}


I tried it on my H2O with locale set to both English and "zh-TW" and multiple re-boots. Every time I eventually had the same success getting Code2000 in the Book list.

For some GUI pages Code2000 was not displayed, even when using "zh-TW" locale but I don't think there were any "empty box" characters.

This what I did:
  • Apply patch and re-boot
  • Home screen does not use Code2000 (not surprising, Home screen uses different CSS than the one we just patched)
  • Open Book list, missing characters, Code2000 not displayed.
  • Open one of your Chinese kepubs. Close again.
  • Back to Book list. No missing characters, Code2000 displayed in whole Book list (not very attractive for English words )

If you don't see the same results every time you re-boot then I'm wondering whether the difference is due to you using the microSD for your books. I've never done this so I don't know what "Kobo quirks" (and I think there are several) to expect with microSD.

If the above is not successful try copying a couple of "problem" books to the H2O main memory to see whether the Book list behaves any differently for these books.

Last edited by jackie_w; 10-02-2019 at 05:59 PM. Reason: code checked
jackie_w is offline   Reply With Quote