Module:ábḫ-ipa: Difference between revisions

no edit summary
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 or word[i+1] == nil then
if word[i-1] == nil then
table.insert(result, val)
elseif i == 2 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)