45,647
edits
No edit summary |
No edit summary |
||
Line 41: | Line 41: | ||
for i, syllable in ipairs(syllables) do | for i, syllable in ipairs(syllables) do | ||
if match(syllable, "[áéíóúý]") then | if match(syllable, "[áéíóúý]") then | ||
syllable = gsub(syllable, "([áéíóúý])", mw.ustring. | syllable = gsub(syllable, "([áéíóúý])", mw.ustring.toNFC("%1")) | ||
table.insert(syllables, i, "ˈ") | table.insert(syllables, i, "ˈ") | ||
return table.concat(syllables) | return table.concat(syllables) |