45,337
edits
No edit summary |
No edit summary |
||
Line 46: | Line 46: | ||
["ṡ"] = "ɕ", ["tṡ"] = "ʨ", ["dį"] = "ʥ", | ["ṡ"] = "ɕ", ["tṡ"] = "ʨ", ["dį"] = "ʥ", | ||
["ḍ"] = "ð", ["dl"] = "ł", ["kį"] = "c", | ["ḍ"] = "ð", ["dl"] = "ł", ["kį"] = "c", | ||
["nį"] = "ɲ", ["ġ"] = "x", ["ts"] = "ʦ", | ["nį"] = "ɲ", ["ġ"] = "x", ["ts"] = "ʦ", ["g"] = "ɡ" | ||
}, | }, | ||
{ --all vowels as open (open-closed distinctions are computed later) | { --all vowels as open (open-closed distinctions are computed later) | ||
Line 63: | Line 63: | ||
["^(ˈ[ptkc])"] = "%1ʰ", --voiceless stops word-initially become aspirated | ["^(ˈ[ptkc])"] = "%1ʰ", --voiceless stops word-initially become aspirated | ||
["^(.*·ˈ[ptkc])"] = "%1⁽ʰ⁾", | ["^(.*·ˈ[ptkc])"] = "%1⁽ʰ⁾", | ||
["^(ˈ) | ["^(ˈ)ɡį([" .. front_vowel .. "])"] = "%1ʣ%2", --<gį> word-initially and before front vowels is pronounced [d͡z] | ||
["^(ˈ) | ["^(ˈ)ɡį([" .. back_vowel .. "])"] = "%1ɟ%2", | ||
["^(ˈ)ɡ([" .. front_vowel .. "])"] = "%1ɟ%2", | |||
}, | }, | ||
{ | { | ||
Line 88: | Line 89: | ||
local stressed_rules = { | local stressed_rules = { | ||
{ | { | ||
["h"] = "ʔ", [" | ["h"] = "ʔ", ["ɡį"] = "jː", ["hh"] = "hː" | ||
}, | }, | ||
} | } | ||
Line 123: | Line 124: | ||
end | end | ||
for ss in gmatch(term, stpattern) do | |||
for | for _, srule in ipairs(stressed_rules) do | ||
t = gsub(term, stpattern "%1") | |||
for regex, replacement in pairs(srule) do | |||
t = gsub(t, regex, replacement) | |||
end | |||
end | end | ||
end | end | ||
table.insert(IPA, term) | table.insert(IPA, term) |