View Single Post
Old 12-24-2023, 11:13 AM   #37
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,254
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Toolpost View Post
Yes, not even book to book. If I press the back button and go to the books menu, reopen the same book again, I have to redo the entire procedure to get the dictionary Malayalam font rendered.
I've installed your 'Noto Sans Malayalam' font (regular only) and your dicthtml-en-ml.zip translation dictionary on my Libra2. I also customised the patch as you originally quoted:
Code:
  - ReplaceString: {Offset: 54, Find: "%4, serif            ", Replace: "'Noto Sans Malayalam'", MustMatchLength: yes}
If I follow the steps I outlined in post #30 after a reboot, everything appears to work as expected. See screenshots below. The only exception is the dictionary's name label on the top line of the pop-up (Pic2/Pic3).

It doesn't seem to matter which epub/kepub I open/re-open, if I do a dictionary lookup (any dictionary) the word definition uses the Malayalam Regular font for the parts of the definition which are intended to be displayed as Regular. I don't know how to fix the dictionary label's Malayalam characters but if it's a problem, a simple renaming of dicthtml-en-ml.zip may be the easiest workaround.
  • Pic1: The test kepub with its [Aa] font set/stored as 'Noto Sans Malayalam' and its dictionary set/stored as 'En-Malayalam'. I've attached a copy of the test kepub I use in case it's any help. You can just drag-drop it to your Kobo.
  • Pic2: A dictionary lookup using the 'En-Malayalam' dictionary in a random English KEPUB on the Libra2 with its [Aa] font set to my normal reading font.
  • Pic3: Same as Pic2 except using an EPUB.
Attached Thumbnails
Click image for larger version

Name:	1_test_kepub.png
Views:	1900
Size:	151.0 KB
ID:	205391   Click image for larger version

Name:	2_library_kepub.png
Views:	1918
Size:	227.2 KB
ID:	205392   Click image for larger version

Name:	3_library_epub.png
Views:	1891
Size:	149.9 KB
ID:	205393  
Attached Files
File Type: epub Kobo_dictionary_force_font.kepub.epub (19.2 KB, 1514 views)
jackie_w is offline   Reply With Quote