Module:qlu-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 207: Line 207:
local syllables = split(word, "·");
local syllables = split(word, "·");
if no_stress then return dediacv(table.concat(syllables), "[" .. c.acute .. c.circ .. "]") end
if no_stress or (#syllables == 1 and not match(word, "[" .. c.acute .. c.circ .. "]")) then
--if #syllables == 1 then return dediacv(table.concat(syllables), "[" .. c.acute .. c.circ .. "]") end -- account for monosyllables
return dediacv(word, "[" .. c.acute .. c.circ .. "]")
end
local first_stress = "[âêîôû]"
local first_stress = "[âêîôû]"

Navigation menu