Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 26: Line 26:
elseif mw.ustring.find(word_l, "^-[bcdfgmptsnlrv]") then
elseif mw.ustring.find(word_l, "^-[bcdfgmptsnlrv]") then
ret.len = mw.ustring.gsub(word, "^(..)", "%1h")
ret.len = mw.ustring.gsub(word, "^(..)", "%1h")
elseif mw.ustring.find(word_l, "^[ghi]") then
ret.len = mw.ustring.gsub(word, "^(.)", "chi")
end
end
end
Line 45: Line 42:
elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then
elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then
ret.ecl = mw.ustring.gsub(word, "^(...)", "ni")
ret.ecl = mw.ustring.gsub(word, "^(...)", "ni")
elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then
ret.len = mw.ustring.gsub(word, "^(...)", "chi")
end
end
end