Module:qay-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 70: Line 70:
if #syllables ~= 1 then
if #syllables ~= 1 then
for i, syll in ipairs(syllables) do
for i, syll in ipairs(syllables) do
if match(syll, "´") or match(syll, "ː") or match(table.concat(syllables, "·"), "ŋ$") then
if match(syll, "´") or match(syll, "ː") then
table.insert(syllables, i, "ˈ")
table.insert(syllables, i, "ˈ")
return table.concat(syllables, "·")
elseif match(term, "ŋ$") then
table.insert(syllables, #syllables, "ˈ")
return table.concat(syllables, "·")
return table.concat(syllables, "·")
else
else