Commit | Line | Data |
---|---|---|
8df208ef LC |
1 | .TH DEROFF 1 |
2 | .SH NAME | |
3 | deroff \- remove nroff, troff, tbl and eqn constructs | |
4 | .SH SYNOPSIS | |
5 | .B deroff | |
6 | [ | |
7 | .B \-w | |
8 | ] | |
9 | file ... | |
10 | .SH DESCRIPTION | |
11 | .I Deroff | |
12 | reads each file in sequence | |
13 | and removes all | |
14 | .I nroff | |
15 | and | |
16 | .I troff | |
17 | command lines, backslash constructions, macro definitions, | |
18 | .I eqn | |
19 | constructs | |
20 | (between `.EQ' and `.EN' lines or between | |
21 | delimiters), | |
22 | and table descriptions | |
23 | and writes the remainder on the standard output. | |
24 | .I Deroff | |
25 | follows chains of included files | |
26 | (`.so' and `.nx' commands); | |
27 | if a file has already been included, a `.so' is ignored and a `.nx' terminates execution. | |
28 | If no input file is given, | |
29 | .I deroff | |
30 | reads from the standard input file. | |
31 | .PP | |
32 | If the | |
33 | .B \-w | |
34 | flag is given, the output is a word list, one `word' (string of letters, digits, and apostrophes, | |
35 | beginning with a letter; apostrophes are removed) per line, and all other characters ignored. | |
36 | Otherwise, the output follows the original, with the deletions mentioned above. | |
37 | .SH "SEE ALSO" | |
38 | troff(1), eqn(1), tbl(1) | |
39 | .SH BUGS | |
40 | .I Deroff | |
41 | is not a complete | |
42 | .I troff | |
43 | interpreter, | |
44 | so it can be confused by subtle constructs. | |
45 | Most errors result in too much rather than too little output. |