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