Module:ábḫ-ipa: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
-- apologies to anyone horrified by my primitive coding ability
local export = {}
local export = {}


Line 175: Line 177:
table.insert(newWord, "i")
table.insert(newWord, "i")
end
end
end
elseif val == "í" then
if result[i+1] == "H" then
table.insert(newWord, "ú")
elseif ((result[i+1] == ".") or (result[i+1] == "ˌ") or (result[i+1] == "ˈ")) and (result[i+2] == "H") then
table.insert(newWord, "ú")
else
table.insert(newWord, "í")
end
elseif val == "ī" then
if result[i+1] == "H" then
table.insert(newWord, "ū")
elseif ((result[i+1] == ".") or (result[i+1] == "ˌ") or (result[i+1] == "ˈ")) and (result[i+2] == "H") then
table.insert(newWord, "ū")
else
table.insert(newWord, "ī")
end
elseif val == "î" then
if result[i+1] == "H" then
table.insert(newWord, "û")
elseif ((result[i+1] == ".") or (result[i+1] == "ˌ") or (result[i+1] == "ˈ")) and (result[i+2] == "H") then
table.insert(newWord, "û")
else
table.insert(newWord, "î")
end
elseif val == "ǐ" then
if result[i+1] == "H" then
table.insert(newWord, "ǔ")
elseif ((result[i+1] == ".") or (result[i+1] == "ˌ") or (result[i+1] == "ˈ")) and (result[i+2] == "H") then
table.insert(newWord, "ǔ")
else
table.insert(newWord, "ǐ")
end
end
-- now let's do consonants
-- now let's do consonants
Line 233: Line 267:
word = string.gsub(word, "t", "t̪")
word = string.gsub(word, "t", "t̪")
word = string.gsub(word, "T", "n̪t̪")
word = string.gsub(word, "T", "n̪t̪")
word = string.gsub(word, "u", "")
word = string.gsub(word, "u", "ʲɪ")
word = string.gsub(word, "ú", "íɪ̯")
word = string.gsub(word, "ú", "íɪ̯")
word = string.gsub(word, "ū", "iːɪ̯")
word = string.gsub(word, "ū", "iːɪ̯")

Navigation menu