Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
Line 12: Line 12:
["s"] = "z",
["s"] = "z",
["v"] = "b",
["v"] = "b",
["ghi"] = "ni"
}
}


Line 22: Line 23:
if mw.ustring.find(word_l, "^[bcdfgmptsnlrv]") then
if 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, "^i[aeouàèòù]") then
elseif mw.ustring.find(word_l, "^ghi[aeouàèòù]") then
ret.len = mw.ustring.gsub(word, "^(.)", "h%1")
ret.len = mw.ustring.gsub(word, "^(.)", "chi")
elseif mw.ustring.find(word_l, "^[h]") then
elseif mw.ustring.find(word_l, "^[h]") then
ret.len = mw.ustring.gsub(word, "^(.)", "g%1")
ret.len = mw.ustring.gsub(word, "^(.)", "g%1")
elseif mw.ustring.find(word_l, "^-[bcdfgmptsnlrv]") then
ret.len = mw.ustring.gsub(word, "^(.)", "%1h")
end
end
end
end