04-23-2022, 09:02 PM | #46 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
What is no longer working in fw 4.32 is:
|
|
04-23-2022, 09:20 PM | #47 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
The font names you can patch *to* is very limited. I don't think customising to any sideloaded font will work in patches and many of the built-in fonts won't work in patch customisations either. The following works in patch Dictionary text font-family/font-size/line-height, but all it does is display your dictionary pop-ups in font 'Avenir Next' rather than font 'Georgia'. It's of limited use. Code:
- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "sans-serif", MustMatchLength: yes} Last edited by jackie_w; 04-23-2022 at 09:23 PM. Reason: missed a bit out |
|
Advert | |
|
04-23-2022, 09:52 PM | #48 | |
Groupie
Posts: 153
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
|
Quote:
|
|
04-23-2022, 10:03 PM | #49 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Code:
- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "'KBJ-TsukuMin Pr6N RB'", MustMatchLength: yes} Code:
- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "'KBJ-UDKakugo Pr6N M'", MustMatchLength: yes} |
|
04-24-2022, 12:07 AM | #50 | ||
Groupie
Posts: 153
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
|
Quote:
On v4.31.19086 firmware: 'KBJ-TsukuMin Pr6N RB' is Japanese font, it lacks some characters for CK books, so the text in the popup dictionary for my books will be displayed with two mixed fonts ('KBJ-TsukuMin Pr6N RB', and `fallback font (Kakugo, I think)`) 'KBJ-UDKakugo Pr6N M' is apparently Japanese font as well, and it is even worse, it removes the characters and the spaces for the characters like there are no characters in those positions at all. There is another CJK font ub_arudjingxihei.ttf, and I don't know what the string should I use, I tried 'ub arudjingxihei' but it doesn't work as expected, it is the same result as 'KBJ-TsukuMin Pr6N RB' On v4.32.19501 firmware, above two different fonts act basically the same, 'KBJ-TsukuMin Pr6N RB' and 'KBJ-UDKakugo Pr6N M' both remove the spaces like 'KBJ-UDKakugo Pr6N M' on v4.31.19086, font styles/families are different of course. BTW: Another thing about the string for the font you are using, I thought it should be the name from the Aa drop list (which I thought it is the string from the font family in the font manager), take one font as example, the name for KBJ-TsukuMin Pr6N RB is Kobo TsuKkushi Mincho from Kobo Aa drop list, but the font file name from the firmware path is KBJ-TsukuMinPr6N-RB.ttf, so I'm confused, I don't know where KBJ-TsukuMin Pr6N RB which contains spaces is coming from. Quote:
|
||
Advert | |
|
04-24-2022, 01:10 AM | #51 | |
Connoisseur
Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
Quote:
1. Publisher Default, when all built-in fonts are used that cannot be adjusted by Advanced; 2. Fonts from /fonts, which can be adjusted, but one font is used for the book. |
|
04-24-2022, 10:43 AM | #52 | |||
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Quote:
Code:
- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "'AR UDJingxihei'", MustMatchLength: yes} Quote:
Inside the fw file libnickel.so.1.0.0 I found human-readable strings KBJ-TsukuMin Pr6N RB and KBJ-UDKakugo Pr6N M. That's why I suggested trying them in the dictionary patch rather than the names which appear in the [Aa] font menu. In particular, the former is actually used by another piece of dictionary CSS in libnickel.so.1.0.0 It handles styling of the pronunciation text string for each word definition in the pop-up for some (all???) of the Kobo built-in dictionaries. ----------------------- On a more optimistic note - I have an idea which I think might work, but I can't be sure because I can't read any CJK language, nor do I have any CJK custom dictionaries or books to fully test it myself. If you want to be a guinea-pig PM me and we can take it from there. You should be able to test it on either 4.31 or 4.32 but, as all hacks come with some risk, it might be better to use your oldest least favourite Kobo ... Don't panic, I wouldn't ask you to try any hack I haven't already tried on one of my own older Kobos. On the other hand, if you're now sick of the whole thing and would prefer not to spend any more time on it, that's OK, too. |
|||
04-24-2022, 11:11 AM | #53 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Or are you reporting a different problem related to reading kepubs and what happens when you select a new font from the [Aa] font menu? If so, what has the [Advanced] button got to do with it? We don't seem to be getting anywhere with words, perhaps some screenshots, test book, sample HTML/CSS to illustrate your problem would help? Or if I'm being incredibly dense maybe someone else could chip in with an assessment of what problem is being reported here. Last edited by jackie_w; 04-24-2022 at 11:13 AM. |
|
04-24-2022, 04:35 PM | #54 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
Are there particular fonts that are better suited to testing the optimizeLegibility setting? I've been trying it out with CharInk and it adds some odd/uneccesary spacing for words sometimes (which ironically makes it less legible for me.)
e.g. "been" appearing as "b e e n" (spacing exaggerated but I can post some pictures if this is not clear.) I was wondering if this is something due to embedded styles in the particular book I was reading? Or ligatures/kerning not playing nice with CharInk? Or something else? |
04-24-2022, 06:24 PM | #55 | |
Groupie
Posts: 153
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
|
Quote:
So for v4.32.19501, my only issue is Un-Force user font-family in KePubs(multiple-fonts), it is not a serious issue either, it is just a small bug instead of being perfect on v4.31.19086. Last edited by codychan; 04-24-2022 at 06:27 PM. |
|
04-24-2022, 06:40 PM | #56 | |
Grand Sorcerer
Posts: 11,548
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
04-24-2022, 06:49 PM | #57 | |
Wizard
Posts: 2,853
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
|
Quote:
|
|
04-24-2022, 07:13 PM | #58 | ||
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
If you change your mind and decide you'd rather pursue a bigger hack to use Code2000.ttf as your CJK dictionary font let me know via PM. I don't want to post instructions here until I know it definitely works without side-effects in fw4.32. Quote:
Last edited by jackie_w; 04-24-2022 at 07:19 PM. Reason: typo |
||
04-24-2022, 07:28 PM | #59 | |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
Quote:
Last edited by KaizaCorp; 04-24-2022 at 07:31 PM. |
|
04-24-2022, 08:05 PM | #60 | |
Wizard
Posts: 2,853
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
|
Quote:
If you REALLY don't want to use fontforge you could also opt to just not install the bold italic version of Bookerly, this SHOULD force the use of the italic version though I can't say for sure if this will work after all the changes in font handling 4.32 brought. Though I'd also say fontforge isn't scary, just follow the linked guide, easy peasy. |
|
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 07:15 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 06:35 PM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 04:40 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 10:22 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 11:06 AM |