Module:ábḫ-ipa: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 149: Line 149:
else
else
table.insert(newWord, "e")
table.insert(newWord, "e")
end
elseif val == "i" then
if newStresses[index-1] == "." then
if result[i+1] == "H" then
table.insert(newWord, "1")
elseif ((result[i+1] == ".") or (result[i+1] == "ˌ") or (result[i+1] == "ˈ")) and (result[i+2] == "H") then
table.insert(newWord, "1")
elseif ((result[i-1] == "m") or (result[i-1] == "n") or (result[i-1] == "j")) and (result[i+1] ~= nil) then
if mw.ustring.match(result[i+1], "[njt]") then
table.insert(newWord, "6")
elseif result[i+1] == "k" then
table.insert(newWord, "7")
else
table.insert(newWord, "i")
end
else
table.insert(newWord, "i")
end
else
if result[i+1] == "H" then
table.insert(newWord, "u")
elseif ((result[i+1] == ".") or (result[i+1] == "ˌ") or (result[i+1] == "ˈ")) and (result[i+2] == "H") then
table.insert(newWord, "u")
else
table.insert(newWord, "i")
end
end
end
-- now let's do consonants
-- now let's do consonants
Line 175: Line 201:
word = string.gsub(word, "b", "β")
word = string.gsub(word, "b", "β")
word = string.gsub(word, "B", "ᵐb")
word = string.gsub(word, "B", "ᵐb")
word = string.gsub(word, "8", "b")
word = string.gsub(word, "d", "ð")
word = string.gsub(word, "d", "ð")
word = string.gsub(word, "D", "ⁿd̪")
word = string.gsub(word, "D", "ⁿd̪")
Line 181: Line 206:
word = string.gsub(word, "ê", "êːɪ̯")
word = string.gsub(word, "ê", "êːɪ̯")
word = string.gsub(word, "ě", "ěːɪ̯")
word = string.gsub(word, "ě", "ěːɪ̯")
word = string.gsub(word, "3", "ɛ")
word = string.gsub(word, "G", "ᵑg")
word = string.gsub(word, "G", "ᵑg")
word = string.gsub(word, "h", "ɦ")
word = string.gsub(word, "h", "ɦ")
Line 212: Line 236:
word = string.gsub(word, "y", "j")
word = string.gsub(word, "y", "j")
word = string.gsub(word, "z", "θ̱")
word = string.gsub(word, "z", "θ̱")
word = string.gsub(word, "1", "ɪ")
word = string.gsub(word, "3", "ɛ")
word = string.gsub(word, "6", "ȵ̩")
word = string.gsub(word, "7", "ŋ̩ʲ")
word = string.gsub(word, "8", "b")
return "[" .. word .. "]"
return "[" .. word .. "]"

Navigation menu