From a858a3d78f3bd63dbc5265ef43095f8a52059f6b Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Thu, 21 Jul 2005 14:51:54 +0000 Subject: [PATCH] * add support for UTF-8-MAC * --internal-unicode option (use Unicode as internal encoding) limtation: in this mode, cannot use --hiragana option and so on --- config.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config.h b/config.h index 0807c63..e46fe95 100644 --- a/config.h +++ b/config.h @@ -43,6 +43,9 @@ */ /* #define INT_IS_SHORT */ +/* Unicode Normalization */ +#define UNICODE_NORMALIZATION + #ifndef WIN32DLL /******************************/ /* デフォルトの出力コード選択 */ @@ -56,4 +59,16 @@ #define DEFAULT_CODE_SJIS #endif +#if defined(UTF8_INPUT_ENABLE) && defined(UNICODE_NORMALIZATION) +#define NORMALIZATION_TABLE_LENGTH 942 +#define NORMALIZATION_TABLE_NFC_LENGTH 3 +#define NORMALIZATION_TABLE_NFD_LENGTH 9 +struct normalization_pair{ + int nfc[NORMALIZATION_TABLE_NFC_LENGTH]; + int nfd[NORMALIZATION_TABLE_NFD_LENGTH]; +}; +#else +#undef UNICODE_NORMALIZATION +#endif + #endif /* _CONFIG_H_ */ -- 2.11.0