Module:qlu-pron: Difference between revisions
No edit summary |
No edit summary |
||
| Line 114: | Line 114: | ||
syll = "ˈ" .. gsub(mw.ustring.toNFD(syll), c.acute, "") | syll = "ˈ" .. gsub(mw.ustring.toNFD(syll), c.acute, "") | ||
else break end | else break end | ||
elseif match(syll, first_stress) then | elseif match(syll, first_stress) then | ||
syll = "ˈ" .. gsub(mw.ustring.toNFD(syll), c. | syll = "ˈ" .. gsub(mw.ustring.toNFD(syll), c.circ, "") | ||
return table.concat(syllables, "·") | return table.concat(syllables, "·") | ||
elseif match(syll, second_stress) then | elseif match(syll, second_stress) then | ||
syll = "ˌ" .. gsub(mw.ustring.toNFD(syll), c. | syll = "ˌ" .. gsub(mw.ustring.toNFD(syll), c.acute, "") | ||
break | break | ||
elseif match(word, "[ | elseif match(mw.ustring.toNFD(word), "[ɛɔI]") then | ||
if match(syll, " | if not match(syll, unstressed) then | ||
syll = " | syll = "ˈ" .. syll | ||
return table.concat(syllables, "·") | |||
elseif match(syll, second_stress) then | |||
syll = "ˌ" .. gsub(mw.ustring.toNFD(syll), c.acute, "") | |||
break | |||
else | |||
table.insert(syllables, #syllables-1, "ˈ") | |||
return table.concat(syllables, "·") | return table.concat(syllables, "·") | ||
end | end | ||