CTOU(1) — NEWS-OS Programmer’s Manual
NAME
ctou − converter from CDFF to text
SYNOPSIS
ctou [ −1 ] [ −i cdff-file ] [ −o text file ] [ −m layout ] [ −C codeset ] [ −G ] [ −T ]
DESCRIPTION
Ctou converts the CDFF file to the normal text file. That is, this is the command to take out the text streams from the CDFF document. The following options can be used with this command.
−1 If "horizontal scale 50%" is attributed to the 2 byte code, it will be converted to 1 byte code as possible. For example, 2-byte code(Zenkaku) "A" will be converted to ascii "A".
−i cdff-file
Specifies the CDFF file name to be used. If no name was specified, the standard input will be taken.
−o text-file
Specifies the output file name. If no name was specified, it will be printed to the standard output.
−m mode
Specifies the output mode. If "layout" is specified, output text is layouted laying a stress on layout of original CDFF file. In this case, NL(0x0a) is automatically inserted when the text line is overflowed from the frame and get into the next line.
−C codeset
Specifies character codeset of output text. Codeset is "sjis" or "euc". "sjis" specifies Shift-JIS and "euc" specifies EUC. If this option is not set, character codeset is specified according to environment variable LANG. If LANG is not specified, character codeset is specified to Shift-JIS.
−G,T Specifies data type from which to get text. If this option is not set, ctou gets text data only from Text Data. if −G is specified, ctou gets text data only from Graphic Data. if both −G and −T is specified, ctou gets text data from both Graphic Data and Text Data. Default is same state as specification of −T.
EXAMPLE
% ctou −i file.cdf −o file.txt
SEE ALSO
NEWS-OSRelease 4.1C