libUnihan  0.5.3
Unihan_enum.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright © 2008 Red Hat, Inc. All rights reserved.
11  * Copyright © 2008 Ding-Yi Chen <dchen at redhat dot com>
12  *
13  * This file is part of the libUnihan Project.
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this program; if not, write to the
27  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
28  * Boston, MA 02111-1307 USA
29  */
30 
31 #ifndef UNIHAN_ENUM_H_
32 #define UNIHAN_ENUM_H_
33 #include <glib.h>
34 #include <sqlite3.h>
35 
67 typedef enum{
95  // UNIHAN_FIELD_KGB9, //!< GB18030-2000
159 
161 
164 
167 
172 
175 
179 
183 
185 
188 
190 
192 } UnihanField;
193 
197 #define UNIHAN_FIELDS_COUNT UNIHAN_FIELD_ZHUYIN+1
198 
199 
248 typedef enum{
332 
339 } UnihanTable;
340 
344 #define UNIHAN_TABLES_COUNT UNIHAN_TABLE_KZVARIANT_EXTRA +1
345 
354 typedef enum{
365 
369 #define UNIHAN_IRG_SOURCES_COUNT UNIHAN_IRG_SOURCE_V+1
370 
378 typedef enum{
398 
406 
409 
415 
424 
426 
432 
436 #define UNIHAN_SOURCES_COUNT UNIHAN_SOURCE_V3+1
437 
438 
442 typedef enum{
444  UNIHAN_LOCALE_JA_JP, //<! Japan.
445  UNIHAN_LOCALE_KO_KP, //<! North Korea.
446  UNIHAN_LOCALE_KO_KR, //<! South Korea.
447  UNIHAN_LOCALE_ZH_CN, //<! PRC.
448  UNIHAN_LOCALE_ZH_HK, //<! Hong Kong.
449  UNIHAN_LOCALE_ZH_SG, //<! Singapore.
450  UNIHAN_LOCALE_ZH_TW, //<! Taiwan.
451  UNIHAN_LOCALE_VI_VN, //<! Vietnam.
452 } UnihanLocale;
456 #define UNIHAN_LOCALES_COUNT UNIHAN_LOCALE_VI_VN+1
457 
467 typedef enum{
478 } UnihanRange;
482 #define UNIHAN_RANGES_COUNT UNIHAN_RANGE_CJK_COMPATIBILITY_SUPPLEMENT+1
483 
492 #define LOCALE_JA_JP_SOURCES_COMMON UNIHAN_SOURCE_J0, UNIHAN_INVALID_SOURCEID
493 
497 #define LOCALE_KO_KP_SOURCES_COMMON UNIHAN_SOURCE_KP0, UNIHAN_INVALID_SOURCEID
498 
502 #define LOCALE_KO_KR_SOURCES_COMMON UNIHAN_SOURCE_K0, UNIHAN_INVALID_SOURCEID
503 
507 #define LOCALE_ZH_CN_SOURCES_COMMON UNIHAN_SOURCE_G0, UNIHAN_INVALID_SOURCEID
508 
512 #define LOCALE_ZH_HK_SOURCES_COMMON UNIHAN_SOURCE_T1, UNIHAN_SOURCE_T2, UNIHAN_SOURCE_H, UNIHAN_INVALID_SOURCEID
513 
517 #define LOCALE_ZH_SG_SOURCES_COMMON UNIHAN_SOURCE_G0, UNIHAN_SOURCE_GS, UNIHAN_INVALID_SOURCEID
518 
522 #define LOCALE_ZH_TW_SOURCES_COMMON UNIHAN_SOURCE_T1, UNIHAN_SOURCE_T2, UNIHAN_INVALID_SOURCEID
523 
527 #define LOCALE_VI_VN_SOURCES_COMMON UNIHAN_SOURCE_V0, UNIHAN_INVALID_SOURCEID
528 /* @}*/
529 #endif /* UNIHAN_ENUM_H_ */
530