Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 38: Line 38:


local rules = {
local rules = {
{ --ligatures and ł
["tṡ"] = "ʨ", ["ṡ"] = "ɕ", ["į"] = "j", ["dj"] = "ʥ",
["ḍ"] = "ð", ["dl"] = "ł", ["kj"] = "c",
["nj"] = "ɲ", ["ġ"] = "x", ["ts"] = "ʦ", ["g"] = "ɡ", -- IPA g
},
{ --long consonants
{ --long consonants
["mm"] = "mː", ["bb"] = "pː", ["vv"] = "wː", ["nn"] = "nː",
["mm"] = "mː", ["bb"] = "pː", ["vv"] = "wː", ["nn"] = "nː",
["dd"] = "", ["ḍḍ"] = "ðː", ["ss"] = "", ["ṡṡ"] = "ɕː",
[""] = "ʥː",["dd"] = "", ["ðð"] = "ðː", ["ss"] = "",
["ddį"] = "ʥː", ["rr"] = "rː", ["ll"] = "lː", ["gg"] = "kː",
["ɕɕ"] = "ɕː", ["rr"] = "rː", ["ll"] = "lː", ["ɡɡ"] = "kː",
["ġġ"] = "xː", ["ng"] = "ŋː", ["hh"] = "hː", ["ḥḥ"] = "ʔː",
["xx"] = "xː", [""] = "ŋː", ["hh"] = "hː", ["ḥḥ"] = "ʔː",
["nnį"] = "ɲː", ["hl"] = "ɬː", ["ggį"] = "ɟː",
["nnį"] = "ɲː", ["hl"] = "ɬː", ["ggį"] = "ɟː",
},
},
{ --consonants not affected by stress
{ --default all consonants to unstressed
[""] = "ɕ", ["tṡ"] = "ʨ", [""] = "ʥ",  
["p"] = "b", ["ti"] = "ʨi", ["di"] = "ʥi", ["d"] = "ð",
[""] = "ð", ["dl"] = "ł", [""] = "c",
["t"] = "d", ["ɡi"] = "ji", ["ɡ"] = "ɣ", ["k"] = "ɡ",
[""] = "ɲ", ["ġ"] = "x", ["ts"] = "ʦ", ["g"] = "ɡ" -- IPA g
[""] = "ʔ",
},
},
{ --all vowels as open (open-closed distinctions are computed later)
{ --default all vowels as open (open-closed distinctions are computed later)
["a"] = "ɑ", ["ả"] = "æː",
["a"] = "ɑ", ["ả"] = "æː",
["ę"] = "æ",
["ę"] = "æ",