View Single Post
Old 09-16-2020, 05:32 AM   #276
pok
Junior Member
pok began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2020
Device: PocketBook641
How to add a missing hyphenation dict

The KOReader program v2020.08.1 I've installed in my PocketBook641Aqua2 is aware of the existence of the Esperanto language, yet it misses hyphenation patterns for that language. I have them at https://github.com/pok49/vortodivido...ter/eo.pattern and I
tried to install that file in the same way as I did it in CoolReader: by copying eo.pattern into /mnt/ext1/applications/koreader/data/hyph/; I've also added the following record into languages.json (in the same directory):
Code:
    {
        "name": "Esperanto",
        "filename": "eo.pattern",
        "left_hyphen_min": 2,
        "right_hyphen_min": 2,
        "language": "eo",
        "aliases": ["epo"]
    },
but to no avail. The document language is correctly detected as "eo" — I see "Typography rules: eo"; but inside it the only Hyphenation dictionary suggested is "English (US)".

I also tried the .dic format of the same patterns, which are preinstalled as a part of the Adobe Reader; i.e. I specified
Code:
"filename": "/mnt/ext1/system/adobe/hyphenDicts/hyph_eo.dic",
but that does not work either.

What is the correct way for adding a hyphenation rules file?
pok is offline   Reply With Quote