Module:xchc-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 48: | Line 48: | ||
local g = NAMESPACE == "Template" and "a" or parent_args[1] | local g = NAMESPACE == "Template" and "a" or parent_args[1] | ||
local word = NAMESPACE == "Template" and "өра̄" or parent_args["word"] or PAGENAME | local word = NAMESPACE == "Template" and "өра̄" or parent_args["word"] or PAGENAME | ||
word = mw.ustring.toNFD(word) | |||
local unc = parent_args["unc"] or false | local unc = parent_args["unc"] or false | ||
| Line 65: | Line 66: | ||
{"([эеыиӣөү]" .. c.macron .. "?)$", "ч"}, | {"([эеыиӣөү]" .. c.macron .. "?)$", "ч"}, | ||
} | } | ||
data.pau = " | data.pau = "" | ||
for | for _, ms in ipairs(pautable) do | ||
if word:match( | if word:match(ms[1]) then | ||
data.pau = | data.pau = ms[2] | ||
break | break | ||
end | end | ||
| Line 75: | Line 76: | ||
data.pau = gsubh(word, "Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"}) | data.pau = gsubh(word, "Bӈ",{["b"]="о̆",["f"]="э̆", ["ab"]="о̆"}) | ||
end | end | ||
data.pl = { | data.pl = { | ||