Thread: Kobo Bug thread
View Single Post
Old 11-18-2014, 04:15 PM   #542
Anak
Guru
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 600
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Dutch hyphenation doesn't work

Product: all Kobo readers running fw
Firmware: 3.11.0
Plugins: n/a
File types: epub (not tested with kepub; but very likely also affected)
Sideloaded or from Kobobooks: sideloaded
On external SD: n/a
Steps to reproduce:
  1. load a dutch language book, or
  2. fake this by setting the overall language (in content.opf) to Dutch ("nl", "nl-NL", or "nl-BE")
Current result: the build-in or supplied hyphenation file (hyph_nl.dic) does not work.
Reason: The file format is not correct.
  1. The file (hyph_nl.dic) is saved as ANSI but this should be UTF8 w/o BOM;
  2. The first line of the file states ISO8859-1 but should be UTF8.
Workaround: manually patching the firmware to replace the hyphenation file with the correct one.

The correct files are attached.

I attached two hyphenation dictionaries:
  1. Kobo hyphenation NL default
  2. Kobo hyphenation NL Adobe
'Default' is a converted hyph_nl.dic file to UT8 w/o BOM and first line to UTF8.
'Adobe' is as default, but with the addition of LeftHyphenMin and RightHyphenMin. The user is able to modify the behaviour of hyphenation to her or his personal preferences. A lower value means a more aggressive hyphenation. Adobe default is 5.
Code:
UTF-8
LEFTHYPHENMIN 5
RIGHTHYPHENMIN 5
Attached Files
File Type: zip Kobo.Hyphenation.NL.Default.zip (49.9 KB, 224 views)
File Type: zip Kobo.Hyphenation.NL.Adobe.zip (49.9 KB, 225 views)
Anak is offline   Reply With Quote