Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2020, 10:52 PM   #1
meo_map13
Member
meo_map13 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2020
Device: Kobo Aura H2O v2
Custom dict font size is too small

I copy some custom dict. to folder "custom dict" on my Clara. However the font size is too small to read (as picture). The temporary solution is use Large Print Mode with increase all items size which is too big for me.

Could you please help with any solution to adjust the font size for these dicts.?
Thank you very much.
Leo
Attached Thumbnails
Click image for larger version

Name:	123296618_10158030081442872_8229478901448479042_n.jpg
Views:	377
Size:	152.1 KB
ID:	183221  
meo_map13 is offline   Reply With Quote
Old 11-05-2020, 07:52 AM   #2
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: 78,887
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I suggest you look at the dictionary code. It's possible the font size is hard coded.
JSWolf is offline   Reply With Quote
Advert
Old 11-05-2020, 09:31 PM   #3
meo_map13
Member
meo_map13 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2020
Device: Kobo Aura H2O v2
Quote:
Originally Posted by JSWolf View Post
I suggest you look at the dictionary code. It's possible the font size is hard coded.
Thank you very much. Actually I download it from a source on facebook and I'm not a developer. I'll try to contact the author.
meo_map13 is offline   Reply With Quote
Old 11-06-2020, 03:24 AM   #4
meo_map13
Member
meo_map13 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2020
Device: Kobo Aura H2O v2
Quote:
Originally Posted by JSWolf View Post
I suggest you look at the dictionary code. It's possible the font size is hard coded.
Hi Jon,
I try to find the author & source but his facebook is not available anymore. Is it possible for you to have a quick look over those files? Thank you very much.

Link: https://drive.google.com/drive/folde...B2?usp=sharing
meo_map13 is offline   Reply With Quote
Old 11-06-2020, 10:26 AM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,360
Karma: 165628573
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
You might also want to check in the KoboPatch thread. One of the items is "Dictionary text font-family/font-size/line-height" in the libnickel set of patches which might be able to increase the dictionary font size for you.
DNSB is online now   Reply With Quote
Advert
Old 11-11-2020, 01:41 AM   #6
meo_map13
Member
meo_map13 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2020
Device: Kobo Aura H2O v2
Quote:
Originally Posted by DNSB View Post
You might also want to check in the KoboPatch thread. One of the items is "Dictionary text font-family/font-size/line-height" in the libnickel set of patches which might be able to increase the dictionary font size for you.
Dear friend,
Thank you very much for your detail guide. I just find out this maybe the bug of new firmware. Maybe wait for next release.
meo_map13 is offline   Reply With Quote
Old 11-11-2020, 10:05 AM   #7
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: 78,887
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've had a look and the font size is not hard coded. I think this is the way it is and DNSB's suggestion is the way to fix the problem. I don't think it's a bug.
JSWolf is offline   Reply With Quote
Old 11-11-2020, 11:19 AM   #8
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,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by DNSB View Post
You might also want to check in the KoboPatch thread. One of the items is "Dictionary text font-family/font-size/line-height" in the libnickel set of patches which might be able to increase the dictionary font size for you.
Quote:
Originally Posted by meo_map13 View Post
Dear friend,
Thank you very much for your detail guide. I just find out this maybe the bug of new firmware. Maybe wait for next release.
I had a look inside these Vietnamese dictionaries. The font-size problem seems to arise from the fact that each word definition uses an HTML <table> structure, rather than the usual <div>, <blockquote>, <p>, <ol>/<li> structures common in Kobo builtin and custom dictionaries posted on MobileRead. I don't think I've seen a dictionary with tables before.

I'm at a loss as to exactly why a <table> should default to displaying so small (about 50% of 'normal'), nevertheless I think it can be fixed without too much extra effort using the latest firmware 4.25.15875 and a small custom addition to the kobopatch mentioned by DNSB.

This patch as-is will allow you to change dictionary font-size but it will affect the font-size of all dictionaries you use. If you're already a kobopatch user and this is an acceptable result, then it's your simplest solution.

If this isn't an acceptable result then I can post a small patch addition which should target only the dictionary text in tables to display bigger, i.e. it should fix these 2 Vietnamese dictionaries without making the text too large in other dictionaries. If you want to pursue this then I need to know that you're already comfortable using the kobopatch system and that you've already updated your Kobo to fw 4.25.15875.

The colours in the attached screenshot appear because they are hard-coded in the dictionary but obviously you're not going to see them in real life on the Kobo.
Attached Thumbnails
Click image for larger version

Name:	dict_en-vi.png
Views:	249
Size:	197.0 KB
ID:	183322  
jackie_w is offline   Reply With Quote
Old 11-11-2020, 09:10 PM   #9
meo_map13
Member
meo_map13 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2020
Device: Kobo Aura H2O v2
Quote:
Originally Posted by JSWolf View Post
I've had a look and the font size is not hard coded. I think this is the way it is and DNSB's suggestion is the way to fix the problem. I don't think it's a bug.
Dear Jon,
Thank you very much for your kind support.
meo_map13 is offline   Reply With Quote
Old 11-11-2020, 09:52 PM   #10
meo_map13
Member
meo_map13 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2020
Device: Kobo Aura H2O v2
Quote:
Originally Posted by jackie_w View Post
If this isn't an acceptable result then I can post a small patch addition which should target only the dictionary text in tables to display bigger, i.e. it should fix these 2 Vietnamese dictionaries without making the text too large in other dictionaries. If you want to pursue this then I need to know that you're already comfortable using the kobopatch system and that you've already updated your Kobo to fw 4.25.15875.

