48,355
edits
No edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
local export = {} | local export = {} | ||
local vowels = "[aäeɛʊiɪɔɐ]" | local vowels = "[aäeɛʊiɪɔɐ" .. NONSYLL .. "]" | ||
local consonants = "[βðɺɕθʑɲjxɦDGPTKBmnpkɟt]" | local consonants = "[βðɺɕθʑɲjxɦDGPTKBmnpkɟt]" | ||
local tones = "[ˆˇ´]" | local tones = "[ˆˇ´]" | ||
| Line 60: | Line 60: | ||
syllables = split(word, "·") | syllables = split(word, "·") | ||
if match(syllables[1], "^[mnjɲβDGPpTtKkBθðɕʑxɦɺ]?" .. vowels .. "ː?" .. tones) then | |||
table.insert(syllables, 1, "ˈ") | |||
else | |||
end | |||
return table.concat(syllables) | return table.concat(syllables) | ||