Module:anui-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 20: Line 20:


local function m(word)
local function m(word)
-- as in [[Module:anui-pron]], account for syllabic m
word = word:gsub("mʼm", "v")
--[[word = word:gsub("([uùm]ʼ?)m", "%1ᴍ")
word = word:gsub("(" .. vowel .. ")m", "%")
word = word:gsub("m(ʼᴍ)", "ᴍ%1")
word = word:gsub("(" .. vowel .. ")ʼ(" .. vowel .. ")", "%1%2")
word = word:gsub("([aeiouàèìòù])m", "%1ᴍ")
word = word:gsub("([aeiouàèìòù])ᴍ([aeiou])", "%1m%2")]]
word = word:gsub("mʼm", "v"); word = word:gsub("(" .. vowel .. ")m", "%")
return word
return word