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