Module:xchc-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 56: Line 56:
local lastipa = match(pron(word), ".ː?$")
local lastipa = match(pron(word), ".ː?$")
local pautable = {["a"] = "н", ["e"] = "ч", ["ɛ"] = "н", ["i"] = "ч", ["o"] = "ӈ", ["ɔ"] = "ӈ", ["ø"] = "ч", ["u"] = "ӈ", ["y"] = "ч"}
local pautable = {["a"] = "н", ["e"] = "ч", ["ɛ"] = "н", ["i"] = "ч", ["o"] = "ӈ", ["ɔ"] = "ӈ", ["ø"] = "ч", ["u"] = "ӈ", ["y"] = "ч"}
data.pau = pautable.lastipa or gsubh("Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"})
data.pau = lastipa -- pautable[lastipa] or gsubh("Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"})
data.pl = {
data.pl = {
["i"] = (match(pron(word), voiceless .. "ː?$") and "ш" or "ж") .. gsubh("Bд",{["b"]="о̆",["e"]="э̆", ["ab"]="о̆"}),
["i"] = (match(pron(word), voiceless .. "ː?$") and "ш" or "ж") .. gsubh("Bд",{["b"]="о̆",["e"]="э̆", ["ab"]="о̆"}),