|
|
| Line 29: |
Line 29: |
| | | |
| if eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] then | | if eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] then |
| ret.ecl = eclipsis_prefixes[mw.ustring.sub(word_l, 1, 1)] .. word | | ret.ecl = eclipsis_prefixes[mw.ustring.sub(word, "^(.)", 1)] |
| end | | end |
| | | |
| Line 45: |
Line 45: |
| 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 |