
Code-Processing Tools
|
617
both input and output. It can also display a file's input code, repair
damaged Old- or New-JIS files, and display the specifications for any of the
handled codes.
Options include:
-c Displays the detected input code, then exits -- the types
reported include EUC, Shift-JIS, New-JIS, Old-JIS, NEC-JIS, ASCII
(no Japanese), ambiguous (Shift-JIS or EUC), and unknown (note
that this option overrides "-iCODE")
-f Converts half-width katakana to their full-width equivalents (this
option is forced when output code is New-, Old-, or NEC-JIS)
-h Displays this help page, then exits
-iCODE Forces input code to be recognized as CODE
-o[CODE] Output code set to CODE (default is Shift-JIS if this option is
not specified, or if the specified CODE is invalid)
-r[CODE] Repairs damaged New- and Old-JIS encoded files by restoring lost
escape characters, then converts it to the CODE specified (the
default is to convert the file to New-JIS if CODE is not
specified -- cannot be used in conjunction with "-s")
-s[f] Removes escape characters from valid escape sequences of New- and
Old-JIS encoded files -- "f" will force all escape characters
to be removed (default extension is .rem -- cannot be used in
conjunction with "-r")
-t[CODE] Prints a table listing the specifications for the specified CODE,
then exits (all code tables will be displayed if CODE is not
specified, or if CODE ...