nkfのGitリポジトリのforkです。
Revisión | c5c9aebee8b810276216662c60bb4fa77223736d (tree) |
---|---|
Tiempo | 2009-01-20 17:34:56 |
Autor | NARUSE, Yui <naruse@user...> |
Commiter | NARUSE, Yui |
Update --help.
@@ -873,17 +873,20 @@ usage(void) | ||
873 | 873 | { |
874 | 874 | fprintf(HELP_OUTPUT, |
875 | 875 | "Usage: nkf -[flags] [--] [in file] .. [out file for -O flag]\n" |
876 | - " j,s,e,w Output code is ISO-2022-JP, Shift JIS, EUC-JP, UTF-8N\n" | |
877 | 876 | #ifdef UTF8_OUTPUT_ENABLE |
878 | - " After 'w' you can add more options. -w[ 8 [0], 16 [[BL] [0]] ]\n" | |
877 | + " j/s/e/w Specify output encoding ISO-2022-JP, Shift_JIS, EUC-JP\n" | |
878 | + " UTF options is -w[8[0],{16,32}[{B,L}[0]]]\n" | |
879 | +#else | |
879 | 880 | #endif |
880 | - " J,S,E,W Input assumption is JIS 7 bit , Shift JIS, EUC-JP, UTF-8\n" | |
881 | 881 | #ifdef UTF8_INPUT_ENABLE |
882 | - " After 'W' you can add more options. -W[ 8, 16 [BL] ] \n" | |
882 | + " J/S/E/W Specify input encoding ISO-2022-JP, Shift_JIS, EUC-JP\n" | |
883 | + " UTF option is -W[8,[16,32][B,L]]\n" | |
884 | +#else | |
885 | + " J/S/E Specify output encoding ISO-2022-JP, Shift_JIS, EUC-JP\n" | |
883 | 886 | #endif |
884 | 887 | ); |
885 | 888 | fprintf(HELP_OUTPUT, |
886 | - " m[BQSN0] MIME decode [B:base64,Q:quoted,S:strict,N:non-strict,0:no decode]\n" | |
889 | + " m[BQSN0] MIME decode [B:base64,Q:quoted,S:strict,N:nonstrict,0:no decode]\n" | |
887 | 890 | " M[BQ] MIME encode [B:base64 Q:quoted]\n" |
888 | 891 | " f/F Folding: -f60 or -f or -f60-10 (fold margin 10) F preserve nl\n" |
889 | 892 | ); |
@@ -898,32 +901,31 @@ usage(void) | ||
898 | 901 | " L[uwm] Line mode u:LF w:CRLF m:CR (DEFAULT noconversion)\n" |
899 | 902 | ); |
900 | 903 | fprintf(HELP_OUTPUT, |
901 | - "Long name options\n" | |
902 | - " --ic=<input codeset> --oc=<output codeset>\n" | |
903 | - " Specify the input or output codeset\n" | |
904 | - " --hiragana --katakana --katakana-hiragana\n" | |
905 | - " To Hiragana/Katakana Conversion\n" | |
904 | + " --ic=<encoding> Specify the input encoding\n" | |
905 | + " --oc=<encoding> Specify the output encoding\n" | |
906 | + " --hiragana --katakana Hiragana/Katakana Conversion\n" | |
907 | + " --katakana-hiragana Converts each other\n" | |
906 | 908 | ); |
907 | 909 | fprintf(HELP_OUTPUT, |
908 | 910 | #ifdef INPUT_OPTION |
909 | - " --cap-input, --url-input Convert hex after ':' or '%%'\n" | |
911 | + " --{cap, url}-input Convert hex after ':' or '%%'\n" | |
910 | 912 | #endif |
911 | 913 | #ifdef NUMCHAR_OPTION |
912 | - " --numchar-input Convert Unicode Character Reference\n" | |
914 | + " --numchar-input Convert Unicode Character Reference\n" | |
913 | 915 | #endif |
914 | 916 | #ifdef UTF8_INPUT_ENABLE |
915 | 917 | " --fb-{skip, html, xml, perl, java, subchar}\n" |
916 | - " Specify how nkf handles unassigned characters\n" | |
918 | + " Specify unassigned character's replacement\n" | |
917 | 919 | #endif |
918 | 920 | ); |
919 | 921 | fprintf(HELP_OUTPUT, |
920 | 922 | #ifdef OVERWRITE |
921 | - " --in-place[=SUF] Overwrite original listed files by filtered result\n" | |
922 | - " --overwrite[=SUF] in-place and preserve timestamp of original files\n" | |
923 | + " --in-place[=SUF] Overwrite original files\n" | |
924 | + " --overwrite[=SUF] Preserve timestamp of original files\n" | |
923 | 925 | #endif |
924 | - " -g --guess Guess the input code\n" | |
925 | - " -v --version print the version\n" | |
926 | - " --help/-V print this help / configuration\n" | |
926 | + " -g --guess Guess the input code\n" | |
927 | + " -v --version Print the version\n" | |
928 | + " --help/-V Print this help / configuration\n" | |
927 | 929 | ); |
928 | 930 | version(); |
929 | 931 | } |