Module:Hoo-ipac: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 17: Line 17:


local cons = "[pbmʋstdnlkgŋʁɬjhχ]"
local cons = "[pbmʋstdnlkgŋʁɬjhχ]"
local vow = "[aiuɛeɔoʉə]"
local vow = "[aiuɛeɔoʉɟə]"


local function same(foo, bar)
local function same(foo, bar)
Line 32: Line 32:


local rules = {
local rules = {
{"(" .. cons .. ")(" .. cons .. ")", function(c1,c2) return same(c1,c2) and c1 .. "ː" or c1 .. c2 end},
{"ɟʁ" ..vow, function(v1) return "uʁ"..v1 end}, {"uʁɟʁ", "uʁ"}, {"ɟʁ", "ɔʁ"}, --dealing with å
{"ɟʁ" ..vow, function(v1) return "uʁ"..v1 end},
    {"(" .. cons .. ")(" .. cons .. ")", function(c1,c2) return same(c1,c2) and c1 .. "ː" or c1 .. c2 end}, --gemination, should go at end
{"uʁɟʁ", "uʁ"},
{"ɟʁ", "ɔʁ"}
}
}


3,764

edits