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