182
edits
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
for i,val in ipairs(word) do | for i,val in ipairs(word) do | ||
if word[i-1] == nil | if word[i-1] == nil then | ||
if mw.ustring.match(word[i], "[íîǐéêěóôǒÍáâǎÁÂǍÓÔǑ]") then | if mw.ustring.match(word[i], "[íîǐéêěóôǒÍáâǎÁÂǍÓÔǑ]") then | ||
table.insert(result, "ˈ") | table.insert(result, "ˈ") | ||
Line 77: | Line 75: | ||
end | end | ||
else | else | ||
if mw.ustring.match(word[i+1], "[iīeēoōIaāAĀOŌ]") then | if word[i+1] == nil 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) |
edits