Module:snon-common: Difference between revisions

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