Issue installing new dictionaries

28 views
Skip to first unread message

Riccardo Cecconi

unread,
Oct 14, 2019, 12:24:48 PM10/14/19
to pyhyphen
Hi, I've been dabbling with pyhyphen for a few days and i was trying to install all dictionaries mentioned in dictools.LANGUAGES using this code:

from hyphen import dictools
from hyphen.dictools import *

for lang in dictools.LANGUAGES:
    install(lang)

print(list_installed())

unfortunately I've not been able to as it seems some of the dictionaries are not available, I've tried to determine manually what dictionaries in the LibreOffice repository are available and which are not, resulting in:

installed = ['af_ZA','bg_BG','cs_CZ','da_DK','de','el_GR','et_EE','fr_FR','gl','hr_HR','hu_HU','is','it_IT','lt_LT','lv_LV','nl_NL','pl_PL','pt_BR','pt_PT','ru_RU','sk_SK','sl_SI','sv_SE','te_IN','uk_UA','zu_ZA']
unavailable = ['an_ES','ar','be_BY','bn_BD','bo','br_FR','bs_BA','ca','en','es','gd_GB','gu_IN','gug','he_IL','hi_IN','id','kmr_Latn','lo_LA','ne_NP','no','oc_FR','ro','si_LK','sq_AL','sr','sw_TZ','th_TH','tr_TR','vi']

Looking for feedback.
This said, thanks for the amazing library.

Leo

unread,
Oct 15, 2019, 5:35:20 PM10/15/19
to pyhy...@googlegroups.com
Hi Riccardo,

thanks a lot for spotting this, and for your praise. For the next
release, we will certainly update the list based on your Research.
Ideally, there should be a Feature to get the current list of
availabel dicsts. Let's see what we can do. The package deserves
better maintenance. Next, the repo will move to github.

Good luck when playing around with it. And feel free to ask further.

Leo
> --
> You received this message because you are subscribed to the Google Groups
> "pyhyphen" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pyhyphen+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pyhyphen/59af2842-01e9-4840-9130-db29d194094a%40googlegroups.com.
>
Reply all
Reply to author
Forward
0 new messages