Back to index

im-sdk  12.3.91
table_prv.h
Go to the documentation of this file.
00001 #ifndef __HANGUL_TABLE_H_
00002 #define __HANGUL_TABLE_H_
00003 
00004 #ifndef TABLE_PRIVATE_DEFINED
00005 #error "This file should be included only by hangul.c"
00006 #endif
00007 
00008 /* Combining Hangul Jamo Chosung => Compatibilty Jamo Chosung */
00009 static UTFCHAR _combining_chosung_to_compatibility_chosung[] = {
00010   0x3131,
00011   0x3132,
00012   0x3134,
00013   0x3137,
00014   0x3138,
00015   0x3139,
00016   0x3141,
00017   0x3142,
00018   0x3143,
00019   0x3145,
00020   0x3146,
00021   0x3147,
00022   0x3148,
00023   0x3149,
00024   0x314a,
00025   0x314b,
00026   0x314c,
00027   0x314d,
00028   0x314e      
00029 };
00030 
00031 static UTFCHAR _combining_jungsung_to_compatibility_moeum[] = {
00032   0x314f,
00033   0x3150,
00034   0x3151,
00035   0x3152,
00036   0x3153,
00037   0x3154,
00038   0x3155,
00039   0x3156,
00040   0x3157,
00041   0x3158,
00042   0x3159,
00043   0x315a,
00044   0x315b,
00045   0x315c,
00046   0x315d,
00047   0x315e,
00048   0x315f,
00049   0x3160,
00050   0x3161,
00051   0x3162,
00052   0x3163
00053 };
00054 
00055 static UTFCHAR _combining_jongsung_to_compatibility_jaeum[] = {
00056   0x3131,
00057   0x3132,
00058   0x3133,
00059   0x3134,
00060   0x3135,
00061   0x3136,
00062   0x3137,
00063   0x3139,
00064   0x313a,
00065   0x313b,
00066   0x313c,
00067   0x313d,
00068   0x313e,
00069   0x313f,
00070   0x3140,
00071   0x3141,
00072   0x3142,
00073   0x3144,
00074   0x3145,
00075   0x3146,
00076   0x3147,
00077   0x3148,
00078   0x314a,
00079   0x314b,
00080   0x314c,
00081   0x314d,
00082   0x314e
00083 };
00084 static UTFCHAR _combining_jongsung_to_combining_chosung[] = {
00085   0x1100, 0x1101, 0x1109, 0x1102, 0x110c, 0x1112, 0x1103, 0x1105,
00086   0x1100, 0x1106, 0x1107, 0x1109, 0x1110, 0x1111, 0x1112, 0x1106,
00087   0x1107, 0x1109, 0x1109, 0x110a, 0x110b, 0x110c, 0x110e, 0x110f,
00088   0x1110, 0x1111, 0x1112 
00089 };
00090 
00091 static UTFCHAR _combining_chosung_to_combining_jongsung[] = {
00092   /* Initial consonant    -> Final consonant       */
00093   0x11a8,  /* choseong kiyeok      -> jongseong kiyeok      */
00094   0x11a9,  /* choseong ssangkiyeok -> jongseong ssangkiyeok */
00095   0x11ab,  /* choseong nieun       -> jongseong nieun       */
00096   0x11ae,  /* choseong tikeut      -> jongseong tikeut      */
00097   0x0,     /* choseong ssangtikeut -> jongseong tikeut      */
00098   0x11af,  /* choseong rieul       -> jongseong rieul       */
00099   0x11b7,  /* choseong mieum       -> jongseong mieum       */
00100   0x11b8,  /* choseong pieup       -> jongseong pieup       */
00101   0x0,     /* choseong ssangpieup  -> jongseong pieup       */
00102   0x11ba,  /* choseong sios        -> jongseong sios        */
00103   0x11bb,  /* choseong ssangsios   -> jongseong ssangsios   */
00104   0x11bc,  /* choseong ieung       -> jongseong ieung       */
00105   0x11bd,  /* choseong cieuc       -> jongseong cieuc       */
00106   0x0,     /* choseong ssangcieuc  -> jongseong cieuc       */
00107   0x11be,  /* choseong chieuch     -> jongseong chieuch     */
00108   0x11bf,  /* choseong khieukh     -> jongseong khieukh     */
00109   0x11c0,  /* choseong thieuth     -> jongseong thieuth     */
00110   0x11c1,  /* choseong phieuph     -> jongseong phieuph     */
00111   0x11c2   /* choseong hieuh       -> jongseong hieuh       */
00112 };
00113 
00114 static UTFCHAR _combining_coupled_jongsung_decompose[][2] = {
00115   { 0,      0x1100 }, /* jong kiyeok        = cho  kiyeok               */
00116   { 0x11a8, 0x1100 }, /* jong ssangkiyeok   = jong kiyeok + cho kiyeok  */
00117   { 0x11a8, 0x1109 }, /* jong kiyeok-sios   = jong kiyeok + cho sios    */
00118   { 0,      0x1102 }, /* jong nieun         = cho  nieun                */
00119   { 0x11ab, 0x110c }, /* jong nieun-cieuc   = jong nieun  + cho cieuc   */
00120   { 0x11ab, 0x1112 }, /* jong nieun-hieuh   = jong nieun  + cho hieuh   */
00121   { 0,      0x1103 }, /* jong tikeut        = cho  tikeut               */
00122   { 0,      0x1105 }, /* jong rieul         = cho  rieul                */
00123   { 0x11af, 0x1100 }, /* jong rieul-kiyeok  = jong rieul  + cho kiyeok  */
00124   { 0x11af, 0x1106 }, /* jong rieul-mieum   = jong rieul  + cho mieum   */
00125   { 0x11af, 0x1107 }, /* jong rieul-pieup   = jong rieul  + cho pieup   */
00126   { 0x11af, 0x1109 }, /* jong rieul-sios    = jong rieul  + cho sios    */
00127   { 0x11af, 0x1110 }, /* jong rieul-thieuth = jong rieul  + cho thieuth */
00128   { 0x11af, 0x1111 }, /* jong rieul-phieuph = jong rieul  + cho phieuph */
00129   { 0x11af, 0x1112 }, /* jong rieul-hieuh   = jong rieul  + cho hieuh   */
00130   { 0,      0x1106 }, /* jong mieum         = cho  mieum                */
00131   { 0,      0x1107 }, /* jong pieup         = cho  pieup                */
00132   { 0x11b8, 0x1109 }, /* jong pieup-sios    = jong pieup  + cho sios    */
00133   { 0,      0x1109 }, /* jong sios          = cho  sios                 */
00134   { 0x11ba, 0x1109 }, /* jong ssangsios     = jong sios   + cho sios    */
00135   { 0,      0x110b }, /* jong ieung         = cho  ieung                */
00136   { 0,      0x110c }, /* jong cieuc         = cho  cieuc                */
00137   { 0,      0x110e }, /* jong chieuch       = cho  chieuch              */
00138   { 0,      0x110f }, /* jong khieukh       = cho  khieukh              */
00139   { 0,      0x1110 }, /* jong thieuth       = cho  thieuth              */
00140   { 0,      0x1111 }, /* jong phieuph       = cho  phieuph              */
00141   { 0,      0x1112 }  /* jong hieuh         = cho  hieuh                */
00142 };
00143 
00144 #endif /* #ifndef __HANGUL_TABLE_H_ */