48,406
edits
No edit summary |
|||
| Line 111: | Line 111: | ||
-- Remove diacritics for module calculations based on vowels | -- Remove diacritics for module calculations based on vowels | ||
function export.simplify(term) | function export.simplify(term) | ||
term = mw. | term = mw.ustring.toNFD(term):gsub(c.macron, "") -- vowel length | ||
term = term:gsub("э" .. c.breve, "ɛ"); term = term:gsub("о" .. c.breve, "ɔ") | term = term:gsub("э" .. c.breve, "ɛ"); term = term:gsub("о" .. c.breve, "ɔ") | ||
term = mw.ustring.toNFC(term):gsub("ё", "о"); term = term:gsub("е" .. c.diaer, "о") | term = mw.ustring.toNFC(term):gsub("ё", "о"); term = term:gsub("е" .. c.diaer, "о") | ||