45,647
edits
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
term = gsub(term, "·(" .. consonants .. ")·", "%1·") | term = gsub(term, "·(" .. consonants .. ")·", "%1·") | ||
local syllables = split(term, "·") | local syllables = split(term, "·"); | ||
for i, syll in ipairs(syllables) do | for i, syll in ipairs(syllables) do | ||
Line 74: | Line 74: | ||
elseif match(syll, "ŋ$") or match(syll, "[aɛɪɔʊ][ɪʊ]") then | elseif match(syll, "ŋ$") or match(syll, "[aɛɪɔʊ][ɪʊ]") then | ||
table.insert(syllables, #syllables, "ˈ") | table.insert(syllables, #syllables, "ˈ") | ||
return table.concat(syllables, "·") | |||
else | else | ||
table.insert(syllables, #syllables-1, "ˈ") | table.insert(syllables, #syllables-1, "ˈ") | ||
return table.concat(syllables, "·") | |||
end | end | ||
end | end |