X-Git-Url: http://git.sourceforge.jp/view?p=nkf%2Fnkf.git;a=blobdiff_plain;f=config.h;h=752ed38d590d8a042ab68b91fd52a3e7c7f867ac;hp=e1d091d018a810d5ab18c1685d9d8f75f87b25d5;hb=92668b3e5b27b5e76b8a138f039260df94858761;hpb=295f414b18c6d1c687913524c05025f23239ac97 diff --git a/config.h b/config.h index e1d091d..752ed38 100644 --- a/config.h +++ b/config.h @@ -1,33 +1,51 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ -/* UTF8 入出力 */ +/* UTF8 input and output */ #define UTF8_INPUT_ENABLE #define UTF8_OUTPUT_ENABLE -/* オプションで入力を指定した時に、文字コードを固定する */ +/* invert characters invalid in Shift_JIS to CP932 */ +#define SHIFTJIS_CP932 + +/* fix input encoding when given by option */ #define INPUT_CODE_FIX -/* -OW オプション */ +/* --overwrite option */ /* by Satoru Takabayashi */ #define OVERWRITE -/* --cap-input, --url-input オプション */ -#define CAP_URL_OPTION +/* --cap-input, --url-input option */ +#define INPUT_OPTION + +/* --numchar-input option */ +#define NUMCHAR_OPTION -/* --debug, --no-output オプション */ +/* --debug, --no-output option */ #define CHECK_OPTION -/* SunOS の cc を使うときは undef にしてください */ -#define ANSI_C_PROTOTYPE - -/******************************/ -/* デフォルトの出力コード選択 */ -/* Select DEFAULT_CODE */ -#define DEFAULT_CODE_JIS -/* #define DEFAULT_CODE_SJIS */ -/* #define DEFAULT_CODE_EUC */ -/* #define DEFAULT_CODE_UTF8 */ -/******************************/ +/* JIS X0212 */ +#define X0212_ENABLE + +/* --exec-in, --exec-out option + * require pipe, fork, execvp and so on. + * please undef this on MS-DOS, MinGW + * this is still buggy arround child process + */ +/* #define EXEC_IO */ + +/* Unicode Normalization */ +#define UNICODE_NORMALIZATION + +/* + * Select Default Output Encoding + * + */ + +/* #define DEFAULT_CODE_JIS */ +/* #define DEFAULT_CODE_SJIS */ +/* #define DEFAULT_CODE_WINDOWS_31J */ +/* #define DEFAULT_CODE_EUC */ +/* #define DEFAULT_CODE_UTF8 */ #endif /* _CONFIG_H_ */