48,407
edits
No edit summary |
|||
| Line 22: | Line 22: | ||
local voiceless = "пткфсшӀчц" --"ptkfsʃxh" | local voiceless = "пткфсшӀчц" --"ptkfsʃxh" | ||
local consonant = "[" .. voiced .. voiceless .. "]" | local consonant = "[" .. voiced .. voiceless .. "]" | ||
local vowel = "[ | local vowel = "[ыиэеаяүөуюоёӯӣɜɔ]" --"[aeɛioɔuyø]" | ||
local genders = {["a"] = "animate", ["i"] = "inanimate"} | local genders = {["a"] = "animate", ["i"] = "inanimate"} | ||
| Line 59: | Line 59: | ||
data.g = g | data.g = g | ||
data.sg = "" | data.sg = "" | ||
local pautable = { | local pautable = { | ||
["[эеыиӣөү]"] = "ч", | |||
["[ɛая]"] = "н", | |||
["[уӯоɔ]"] = "ӈ", | |||
} | } | ||
local simplified_word = m_ipa.simplify(word) | |||
--data.pau = nil | --data.pau = nil | ||
if | if simplified_word:match(vowel .. "$") then | ||
for | for pat, pau in pairs(pautable) do | ||
if | if simplified_word:match(pat .. "$") then | ||
data.pau = | data.pau = pau | ||
break | break | ||
end | end | ||
| Line 79: | Line 80: | ||
data.pl = { | data.pl = { | ||
["i"] = (match( | ["i"] = (match(simplified_word, "[" .. voiceless .. "]$") and "ш" or "ж") .. gsubh(word, "Bд",{["b"]="о̆",["e"]="э̆", ["ab"]="о̆"}), | ||
["a"] = (match( | ["a"] = (match(simplified_word, "[" .. voiceless .. "]$") and "ф" or "в") .. gsubh(word, "Rд",{["r"]="ө",["u"]="э", ["ar"]="э"}), | ||
} | } | ||
| Line 135: | Line 136: | ||
local decl = { | local decl = { | ||
["nom"] = "", | ["nom"] = "", | ||
["acc"] = match | ["acc"] = match(w_number[n_sh], vowel .. "$") and "дза" | ||
or match | or match(w_number[n_sh], voiced .. "$") and "да" | ||
or "та", | or "та", | ||
["dat"] = match | ["dat"] = match(w_number[n_sh], vowel .. "$") and "ша" | ||
or match | or match(w_number[n_sh], voiced .. "$") and "за" | ||
or "са", | or "са", | ||
["gen"] = "ля", | ["gen"] = "ля", | ||
["ins"] = match | ["ins"] = match(w_number[n_sh], vowel .. "$") and "лза" | ||
or gsubh(w_number[n_sh], "Rлз",{["r"]="ө",["u"]="э",["ar"]="ө"}), | or gsubh(w_number[n_sh], "Rлз",{["r"]="ө",["u"]="э",["ar"]="ө"}), | ||
["pro"] = gsubh(w_number[n_sh], "сRц",{["r"]="ө",["u"]="э", ["ar"]="ө"}), | ["pro"] = gsubh(w_number[n_sh], "сRц",{["r"]="ө",["u"]="э", ["ar"]="ө"}), | ||