Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
 
(55 intermediate revisions by the same user not shown)
Line 9: Line 9:
["p"] = "b",
["p"] = "b",
["t"] = "d",
["t"] = "d",
["h"] = "n",
["h"] = "g",
["s"] = "z",
["s"] = "z",
["v"] = "b",
["v"] = "b",
Line 22: Line 22:
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, "^[h]") then
ret.len = mw.ustring.gsub(word, "^(.)", "g%1")
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")
Line 34: Line 32:
if mw.ustring.find(word, "^[aeiouàèìòù]") then
if mw.ustring.find(word, "^[aeiouàèìòù]") then
ret.ecl  = "n'" .. word
ret.ecl  = "n'" .. word
ret.hpro = "gh'" .. word
ret.hpro = "h'" .. word
elseif mw.ustring.find(word, "^[AEIOUÀÈÌÒÙ]") then
elseif mw.ustring.find(word, "^[AEIOUÀÈÌÒÙ]") then
ret.ecl  = "n" .. word
ret.ecl  = "n" .. word
ret.hpro = "gh" .. word
ret.hpro = "h" .. word
elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then
elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then
Line 45: Line 43:
end
end
if mw.ustring.find(word_l, "^-[f]") then
if mw.ustring.find(word_l, "^-[s]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "v%1")
ret.ecl = mw.ustring.gsub(word, "^(..)", "-zs")
elseif mw.ustring.find(word_l, "^-[vp]") then
--ret.len = mw.ustring.gsub(word, "^(..)", "-h")
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")
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