45,647
edits
No edit summary |
No edit summary |
||
Line 71: | Line 71: | ||
for i, syll in ipairs(syllables) do | for i, syll in ipairs(syllables) do | ||
if match(syll, "´") or match(syll, "ː") then | if match(syll, "´") or match(syll, "ː") then | ||
table.insert(syllables, i, "ˈ" | table.insert(syllables, i, "ˈ" .. syllables[i]) | ||
return syllables | |||
return | |||
else | else | ||
table.insert(syllables, #syllables-1, "ˈ") | table.insert(syllables, #syllables-1, "ˈ" .. syllables[#syllables-1]) | ||
return | return syllables | ||
end | end | ||
end | |||
if match(syllables[#syllables], "ŋ") or match(syllables[#syllables], "[aɛɪɔʊ][ɪʊ]") then | |||
table.insert(syllables, #syllables, "ˈ" .. syllables[#syllables]) | |||
syllables[#syllables-1] = gsub(syllables[#syllables-1], "ˈ", "") | |||
end | end | ||
end | end |