01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CW(l) CW {l)<br />

NAME<br />

cw, checkcw - prepare constant-width text for troff<br />

SYNOPSIS<br />

cw [ -Ixx ] [ -rxx ] [ -fn ] [ -t ] [ +t ] [ -d ] [ files ]<br />

checkcw [ -Ixx ] [ -rxx ] files<br />

DESCRIPTION<br />

Cw is a preprocessor for troff (not included on the UNIX PC) input<br />

files that contain text to be typeset in the constant-width ( CW)<br />

font.<br />

Text typeset with the CW font resembles the output of terminals<br />

and of line printers. This font is used to typeset examples of programs<br />

and of computer output in user manuals, programming<br />

texts, etc. (An earlier version of this font was used in typesetting<br />

The C Programming Language by B. W. Kernighan and D. M.<br />

Ritchie.) It has been designed to be quite distinctive (but not<br />

overly obtrusive) when used together with the Times Roman font.<br />

Because the CW font contains a "non-standard" set of characters<br />

and because text typeset with it requires different character and<br />

inter-word spacing than is used for "standard" fonts, documents<br />

that use the CW font must be preprocessed by cw.<br />

The CW font contains the 94 printing ASCII characters:<br />

abcdefghijklmnopqrstuvwxyz<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ<br />

0123456789<br />

!$%&()" * •-II < >{}#\<br />

+@.,/:;=?111-plus<br />

eight non-ASCII characters represented by four-character troff<br />

names (in some cases attaching these names to "non-standard"<br />

graphics):<br />

Character<br />

Symbol Troff Name<br />

"Cents" sign<br />

EBCDIC "not" sign<br />

Left arrow<br />

Right arrow<br />

Down arrow<br />

Vertical single quote<br />

Control-shift indicator<br />

Visible space indicator<br />

Hyphen<br />

--+<br />

!<br />

I<br />

t<br />

\(ct<br />

\(no<br />

\( <br />

\(da<br />

\(fm<br />

\(dg<br />

\(sq<br />

\(hy<br />

The hyphen is a synonym for the unadorned minus sign (-). Certain<br />

versions of cw recognize two additional names: \(ua. for an<br />

up arrow (i) and \(Ih for a diagonal left-up (home) arrow.<br />

Cw recognizes five request lines, as well as user-defined delimiters.<br />

The request lines look like troff macro requests, and are copied in<br />

their entirety by cw onto its output; thus, they can be defined by<br />

the user as troff macros; in fact, the .CW and .CN macros should<br />

be so defined (see HINTS below). The five requests are:<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!