View Single Post
Old 07-17-2020, 12:16 PM   #14
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,961
Karma: 147448039
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 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.
How you setup the left/right numbers depends on if you are reading ePub or KePub. KePub resing the L/R numbers one off from ePub.

With ePub, 3/3 is 3/3. With KePub, 3/3 is really 2/2. So to do 2/3 with KePub you want 3/4 and for ePub you want 2/3.
JSWolf is offline   Reply With Quote