Module:snon-common: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Melinoë (talk | contribs)
No edit summary
 
(48 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 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, "^(..)", "-vf")
ret.ecl = mw.ustring.gsub(word, "^(..)", "-zs")
--ret.len = mw.ustring.gsub(word, "^(..)", "-h")
--ret.len = mw.ustring.gsub(word, "^(..)", "-h")
elseif mw.ustring.find(word_l, "^-[v]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-vb")
--ret.len = mw.ustring.gsub(word, "^(..)","-gh")
elseif mw.ustring.find(word_l, "-^[p]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-bp")
--ret.len = mw.ustring.gsub(word, "^(..)", "-f")
elseif mw.ustring.find(word_l, "^-[b]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-mb")
--ret.len = mw.ustring.gsub(word, "^(..)", "-v")
elseif mw.ustring.find(word_l, "^-[s]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-zs")
--ret.len = mw.ustring.gsub(word, "^(..)", "-h")
elseif mw.ustring.find(word_l, "^-[z]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-dz")
elseif mw.ustring.find(word_l, "^-[t]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-dt")
elseif mw.ustring.find(word_l, "^-[d]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-nd")
elseif mw.ustring.find(word_l, "^-[g]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-ng")
elseif mw.ustring.find(word_l, "^-[h]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-nh")
elseif mw.ustring.find(word_l, "^-[c]") then
ret.ecl = mw.ustring.gsub(word, "^(..)", "-gc")
end
end
end
end