47,697
edits
![]() | We're back! Sorry, bad combo of sickness, funeral and a month-long trip abroad. The site is back now. ![]() |
No edit summary |
No edit summary |
||
Line 68: | Line 68: | ||
local function syllabify(word) | local function syllabify(word) | ||
word = gsub(word, "2", "ˌ") | word = gsub(word, "2", "ˌ") | ||
word = gsub(word, "(ː)(" .. vowels .. ")", "%1·%2") | word = gsub(word, "(ː)(" .. vowels .. ")", "%1·%2") | ||
word = gsub(word, "(" .. consonants .. "*)(" .. vowels .. "*)", "%1%2·") | word = gsub(word, "(" .. consonants .. "*)(" .. vowels .. "*)", "%1%2·") | ||
Line 76: | Line 75: | ||
word = gsub(word, "·(" .. consonants .. ")·", "%1·") | word = gsub(word, "·(" .. consonants .. ")·", "%1·") | ||
word = gsub(word, "(" .. consonants .. ")·(" .. consonants .. ")([pbmvstdnrɾlkɡŋhxçʤʧçx])", "%1%2·%3") | word = gsub(word, "(" .. consonants .. ")·(" .. consonants .. ")([pbmvstdnrɾlkɡŋhxçʤʧçx])", "%1%2·%3") | ||
word = gsub(word, "a·ʊ", "aʊ·") | |||
local syllables = split(word, "·"); | local syllables = split(word, "·"); |