Module:snon-common: Difference between revisions
No edit summary |
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, "^(..)", "-v") | ||
elseif mw.ustring.find(word_l, "^-[vp]") then | elseif mw.ustring.find(word_l, "^-[vp]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "b | ret.ecl = mw.ustring.gsub(word, "^(..)", "-b") | ||
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, "^(..)", "-m") | ||
elseif mw.ustring.find(word_l, "^-[s]") then | elseif mw.ustring.find(word_l, "^-[s]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", " | ret.ecl = mw.ustring.gsub(word, "^(..)", "-z") | ||
elseif mw.ustring.find(word_l, "^-[zt]") then | elseif mw.ustring.find(word_l, "^-[zt]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "d | ret.ecl = mw.ustring.gsub(word, "^(..)", "-d") | ||
elseif mw.ustring.find(word_l, "^-[ | elseif mw.ustring.find(word_l, "^-[d]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "n | ret.ecl = mw.ustring.gsub(word, "^(..)", "-n") | ||
elseif mw.ustring.find(word_l, "^-[g]") then | |||
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, "^(..)", " | ret.ecl = mw.ustring.gsub(word, "^(..)", "-nh") | ||
elseif mw.ustring.find(word_l, "^-[k]") then | elseif mw.ustring.find(word_l, "^-[k]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(..)", "g | ret.ecl = mw.ustring.gsub(word, "^(..)", "-g") | ||
end | end | ||
end | end | ||