Module:mg-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 38: Line 38:
if #syll == 1 then
if #syll == 1 then
syll[1] = monosyll[pos] .. (pos ~= "n" and gsub(syll[1], "([aá])", "%1ː") or syll[1])
syll[1] = monosyll[pos] .. (pos ~= "n" and gsub(syll[1], "([aá])", "%1ː") or syll[1])
if pos ~= "pron" then gsub(syll[1], "ː", "%(ː%)") end
else
else
syll[#syll - 1] = "ˈ" .. syll[#syll - 1]
syll[#syll - 1] = "ˈ" .. syll[#syll - 1]