182
edits
No edit summary |
No edit summary |
||
Line 134: | Line 134: | ||
for i,val in ipairs(word) do | for i,val in ipairs(word) do | ||
if val == "a" then | if val == "a" then | ||
if word[i-1] == nil then | if (word[i-1] == nil) or (word[i-1] == ".") then | ||
table.insert(newWord, "w") | table.insert(newWord, "w") | ||
elseif word[i-1] == "ˌ" then | elseif (word[i-1] == "ˌ") or (word[i-2] == "ˌ") then | ||
table.insert(newWord, "a") | table.insert(newWord, "a") | ||
elseif word[i-2] == nil then | elseif word[i-2] == nil then | ||
table.insert(newWord, "w") | table.insert(newWord, "w") | ||
else | else | ||
table.insert(newWord, "w") | table.insert(newWord, "w") | ||
end | |||
elseif val == "b" then | |||
if word[i-1] == "m" then | |||
table.insert(newWord, "8") | |||
else | |||
table.insert(newWord, "b") | |||
end | end | ||
else | else | ||
Line 165: | Line 167: | ||
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̪") |
edits