In general, there is an online dictionary of the Kabardino-Circassian language on Django. This language has the Cyrillic alphabet, but the trick of this alphabet is that it has such a concept as letter combinations, for example: "kkh", "tl", "pl", "g", "hu", etc. Another feature is that the alphabetic order differs from the standard Cyrillic alphabet. Wikipedia article . And in this regard, there were two tasks:
Problem number 1: You need to make sure that the machine perceives these letter combinations as one letter.
Problem number 2: It is necessary to sort the words in the database in accordance with the order of the Kabardino-Circassian alphabet.
I am a beginner pythonist and I don’t even know which side to approach this problem, so I ask for your help / advice, colleagues.
rank = icu.Collator.createInstance(icu.Locale('ru')).getSortKey). If not, then 1- break the input text into a sequence of letter combinations (by analogy withregex.findall(r'\X', text)) 2- write arankfunction that can compare individual letter combinations. - jfs