OSDN Git Service

* add support for UTF-8-MAC
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Thu, 21 Jul 2005 14:51:54 +0000 (14:51 +0000)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Thu, 21 Jul 2005 14:51:54 +0000 (14:51 +0000)
* --internal-unicode option (use Unicode as internal encoding)
  limtation: in this mode, cannot use --hiragana option and so on

config.h

index 0807c63..e46fe95 100644 (file)
--- a/config.h
+++ b/config.h
@@ -43,6 +43,9 @@
  */
 /* #define INT_IS_SHORT */
 
+/* Unicode Normalization */
+#define UNICODE_NORMALIZATION
+
 #ifndef WIN32DLL
 /******************************/
 /* \e$B%G%U%)%k%H$N=PNO%3!<%IA*Br\e(B */
 #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_ */