48,406
edits
No edit summary |
No edit summary |
||
| Line 121: | Line 121: | ||
function export.harmony(term) | function export.harmony(term) | ||
local | local roundness, backness | ||
if (not term:match("о" .. c.macron .. "?" .. c.breve) and term:match("[үуӯюөоё]")) | |||
or term:match("е" .. c.macron .. c.diaer) then | |||
roundness = "r" | |||
elseif term:match("[ыиӣэе]") then | |||
return | roundness = "u" | ||
else | |||
roundness = "ar" | |||
end | |||
if term:match("э") then | |||
backness = "f" | |||
elseif term:match("о" .. c.macron .. "?" .. c.breve) then | |||
backness = "b" | |||
else | |||
backness = "ab" | |||
end | |||
return { roundness = roundness, backness = backness } | |||
end | end | ||