ting 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,77 @@
1
+ module Ting
2
+ module Conversions
3
+ class Hanyu
4
+ def initialize(tone = :numbers, options = {})
5
+ @options = options
6
+ @options[:preprocess] ||= lambda {|s| s.gsub(/u:|Ü/, 'ü').downcase }
7
+
8
+ if Class === tone
9
+ @tone = tone
10
+ else
11
+ @tone = Ting::Tones.const_get(tone.to_s.camelcase)
12
+ end
13
+ end
14
+
15
+ def valid_character_regexp
16
+ @valid_character_regexp ||= valid_character_regexp!
17
+ end
18
+
19
+ def valid_character_regexp!
20
+ valid_chars = []
21
+ Ting.valid_combinations do |i,f|
22
+ 1.upto(5) do |tone|
23
+ valid_chars += @tone.add_tone(Conversions.unparse(:hanyu,TonelessSyllable.new(i,f)), tone).chars
24
+ end
25
+ end
26
+ valid_chars.sort!.uniq!
27
+ Regexp.new(valid_chars.map{|ch| Regexp.escape(ch)}.join('|'))
28
+ end
29
+
30
+ def parse(string)
31
+ result = []
32
+ looking_at = []
33
+ string.chars.each do |ch|
34
+ head, syll = parse_tail(looking_at)
35
+ looking_at << ch
36
+ if syll && !parse_tail(looking_at)
37
+ puts "-> #{syll.inspect}"
38
+ result << head.to_s unless head.empty?
39
+ result << syll
40
+ looking_at = [ch]
41
+ end
42
+ end
43
+ result
44
+ end
45
+
46
+ def parse_tail(chars)
47
+ 7.downto(1) do |i|
48
+ head = chars[0...-i]
49
+ tail = chars[-i..-1]
50
+ syll = parse_syllable( tail )
51
+ return head, syll if syll
52
+ end
53
+ nil
54
+ end
55
+
56
+ def parse_syllable(tone_syll)
57
+ tone_syll = tone_syll.to_s
58
+ tone_syll = @options[:preprocess].call(tone_syll) if @options[:preprocess]
59
+ # p tone_syll
60
+ tone, syll = @tone.pop_tone(tone_syll)
61
+ if tone && syll
62
+ ini_fini = Conversions.parse(:hanyu,syll)
63
+ if ini_fini
64
+ p tone, syll, ini_fini
65
+ ini, fini = ini_fini.initial, ini_fini.final
66
+ end
67
+
68
+ return Syllable.new(ini, fini, tone) if tone && ini && fini
69
+ end
70
+ end
71
+
72
+ # self.gsub('u:','ü').gsub(/[A-Za-züÜ]{1,5}\d/) do |m|
73
+ #Ting.HanyuWriter(:accents) << Ting.HanyuReader(:numbers).parse(m.downcase)
74
+ #end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,410 @@
1
+ "zhuyin","wadegiles","mps2","yale","tongyong","hanyu","gwoyeu1","gwoyeu2","gwoyeu3","gwoyeu4"
2
+ "ㄚ","a","a","a","a","a","a","ar","aa","ah"
3
+ "ㄞ","ai","ai","ai","ai","ai","ai","air","ae","ay"
4
+ "ㄢ","an","an","an","an","an","an","arn","aan","ann"
5
+ "ㄤ","ang","ang","ang","ang","ang","ang","arng","aang","anq"
6
+ "ㄠ","ao","au","au","ao","ao","au","aur","ao","aw"
7
+ "ㄅㄚ","pa","ba","ba","ba","ba","ba","bar","baa","bah"
8
+ "ㄅㄞ","pai","bai","bai","bai","bai","bai","bair","bae","bay"
9
+ "ㄅㄢ","pan","ban","ban","ban","ban","ban","barn","baan","bann"
10
+ "ㄅㄤ","pang","bang","bang","bang","bang","bang","barng","baang","banq"
11
+ "ㄅㄠ","pao","bau","bau","bao","bao","bau","baur","bao","baw"
12
+ "ㄅㄟ","pei","bei","bei","bei","bei","bei","beir","beei","bey"
13
+ "ㄅㄣ","pen","ben","ben","ben","ben","ben","bern","been","benn"
14
+ "ㄅㄥ","peng","beng","beng","beng","beng","beng","berng","beeng","benq"
15
+ "ㄅㄧ","pi","bi","bi","bi","bi","bi","byi","bii","bih"
16
+ "ㄅㄧㄢ","pien","bian","byan","bian","bian","bian","byan","bean","biann"
17
+ "ㄅㄧㄠ","piao","biau","byau","biao","biao","biau","byau","beau","biaw"
18
+ "ㄅㄧㄝ","pieh","bie","bye","bie","bie","bie","bye","biee","bieh"
19
+ "ㄅㄧㄣ","pin","bin","bin","bin","bin","bin","byn","biin","binn"
20
+ "ㄅㄧㄥ","ping","bing","bing","bing","bing","bing","byng","biing","binq"
21
+ "ㄅㄛ","po","bo","bwo","bo","bo","bo","bor","boo","boh"
22
+ "ㄅㄨ","pu","bu","bu","bu","bu","bu","bwu","buu","buh"
23
+ "ㄘㄚ","ts`a","tsa","tsa","ca","ca","tsa","tsar","tsaa","tsah"
24
+ "ㄘㄞ","ts`ai","tsai","tsai","cai","cai","tsai","tsair","tsae","tsay"
25
+ "ㄘㄢ","ts`an","tsan","tsan","can","can","tsan","tsarn","tsaan","tsann"
26
+ "ㄘㄤ","ts`ang","tsang","tsang","cang","cang","tsang","tsarng","tsaang","tsanq"
27
+ "ㄘㄠ","ts`ao","tsau","tsau","cao","cao","tsau","tsaur","tsao","tsaw"
28
+ "ㄘㄜ","ts`e","tse","tse","ce","ce","tse","tser","tsee","tseh"
29
+ "ㄘㄣ","ts`en","tsen","tsen","cen","cen","tsen","tsern","tseen","tsenn"
30
+ "ㄘㄥ","ts`eng","tseng","tseng","ceng","ceng","tseng","tserng","tseeng","tsenq"
31
+ "ㄔㄚ","ch`a","cha","cha","cha","cha","cha","char","chaa","chah"
32
+ "ㄔㄞ","ch`ai","chai","chai","chai","chai","chai","chair","chae","chay"
33
+ "ㄔㄢ","ch`an","chan","chan","chan","chan","chan","charn","chaan","chann"
34
+ "ㄔㄤ","ch`ang","chang","chang","chang","chang","chang","charng","chaang","chanq"
35
+ "ㄔㄠ","ch`ao","chau","chau","chao","chao","chau","chaur","chao","chaw"
36
+ "ㄔㄜ","ch`e","che","che","che","che","che","cher","chee","cheh"
37
+ "ㄔㄣ","ch`en","chen","chen","chen","chen","chen","chern","cheen","chenn"
38
+ "ㄔㄥ","ch`eng","cheng","cheng","cheng","cheng","cheng","cherng","cheeng","chenq"
39
+ "ㄔ","ch`ih","chr","chr","chih","chi","chy","chyr","chyy","chyh"
40
+ "ㄔㄨㄥ","ch`ung","chung","chung","chong","chong","chong","chorng","choong","chonq"
41
+ "ㄔㄡ","ch`ou","chou","chou","chou","chou","chou","chour","choou","chow"
42
+ "ㄔㄨ","ch`u","chu","chu","chu","chu","chu","chwu","chuu","chuh"
43
+ "ㄔㄨㄚ","ch`ua","chua","chwa","chua","chua","chua","chuar","chuaa","chuah"
44
+ "ㄔㄨㄞ","ch`uai","chuai","chwai","chuai","chuai","chuai","chwai","choai","chuay"
45
+ "ㄔㄨㄢ","ch`uan","chuan","chwan","chuan","chuan","chuan","chwan","choan","chuann"
46
+ "ㄔㄨㄤ","ch`uang","chuang","chwang","chuang","chuang","chuang","chwang","choang","chuanq"
47
+ "ㄔㄨㄟ","ch`ui","chuei","chwei","chuei","chui","chuei","chwei","choei","chuey"
48
+ "ㄔㄨㄣ","ch`un","chuen","chwen","chun","chun","chuen","chwen","choen","chuenn"
49
+ "ㄔㄨㄛ","ch`o","chuo","chwo","chuo","chuo","chuo","chwo","chuoo","chuoh"
50
+ "ㄘ","tz`u","tsz","tsz","cih","ci","tsy","tsyr","tsyy","tsyh"
51
+ "ㄘㄨㄥ","ts`ung","tsung","tsung","cong","cong","tsong","tsorng","tsoong","tsonq"
52
+ "ㄘㄡ","ts`ou","tsou","tsou","cou","cou","tsou","tsour","tsoou","tsow"
53
+ "ㄘㄨ","ts`u","tsu","tsu","cu","cu","tsu","tswu","tsuu","tsuh"
54
+ "ㄘㄨㄢ","ts`uan","tsuan","tswan","cuan","cuan","tsuan","tswan","tsoan","tsuann"
55
+ "ㄘㄨㄟ","ts`ui","tsuei","tswei","cuei","cui","tsuei","tswei","tsoei","tsuey"
56
+ "ㄘㄨㄣ","ts`un","tsuen","tswen","cun","cun","tsuen","tswen","tsoen","tsuenn"
57
+ "ㄘㄨㄛ","ts`o","tsuo","tswo","cuo","cuo","tsuo","tswo","tsuoo","tsuoh"
58
+ "ㄉㄚ","ta","da","da","da","da","da","dar","daa","dah"
59
+ "ㄉㄞ","tai","dai","dai","dai","dai","dai","dair","dae","day"
60
+ "ㄉㄢ","tan","dan","dan","dan","dan","dan","darn","daan","dann"
61
+ "ㄉㄤ","tang","dang","dang","dang","dang","dang","darng","daang","danq"
62
+ "ㄉㄠ","tao","dau","dau","dao","dao","dau","daur","dao","daw"
63
+ "ㄉㄜ","te","de","de","de","de","de","der","dee","deh"
64
+ "ㄉㄟ","tei","dei","dei","dei","dei","dei","deir","deei","dey"
65
+ "ㄉㄣ","ten","den","den","den","den","den","dern","deen","denn"
66
+ "ㄉㄥ","teng","deng","deng","deng","deng","deng","derng","deeng","denq"
67
+ "ㄉㄧ","ti","di","di","di","di","di","dyi","dii","dih"
68
+ "ㄉㄧㄢ","tien","dian","dyan","dian","dian","dian","dyan","dean","diann"
69
+ "ㄉㄧㄤ","tiang","diang","dyang","diang","diang","diang","dyang","deang","dianq"
70
+ "ㄉㄧㄠ","tiao","diau","dyau","diao","diao","diau","dyau","deau","diaw"
71
+ "ㄉㄧㄝ","tieh","die","dye","die","die","die","dye","diee","dieh"
72
+ "ㄉㄧㄥ","ting","ding","ding","ding","ding","ding","dyng","diing","dinq"
73
+ "ㄉㄧㄡ","tiu","diou","dyou","diou","diu","diou","dyou","deou","diow"
74
+ "ㄉㄨㄥ","tung","dung","dung","dong","dong","dong","dorng","doong","donq"
75
+ "ㄉㄡ","tou","dou","dou","dou","dou","dou","dour","doou","dow"
76
+ "ㄉㄨ","tu","du","du","du","du","du","dwu","duu","duh"
77
+ "ㄉㄨㄢ","tuan","duan","dwan","duan","duan","duan","dwan","doan","duann"
78
+ "ㄉㄨㄟ","tui","duei","dwei","duei","dui","duei","dwei","doei","duey"
79
+ "ㄉㄨㄣ","tun","duen","dwen","dun","dun","duen","dwen","doen","duenn"
80
+ "ㄉㄨㄛ","to","duo","dwo","duo","duo","duo","dwo","duoo","duoh"
81
+ "ㄜ","e","e","e","e","e","e","er","ee","eh"
82
+ "ㄟ","ei","ei","ei","ei","ei","ei","eir","eei","ey"
83
+ "ㄣ","en","en","en","en","en","en","ern","een","enn"
84
+ "ㄦ","erh","er","er","er","er","el","erl","eel","ell"
85
+ "ㄈㄚ","fa","fa","fa","fa","fa","fa","far","faa","fah"
86
+ "ㄈㄢ","fan","fan","fan","fan","fan","fan","farn","faan","fann"
87
+ "ㄈㄤ","fang","fang","fang","fang","fang","fang","farng","faang","fanq"
88
+ "ㄈㄟ","fei","fei","fei","fei","fei","fei","feir","feei","fey"
89
+ "ㄈㄣ","fen","fen","fen","fen","fen","fen","fern","feen","fenn"
90
+ "ㄈㄥ","feng","feng","feng","fong","feng","feng","ferng","feeng","fenq"
91
+ "ㄈㄛ","fo","fo","fwo","fo","fo","fo","for","foo","foh"
92
+ "ㄈㄡ","fou","fou","fou","fou","fou","fou","four","foou","fow"
93
+ "ㄈㄨ","fu","fu","fu","fu","fu","fu","fwu","fuu","fuh"
94
+ "ㄍㄚ","ka","ga","ga","ga","ga","ga","gar","gaa","gah"
95
+ "ㄍㄞ","kai","gai","gai","gai","gai","gai","gair","gae","gay"
96
+ "ㄍㄢ","kan","gan","gan","gan","gan","gan","garn","gaan","gann"
97
+ "ㄍㄤ","kang","gang","gang","gang","gang","gang","garng","gaang","ganq"
98
+ "ㄍㄠ","kao","gau","gau","gao","gao","gau","gaur","gao","gaw"
99
+ "ㄍㄜ","ko","ge","ge","ge","ge","ge","ger","gee","geh"
100
+ "ㄍㄟ","kei","gei","gei","gei","gei","gei","geir","geei","gey"
101
+ "ㄍㄣ","ken","gen","gen","gen","gen","gen","gern","geen","genn"
102
+ "ㄍㄥ","keng","geng","geng","geng","geng","geng","gerng","geeng","genq"
103
+ "ㄍㄨㄥ","kung","gung","gung","gong","gong","gong","gorng","goong","gonq"
104
+ "ㄍㄡ","kou","gou","gou","gou","gou","gou","gour","goou","gow"
105
+ "ㄍㄨ","ku","gu","gu","gu","gu","gu","gwu","guu","guh"
106
+ "ㄍㄨㄚ","kua","gua","gwa","gua","gua","gua","gwa","goa","guah"
107
+ "ㄍㄨㄞ","kuai","guai","gwai","guai","guai","guai","gwai","goai","guay"
108
+ "ㄍㄨㄢ","kuan","guan","gwan","guan","guan","guan","gwan","goan","guann"
109
+ "ㄍㄨㄤ","kuang","guang","gwang","guang","guang","guang","gwang","goang","guanq"
110
+ "ㄍㄨㄟ","kuei","guei","gwei","guei","gui","guei","gwei","goei","guey"
111
+ "ㄍㄨㄣ","kun","guen","gwun","gun","gun","guen","gwen","goen","guenn"
112
+ "ㄍㄨㄛ","kuo","guo","gwo","guo","guo","guo","gwo","guoo","guoh"
113
+ "ㄏㄚ","ha","ha","ha","ha","ha","ha","har","haa","hah"
114
+ "ㄏㄞ","hai","hai","hai","hai","hai","hai","hair","hae","hay"
115
+ "ㄏㄢ","han","han","han","han","han","han","harn","haan","hann"
116
+ "ㄏㄤ","hang","hang","hang","hang","hang","hang","harng","haang","hanq"
117
+ "ㄏㄠ","hao","hau","hau","hao","hao","hau","haur","hao","haw"
118
+ "ㄏㄜ","ho","he","he","he","he","he","her","hee","heh"
119
+ "ㄏㄟ","hei","hei","hei","hei","hei","hei","heir","heei","hey"
120
+ "ㄏㄣ","hen","hen","hen","hen","hen","hen","hern","heen","henn"
121
+ "ㄏㄥ","heng","heng","heng","heng","heng","heng","herng","heeng","henq"
122
+ "ㄏㄨㄥ","hung","hung","hung","hong","hong","hong","horng","hoong","honq"
123
+ "ㄏㄡ","hou","hou","hou","hou","hou","hou","hour","hoou","how"
124
+ "ㄏㄨ","hu","hu","hu","hu","hu","hu","hwu","huu","huh"
125
+ "ㄏㄨㄚ","hua","hua","hwa","hua","hua","hua","hwa","hoa","huah"
126
+ "ㄏㄨㄞ","huai","huai","hwai","huai","huai","huai","hwai","hoai","huay"
127
+ "ㄏㄨㄢ","huan","huan","hwan","huan","huan","huan","hwan","hoan","huann"
128
+ "ㄏㄨㄤ","huang","huang","hwang","huang","huang","huang","hwang","hoang","huanq"
129
+ "ㄏㄨㄟ","hui","huei","hwei","huei","hui","huei","hwei","hoei","huey"
130
+ "ㄏㄨㄣ","hun","huen","hwen","hun","hun","huen","hwen","hoen","huenn"
131
+ "ㄏㄨㄛ","huo","huo","hwo","huo","huo","huo","hwo","huoo","huoh"
132
+ "ㄐㄧ","chi","ji","ji","ji","ji","ji","jyi","jii","jih"
133
+ "ㄐㄧㄚ","chia","jia","jya","jia","jia","jia","jya","jea","jiah"
134
+ "ㄐㄧㄢ","chien","jian","jyan","jian","jian","jian","jyan","jean","jiann"
135
+ "ㄐㄧㄤ","chiang","jiang","jyang","jiang","jiang","jiang","jyang","jeang","jianq"
136
+ "ㄐㄧㄠ","chiao","jiau","jyau","jiao","jiao","jiau","jyau","jeau","jiaw"
137
+ "ㄐㄧㄝ","chieh","jie","jye","jie","jie","jie","jye","jiee","jieh"
138
+ "ㄐㄧㄣ","chin","jin","jin","jin","jin","jin","jyn","jiin","jinn"
139
+ "ㄐㄧㄥ","ching","jing","jing","jing","jing","jing","jyng","jiing","jinq"
140
+ "ㄐㄩㄥ","chiung","jiung","jyung","jyong","jiong","jiong","jyong","jeong","jionq"
141
+ "ㄐㄧㄡ","chiu","jiou","jyou","jiou","jiu","jiou","jyou","jeou","jiow"
142
+ "ㄐㄩ","chü","jiu","jyu","jyu","ju","jiu","jyu","jeu","jiuh"
143
+ "ㄐㄩㄢ","chüan","jiuan","jywan","jyuan","juan","jiuan","jyuan","jeuan","jiuann"
144
+ "ㄐㄩㄝ","chüeh","jiue","jywe","jyue","jue","jiue","jyue","jeue","jiueh"
145
+ "ㄐㄩㄣ","chün","jiun","jyun","jyun","jun","jiun","jyun","jeun","jiunn"
146
+ "ㄎㄚ","k`a","ka","ka","ka","ka","ka","kar","kaa","kah"
147
+ "ㄎㄞ","k`ai","kai","kai","kai","kai","kai","kair","kae","kay"
148
+ "ㄎㄢ","k`an","kan","kan","kan","kan","kan","karn","kaan","kann"
149
+ "ㄎㄤ","k`ang","kang","kang","kang","kang","kang","karng","kaang","kanq"
150
+ "ㄎㄠ","k`ao","kau","kau","kao","kao","kau","kaur","kao","kaw"
151
+ "ㄎㄜ","k`o","ke","ke","ke","ke","ke","ker","kee","keh"
152
+ "ㄎㄣ","k`en","ken","ken","ken","ken","ken","kern","keen","kenn"
153
+ "ㄎㄥ","k`eng","keng","keng","keng","keng","keng","kerng","keeng","kenq"
154
+ "ㄎㄨㄥ","k`ung","kung","kung","kong","kong","kong","korng","koong","konq"
155
+ "ㄎㄡ","k`ou","kou","kou","kou","kou","kou","kour","koou","kow"
156
+ "ㄎㄨ","k`u","ku","ku","ku","ku","ku","kwu","kuu","kuh"
157
+ "ㄎㄨㄚ","k`ua","kua","kwa","kua","kua","kua","kwa","koa","kuah"
158
+ "ㄎㄨㄞ","k`uai","kuai","kwai","kuai","kuai","kuai","kwai","koai","kuay"
159
+ "ㄎㄨㄢ","k`uan","kuan","kwan","kuan","kuan","kuan","kwan","koan","kuann"
160
+ "ㄎㄨㄤ","k`uang","kuang","kwang","kuang","kuang","kuang","kwang","koang","kuanq"
161
+ "ㄎㄨㄟ","k`uei","kuei","kwei","kuei","kui","kuei","kwei","koei","kuey"
162
+ "ㄎㄨㄣ","k`un","kuen","kwen","kun","kun","kuen","kwen","koen","kuenn"
163
+ "ㄎㄨㄛ","k`uo","kuo","kwo","kuo","kuo","kuo","kwo","kuoo","kuoh"
164
+ "ㄌㄚ","la","la","la","la","la","lha","la","laa","lah"
165
+ "ㄌㄞ","lai","lai","lai","lai","lai","lhai","lai","lae","lay"
166
+ "ㄌㄢ","lan","lan","lan","lan","lan","lhan","lan","laan","lann"
167
+ "ㄌㄤ","lang","lang","lang","lang","lang","lhang","lang","laang","lanq"
168
+ "ㄌㄠ","lao","lau","lau","lao","lao","lhau","lau","lao","law"
169
+ "ㄌㄜ","le","le","le","le","le","lhe","le","lee","leh"
170
+ "ㄌㄟ","lei","lei","lei","lei","lei","lhei","lei","leei","ley"
171
+ "ㄌㄥ","leng","leng","leng","leng","leng","lheng","leng","leeng","lenq"
172
+ "ㄌㄧ","li","li","li","li","li","lhi","li","lii","lih"
173
+ "ㄌㄧㄚ","lia","lia","lya","lia","lia","lhia","lia","lea","liah"
174
+ "ㄌㄧㄢ","lien","lian","lyan","lian","lian","lhian","lian","lean","liann"
175
+ "ㄌㄧㄤ","liang","liang","lyang","liang","liang","lhiang","liang","leang","lianq"
176
+ "ㄌㄧㄠ","liao","liau","lyau","liao","liao","lhiau","liau","leau","liaw"
177
+ "ㄌㄧㄝ","lieh","lie","lye","lie","lie","lhie","lie","liee","lieh"
178
+ "ㄌㄧㄣ","lin","lin","lin","lin","lin","lhin","lin","liin","linn"
179
+ "ㄌㄧㄥ","ling","ling","ling","ling","ling","lhing","ling","liing","linq"
180
+ "ㄌㄧㄡ","liu","liou","lyou","liou","liu","lhiou","liou","leou","liow"
181
+ "ㄌㄨㄥ","lung","lung","lung","long","long","lhong","long","loong","lonq"
182
+ "ㄌㄡ","lou","lou","lou","lou","lou","lhou","lou","loou","low"
183
+ "ㄌㄨ","lu","lu","lu","lu","lu","lhu","lu","luu","luh"
184
+ "ㄌㄨㄢ","luan","luan","lwan","luan","luan","lhuan","luan","loan","luann"
185
+ "ㄌㄨㄣ","lun","luen","lwun","lun","lun","lhuen","luen","loen","luenn"
186
+ "ㄌㄨㄛ","lo","luo","lwo","luo","luo","lhuo","luo","luoo","luoh"
187
+ "ㄌㄩ","lü","liu","lyu","lyu","lü","lhiu","liu","leu","liuh"
188
+ "ㄌㄩㄝ","lüeh","liue","lywe","lyue","lüe","lhiue","liue","leue","liueh"
189
+ "ㄌㄩㄣ","lün","liun","lyun","lyun","lün","lhiun","liun","leun","liunn"
190
+ "ㄇㄚ","ma","ma","ma","ma","ma","mha","ma","maa","mah"
191
+ "ㄇㄞ","mai","mai","mai","mai","mai","mhai","mai","mae","may"
192
+ "ㄇㄢ","man","man","man","man","man","mhan","man","maan","mann"
193
+ "ㄇㄤ","mang","mang","mang","mang","mang","mhang","mang","maang","manq"
194
+ "ㄇㄠ","mao","mau","mau","mao","mao","mhau","mau","mao","maw"
195
+ "ㄇㄜ","me","me","me","me","me","me","mer","mee","meh"
196
+ "ㄇㄟ","mei","mei","mei","mei","mei","mhei","mei","meei","mey"
197
+ "ㄇㄣ","men","men","men","men","men","mhen","men","meen","menn"
198
+ "ㄇㄥ","meng","meng","meng","meng","meng","mheng","meng","meeng","menq"
199
+ "ㄇㄧ","mi","mi","mi","mi","mi","mhi","mi","mii","mih"
200
+ "ㄇㄧㄢ","mien","mian","myan","mian","mian","mhian","mian","mean","miann"
201
+ "ㄇㄧㄠ","miao","miau","myau","miao","miao","mhiau","miau","meau","miaw"
202
+ "ㄇㄧㄝ","mieh","mie","mye","mie","mie","mhie","mie","miee","mieh"
203
+ "ㄇㄧㄣ","min","min","min","min","min","mhin","min","miin","minn"
204
+ "ㄇㄧㄥ","ming","ming","ming","ming","ming","mhing","ming","miing","minq"
205
+ "ㄇㄧㄡ","miu","miou","myou","miou","miu","mhiou","miou","meou","miow"
206
+ "ㄇㄛ","mo","mo","mwo","mo","mo","mho","mo","moo","moh"
207
+ "ㄇㄡ","mou","mou","mou","mou","mou","mhou","mou","moou","mow"
208
+ "ㄇㄨ","mu","mu","mu","mu","mu","mhu","mu","muu","muh"
209
+ "ㄋㄚ","na","na","na","na","na","nha","na","naa","nah"
210
+ "ㄋㄞ","nai","nai","nai","nai","nai","nhai","nai","nae","nay"
211
+ "ㄋㄢ","nan","nan","nan","nan","nan","nhan","nan","naan","nann"
212
+ "ㄋㄤ","nang","nang","nang","nang","nang","nhang","nang","naang","nanq"
213
+ "ㄋㄠ","nao","nau","nau","nao","nao","nhau","nau","nao","naw"
214
+ "ㄋㄜ","ne","ne","ne","ne","ne","nhe","ne","nee","neh"
215
+ "ㄋㄟ","nei","nei","nei","nei","nei","nhei","nei","neei","ney"
216
+ "ㄋㄣ","nen","nen","nen","nen","nen","nhen","nen","neen","nenn"
217
+ "ㄋㄥ","neng","neng","neng","neng","neng","nheng","neng","neeng","nenq"
218
+ "ㄋㄧ","ni","ni","ni","ni","ni","nhi","ni","nii","nih"
219
+ "ㄋㄧㄚ","nia","nia","nya","nia","nia","nia","niar","niaa","niah"
220
+ "ㄋㄧㄢ","nien","nian","nyan","nian","nian","nhian","nian","nean","niann"
221
+ "ㄋㄧㄤ","niang","niang","nyang","niang","niang","nhiang","niang","neang","nianq"
222
+ "ㄋㄧㄠ","niao","niau","nyau","niao","niao","nhiau","niau","neau","niaw"
223
+ "ㄋㄧㄝ","nieh","nie","nye","nie","nie","nhie","nie","niee","nieh"
224
+ "ㄋㄧㄣ","nin","nin","nin","nin","nin","nhin","nin","niin","ninn"
225
+ "ㄋㄧㄥ","ning","ning","ning","ning","ning","nhing","ning","niing","ninq"
226
+ "ㄋㄧㄡ","niu","niou","nyou","niou","niu","nhiou","niou","neou","niow"
227
+ "ㄋㄨㄥ","nung","nung","nung","nong","nong","nhong","nong","noong","nonq"
228
+ "ㄋㄡ","nou","nou","nou","nou","nou","nhou","nou","noou","now"
229
+ "ㄋㄨ","nu","nu","nu","nu","nu","nhu","nu","nuu","nuh"
230
+ "ㄋㄨㄢ","nuan","nuan","nwan","nuan","nuan","nhuan","nuan","noan","nuann"
231
+ "ㄋㄨㄣ","nun","nuen","nwen","nun","nun","nhuen","nuen","noen","nuenn"
232
+ "ㄋㄨㄛ","no","nuo","nwo","nuo","nuo","nhuo","nuo","nuoo","nuoh"
233
+ "ㄋㄩ","nü","niu","nyu","nyu","nü","nhiu","niu","neu","niuh"
234
+ "ㄋㄩㄝ","nüeh","niue","nywe","nyue","nüe","nhiue","niue","neue","niueh"
235
+ "ㄡ","ou","ou","ou","ou","ou","ou","our","oou","ow"
236
+ "ㄆㄚ","p`a","pa","pa","pa","pa","pa","par","paa","pah"
237
+ "ㄆㄞ","p`ai","pai","pai","pai","pai","pai","pair","pae","pay"
238
+ "ㄆㄢ","p`an","pan","pan","pan","pan","pan","parn","paan","pann"
239
+ "ㄆㄤ","p`ang","pang","pang","pang","pang","pang","parng","paang","panq"
240
+ "ㄆㄠ","p`ao","pau","pau","pao","pao","pau","paur","pao","paw"
241
+ "ㄆㄟ","p`ei","pei","pei","pei","pei","pei","peir","peei","pey"
242
+ "ㄆㄣ","p`en","pen","pen","pen","pen","pen","pern","peen","penn"
243
+ "ㄆㄥ","p`eng","peng","peng","peng","peng","peng","perng","peeng","penq"
244
+ "ㄆㄧ","p`i","pi","pi","pi","pi","pi","pyi","pii","pih"
245
+ "ㄆㄧㄢ","p`ien","pian","pyan","pian","pian","pian","pyan","pean","piann"
246
+ "ㄆㄧㄠ","p`iao","piau","pyau","piao","piao","piau","pyau","peau","piaw"
247
+ "ㄆㄧㄝ","p`ieh","pie","pye","pie","pie","pie","pye","piee","pieh"
248
+ "ㄆㄧㄣ","p`in","pin","pin","pin","pin","pin","pyn","piin","pinn"
249
+ "ㄆㄧㄥ","p`ing","ping","ping","ping","ping","ping","pyng","piing","pinq"
250
+ "ㄆㄛ","p`o","po","pwo","po","po","po","por","poo","poh"
251
+ "ㄆㄡ","p`ou","pou","pou","pou","pou","pou","pour","poou","pow"
252
+ "ㄆㄨ","p`u","pu","pu","pu","pu","pu","pwu","puu","puh"
253
+ "ㄑㄧ","ch`i","chi","chi","ci","qi","chi","chyi","chii","chih"
254
+ "ㄑㄧㄚ","ch`ia","chia","chya","cia","qia","chia","chya","chea","chiah"
255
+ "ㄑㄧㄢ","ch`ien","chian","chyan","cian","qian","chian","chyan","chean","chiann"
256
+ "ㄑㄧㄤ","ch`iang","chiang","chyang","ciang","qiang","chiang","chyang","cheang","chianq"
257
+ "ㄑㄧㄠ","ch`iao","chiau","chyau","ciao","qiao","chiau","chyau","cheau","chiaw"
258
+ "ㄑㄧㄝ","ch`ieh","chie","chye","cie","qie","chie","chye","chiee","chieh"
259
+ "ㄑㄧㄣ","ch`in","chin","chin","cin","qin","chin","chyn","chiin","chinn"
260
+ "ㄑㄧㄥ","ch`ing","ching","ching","cing","qing","ching","chyng","chiing","chinq"
261
+ "ㄑㄩㄥ","ch`iung","chiung","chyung","cyong","qiong","chiong","chyong","cheong","chionq"
262
+ "ㄑㄧㄡ","ch`iu","chiou","chyou","ciou","qiu","chiou","chyou","cheou","chiow"
263
+ "ㄑㄩ","ch`ü","chiu","chyu","cyu","qu","chiu","chyu","cheu","chiuh"
264
+ "ㄑㄩㄢ","ch`üan","chiuan","chywan","cyuan","quan","chiuan","chyuan","cheuan","chiuann"
265
+ "ㄑㄩㄝ","ch`üeh","chiue","chywe","cyue","que","chiue","chyue","cheue","chiueh"
266
+ "ㄑㄩㄣ","ch`ün","chiun","chyun","cyun","qun","chiun","chyun","cheun","chiunn"
267
+ "ㄖㄢ","jan","ran","ran","ran","ran","rhan","ran","raan","rann"
268
+ "ㄖㄤ","jang","rang","rang","rang","rang","rhang","rang","raang","ranq"
269
+ "ㄖㄠ","jao","rau","rau","rao","rao","rhau","rau","rao","raw"
270
+ "ㄖㄜ","je","re","re","re","re","rhe","re","ree","reh"
271
+ "ㄖㄣ","jen","ren","ren","ren","ren","rhen","ren","reen","renn"
272
+ "ㄖㄥ","jeng","reng","reng","reng","reng","rheng","reng","reeng","renq"
273
+ "ㄖ","jih","r","r","rih","ri","rhy","ry","ryy","ryh"
274
+ "ㄖㄨㄥ","jung","rung","rung","rong","rong","rhong","rong","roong","ronq"
275
+ "ㄖㄡ","jou","rou","rou","rou","rou","rhou","rou","roou","row"
276
+ "ㄖㄨ","ju","ru","ru","ru","ru","rhu","ru","ruu","ruh"
277
+ "ㄖㄨㄢ","juan","ruan","rwan","ruan","ruan","rhuan","ruan","roan","ruann"
278
+ "ㄖㄨㄟ","jui","ruei","rwei","ruei","rui","rhuei","ruei","roei","ruey"
279
+ "ㄖㄨㄣ","jun","ruen","rwun","run","run","rhuen","ruen","roen","ruenn"
280
+ "ㄖㄨㄛ","jo","ruo","rwo","ruo","ruo","rhuo","ruo","ruoo","ruoh"
281
+ "ㄙㄚ","sa","sa","sa","sa","sa","sa","sar","saa","sah"
282
+ "ㄙㄞ","sai","sai","sai","sai","sai","sai","sair","sae","say"
283
+ "ㄙㄢ","san","san","san","san","san","san","sarn","saan","sann"
284
+ "ㄙㄤ","sang","sang","sang","sang","sang","sang","sarng","saang","sanq"
285
+ "ㄙㄠ","sao","sau","sau","sao","sao","sau","saur","sao","saw"
286
+ "ㄙㄜ","se","se","se","se","se","se","ser","see","seh"
287
+ "ㄙㄟ","sei","sei","sei","sei","sei","sei","seir","seei","sey"
288
+ "ㄙㄣ","sen","sen","sen","sen","sen","sen","sern","seen","senn"
289
+ "ㄙㄥ","seng","seng","seng","seng","seng","seng","serng","seeng","senq"
290
+ "ㄕㄚ","sha","sha","sha","sha","sha","sha","shar","shaa","shah"
291
+ "ㄕㄞ","shai","shai","shai","shai","shai","shai","shair","shae","shay"
292
+ "ㄕㄢ","shan","shan","shan","shan","shan","shan","sharn","shaan","shann"
293
+ "ㄕㄤ","shang","shang","shang","shang","shang","shang","sharng","shaang","shanq"
294
+ "ㄕㄠ","shao","shau","shau","shao","shao","shau","shaur","shao","shaw"
295
+ "ㄕㄜ","she","she","she","she","she","she","sher","shee","sheh"
296
+ "ㄕㄟ","shei","shei","shei","shei","shei","shei","sheir","sheei","shey"
297
+ "ㄕㄣ","shen","shen","shen","shen","shen","shen","shern","sheen","shenn"
298
+ "ㄕㄥ","sheng","sheng","sheng","sheng","sheng","sheng","sherng","sheeng","shenq"
299
+ "ㄕ","shih","shr","shr","shih","shi","shy","shyr","shyy","shyh"
300
+ "ㄕㄨㄥ","shung","shung","shung","shong","shong","shong","shorng","shoong","shonq"
301
+ "ㄕㄡ","shou","shou","shou","shou","shou","shou","shour","shoou","show"
302
+ "ㄕㄨ","shu","shu","shu","shu","shu","shu","shwu","shuu","shuh"
303
+ "ㄕㄨㄚ","shua","shua","shwa","shua","shua","shua","shwa","shoa","shuah"
304
+ "ㄕㄨㄞ","shuai","shuai","shwai","shuai","shuai","shuai","shwai","shoai","shuay"
305
+ "ㄕㄨㄢ","shuan","shuan","shwan","shuan","shuan","shuan","shwan","shoan","shuann"
306
+ "ㄕㄨㄤ","shuang","shuang","shwang","shuang","shuang","shuang","shwang","shoang","shuanq"
307
+ "ㄕㄨㄟ","shui","shuei","shwei","shuei","shui","shuei","shwei","shoei","shuey"
308
+ "ㄕㄨㄣ","shun","shuen","shwun","shun","shun","shuen","shwen","shoen","shuenn"
309
+ "ㄕㄨㄛ","shuo","shuo","shwo","shuo","shuo","shuo","shwo","shuoo","shuoh"
310
+ "ㄙ","ssu","sz","sz","sih","si","sy","syr","syy","syh"
311
+ "ㄙㄨㄥ","sung","sung","sung","song","song","song","sorng","soong","sonq"
312
+ "ㄙㄡ","sou","sou","sou","sou","sou","sou","sour","soou","sow"
313
+ "ㄙㄨ","su","su","su","su","su","su","swu","suu","suh"
314
+ "ㄙㄨㄢ","suan","suan","swan","suan","suan","suan","swan","soan","suann"
315
+ "ㄙㄨㄟ","sui","suei","swei","suei","sui","suei","swei","soei","suey"
316
+ "ㄙㄨㄣ","sun","suen","swen","sun","sun","suen","swen","soen","suenn"
317
+ "ㄙㄨㄛ","so","suo","swo","suo","suo","suo","swo","suoo","suoh"
318
+ "ㄊㄚ","t`a","ta","ta","ta","ta","ta","tar","taa","tah"
319
+ "ㄊㄞ","t`ai","tai","tai","tai","tai","tai","tair","tae","tay"
320
+ "ㄊㄢ","t`an","tan","tan","tan","tan","tan","tarn","taan","tann"
321
+ "ㄊㄤ","t`ang","tang","tang","tang","tang","tang","tarng","taang","tanq"
322
+ "ㄊㄠ","t`ao","tau","tau","tao","tao","tau","taur","tao","taw"
323
+ "ㄊㄜ","t`e","te","te","te","te","te","ter","tee","teh"
324
+ "ㄊㄥ","t`eng","teng","teng","teng","teng","teng","terng","teeng","tenq"
325
+ "ㄊㄧ","t`i","ti","ti","ti","ti","ti","tyi","tii","tih"
326
+ "ㄊㄧㄢ","t`ien","tian","tyan","tian","tian","tian","tyan","tean","tiann"
327
+ "ㄊㄧㄠ","t`iao","tiau","tyau","tiao","tiao","tiau","tyau","teau","tiaw"
328
+ "ㄊㄧㄝ","t`ieh","tie","tye","tie","tie","tie","tye","tiee","tieh"
329
+ "ㄊㄧㄥ","t`ing","ting","ting","ting","ting","ting","tyng","tiing","tinq"
330
+ "ㄊㄨㄥ","t`ung","tung","tung","tong","tong","tong","torng","toong","tonq"
331
+ "ㄊㄡ","t`ou","tou","tou","tou","tou","tou","tour","toou","tow"
332
+ "ㄊㄨ","t`u","tu","tu","tu","tu","tu","twu","tuu","tuh"
333
+ "ㄊㄨㄢ","t`uan","tuan","twan","tuan","tuan","tuan","twan","toan","tuann"
334
+ "ㄊㄨㄟ","t`ui","tuei","twei","tuei","tui","tuei","twei","toei","tuey"
335
+ "ㄊㄨㄣ","t`un","tuen","twen","tun","tun","tuen","twen","toen","tuenn"
336
+ "ㄊㄨㄛ","t`o","tuo","two","tuo","tuo","tuo","two","tuoo","tuoh"
337
+ "ㄨㄚ","wa","wa","wa","wa","wa","ua","wa","waa","wah"
338
+ "ㄨㄞ","wai","wai","wai","wai","wai","uai","wai","woai","way"
339
+ "ㄨㄢ","wan","wan","wan","wan","wan","uan","wan","woan","wann"
340
+ "ㄨㄤ","wang","wang","wang","wang","wang","uang","wang","woang","wanq"
341
+ "ㄨㄟ","wei","wei","wei","wei","wei","uei","wei","woei","wey"
342
+ "ㄨㄣ","wen","wen","wen","wun","wen","uen","wen","woen","wenn"
343
+ "ㄨㄥ","weng","weng","weng","wong","weng","ueng","weng","woeng","wenq"
344
+ "ㄨㄛ","wo","wo","wo","wo","wo","uo","wo","woo","woh"
345
+ "ㄨ","wu","wu","wu","wu","wu","u","wu","wuu","wuh"
346
+ "ㄒㄧ","hsi","shi","syi","si","xi","shi","shyi","shii","shih"
347
+ "ㄒㄧㄚ","hsia","shia","sya","sia","xia","shia","shya","shea","shiah"
348
+ "ㄒㄧㄢ","hsien","shian","syan","sian","xian","shian","shyan","shean","shiann"
349
+ "ㄒㄧㄤ","hsiang","shiang","syang","siang","xiang","shiang","shyang","sheang","shianq"
350
+ "ㄒㄧㄠ","hsiao","shiau","syau","siao","xiao","shiau","shyau","sheau","shiaw"
351
+ "ㄒㄧㄝ","hsieh","shie","sye","sie","xie","shie","shye","shiee","shieh"
352
+ "ㄒㄧㄣ","hsin","shin","syin","sin","xin","shin","shyn","shiin","shinn"
353
+ "ㄒㄧㄥ","hsing","shing","sying","sing","xing","shing","shyng","shiing","shinq"
354
+ "ㄒㄩㄥ","hsiung","shiung","syung","syong","xiong","shiong","shyong","sheong","shionq"
355
+ "ㄒㄧㄡ","hsiu","shiou","syou","siou","xiu","shiou","shyou","sheou","shiow"
356
+ "ㄒㄩ","hsü","shiu","syu","syu","xu","shiu","shyu","sheu","shiuh"
357
+ "ㄒㄩㄢ","hsüan","shiuan","sywan","syuan","xuan","shiuan","shyuan","sheuan","shiuann"
358
+ "ㄒㄩㄝ","hsüeh","shiue","sywe","syue","xue","shiue","shyue","sheue","shiueh"
359
+ "ㄒㄩㄣ","hsün","shiun","syun","syun","xun","shiun","shyun","sheun","shiunn"
360
+ "ㄧㄚ","ya","ya","ya","ya","ya","ia","ya","yea","yah"
361
+ "ㄧㄢ","yan","yan","yan","yan","yan","ian","yan","yean","yann"
362
+ "ㄧㄤ","yang","yang","yang","yang","yang","iang","yang","yeang","yanq"
363
+ "ㄧㄠ","yao","yau","yau","yao","yao","iau","yau","yeau","yaw"
364
+ "ㄧㄝ","yeh","ye","ye","ye","ye","ie","ye","yee","yeh"
365
+ "ㄧ","i","yi","yi","yi","yi","i","yi","yii","yih"
366
+ "ㄧㄣ","yin","yin","yin","yin","yin","in","yn","yiin","yinn"
367
+ "ㄧㄥ","ying","ying","ying","ying","ying","ing","yng","yiing","yinq"
368
+ "ㄩㄥ","yung","yung","yung","yong","yong","iong","yong","yeong","yonq"
369
+ "ㄧㄡ","yu","you","you","you","you","iou","you","yeou","yow"
370
+ "ㄩ","yü","yu","yu","yu","yu","iu","yu","yeu","yuh"
371
+ "ㄩㄢ","yüan","yuan","ywan","yuan","yuan","iuan","yuan","yeuan","yuann"
372
+ "ㄩㄝ","yüeh","yue","ywe","yue","yue","iue","yue","yeue","yueh"
373
+ "ㄩㄣ","yün","yun","yun","yun","yun","iun","yun","yeun","yunn"
374
+ "ㄗㄚ","tsa","tza","dza","za","za","tza","tzar","tzaa","tzah"
375
+ "ㄗㄞ","tsai","tzai","dzai","zai","zai","tzai","tzair","tzae","tzay"
376
+ "ㄗㄢ","tsan","tzan","dzan","zan","zan","tzan","tzarn","tzaan","tzann"
377
+ "ㄗㄤ","tsang","tzang","dzang","zang","zang","tzang","tzarng","tzaang","tzanq"
378
+ "ㄗㄠ","tsao","tzau","dzau","zao","zao","tzau","tzaur","tzao","tzaw"
379
+ "ㄗㄜ","tse","tze","dze","ze","ze","tze","tzer","tzee","tzeh"
380
+ "ㄗㄟ","tsei","tzei","dzei","zei","zei","tzei","tzeir","tzeei","tzey"
381
+ "ㄗㄣ","tsen","tzen","dzen","zen","zen","tzen","tzern","tzeen","tzenn"
382
+ "ㄗㄥ","tseng","tzeng","dzeng","zeng","zeng","tzeng","tzerng","tzeeng","tzenq"
383
+ "ㄓㄚ","cha","ja","ja","jha","zha","ja","jar","jaa","jah"
384
+ "ㄓㄞ","chai","jai","jai","jhai","zhai","jai","jair","jae","jay"
385
+ "ㄓㄢ","chan","jan","jan","jhan","zhan","jan","jarn","jaan","jann"
386
+ "ㄓㄤ","chang","jang","jang","jhang","zhang","jang","jarng","jaang","janq"
387
+ "ㄓㄠ","chao","jau","jau","jhao","zhao","jau","jaur","jao","jaw"
388
+ "ㄓㄜ","che","je","je","jhe","zhe","je","jer","jee","jeh"
389
+ "ㄓㄟ","chei","jei","jei","jhei","zhei","jei","jeir","jeei","jey"
390
+ "ㄓㄣ","chen","jen","jen","jhen","zhen","jen","jern","jeen","jenn"
391
+ "ㄓㄥ","cheng","jeng","jeng","jheng","zheng","jeng","jerng","jeeng","jenq"
392
+ "ㄓ","chih","jr","jr","jhih","zhi","jy","jyr","jyy","jyh"
393
+ "ㄓㄨㄥ","chung","jung","jung","jhong","zhong","jong","jorng","joong","jonq"
394
+ "ㄓㄡ","chou","jou","jou","jhou","zhou","jou","jour","joou","jow"
395
+ "ㄓㄨ","chu","ju","ju","jhu","zhu","ju","jwu","juu","juh"
396
+ "ㄓㄨㄚ","chua","jua","jwa","jhua","zhua","jua","jwa","joa","juah"
397
+ "ㄓㄨㄞ","chuai","juai","jwai","jhuai","zhuai","juai","jwai","joai","juay"
398
+ "ㄓㄨㄢ","chuan","juan","jwan","jhuan","zhuan","juan","jwan","joan","juann"
399
+ "ㄓㄨㄤ","chuang","juang","jwang","jhuang","zhuang","juang","jwang","joang","juanq"
400
+ "ㄓㄨㄟ","chui","juei","jwei","jhuei","zhui","juei","jwei","joei","juey"
401
+ "ㄓㄨㄣ","chun","juen","jwen","jhun","zhun","juen","jwen","joen","juenn"
402
+ "ㄓㄨㄛ","cho","juo","jwo","jhuo","zhuo","juo","jwo","juoo","juoh"
403
+ "ㄗ","tzu","tz","dz","zih","zi","tzy","tzyr","tzyy","tzyh"
404
+ "ㄗㄨㄥ","tsung","tzung","dzung","zong","zong","tzong","tzorng","tzoong","tzonq"
405
+ "ㄗㄡ","tsou","tzou","dzou","zou","zou","tzou","tzour","tzoou","tzow"
406
+ "ㄗㄨ","tsu","tzu","dzu","zu","zu","tzu","tzwu","tzuu","tzuh"
407
+ "ㄗㄨㄢ","tsuan","tzuan","dzwan","zuan","zuan","tzuan","tzwan","tzoan","tzuann"
408
+ "ㄗㄨㄟ","tsui","tzuei","dzwei","zuei","zui","tzuei","tzwei","tzoei","tzuey"
409
+ "ㄗㄨㄣ","tsun","tzuen","dzwen","zun","zun","tzuen","tzwen","tzoen","tzuenn"
410
+ "ㄗㄨㄛ","tso","tzuo","dzwo","zuo","zuo","tzuo","tzwo","tzuoo","tzuoh"