aboutsummaryrefslogtreecommitdiffstats
path: root/ext/nkf/nkf-utf8/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/nkf/nkf-utf8/config.h')
-rw-r--r--ext/nkf/nkf-utf8/config.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/nkf/nkf-utf8/config.h b/ext/nkf/nkf-utf8/config.h
index 2619440bf9..e46fe95a44 100644
--- a/ext/nkf/nkf-utf8/config.h
+++ b/ext/nkf/nkf-utf8/config.h
@@ -43,6 +43,10 @@
*/
/* #define INT_IS_SHORT */
+/* Unicode Normalization */
+#define UNICODE_NORMALIZATION
+
+#ifndef WIN32DLL
/******************************/
/* $B%G%U%)%k%H$N=PNO%3!<%IA*Br(B */
/* Select DEFAULT_CODE */
@@ -51,5 +55,20 @@
/* #define DEFAULT_CODE_EUC */
/* #define DEFAULT_CODE_UTF8 */
/******************************/
+#else
+#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_ */