Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stoj(1) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

iconv(1)

JTOS(1)

NAME

jtos, jtou, stoj, stou, utoj, utos −  code set conversion for JIS, Shift JIS, and UJIS. 

SYNOPSIS

jtos [ options ] [ files ]
jtou [ options ] [ files ]
stoj [ options ] [ files ]
stou [ options ] [ files ]
utoj [ options ] [ files ]
utos [ options ] [ files ]

DESCRIPTION

Jtos (jtou, stoj, stou, utoj, utos) converts Japanese characters in files from one code set to another, and outputs the converted files by default, to the standard output.  The standard input is used for files by default. 

Jtos converts JIS to SJIS (Shift JIS). 

Jtou converts JIS to UJIS ("UNIXized" extended JIS). 

Stoj converts SJIS to JIS. 

Stou converts SJIS to UJIS. 

Utoj converts UJIS to JIS. 

Utos converts UJIS to SJIS. 

The meanings of the options are:

−KI=string Specify the control sequence which designates JIS Kanji to the G0 set.  Notation for special characters is the same as in echo(1).  One arbitrary character can be represented in string by two hexadecimal digits preceded by as in In this case, backslash (or Yen currency symbol) must be protected from interpretation by the shell.  Also, an entire string can be expressed with continuous two-digit hexadecimal numbers and only one preceding X, as in −KI=Xnn... .  Without this option, the system-default control sequence,   33$B , is used.  This option is supported only for jtos, jtou, stoj, and utoj.

−KO=string Specify the control sequence which designates a single-byte character set such as ASCII and katakana to the G0 set.  Notation for special characters is as same as that for −KI.  Without this option, the system-default control sequence,   33(J , is used.  This option is supported only for jtos, jtou, stoj, and utoj.

−K2I=string Specify the control sequence which designates extension Kanji character set to the G0 set.  Notation for special characters is as same as that for −KI.  Without this option, the system-default control sequence, "\033$C", is used.  This option is supported only for jtos, jtou, stoj, and utoj.

−7 Effectuate 7-bit code processing (SI/SO processing) for JIS single-byte katakana.  Without this option, only 8-bit code processing is effective for JIS single-byte katakana.  This option is supported only for jtos, jtou, stoj, and utoj.

−a Abort the process when an invalid Kanji code is encountered in files. Without this option, the process is continued regardless of invalid Kanji code.

−c Allow the control characters to appear on the output only while JIS Kanji is designated and invoked.  Without this option, the control characters always appear on the output whenever a single-byte character set is designated and invoked.  This option is supported only for stoj and utoj.

−e Do not output invalid Kanji codes contained in files. When this option is not used, any invalid Kanji codes appear in the output without conversion.

−d Direct the output to files instead of the standard output. 

−D Instead of using the standard output, Direct the output to files whose names are determined by converting the file names in files to uppercase (for jtos, and utos), or converting uppercase letters in the names of files to lowercase (for stoj, and stou). This option is supported only for jtos, stoj, stou, and utos.

−r Map carriage-return and line-feed character pairs (\r\n) to line-feed only (\n), and process 0x1a as the end-of-file character in SJIS input code (for stoj and stou), or map line-feed characters (\n), to carriage-return and line-feed character pairs (\r\n) and append the end-of-file character 0x1a in output SJIS code (for jtos and utos). This option is supported only for jtos, stoj, stou, and utos.

−w Map one Kanji space character to two ASCII space characters (0x2020) on the output.  This option is supported only for jtos and utos.

WARNINGS

Only text files are converted properly by the jtos, jtou, stoj, stou, utoj, and utos commands. 

SEE ALSO

iconv(1). 

EXTERNAL INFLUENCES

International Code Set Support

Multi-byte-character code sets are supported with the exception of multi-byte-character file names. 

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026