Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-06-2022, 01:20 AM   #181
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,855
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by Deobulakenyo View Post
This what i have on my kobopatch.yaml

Code:
## ADDITIONAL FILES ##
# Uncomment the following to add additional files to the tgz (like init scripts or hyphen dicts)
# The files will be root-owned, and world readable, writable, and executable (0777)
# files:
#   src/whatever.txt: usr/local/Kobo/whatever.txt
#   src/whateverToPutInMultiplePlaces.txt:
#     - usr/local/Kobo/location1.txt
#     - usr/local/Kobo/location2.txt
Do i have to put the dictionary in the src folder of the patch files and type it's directory like:

files:
src/kobofiles/custom-dict/dicthtml-es-en.zip


or the dictionary could be anywhere in my PC, i just have to indicate its directory?

Thank you
You have to use the full path from the drive (as Jon has done) to wherever you store the hyphen dictionary. This will vary from user to user as you can store the file wherever you’d like to.

The second bit has to be as Jon wrote it, since that’s the only place your Kobo will look for the hyphen dictionary.
MGlitch is offline   Reply With Quote
Old 05-06-2022, 02:29 AM   #182
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by MGlitch View Post
You have to use the full path from the drive (as Jon has done) to wherever you store the hyphen dictionary. This will vary from user to user as you can store the file wherever you’d like to.

The second bit has to be as Jon wrote it, since that’s the only place your Kobo will look for the hyphen dictionary.
I think i got it now.

second bit is where the patcher will copy the actual dictionary to the device.

Thank you very much
Deobulakenyo is offline   Reply With Quote
Advert
Old 05-06-2022, 08:42 AM   #183
Lykke
Groupie
Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.Lykke can program the VCR without an owner's manual.
 
Posts: 159
Karma: 182076
Join Date: Aug 2017
Device: Kobo Libra 2
Here's a Swedish and Norwegian Bokmål hyphenation dictionary. Just unzip the KoboRoot.tgz to the .kobo folder.
Attached Files
File Type: zip sv_SE hyphenation.zip (32.7 KB, 116 views)
File Type: zip nb_NO hyphenation.zip (91.7 KB, 133 views)
Lykke is offline   Reply With Quote
Old 05-06-2022, 12:03 PM   #184
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Deobulakenyo View Post
Do i have to put the dictionary in the src folder of the patch files and type it's directory like:

files:
src/kobofiles/custom-dict/dicthtml-es-en.zip


or the dictionary could be anywhere in my PC, i just have to indicate its directory?
Are you, perhaps, confusing 2 different types of dictionary?

Hyphenation dictionaries are buried deep in the firmware, so copying to your Kobo is most easily done using kobopatch's files: feature. Especially because every firmware update will overwrite your custom hyphenation dictionary if it's for one of the languages Kobo include in the firmware (English, German, Spanish, French, Italian, Netherlands, Portuguese, Turkish)

However, your example above seems to be a custom Spanish-English translation dictionary. All word look-up dictionaries are easily accessible in the .kobo/custom-dict/ subdirectory on your Kobo. You can easily copy to this location via drag-drop from your local drive whilst you are USB-connected. Furthermore, any dicthtml-*.zip files you store here should not be affected by a firmware upgrade (or sync to Kobo servers) because Kobo are only interested in the default dictionaries stored in the .kobo/dict/ subdirectory. I'm not saying you mustn't use kobopatch's files: feature to copy this type of dictionary, just that there isn't much to be gained from it.
jackie_w is offline   Reply With Quote
Old 06-08-2022, 03:53 AM   #185
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by JSWolf View Post
I don't think those dictionaries will work. Can you find one for LibreOffice or OpenOffice?
Is there a way to uninstall a hyphenation dictionary just in case it does something unfavorably?
Deobulakenyo is offline   Reply With Quote
Advert
Old 06-08-2022, 04:22 AM   #186
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: 79,750
Karma: 145864619
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 Deobulakenyo View Post
Is there a way to uninstall a hyphenation dictionary just in case it does something unfavorably?
Reinstall the firmware or the patched firmware.

Nobody has reported anything wonky with any of the Hyphenation dictionaries. I've been using the English dictionary with no problems.
JSWolf is offline   Reply With Quote
Old 06-08-2022, 08:07 AM   #187
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,855
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
Reinstall the firmware or the patched firmware.

