Module:mg-pron: Difference between revisions

No edit summary
No edit summary
Line 61: Line 61:
syll[1] = monosyll[pos] .. syll[1]
syll[1] = monosyll[pos] .. syll[1]
else
else
for _, s in ipairs(syll) do
if match(term, "[áéíóú]") then
if match(s, "[áéíóú]") then
for _, s in ipairs(syll) do
s = "ˈ" .. remove_acute(s)
s = "ˈ" .. remove_acute(s)
table.insert(noa, s)
end
end
table.insert(noa, s)
end
end
--syll[#syll - 1] = "ˈ" .. syll[#syll - 1]
syll[#syll - 1] = "ˈ" .. syll[#syll - 1]
end
end


return table.concat(noa, "·")--table.concat(syll, "·")
return table.concat(noa or syll, "·")
end
end