I am QGIS user but beginner in Python. I figured out how to transliterate Georgian script into Latin using this module (https://pypi.org/project/transliterate/).
from transliterate import translit, get_available_language_codes
text= 'საქართველო'
from transliterate.discover import autodiscover
autodiscover()
from transliterate.base import TranslitLanguagePack, registry
class MyGeorgianLanguagePack(TranslitLanguagePack):
language_code = "my-ka"
language_name = "MyGeorgian"
mapping = (
"აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ", # Source script
"abgdevztiklmnopzhrstupkghkshchtsdztschkhjh", # Target script
)
pre_processor_mapping = {
"ჟ": "zh",
"რ": "r",
"ს": "s",
"ტ": "t",
"უ": "u",
"ფ": "p",
"ქ": "k",
"ღ": "gh",
"ყ": "k",
"შ": "sh",
"ჩ": "ch",
"ც": "ts",
"ძ": "dz",
"წ": "ts",
"ჭ": "ch",
"ხ": "kh",
"ჯ": "j",
"ჰ": "h"
}
registry.register(MyGeorgianLanguagePack)
print((translit(text, 'my-ka')).title())
# Sakartvelo
But now I am interested, how can I incorporate this script in QGIS to automatically transliterate Georgian names in Latin script from one field to another?