View Single Post
Old 07-18-2020, 06:36 AM   #22
klover137006
Member
klover137006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Quote:
Originally Posted by Anak View Post
It is impossilbe to get (perfectly) correct hyphenation files, but maybe you can find updated/improved hypenation files from LibreOffice or OpenOffice.

Add the following to the .dic (after UTF-8):
Code:
LEFTHYPHENMIN 3
RIGHTHYPHENMIN 3
Change the values, and make sure that file is saved as UTF-8.

This prevents breaking shorter words: jus-tificat-ion, jus-tificati-on.
This doesn't fix breaking words at the correct position. Note: interpunction is also 'counted' as a character.

Example:
Code:
UTF-8
LEFTHYPHENMIN 3
RIGHTHYPHENMIN 3
.a4
.aan5
.a4a4
…
Replace the Dutch hyphenation dictionary with a hyphenation dictionary that matches your language (try hyphenation files for OpenOffice/LibreOffice)
and change the symlink too.
Use 7-zip so you can drag and drop a hyphenation file in
Code:
\usr\local\Kobo\hyphenDicts\
and change the symlink by pressing F2 in
Code:
\usr\share\hyphen\
Note: the attached file isn't a rar file. remove .rar (KoboRoot-nl-hyp-dic.tgz) and rename it to KoboRoot.tgz to install it.
Wohoo! I've now had time to follow these steps and the Swedish hyphenation now seems much better! I've browsed through a KePub and have yet to find an erroneous hyphenation.

I downloaded your .tgz file and replaced the hyph-nl.dic with a Swedish hyphenation file (a slightly modified .tex file from hyphenation.org/tex) renamed to hyph-nl.dic and copied the tgz file to the .kobo folder in order to patch it. And now everything seems to work fine.

Thank you!

(I'm guessing it works better now because I replaced an official language, but perhaps I should try using the same file named as hyph-sv.dic and see if it still works...?)
klover137006 is offline   Reply With Quote