The colours in the attached screenshot appear because they are hard-coded in the dictionary but obviously you're not going to see them in real life on the Kobo.
Dear Jackie,
It would be great if you can help with these dictionaries. To answer your questions:
1- Yes, I've updated to fw 4.25.15875
2- Since I'm a newbie, I didn't touch anything about kobopatch. However, I'll try to patch the system to use your modification.

Thank you very much.
meo_map13 is offline   Reply With Quote
Old 11-12-2020, 07:08 AM   #11
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,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by meo_map13 View Post
2- Since I'm a newbie, I didn't touch anything about kobopatch. However, I'll try to patch the system to use your modification.
Post #1 of this thread should get you started.

As DNSB said, the patch you'll need is called Dictionary text font-family/font-size/line-height and can be found in the libnickel.so.1.0.0.yaml in the downloaded kobopatch pack.

As a first step, read this patch's help notes and try enabling it, customising the font-size option then installing the update to your Kobo. You need to be comfortable with this because you will need to repeat the process for every firmware update.

If you're sure that you're happy with the general patching process come back and I'll post the extra customisation which you'll need to re-add to this patch for every firmware update.
jackie_w is offline   Reply With Quote
Old 11-12-2020, 08:37 AM   #12
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: 78,887
Karma: 143095300
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
Post #1 of this thread should get you started.

As DNSB said, the patch you'll need is called Dictionary text font-family/font-size/line-height and can be found in the libnickel.so.1.0.0.yaml in the downloaded kobopatch pack.

As a first step, read this patch's help notes and try enabling it, customising the font-size option then installing the update to your Kobo. You need to be comfortable with this because you will need to repeat the process for every firmware update.

If you're sure that you're happy with the general patching process come back and I'll post the extra customisation which you'll need to re-add to this patch for every firmware update.
Would it be easy enough to edit the dictionary to add in the code to make the text a specific size?
JSWolf is offline   Reply With Quote
Old 11-12-2020, 10:08 AM   #13
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,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
Would it be easy enough to edit the dictionary to add in the code to make the text a specific size?
That would depend on your skill set and how much time you're prepared to spend on the task. You'd need to be able to:
  1. Break the existing dictionary into its individual decompressed HTML files. That's 400+ files for the English-Vietnamese dictionary, 1100+ files for the Vietnamese-English.
  2. Write a program to loop round all these files applying whatever regex find/replaceall changes you want to apply to each word entry.
  3. Reverse step 1 to compress everything back to a single .zip

@geek1011's dictutil utility would probably help but you'd still need programming skills to convert the source HTML into dictutil's source format.

It would have been much better if the creator of these dictionaries had put a bit more thought (and testing) into their creation. Much as I'm grateful that others have shared so many different custom dictionaries many of the ones I've tried don't look as if they've had much TLC regarding what the final result actually looks like on a Kobo.
jackie_w is offline   Reply With Quote
Old 11-12-2020, 10:36 AM   #14
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,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jackie_w View Post
@geek1011's dictutil utility would probably help but you'd still need programming skills to convert the source HTML into dictutil's source format.
dictutil can unpack and repack dictionaries as HTML. There is also another tool included with it to decompile dictionaries into dictutil's format for easier editing. Note that neither tool fully supports v3 dictionaries yet (this will only be a problem for dictionaries with prefix_exceptions or a few special cases with multi-file prefixes).
geek1011 is offline   Reply With Quote
Old 11-12-2020, 11:03 AM   #15
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,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by geek1011 View Post
dictutil can unpack and repack dictionaries as HTML. There is also another tool included with it to decompile dictionaries into dictutil's format for easier editing. Note that neither tool fully supports v3 dictionaries yet (this will only be a problem for dictionaries with prefix_exceptions or a few special cases with multi-file prefixes).
These Vietnamese dictionaries are not v3 dictionaries and they don't include any variants.

So there you go, Jon, a little project for you. I know you already have regex skills so learn a bit more about dictutil to do the heavy lifting then try to update these Vietnamese dictionaries to something a bit more user-friendly without needing kobopatch.
jackie_w is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
{font-size: 75%;} to substitute SMALL CAPS chaot Workshop 18 02-10-2017 05:03 PM
Glo Is there a way to increase font size in the dict lookup window? yayo Kobo Reader 27 06-17-2013 12:31 PM
Font Size on New Books Is Too Small! go4me77 General Discussions 2 04-24-2012 11:51 AM
PRS-300 Med font size too big, but small font size too small eli2k Sony Reader 4 05-28-2010 09:47 AM
Small font size with epub in latest software. timt1961 HanLin eBook 7 09-21-2009 06:55 AM


All times are GMT -4. The time now is 12:57 AM.


MobileRead.com is a privately owned, operated and funded community.