182
edits
No edit summary |
No edit summary |
||
Line 44: | Line 44: | ||
word = mw.text.split(word, "", true) | word = mw.text.split(word, "", true) | ||
result = {} | result = {} | ||
Line 70: | Line 68: | ||
table.insert(result, val) | table.insert(result, val) | ||
end | end | ||
elseif mw.ustring.match(word[i], "[mnjBDGPpTtKkbzdsJHhry]") then | |||
if mw.ustring.match(word[i+1], "[iīeēoōIaāAĀOŌ]") then | if i == length(word) then | ||
table.insert(result, val) | |||
elseif mw.ustring.match(word[i+1], "[iīeēoōIaāAĀOŌ]") then | |||
table.insert(result, ".") | table.insert(result, ".") | ||
table.insert(result, val) | table.insert(result, val) | ||
Line 80: | Line 80: | ||
table.insert(result, val) | table.insert(result, val) | ||
end | end | ||
else | |||
table.insert(result, val) | |||
end | end | ||
end | end | ||
return table.concat(word) | return table.concat(word) |
edits