Module:zm-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 21: Line 21:
local AFFR = u(0x0361) -- COMBINING DOUBLE INVERTED BREVE ͡
local AFFR = u(0x0361) -- COMBINING DOUBLE INVERTED BREVE ͡


local back_vowel = "uɯɔɑ"
local back_vowel = "aouɔ"
local front_vowel = "iea"
local front_vowel = "ieɛ"
local vowel = "[" .. back_vowel .. front_vowel .. "]"
local vowel = "[" .. back_vowel .. front_vowel .. "]"
local oral_to_nasal = {["a"] = "ã", ["i"] = "ĩ", ["ɔ"] = "ṍ", ["u"] = "ᴍ"} -- ṍ = ɔ̃
local oral_to_nasal = {["a"] = "ã", ["i"] = "ĩ", ["ɔ"] = "ṍ", ["u"] = "ᴍ"} -- ṍ = ɔ̃
Line 30: Line 30:
local nasalized = "[ãĩṍᴍ]"
local nasalized = "[ãĩṍᴍ]"
local glottalic = "[àèìòù]"
local glottalic = "[àèìòù]"
local oral = "[aeiouàèìòù]"
local oral = "[aeiou]"
 
local palatal = "[ʨjʎʃʒʥʤʧ]"
local sonorant = "[rmnɳɖɲlŋᴟ]"
local sonorant = "[rl]"
local click = "ǀǃʘǂǁ"
local click = "ǀǃʘǂǁ"
local SYLL = u(0x0329)
local SYLL = "[r̩]"


local function same(foo, bar)
local function same(foo, bar)
Line 46: Line 48:
{"ʇ", "ǀ"}, {"õ", "ṍ"}, {"o", "ɔ"}, {"ṭ", "ʈ"}, {"j", "ɟ"}, {"ñ", "ɲ"}, {"ch", "tʃ"}, {"ʈr", "ʈʂ"}, {"ṇ", "ɳ"}, {"ṣ", "ʂ"},  {"š", "ʃ"},
{"ʇ", "ǀ"}, {"õ", "ṍ"}, {"o", "ɔ"}, {"ṭ", "ʈ"}, {"j", "ɟ"}, {"ñ", "ɲ"}, {"ch", "tʃ"}, {"ʈr", "ʈʂ"}, {"ṇ", "ɳ"}, {"ṣ", "ʂ"},  {"š", "ʃ"},
{"ṯ([" .. front_vowel .. "])", "s%1"},
{"ṯ([" .. front_vowel .. "])", "s%1"},
{"k([" .. front_vowel .. "])", "kx%1"}, {"k([" .. back_vowel .. "])", "q%1"},
{"(" .. palatals .. ")e", "ɛ%1"},
{"(" .. palatals .. ")o", "ɔ%1"},
{"%1r" .. SYLL .. "%2"},
{"(" .. palatals .. ")e", "ɛ%1"},
{"([ḛḭṵaɔ]" .. TILDEBELOW .. "?)", {["ḛ"] = "è", ["ḭ"] = "ì", ["ṵ"] = "ù", ["a" .. TILDEBELOW] = "à", ["ɔ" .. TILDEBELOW] = "ò"}},
{"([ḛḭṵaɔ]" .. TILDEBELOW .. "?)", {["ḛ"] = "è", ["ḭ"] = "ì", ["ṵ"] = "ù", ["a" .. TILDEBELOW] = "à", ["ɔ" .. TILDEBELOW] = "ò"}},
Line 85: Line 90:
{"ᴍ", "m" .. SYLLABIC},
{"ᴍ", "m" .. SYLLABIC},
{"mᵇm", "mm"},  {"ŋᶢm", "ŋm"},  {"ᶯɖm", "ɳm"},
{"ɴ", "ᵑ"}, {"([" .. click .. "])ʼ", "%1ˀ"}, {"(ᵑ[" .. click .. "])x", "%1ʁ"}, {"([" .. click .. "])x", "%1χ"}, {"([^ʈɬcq])ʼ", "%1ʔ"},
{"^ʼ", "ʔ"}, {"ŋ([" .. back_vowel .. "])", "ɴ%1"}, {"(" .. vowel .. ")ᵑ", "%1" .. NASAL .. "ᵑ"},
{"([" .. click .. "][qʛχʁ]?ʼ?)a", "%1ɑ"}, {"([" .. click .. "][qʛχʁ]?ʼ?)ã", "%1ɑ" .. NASAL}, {"ɑ" .. SPH, "ɑ" .. CREAKY}, -- A-backening
{"([ʈʂɳɖ])u", "%1ɯ"}, {"([ʘǃǁ][qχʁʛ]?ʼ?)u", "%1ɯ"}, -- U-unrounding
{"([ʈtk])([ʂʃɬxs])", "%1" .. AFFR .. "%2"}, {"ᴟ", "m"},
{"s", "s" .. DENTAL}, {"ṯ", "t" .. INTERDENTAL .. AFFR .. "s" .. DENTAL}, {"ṉ", "n" .. INTERDENTAL .. VOICELESS},
{"([" .. click .. "])([qχʁʛ])", "%1" .. AFFR .. "%2"}, {"u" .. NASAL, "m" .. SYLLABIC}, {"ɔ" .. CREAKY .. "ɔ" .. CREAKY, "ɔ" .. CREAKY .. "ː"},
}
}


455

edits