/* * _codecs_hk.c: Codecs collection for encodings from Hong Kong * * Written by Hye-Shik Chang <[email protected]> */ #define USING_IMPORTED_MAPS #define CJK_MOD_SPECIFIC_STATE … #include "cjkcodecs.h" #include "mappings_hk.h" /* * BIG5HKSCS codec */ CODEC_INIT(big5hkscs) { … } /* * There are four possible pair unicode -> big5hkscs maps as in HKSCS 2004: * U+00CA U+0304 -> 8862 (U+00CA alone is mapped to 8866) * U+00CA U+030C -> 8864 * U+00EA U+0304 -> 88a3 (U+00EA alone is mapped to 88a7) * U+00EA U+030C -> 88a5 * These are handled by not mapping tables but a hand-written code. */ static const DBCHAR big5hkscs_pairenc_table[4] = …; ENCODER(big5hkscs) { … } #define BH2S(c1, c2) … DECODER(big5hkscs) { … } BEGIN_MAPPINGS_LIST(…) BEGIN_CODECS_LIST(…) I_AM_A_MODULE_FOR(hk)