forked from Apancore.Studio/simple-makes-complex
Reformat cyrillic_alphabet lookup table
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
||||||
charset = utf-8
|
|
||||||
|
|
||||||
[{*.lua,.luacheckrc}]
|
|
||||||
indent_style = tab
|
|
||||||
indent_size = 4
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
max_line_length = 100
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
@@ -3,38 +3,13 @@ local pairs, string_gsub
|
|||||||
|
|
||||||
-- Cyrillic symbols replacement dictionary.
|
-- Cyrillic symbols replacement dictionary.
|
||||||
local cyrillic_alphabet = {
|
local cyrillic_alphabet = {
|
||||||
["А"] = "а",
|
["А"] = "а", ["Б"] = "б", ["В"] = "в", ["Г"] = "г", ["Д"] = "д",
|
||||||
["Б"] = "б",
|
["Е"] = "е", ["Ё"] = "ё", ["Ж"] = "ж", ["З"] = "з", ["И"] = "и",
|
||||||
["В"] = "в",
|
["Й"] = "й", ["К"] = "к", ["Л"] = "л", ["М"] = "м", ["Н"] = "н",
|
||||||
["Г"] = "г",
|
["О"] = "о", ["П"] = "п", ["Р"] = "р", ["С"] = "с", ["Т"] = "т",
|
||||||
["Д"] = "д",
|
["У"] = "у", ["Ф"] = "ф", ["Х"] = "х", ["Ц"] = "ц", ["Ч"] = "ч",
|
||||||
["Е"] = "е",
|
["Ш"] = "ш", ["Щ"] = "щ", ["Ъ"] = "ъ", ["Ь"] = "ь", ["Э"] = "э",
|
||||||
["Ё"] = "ё",
|
["Ю"] = "ю", ["Я"] = "я",
|
||||||
["Ж"] = "ж",
|
|
||||||
["З"] = "з",
|
|
||||||
["И"] = "и",
|
|
||||||
["Й"] = "й",
|
|
||||||
["К"] = "к",
|
|
||||||
["Л"] = "л",
|
|
||||||
["М"] = "м",
|
|
||||||
["Н"] = "н",
|
|
||||||
["О"] = "о",
|
|
||||||
["П"] = "п",
|
|
||||||
["Р"] = "р",
|
|
||||||
["С"] = "с",
|
|
||||||
["Т"] = "т",
|
|
||||||
["У"] = "у",
|
|
||||||
["Ф"] = "ф",
|
|
||||||
["Х"] = "х",
|
|
||||||
["Ц"] = "ц",
|
|
||||||
["Ч"] = "ч",
|
|
||||||
["Ш"] = "ш",
|
|
||||||
["Щ"] = "щ",
|
|
||||||
["Ъ"] = "ъ",
|
|
||||||
["Ь"] = "ь",
|
|
||||||
["Э"] = "э",
|
|
||||||
["Ю"] = "ю",
|
|
||||||
["Я"] = "я",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Same as `string.lower` but with cyrillic support.
|
--- Same as `string.lower` but with cyrillic support.
|
||||||
|
|||||||
Reference in New Issue
Block a user