Module:User:Theknightwho/cmn-pron/data

local data = {}

local num_to_segment = { "initial", "glide1", "nucleus", "glide2", "nasal", "erhua", "tone" }

local segment_to_num = {} for k, v in next, num_to_segment do	segment_to_num[v] = k end

data.num_to_segment = num_to_segment data.segment_to_num = segment_to_num

data.raw_tones = { ["\204\132"] = 1,	["\204\129"] = 2,	["\204\140"] = 3,	["\204\128"] = 4 }

-- Pinyin local pinyin_tones = {} for k, v in next, data.raw_tones do	pinyin_tones[v] = k end data.pinyin_tones = pinyin_tones

data.pinyin_tone_priority = { ["a"] = 4, ["e"] = 4, ["ê"] = 4, ["i"] = 2, ["m"] = 1, ["n"] = 1, ["ng"] = 1, ["o"] = 3, ["u"] = 2, ["ü"] = 2, }

-- Zhuyin. data.zhuyin_letters = { ["b"] = "ㄅ", ["p"] = "ㄆ", ["m"] = "ㄇ", ["f"] = "ㄈ", ["v"] = "ㄪ", ["d"] = "ㄉ", ["t"] = "ㄊ", ["n"] = "ㄋ", ["l"] = "ㄌ", ["g"] = "ㄍ", ["k"] = "ㄎ", ["ng"] = "ㄫ", ["h"] = "ㄏ", ["j"] = "ㄐ", ["q"] = "ㄑ", ["gn"] = "ㄬ", ["x"] = "ㄒ", ["zh"] = "ㄓ", ["ch"] = "ㄔ", ["sh"] = "ㄕ", ["r"] = "ㄖ", ["z"] = "ㄗ", ["c"] = "ㄘ", ["s"] = "ㄙ", ["a"] = "ㄚ", ["o"] = "ㄛ", ["e"] = "ㄜ", ["ê"] = "ㄝ", ["i"] = "ㄧ", ["u"] = "ㄨ", ["ü"] = "ㄩ", ["ɨ"] = "", }

data.zhuyin_compounds = { ["ㄚㄧ"] = "ㄞ", ["ㄝㄧ"] = "ㄟ", ["ㄚㄨ"] = "ㄠ", ["ㄛㄨ"] = "ㄡ", ["ㄚㄋ"] = "ㄢ", ["ㄜㄋ"] = "ㄣ", ["ㄚㄫ"] = "ㄤ", ["ㄜㄫ"] = "ㄥ" }

data.zhuyin_tones = {"", "ˊ", "ˇ", "ˋ", "˙"}

return data