Commit | Line | Data |
---|---|---|
028e5044 C |
1 | .NH |
2 | Text Processing | |
3 | .NH 2 | |
4 | Document Preparation | |
5 | .LP | |
6 | .sh ED | |
7 | Interactive context editor. | |
8 | Random access to all lines of a file. | |
9 | .op | |
10 | Find lines by number or pattern. | |
11 | Patterns may include: | |
12 | specified characters, | |
13 | don't care characters, | |
14 | choices among characters, | |
15 | repetitions of these constructs, | |
16 | beginning of line, | |
17 | end of line. | |
18 | .op | |
19 | Add, delete, change, copy, move or join lines. | |
20 | .op | |
21 | Permute or split contents of a line. | |
22 | .op | |
23 | Replace one or all instances of a pattern within a line. | |
24 | .op | |
25 | Combine or split files. | |
26 | .op | |
27 | Escape to Shell (command language) during editing. | |
28 | .ne3 | |
29 | .op | |
30 | Do any of above operations on | |
31 | every pattern-selected line in a given range. | |
32 | .OP | |
33 | Optional encryption for extra security. | |
34 | .sh PTX | |
35 | Make a permuted (key word in context) index. | |
36 | .sh SPELL | |
37 | Look for spelling errors by comparing each word in a | |
38 | document against a word list. | |
39 | .OP | |
40 | 25,000-word list includes proper names. | |
41 | .OP | |
42 | Handles common prefixes and suffixes. | |
43 | .OP | |
44 | Collects words to help tailor local spelling lists. | |
45 | .sh LOOK | |
46 | Search for words in dictionary that begin with specified prefix. | |
47 | .sh CRYPT | |
48 | Encrypt and decrypt files for security. | |
49 | .NH 2 | |
50 | Document Formatting | |
51 | .LP | |
52 | .sh TROFF | |
53 | .sh NROFF | |
54 | Advanced typesetting. | |
55 | TROFF drives a Graphic Systems phototypesetter; | |
56 | NROFF drives ascii terminals of all types. | |
57 | This summary was typeset using TROFF. | |
58 | TROFF and NROFF are capable of elaborate | |
59 | feats of formatting, | |
60 | when appropriately programmed. | |
61 | TROFF and NROFF accept the same input language. | |
62 | .op | |
63 | Completely definable page format keyed to dynamically planted | |
64 | ``interrupts'' at specified lines. | |
65 | .op | |
66 | Maintains several separately definable typesetting environments (e.g., one for | |
67 | body text, one for footnotes, and one for unusually elaborate | |
68 | headings). | |
69 | .op | |
70 | Arbitrary number of output pools can be combined at will. | |
71 | .op | |
72 | Macros with substitutable arguments, and macros invocable | |
73 | in mid-line. | |
74 | .op | |
75 | Computation and printing of numerical quantities. | |
76 | .op | |
77 | Conditional execution of macros. | |
78 | .op | |
79 | Tabular layout facility. | |
80 | .op | |
81 | Positions expressible in inches, centimeters, ems, points, | |
82 | machine units | |
83 | or arithmetic combinations thereof. | |
84 | .op | |
85 | Access to character-width computation for unusually difficult | |
86 | layout problems. | |
87 | .op | |
88 | Overstrikes, built-up brackets, horizontal and vertical line drawing. | |
89 | .op | |
90 | Dynamic relative or absolute positioning and size selection, | |
91 | globally or at the character level. | |
92 | .op | |
93 | Can exploit the characteristics of the terminal being used, | |
94 | for approximating special characters, reverse motions, | |
95 | proportional spacing, etc. | |
96 | .LP | |
97 | The Graphic Systems typesetter has a | |
98 | vocabulary of several 102-character fonts (4 simultaneously) | |
99 | in 15 sizes. | |
100 | TROFF provides | |
101 | terminal output for rough sampling of the product. | |
102 | .LP | |
103 | NROFF will produce multicolumn output on terminals capable of reverse line feed, | |
104 | or through the postprocessor COL. | |
105 | .LP | |
106 | High programming skill is required to exploit the formatting | |
107 | capabilities of TROFF and NROFF, although unskilled personnel can easily be trained | |
108 | to enter documents according to canned formats | |
109 | such as those provided by MS, below. | |
110 | TROFF and EQN are essentially identical to NROFF and NEQN | |
111 | so it is usually possible to define interchangeable | |
112 | formats to produce | |
113 | approximate proof copy on terminals | |
114 | before actual typesetting. | |
115 | The preprocessors MS, TBL, and REFER are fully compatible | |
116 | with TROFF and NROFF. | |
117 | .sh MS | |
118 | A standardized manuscript layout package | |
119 | for use with NROFF/TROFF. | |
120 | This document was formatted with MS. | |
121 | .op | |
122 | Page numbers and draft dates. | |
123 | .op | |
124 | Automatically numbered subheads. | |
125 | .op | |
126 | Footnotes. | |
127 | .op | |
128 | Single or double column. | |
129 | .op | |
130 | Paragraphing, display and indentation. | |
131 | .op | |
132 | Numbered equations. | |
133 | .sh EQN | |
134 | A mathematical typesetting preprocessor for TROFF. | |
135 | Translates easily readable formulas, either in-line or displayed, into | |
136 | detailed typesetting instructions. | |
137 | Formulas are written in a style like this: | |
138 | .DS | |
139 | sigma sup 2 ~=~ 1 over N sum from i=1 to N ( x sub i \- x bar ) sup 2 | |
140 | .DE | |
141 | which produces: | |
142 | .EQ | |
143 | sigma sup 2 ~=~ 1 over N sum from i=1 to N ( x sub i - x bar ) sup 2 | |
144 | .EN | |
145 | .op | |
146 | Automatic calculation of size changes for subscripts, sub-subscripts, | |
147 | etc. | |
148 | .op | |
149 | Full vocabulary of Greek letters and special symbols, such as `gamma', `GAMMA', `integral'. | |
150 | .op | |
151 | Automatic calculation of large bracket sizes. | |
152 | .op | |
153 | Vertical ``piling'' of formulae for matrices, conditional | |
154 | alternatives, etc. | |
155 | .op | |
156 | Integrals, sums, etc., with arbitrarily complex limits. | |
157 | .op | |
158 | Diacriticals: dots, double dots, hats, bars, etc. | |
159 | .op | |
160 | Easily learned by nonprogrammers and mathematical typists. | |
161 | .sh NEQN | |
162 | A version of EQN for NROFF; | |
163 | accepts the same input language. | |
164 | Prepares formulas for display on | |
165 | any terminal that NROFF knows about, | |
166 | for example, those based on Diablo printing mechanism. | |
167 | .op | |
168 | Same facilities as EQN within graphical capability of | |
169 | terminal. | |
170 | .sh TBL | |
171 | A preprocessor for NROFF/TROFF | |
172 | that translates simple descriptions of table layouts | |
173 | and contents into detailed typesetting instructions. | |
174 | .op | |
175 | Computes column widths. | |
176 | .op | |
177 | Handles left- and right-justified columns, | |
178 | centered columns and decimal-point | |
179 | alignment. | |
180 | .op | |
181 | Places column titles. | |
182 | .op | |
183 | Table entries can be text, | |
184 | which is adjusted to fit. | |
185 | .op | |
186 | Can box all or parts of table. | |
187 | .sh REFER | |
188 | Fills in bibliographic citations in a document | |
189 | from a data base (not supplied). | |
190 | .op | |
191 | References may be printed in any style, | |
192 | as they occur or collected at the end. | |
193 | .op | |
194 | May be numbered sequentially, by name of author, etc. | |
195 | .sh TC | |
196 | Simulate Graphic Systems typesetter on Tektronix 4014 scope. | |
197 | Useful for checking TROFF page layout before typesetting. | |
198 | .sh COL | |
199 | Canonicalize files with reverse line feeds | |
200 | for one-pass printing. | |
201 | .sh DEROFF | |
202 | Remove all TROFF commands from input. | |
203 | .sh CHECKEQ | |
204 | Check document for possible errors in EQN usage. |