Module:qhv-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 45: Line 45:
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, "([áéíóúý])", deacuter["%1"])
syllable = gsub(syllable, "([áéíóúý])", function(v)
return deacuter[v]
end)
table.insert(syllables, i, "ˈ")
table.insert(syllables, i, "ˈ")
return table.concat(syllables)
return table.concat(syllables)

Navigation menu