projman/lib/translit.tcl
Sergey Kalinin 53672ad0f3 Some Fix
2018-03-05 18:07:30 +03:00

86 lines
1.8 KiB
Tcl
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

######################################################
# Tcl/Tk Project Manager
# Distributed under GNU Public License
# Author: Serge Kalinin banzaj28@yandex.ru
# Copyright (c) "https://nuk-svk.ru"
# 2018, https://bitbucket.org/svk28/projman
######################################################
#
# Transliterate cyrilic symbols into latins
#
######################################################
proc Translit {line} {
return [
string map {
"А" "A"
"Б" "B"
"В" "V"
"Г" "G"
"Д" "D"
"Е" "E"
"Ё" "E"
"Ж" "ZH"
"З" "Z"
"И" "I"
"Й" "J"
"К" "K"
"Л" "L"
"М" "M"
"Н" "N"
"О" "O"
"П" "P"
"Р" "R"
"С" "S"
"Т" "T"
"У" "U"
"Ф" "F"
"Х" "H"
"Ч" "CH"
"Ш" "SH"
"Щ" "SCH"
"Ь" ""
"Ы" "Y"
"Ъ" ""
"Э" "E"
"Ю" "U"
"Я" "IA"
"а" "a"
"б" "b"
"в" "v"
"г" "g"
"д" "d"
"е" "e"
"ё" "e"
"ж" "zh"
"з" "z"
"и" "i"
"й" "j"
"к" "k"
"л" "l"
"м" "m"
"н" "n"
"о" "o"
"п" "p"
"р" "r"
"с" "s"
"т" "t"
"у" "u"
"ф" "f"
"х" "h"
"ц" "c"
"ч" "ch"
"ш" "sh"
"щ" "sch"
"ь" ""
"ы" "y"
"ъ" ""
"э" "e"
"ю" "u"
"я" "ia"
} $line
]
}