Module:xchc-noun: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 32: Line 32:
if pat:match("B") and pat:match("R") then
if pat:match("B") and pat:match("R") then
pat = pat:gsub("B", repl[harmony.backness]):gsub("R", repl[harmony.roundness])
pat = gsub(pat, "B", repl[harmony.backness])
pat = gsub(pat, "R", repl[harmony.roundness])
else
else
pat = pat:gsub("([BR])",function(s) return repl[harmony[s == "B" and "backness" or "roundness"]] end)
pat = gsub(pat, "([BR])",function(s) return repl[harmony[s == "B" and "backness" or "roundness"]] end)
end
end


Line 120: Line 121:
["pro"] = gsubh("сRц",{["r"]="ө",["u"]="э", ["ar"]="ө"}),
["pro"] = gsubh("сRц",{["r"]="ө",["u"]="э", ["ar"]="ө"}),
["ade"] = "ляц",
["ade"] = "ляц",
["abl"] = gsubh("сRшB",{["r"]="ү",["u"]="ы",["b"]="о̄̆",["f"]="э̄̆",["ar"]="у",["ab"]="э̄̆"}),
["abl"] = gsubh("сRшB",{["r"]="у",["u"]="ы",["b"]="о̄̆",["f"]="э̄̆",["ar"]="у",["ab"]="э̄̆"}),
["ill"] = gsubh("кRб",{["r"]="ү",["u"]="ы",["ar"]="ы"}),
["ill"] = gsubh("кRб",{["r"]="ү",["u"]="ы",["ar"]="ы"}),
}
}