Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ deroff.bsd(1) — Domain/IX SR9.2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

DEROFF(1)

NAME

deroff − remove nroff, troff, tbl, and eqn constructs

USAGE

deroff [ −w ] file ... 

DESCRIPTION

Deroff reads each file in sequence and removes all nroff (1) and troff (1) command lines, backslash constructions, macro definitions, eqn (1) constructs (between .EQ and .EN lines or between delimiters), and table descriptions.  It then writes the remainder on the standard output.  Deroff follows chains of included files (.so and .nx commands).  If a file has already been included, it ignores a .so, and a .nx terminates execution.  If no input file is given, deroff reads from the standard input file. 

If you use the −w option, deroff outputs a word list, one word per line.  All other characters are ignored.  Otherwise, the output follows the original, with the deletions mentioned above.  A word is a string that begins with a letter and contains letters, digits, and apostrophes.  Trailing apostrophes are removed from words.

CAUTIONS

Deroff is not a complete troff (1) interpreter, so it can be confused by subtle constructs.  Most errors result in too much rather than too little output. 

RELATED INFORMATION

eqn (1), tbl (1), troff (1). 

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