Module:qlu-pron: Difference between revisions

No edit summary
No edit summary
Line 113: Line 113:
local second_stress = "[áéíóú]"
local second_stress = "[áéíóú]"
local unstressed = "[ăĕ]"
local unstressed = "[ăĕ]"
for i, syll in ipairs(syllables) do
for i, _ in ipairs(syllables) do
if match(word, first_stress) then
if match(word, first_stress) then
if match(syllables[i], first_stress) then
if match(syllables[i], first_stress) then
Line 122: Line 122:
syllables[i] = "ˈ" .. dediacv(syllables[i])
syllables[i] = "ˈ" .. dediacv(syllables[i])
end
end
else
syllables[i] = "test"
end
end