3,764
edits
No edit summary |
No edit summary |
||
| Line 38: | Line 38: | ||
{"(" .. cons .. ")(" .. cons .. ")", function(c1,c2) return same(c1,c2) and c1 .. "ː" or c1 .. c2 end}, --gemination, should go at end | {"(" .. cons .. ")(" .. cons .. ")", function(c1,c2) return same(c1,c2) and c1 .. "ː" or c1 .. c2 end}, --gemination, should go at end | ||
{"(" .. cons .. ")(" .. cons .. ")(" .. cons .. ")", function(c1,c2,c3) return same(c2,c3) and c1..c2.. "ː" or c1 .. c2 .. c3 end}, --gemination, should go at end | {"(" .. cons .. ")(" .. cons .. ")(" .. cons .. ")", function(c1,c2,c3) return same(c2,c3) and c1..c2.. "ː" or c1 .. c2 .. c3 end}, --gemination, should go at end | ||
} | |||
local postrules = { | |||
{"ːʰ", "ː"}, | |||
} | } | ||
local makrules = { | local makrules = { | ||
{"ʰ", ""}, {"eː", "ɛː"}, {"oː", "ɔː"}, | {"ʰ", ""}, {"eː", "ɛː"}, {"oː", "ɔː"}, {"ːʰ", "ː"}, | ||
{"ʁ([ptkfsnɬə])", function(c1) return "χ"..c1 end}, | {"ʁ([ptkfsnɬə])", function(c1) return "χ"..c1 end}, | ||
} | } | ||
| Line 64: | Line 68: | ||
if dialect == "mak" then | if dialect == "mak" then | ||
for _, rule in ipairs(makrules) do | for _, rule in ipairs(makrules) do | ||
term = gsub(term, rule[1], rule[2]) | |||
end | |||
elseif dialect == "kal" then | |||
for _, rule in ipairs(kalrules) do | |||
term = gsub(term, rule[1], rule[2]) | |||
end | |||
else | |||
for _, rule in ipairs(postrules) do | |||
term = gsub(term, rule[1], rule[2]) | term = gsub(term, rule[1], rule[2]) | ||
end | end | ||
edits