Module:xchc-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 123: Line 123:
function export.harmony(term)
function export.harmony(term)
local ret = {
local ret = {
["roundness"] = ((not term:match("о" .. c.macron .. "?" .. c.breve) and term:match("[үуӯюөоё]")) or term:match("е" .. c.macron .. c.diaer)) and "r"
["roundness"] = ((not term:match("о%W?%W") and term:match("[үуӯюөоё]")) or term:match("е%W%W")) and "r"
or term:match("[ыиӣэе]") and "u" or "ar",
or term:match("[ыиӣэе]") and "u" or "ar",
["backness"] = term:match("э") and "f" or term:match("о" .. c.macron .. "?" .. c.breve) and "b" or "ab",
["backness"] = term:match("э") and "f" or term:match("о%W?%W") and "b" or "ab",
}
}
return ret
return ret

Navigation menu