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] .. syll[1]
syll[1] = monosyll[pos] .. syll[1]
if match(monosyll[pos], "%(?ˈ%)?") and match(syll[1], "[aá]") then gsub(syll[1], "([aá])", "%1(ː)") end
if match(monosyll[pos], "%(?ˈ%)?") --[[and match(syll[1], "[aá]")]] then gsub(syll[1], "([aá])", "%1(ː)") end
else
else
syll[#syll - 1] = "ˈ" .. syll[#syll - 1]
syll[#syll - 1] = "ˈ" .. syll[#syll - 1]