Module:xchc-noun: Difference between revisions

No edit summary
No edit summary
Line 29: Line 29:
local ipa = wordpron(word)
local ipa = wordpron(word)
local backh = ipa:match("ɛ") and "ɛ" or ipa:match("ɔ") and "ɔ" or nil
local backh = ipa:match("ɛ") and "ɛ" or ipa:match("ɔ") and "ɔ" or nil
local repl = {["ɛ"] = data.e, ["ɔ"] = data.o,}
local repl = {["ɛ"] = data.e, ["ɔ"] = data.o, ["e"] = data.e, ["o"] = data.o}
return word:gsub("B", repl[backh or def])
return word:gsub("B", repl[backh or def])
end
end
Line 119: Line 119:
["gen"] = "ля",
["gen"] = "ля",
["ins"] = w_number[n_sh]:match(vowel .. "ː?$") and "лза" or gsubbh("Bлз",{["o"]="ө",["e"]="э"},"ɔ"),
["ins"] = w_number[n_sh]:match(vowel .. "ː?$") and "лза" or gsubbh("Bлз",{["o"]="ө",["e"]="э"},"ɔ"),
["pro"] = gsubbh("сBц","ө", "э", nil, nil, "ɔ"),
["pro"] = gsubbh("сBц",{["o"]="ө",["e"]="э"}, "ɔ"),
["ade"] = "ляц",
["ade"] = "ляц",
["abl"] = gsubbh("сB",{["r"]="u",["u"]="i"},"r") .. gsubrh("шR",{["o"]="о̄̆",["e"]="э̄̆"},"ɛ"),
["abl"] = gsubbh("сB",{["r"]="u",["u"]="i"},"r") .. gsubrh("шR",{["o"]="о̄̆",["e"]="э̄̆"},"ɛ"),