1 /* vim:set et ts=4 sts=4:
3 * ibus-pinyin - The Chinese PinYin engine for IBus
5 * Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
6 * Copyright (c) 2010 BYVoid <byvoid1@gmail.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __PY_BOPOMOFO_H_
23 #define __PY_BOPOMOFO_H_
25 #define MAX_BOPOMOFO_LEN (4)
27 #define BOPOMOFO_ZERO (0)
28 #define BOPOMOFO_B (1)
29 #define BOPOMOFO_P (2)
30 #define BOPOMOFO_M (3)
31 #define BOPOMOFO_F (4)
32 #define BOPOMOFO_D (5)
33 #define BOPOMOFO_T (6)
34 #define BOPOMOFO_N (7)
35 #define BOPOMOFO_L (8)
36 #define BOPOMOFO_G (9)
37 #define BOPOMOFO_K (10)
38 #define BOPOMOFO_H (11)
39 #define BOPOMOFO_J (12)
40 #define BOPOMOFO_Q (13)
41 #define BOPOMOFO_X (14)
42 #define BOPOMOFO_ZH (15)
43 #define BOPOMOFO_CH (16)
44 #define BOPOMOFO_SH (17)
45 #define BOPOMOFO_R (18)
46 #define BOPOMOFO_Z (19)
47 #define BOPOMOFO_C (20)
48 #define BOPOMOFO_S (21)
49 #define BOPOMOFO_I (22)
50 #define BOPOMOFO_U (23)
51 #define BOPOMOFO_V (24)
52 #define BOPOMOFO_A (25)
53 #define BOPOMOFO_O (26)
54 #define BOPOMOFO_E (27)
55 #define BOPOMOFO_E2 (28)
56 #define BOPOMOFO_AI (29)
57 #define BOPOMOFO_EI (30)
58 #define BOPOMOFO_AO (31)
59 #define BOPOMOFO_OU (32)
60 #define BOPOMOFO_AN (33)
61 #define BOPOMOFO_EN (34)
62 #define BOPOMOFO_ANG (35)
63 #define BOPOMOFO_ENG (36)
64 #define BOPOMOFO_ER (37)
65 #define BOPOMOFO_TONE_2 (38)
66 #define BOPOMOFO_TONE_3 (39)
67 #define BOPOMOFO_TONE_4 (40)
68 #define BOPOMOFO_TONE_5 (41)
70 const static wchar_t bopomofo_char[] = {
71 L'\0', L'ㄅ', L'ㄆ', L'ㄇ', L'ㄈ', L'ㄉ', L'ㄊ', L'ㄋ', L'ㄌ', L'ㄍ', L'ㄎ',
72 L'ㄏ', L'ㄐ', L'ㄑ', L'ㄒ', L'ㄓ', L'ㄔ', L'ㄕ', L'ㄖ', L'ㄗ', L'ㄘ', L'ㄙ',
74 L'ㄧ', L'ㄨ', L'ㄩ', L'ㄚ', L'ㄛ', L'ㄜ', L'ㄝ', L'ㄞ', L'ㄟ', L'ㄠ', L'ㄡ',
75 L'ㄢ', L'ㄣ', L'ㄤ', L'ㄥ', L'ㄦ',
77 L'ˊ', L'ˇ', L'ˋ', L'˙',
80 #endif /* __PY_BOPOMOFO_H_ */