View Single Post
Old 08-17-2013, 05:34 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Improve hyphenation (French)

Hi

Hyphenation in French on my Glo is working but, I would say sluggish. I mean it leaves some unwanted white "holes" and could be more agressive.

JC Goguen proposes one solution with his nice calibre plugin, however I dislike the KEPUB renderer and I will not follow him this way.

I would just like to be able to change a file in my Glo to get a stronger hyphenation (I am a Linux user) but I am afraid to brick my Glo, so I would need precise explanations.

This is what you can read here and this explanation is suited to the users of his plugin. I dare not ask him a question out of his plugin...

Spoiler:

Hyphenation

Both plugins includes the ability to add a CSS file to each book enabling KePub hyphenation. The standard hyphenation dictionaries provided on Kobo devices are somewhat deficient for some languages; fixing this (or adding your own dictionary) requires a little work and requires that you can create gzipped tarballs (.tgz files). Note that you can only update existing dictionaries, you cannot add new ones.

Somewhere on your computer, create the directory structure usr/local/Kobo/hyphenDicts
Download the LibreOffice (or OpenOffice) hyphenation dictionary for your language
This will be a file with the 'oxt' extension. This is just a ZIP archive with a different name.
Unzip the OXT file and look for the file named as hyph\_[language].dic.
Copy the hyphenation dictionary to the hyphenDicts folder without changing the name.
Add the usr folder to KoboRoot.tgz
UNIX users (Linux, Solaris, BSD, Mac) can, from the command line, run tar czf KoboRoot.tgz usr/ from wherever you put the usr directory.
Windows users, you're on your own. Contributions of reliable Windows directions are welcome!

Once you have created KoboRoot.tgz copy it to the .kobo directory on your Kobo device, unmount/eject the drive, and unplug the device. You will see a screen indicating that the Kobo device is updating; it is not, but this method takes advantage of the Kobo update mechanism to load the necessary dictionary files. Make sure you keep your version of KoboRoot.tgz around, you will need to re-apply it after every Kobo software update!

Provided languages are:

English (en_US)
French (fr_FR)
Spanish (es_ES)
German (de_DE)
Italian (it_IT)
Portugese (pt_PT)

Please note that even with this feature, hyphenation is not exact. Also remember that you can only update existing dictionaries.

roger64 is offline   Reply With Quote