Module:qlu-pron: Difference between revisions

No edit summary
No edit summary
Line 93: Line 93:
syll = "ˈ" .. gsub(mw.ustring.toNFD(syll), c.acute, "")
syll = "ˈ" .. gsub(mw.ustring.toNFD(syll), c.acute, "")
return table.concat(syllables, "·")
return table.concat(syllables, "·")
elseif match(syll, "ː") then
else
table.insert(syllables, i, "ˈ")
table.insert(syllables, #syllables-1, "ˈ")
return table.concat(syllables, "·")
return table.concat(syllables, "·")
elseif match(word, "ŋ$") or match(syllables[#syllables], "[aeiouɛɪɔʊ][aeiouɛɪɔʊj]") then
table.insert(syllables, #syllables, "ˈ")
return table.concat(syllables, "·")
--[[else
table.insert(syllables, #syllables-1, "ˈ")
return ret]]
end
end
end
end