Module:ábḫ-ipa: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 42: Line 42:
word = string.gsub(word, "áa", "â")
word = string.gsub(word, "áa", "â")
word = string.gsub(word, "aá", "ǎ")
word = string.gsub(word, "aá", "ǎ")
length = string.len(word)
word = mw.text.split(word, "", true)
word = mw.text.split(word, "", true)
Line 69: Line 71:
end
end
elseif mw.ustring.match(word[i], "[mnjBDGPpTtKkbzdsJHhry]") then
elseif mw.ustring.match(word[i], "[mnjBDGPpTtKkbzdsJHhry]") then
if i == length(word) then
if i == length then
table.insert(result, val)
table.insert(result, val)
elseif mw.ustring.match(word[i+1], "[iīeēoōIaāAĀOŌ]") then
elseif mw.ustring.match(word[i+1], "[iīeēoōIaāAĀOŌ]") then