Module:qlu-pron: Difference between revisions

No edit summary
No edit summary
Line 115: Line 115:
for i, syll in ipairs(syllables) do
for i, syll in ipairs(syllables) do
if match(word, first_stress) then
if match(word, first_stress) then
if match(syll, first_stress) then
if match(syllables[i], first_stress) then
--syll = "ˈ" .. dediacv(syll)
syllables[i] = "ˈ" .. dediacv(syllables[i])
syllables[i] = "testfirst"
end
end
elseif match(word, "a[eu]") or match(word, "ei") then
elseif match(word, "a[eu]") or match(word, "ei") then
if match(syll, "a[eu]") or match(syll, "ei") then
if match(syllables[i], "a[eu]") or match(syllables[i], "ei") then
--syll = "ˈ" .. dediacv(syll)
syllables[i] = "ˈ" .. dediacv(syllables[i])
syll = "testsecond"
end
end
else
else
syll = "test"
syllables[i] = "test"
end
end