UltraSinger icon indicating copy to clipboard operation
UltraSinger copied to clipboard

Method to download PyHyphen Libraries

Open taynaron opened this issue 1 year ago • 4 comments

Currently, language_check only checks for existing installed hyphenation libraries without providing any method for downloading them. Users only receive an error that something went wrong with hyphenation. Provide some method, automatic or manual, for downloading the needed hyphenation libraries.

taynaron avatar Nov 21 '23 15:11 taynaron

Yes, I agree that it reads strangely. But PyHyphen does download the languages itself if the correct langKey is given.

rakuri255 avatar Nov 21 '23 16:11 rakuri255

hm, that doesn't seem to be happening for me. I can look more into why.

taynaron avatar Nov 21 '23 17:11 taynaron

What language do you primarily test with? What I see is that in hyphenate_each_word we detect 'en' and pass that into 'language_check'. This returns 'en' not 'en_US', so when we get to 'create_hyphenator' it doesn't know what to do with 'en' and returns None.

taynaron avatar Nov 23 '23 20:11 taynaron

i using en and de

rakuri255 avatar Nov 23 '23 21:11 rakuri255