Module:snon-common: Difference between revisions
No edit summary |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
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") | ||
end | end | ||
| Line 44: | Line 41: | ||
elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then | elseif mw.ustring.find(word, "^ghi[aeiouàèìòù]") then | ||
ret.ecl = mw.ustring.gsub(word, "^(...)", " | ret.ecl = mw.ustring.gsub(word, "^(...)", "ni") | ||
ret.len = mw.ustring.gsub(word, "^(...)", "chi") | |||
end | |||
if mw.ustring.find(word_l, "^-[f]") then | |||
ret.ecl = mw.ustring.gsub(word, "^(..)", "-vf") | |||
--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 | ||