Apr-16-2020, 02:30 PM
Hi
To collate ancien greek words, I tried, without any success, to set LC_COLLATE.
Here is an exemple of my tries
Arbiel
To collate ancien greek words, I tried, without any success, to set LC_COLLATE.
Here is an exemple of my tries
>>> import locale >>> for l in ('en_US', 'de_DE', 'fr_FR', 'el_GR', 'gr_GR'): ... try: ... locale.setlocale(locale.LC_COLLATE, '.'.join([l, 'UTF-8'])) ... except: ... print("«"+'.'.join([l, 'UTF-8']) + "» n'est pas une valeur reconnue") ... 'en_US.UTF-8' «de_DE.UTF-8» n'est pas une valeur reconnue 'fr_FR.UTF-8' «el_GR.UTF-8» n'est pas une valeur reconnue «gr_GR.UTF-8» n'est pas une valeur reconnueIt is reasonable to assume that «de_DE.UTF-8», «el_GR.UTF-8», «gr_GR.UTF-8» are unknown in my Ubuntu system, and that this question is not quite related to Python. But, hopefully, one of you may advice me on how to create this collating sequences. The one I'm really looking for is «el_GR.UTF-8», as I believe «gr_GR.UTF-8» refers to modern greek.
Arbiel