#include <glib.h>
#include <sqlite3.h>
Go to the source code of this file.
enum UnihanField |
This enumeration lists all fields of libUnihan. Not all the field is in the database table. Some of them are pseudo fields -- the fields which are generated by database functions. Use unihanField_is_pseudo() to determine whether the field is pseudo.
Frequently used fields:
enum UnihanIRG_Source |
It generally gives ideas of which regions have use the character. For example U+7E94 (纔) appears in G, J, KP, K and T.
enum UnihanIRG_SourceId |
It indicates the exact the source coming from. For example U+7E94 (纔) appears in G1, J0, KP1, K1 and T1.
enum UnihanLocale |
enum UnihanRange |
Indicate the range which the character belong to.
Used with unihanChar_in_range() and unihanRange_to_string().
enum UnihanTable |
This enumeration lists all tables in Unihan databases, as well as ad hoc values for the return value of unihanField_get_table(). These are:
UNIHAN_INVALID_TABLE
: Indicate the end of an Unihan table array or invalid table. UNIHAN_AMBIGUOUS_TABLE
: Indicate the field appears in multiple tables. Every tables in libUnihan have 2 or more fields, one is always UNIHAN_FIELD_CODE ("code") field for the code points of characters, the other fields stores parts of Unihan tag value.
Normally, each Unihan tag has a corresponding table, for example, UNIHAN_TABLE_KDEFINITION ("kDefinitionTable") has UNIHAN_FIELD_CODE and UNIHAN_FIELD_KDEFITION which stores the value of the kDefinition tag.
If a tag value is splittable and the parts are often utilized, the value is store in multiple fields. For example, tag kHanyuPinlu has 2 parts, pinyin and its Pinlu (frequency). Thus table UNIHAN_TABLE_KHANYU_PINLU ("kHanyuPinluTable") has three fields: UNIHAN_FIELD_CODE, UNIHAN_FIELD_PINYIN, and UNIHAN_FIELD_PINYIN_FREQ, where UNIHAN_FIELD_PINYIN and UNIHAN_FIELD_PINYIN_FREQ store pinyin and its frequency respectively.
Some Unihan tag values consist optional fields, that is, the fields that do not always have values. Putting all these fields in one table violate the 1st normal form (no null fields). To keep tables normalized, two types of tables are employed: "main" tables hold compulsory fields; while "extra" tables hold primary key fields and optional field.
For example, value of tag kIRG_GSource can splits to compulsory field UNIHAN_FIELD_IRG_SOURCE_SHORT_NAME and optional field UNIHAN_FIELD_IRG_SOURCE_MAPPING. Tag values are stored in two tables: the "main" table UNIHAN_TABLE_IRG_SOURCE stores UNIHAN_FIELD_CODE and UNIHAN_FIELD_IRG_SOURCE_SHORT_NAME; while the "extra" table UNIHAN_TABLE_IRG_SOURCE_MAPPING stores primary key fields (UNIHAN_FIELD_CODE, UNIHAN_FIELD_IRG_SOURCE_SHORT_NAME), and the optional field UNIHAN_FIELD_IRG_SOURCE_MAPPING.
Some Unihan tag values are combined in to one table.
UNIHAN_NOT_A_TABLE | Return value for pseudo fields with unihanField_get_table(), as they are derived from database functions but not table fields. |
UNIHAN_INVALID_TABLE | End of an Unihan table array or indicate invalid table. |
UNIHAN_AMBIGUOUS_TABLE | Cannot decide which table is more appropriate, usually because it appears in multiple tables, such as UNIHAN_FIELD_CODE. |
UNIHAN_TABLE_KACCOUNTINGNUMERIC | Table for accounting numberic. |
UNIHAN_TABLE_KBIGFIVE | Table for Big 5. |
UNIHAN_TABLE_KCANGJIE | Table for Cangjie. |
UNIHAN_TABLE_KCANTONESE | Table for Cantonese prouncation. |
UNIHAN_TABLE_KCCCII | Table for Chinese Character Code for Information Interchange. |
UNIHAN_TABLE_KCHEUNGBAUER | Table for data regarding the Cheung and Bauer, The Representation of Cantonese with Chinese Characters. |
UNIHAN_TABLE_KCHEUNGBAUERINDEX | Table for the position of characters in Cheung and Bauer, The Representation of Cantonese with Chinese Characters. |
UNIHAN_TABLE_KCIHAIT | Table for the position of characters in the Cihai (辭海) dictionary. |
UNIHAN_TABLE_KCNS1986 | Table for CNS 11643-1986. |
UNIHAN_TABLE_KCNS1992 | Table for CNS 11643-1992. |
UNIHAN_TABLE_KCOMPATIBILITYVARIANT | Table for the compatibility decomposition for ideographs. |
UNIHAN_TABLE_KCOWLES | Table for Cowles, "A Pocket Dictionary of Cantonese". |
UNIHAN_TABLE_KDAEJAWEON | Table for Dae Jaweon (Korean) dictionary. |
UNIHAN_TABLE_KDEFINITION | Table for English definition for characters. |
UNIHAN_TABLE_KEACC | Table for EACC mapping for characters in hex. |
UNIHAN_TABLE_KFENN | Table for Fenn's Chinese-English Pocket Dictionary by Courtenay. |
UNIHAN_TABLE_KFENNINDEX | Table for the position in Fenn's Chinese-English Pocket Dictionary by Courtenay. |
UNIHAN_TABLE_KFOURCORNERCODE | Table for the four-corner codes. |
UNIHAN_TABLE_KFREQUENCY | Table for a rough frequency measurement for characters based on analysis of traditional Chinese USENET postings. |
UNIHAN_TABLE_KGB0 | Table for GB 2312-80. |
UNIHAN_TABLE_KGB1 | Table for GB 12345-90. |
UNIHAN_TABLE_KGB3 | Table for GB 7589-87. |
UNIHAN_TABLE_KGB5 | Table for GB 7590-87. |
UNIHAN_TABLE_KGB7 | Table for General Purpose Hanzi List for Modern Chinese Language, and General List of Simplified Hanzi. |
UNIHAN_TABLE_KGB8 | Table for GB 8565-89. |
UNIHAN_TABLE_KGRADELEVEL | Table for primary grade in the Hong Kong school system by which a student is expected to know the characters. |
UNIHAN_TABLE_KGSR | Table for Bernhard Karlgren's Grammata Serica Recensa. |
UNIHAN_TABLE_KHANGUL | Table for modern Korean pronunciation(s) in Hangul. |
UNIHAN_TABLE_KHANYU | Table for Hanyu Da Zidian (HDZ) Chinese character dictionary. |
UNIHAN_TABLE_KHANYUPINLU | Table for Xiandai Hanyu Pinlu Cidian. |
UNIHAN_TABLE_KHDZRADBREAK | Table for Indicates that Hanyu Da Zidian 《漢語大字典》 has a radical break beginning at characters position. |
UNIHAN_TABLE_KHKGLYPH | Table for the index of characters in 常用字字形表 (二零零零年修訂本),香港: 香港教育學院. |
UNIHAN_TABLE_KHKSCS | Table for Big5 extended code points for the HK Supplementary Character Set. |
UNIHAN_TABLE_KIBMJAPAN | Table for IBM Japanese mapping for characters in hexadecimal. |
UNIHAN_TABLE_KIICORE | Table for IICore, the IRG-produced minimal set of required ideographs for East Asian use. |
UNIHAN_TABLE_KIRGDAEJAWEON | Table for Dae Jaweon (Korean) dictionary used in the four-dictionary sorting algorithm. |
UNIHAN_TABLE_KIRGDAIKANWAZITEN | Table for Dai Kanwa Ziten, aka Morohashi dictionary (Japanese) used in the four-dictionary sorting algorithm. |
UNIHAN_TABLE_KIRGHANYUDAZIDIAN | Table for Hanyu Da Zidian (PRC) used in the four-dictionary sorting algorithm. |
UNIHAN_TABLE_KIRGKANGXI | Table for KangXi dictionary. |
UNIHAN_TABLE_KJAPANESEKUN | Table for Japanese pronunciation(s). |
UNIHAN_TABLE_KJAPANESEON | Table for Sino-Japanese pronunciation(s) of characters. |
UNIHAN_TABLE_KJIS0213 | Table for JIS X 0213-2000. |
UNIHAN_TABLE_KJIS0 | Table for JIS X 0208-1990. |
UNIHAN_TABLE_KJIS1 | Table for JIS X 0212-1990. |
UNIHAN_TABLE_KKANGXI | Table for KangXi dictionary used in the four-dictionary sorting algorithm. |
UNIHAN_TABLE_KKARLGREN | Table for Analytic Dictionary of Chinese and Sino-Japanese by Bernhard Karlgren. |
UNIHAN_TABLE_KKOREAN | Table for Korean pronunciation(s). |
UNIHAN_TABLE_KKPS0 | Table for KPS 9566-97. |
UNIHAN_TABLE_KKPS1 | Table for KPS 10721-2000. |
UNIHAN_TABLE_KKSC0 | Table for KS X 1001:1992 (KS C 5601-1989). |
UNIHAN_TABLE_KKSC1 | Table for KS X 1002:1991 (KS C 5657-1991). |
UNIHAN_TABLE_KLAU | Table for Practical Cantonese-English Dictionary by Sidney Lau. |
UNIHAN_TABLE_KMAINLANDTELEGRAPH | Table for PRC telegraph code for this character. |
UNIHAN_TABLE_KMANDARIN | Table for Mandarin pronunciation(s) for this character in pinyin. |
UNIHAN_TABLE_KMATTHEWS | Table for Mathews' Chinese-English Dictionary. |
UNIHAN_TABLE_KMEYERWEMPE | Table for Student's Cantonese-English Dictionary. |
UNIHAN_TABLE_KMOROHASHI | Table for Dae Kanwa Ziten, aka Morohashi dictionary (Japanese). |
UNIHAN_TABLE_KNELSON | Table for Modern Reader's Japanese-English Character Dictionary. |
UNIHAN_TABLE_KOTHERNUMERIC | Table for numeric values for characters in certain unusual, specialized contexts. |
UNIHAN_TABLE_KPHONETIC | Table for the phonetic index of characters from Ten Thousand Characters: An Analytic Dictionary. |
UNIHAN_TABLE_KPRIMARYNUMERIC | Table for values of characters when used in the writing of numbers in the standard fashion. |
UNIHAN_TABLE_KPSEUDOGB1 | Table for "GB 12345-90" code points for the purposes of including it within Unihan. |
UNIHAN_TABLE_KRSADOBE_JAPAN1_6 | Table for Information on the glyphs in Adobe-Japan1-6 as contributed by Adobe. |
UNIHAN_TABLE_KRSJAPANESE | Table for Japanese radical/stroke count. |
UNIHAN_TABLE_KRSKANGXI | Table for KangXi radical/stroke count. |
UNIHAN_TABLE_KRSKANWA | Table for Morohashi radical/stroke count. |
UNIHAN_TABLE_KRSKOREAN | Table for Korean radical/stroke count. |
UNIHAN_TABLE_KRSUNICODE | Table for standard radical/stroke count. |
UNIHAN_TABLE_KSBGY | Table for Song Ben Guang Yun (SBGY) 《宋本廣韻》 Medieval Chinese character dictionary. |
UNIHAN_TABLE_KSEMANTICVARIANT | Table for Unicode value for a semantic variant characters. |
UNIHAN_TABLE_KSIMPLIFIEDVARIANT | Table for Unicode value for the simplified Chinese variant characters. |
UNIHAN_TABLE_KSPECIALIZEDSEMANTICVARIANT | Table for Unicode value for a specialized semantic variant characters. |
UNIHAN_TABLE_KTAIWANTELEGRAPH | Table for Taiwanese telegraph code for this character. |
UNIHAN_TABLE_KTANG | Table for T'ang Poetic Vocabulary. |
UNIHAN_TABLE_KTOTALSTROKES | Table for total number of strokes of characters.(including the radical). |
UNIHAN_TABLE_KTRADITIONALVARIANT | Table for Unicode value(s) for the traditional Chinese variant characters. |
UNIHAN_TABLE_KVIETNAMESE | Table for characters' pronunciations in in Quốc ngữ. |
UNIHAN_TABLE_KXEROX | Table for Xerox codes. |
UNIHAN_TABLE_KXHC1983 | Table for One or more Hanyu pinyin reading as given in Xiandai Hanyu Ciden. |
UNIHAN_TABLE_KZVARIANT | Table for Z-variants. |
UNIHAN_TABLE_UTF8 | Table for UTF-8. |
UNIHAN_TABLE_IRG_SOURCE | Table for IRG Sources. |
UNIHAN_TABLE_IRG_SOURCE_MAPPING | Table for IRG Sources and its mapping/code. |
UNIHAN_TABLE_KSEMANTICVARIANT_EXTRA | Table for dictionary that states the semantical relationship. |
UNIHAN_TABLE_KSPECIALIZEDSEMANTICVARIANT_EXTRA | Table for dictionary that states the semantical relationship. |
UNIHAN_TABLE_KZVARIANT_EXTRA | Table for the source of Z variant. |