45,333
edits
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
local v = sub(V, 1, 1) | local v = sub(V, 1, 1) | ||
local ejective = C == "tɬʼ" or match(C, "^[ṭcq]ʼ$") ~= nil | |||
local fricative = match(C, "[sšṣɬ][ʇǃǂǁʘ]") ~= nil | local fricative = match(C, "[sšṣɬ][ʇǃǂǁʘ]") ~= nil | ||
local nasal = match(C, "ɴ") ~= nil | local nasal = match(C, "ɴ") ~= nil | ||
Line 43: | Line 44: | ||
local uvular = match(C, "x") ~= nil | local uvular = match(C, "x") ~= nil | ||
if (nasal or fricative) or glottal then word = C .. (glottal and "" or v) .. gsub(C, "[sšṣɬ]([ʇǃǂǁʘ])", "%1") .. r2 | if ejective then word = C .. C .. r2 | ||
elseif (nasal or fricative) or glottal then word = C .. (glottal and "" or v) .. gsub(C, "[sšṣɬ]([ʇǃǂǁʘ])", "%1") .. r2 | |||
elseif uvular then word = gsub(C, "([ʇǃǂǁʘ])x", "%1") .. v .. C .. r2 | elseif uvular then word = gsub(C, "([ʇǃǂǁʘ])x", "%1") .. v .. C .. r2 | ||
else word = C .. v .. C .. r2 end | else word = C .. v .. C .. r2 end | ||
word = word: gsub("v", "mʼm"); word = word:gsub("ũ", "m"); word = word:gsub("-", "ʼ") | word = word: gsub("v", "mʼm"); word = word:gsub("ũ", "m"); word = word:gsub("-", "ʼ") |