Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ctou(1) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cdff(5)

utoc(1)

CTOU(1)  —  NEWS-OS Programmer’s Manual

NAME

ctou − converter from CDFF to text

SYNOPSIS

ctou [ −1 ] [ −i cdff-file ] [ −o text file ] [ −m mode ] [ −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. 

OPTIONS

−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 or −T
Specifies data type from which to get characters. If −T is specified, ctou gets characters only from Text Data.  If −G is specified, ctou gets characters only from Graphic Data.  If both of −G and −T are specified, ctou gets characters from both Graphic Data and Text Data.  In case none of these are specified, the default is the same as the case of −T being specified. 

EXAMPLE

% ctou −i file.cdf −o file.txt

SEE ALSO

cdff(5), utoc(1)

BUGS

The CDFF external characters and the user-defined external characters are ignored. 

NEWS-OSRelease 4.2.1R

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