Module:qay-pron: Difference between revisions

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