Module:qay-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 71: Line 71:
for i, syll in ipairs(syllables) do
for i, syll in ipairs(syllables) do
if match(syll, "´") or match(syll, "ː") then
if match(syll, "´") or match(syll, "ː") then
table.insert(syllables, i, "ˈ")
table.insert(syllables, i, "ˈ" .. syllables[i])
return table.concat(syllables, "·")
return syllables
--[[elseif match(syll, "ŋ$") or match(syll, "[aɛɪɔʊ][ɪʊ]") then
table.insert(syllables, #syllables, "ˈ")
return table.concat(syllables, "·")]]
else
else
table.insert(syllables, #syllables-1, "ˈ")
table.insert(syllables, #syllables-1, "ˈ" .. syllables[#syllables-1])
return table.concat(syllables, "·")
return syllables
end
end
end
if match(syllables[#syllables], "ŋ") or match(syllables[#syllables], "[aɛɪɔʊ][ɪʊ]") then
table.insert(syllables, #syllables, "ˈ" .. syllables[#syllables])
syllables[#syllables-1] = gsub(syllables[#syllables-1], "ˈ", "")
end
end
end
end

Navigation menu