Nobody has reported anything wonky with any of the Hyphenation dictionaries. I've been using the English dictionary with no problems.
Just adding that if you opt to use the patches to install the dictionary you will of course need to remove that line from your yaml overdrive and regenerate a patch file.
MGlitch is offline   Reply With Quote
Old 06-08-2022, 06:00 PM   #188
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
How does one update these files? Is it just a matter of taking the Open/LibraOffice hyphenation dictionaries and combining them with the Adobe and/or Kobo ones?

Last edited by rtiangha; 06-08-2022 at 06:24 PM.
rtiangha is offline   Reply With Quote
Old 06-08-2022, 06:23 PM   #189
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: 79,750
Karma: 145864619
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 rtiangha View Post
How does one update these files? Is it just a matter of taking the Open/LibraOffice hyphenation dictionaries and combining them with the Adobe ones?
In the case of the English version, it's not a matter of which is newer. It's a matter of settings.

The Adobe hyphenation dictionary has the following lines.
Code:
LEFTHYPHENMIN 5
RIGHTHYPHENMIN 5
Mine has
Code:
LEFTHYPHENMIN 2
RIGHTHYPHENMIN 2
COMPOUNDLEFTHYPHENMIN 2
COMPOUNDRIGHTHYPHENMIN 2
So what's going on is that you need much longer words with Adobe's dictionary then you do with mine. So you get less hyphens and more gaps.
JSWolf is offline   Reply With Quote
Old 06-08-2022, 06:52 PM   #190
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
I just ask because there are a bunch of entries in the LibreOffice en dictionary that don't appear in these ones and I wonder if adding them in would make things better. That said, I have no idea how these patterns work.
rtiangha is offline   Reply With Quote
Old 06-09-2022, 04:17 AM   #191
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: 79,750
Karma: 145864619
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 rtiangha View Post
I just ask because there are a bunch of entries in the LibreOffice en dictionary that don't appear in these ones and I wonder if adding them in would make things better. That said, I have no idea how these patterns work.
The difference is the one you linked has 23 entries that the existing one doesn't have. I can add them in and make a new install file if you want to test it.
JSWolf is offline   Reply With Quote
Old 06-09-2022, 04:05 PM   #192
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by JSWolf View Post
The difference is the one you linked has 23 entries that the existing one doesn't have. I can add them in and make a new install file if you want to test it.
Sure, why not? Thanks.

There's also the max version (open as a txt file) from the TEX project that has some extra patterns too that claims it's "a set that is believed to find all admissible hyphenation points". I've attached a hyph.dic generated version.
Attached Files
File Type: zip hyph_en.zip (20.9 KB, 114 views)

Last edited by rtiangha; 06-09-2022 at 07:22 PM.
rtiangha is offline   Reply With Quote
Old 06-09-2022, 04:27 PM   #193
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: 79,750
Karma: 145864619
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 rtiangha View Post
Sure, why not? Thanks.

There's also the max version (open as a txt file) from the TEX project that has some extra patterns too that claims it's "a set that is believed to find all admissible hyphenation points".
I'll do some beta US hyphenation dictionaries to test. I'll do the new one with all three combined and just the Tex Max version and we can see how it goes.
JSWolf is offline   Reply With Quote
Old 06-09-2022, 04:34 PM   #194
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by JSWolf View Post
I'll do some beta US hyphenation dictionaries to test. I'll do the new one with all three combined and just the Tex Max version and we can see how it goes.
Cool; I edited my post with an attachment generating the max tex version of the hyphen dictionary using the Hunspell perl script: not sure what it changed but the file sizes are different.

Edit: Apparently it needs to be pre-proccessed first which is what that script handles.

Last edited by rtiangha; 06-09-2022 at 07:21 PM.
rtiangha is offline   Reply With Quote
Old 06-09-2022, 04:39 PM   #195
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: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
delete post

Last edited by JSWolf; 06-09-2022 at 05:18 PM.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyphenation Simboubou PocketBook 9 09-15-2014 05:21 AM
PRS-T3 hyphenation - whether you want it or not ? cybmole Sony Reader 10 01-13-2014 02:43 PM
Hyphenation - again.. ItsMee Conversion 2 07-31-2012 03:00 PM
Hyphenation Jini ePub 3 04-05-2012 11:48 AM
hyphenation CPatrick OpenInkpot 3 03-22-2010 06:06 AM


All times are GMT -4. The time now is 04:22 AM.


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