Module:ábḫ-ipa: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 62: | Line 62: | ||
table.insert(result, val) | table.insert(result, val) | ||
end | end | ||
elseif mw.ustring.match(word[i | elseif mw.ustring.match(word[i], "[iīeēoōIaāAĀOŌ]") then | ||
if mw.ustring.match(word[i], "[ | if 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) | ||
elseif mw.ustring.match(word[i], "[íîǐéêěóôǒÍáâǎÁÂǍÓÔǑ]") then | else | ||
table.insert(result, val) | |||
end | |||
elseif mw.ustring.match(word[i], "[íîǐéêěóôǒÍáâǎÁÂǍÓÔǑ]") then | |||
if 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 72: | Line 76: | ||
table.insert(result, val) | table.insert(result, val) | ||
end | end | ||
else | |||
if i == length then | if i == length then | ||
table.insert(result, val) | table.insert(result, val) | ||
Line 84: | Line 88: | ||
table.insert(result, val) | table.insert(result, val) | ||
end | end | ||
end | end | ||
end | end |