Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 41: Line 41:
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")
ret.len = mw.ustring.gsub(word, "^(...)", "chi")
ret.len = mw.ustring.gsub(word, "^(...)", "chi")
end
elseif mw.ustring.find(word_l, "^-") then
if mw.ustring.find(word_l, "^-[f]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "v%1")
elseif mw.ustring.find(word_l, "^-[vp]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "b%1")
elseif mw.ustring.find(word_l, "^-[b]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "m%1")
elseif mw.ustring.find(word_l, "^-[s]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "z%1")
elseif mw.ustring.find(word_l, "^-[zt]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "d%1")
elseif mw.ustring.find(word_l, "^-[dg]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "n%1")
elseif mw.ustring.find(word_l, "^-[h]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "n%1")
elseif mw.ustring.find(word_l, "^-[k]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "g%1")
end
end
end
end