deroff(1) remove roff and preprocessor constructs

SYNOPSIS

deroff [-w] {file(s)}

DESCRIPTION

deroff reads in the named files (or stdin if none are given) and strips out troff constructs and macros. The preprocessor (eqn, tbl, pic, grap, and vgrind) sections are removed entirely. The resulting output, suitable for spelling, is sent to stdout.

OPTIONS

-w
output a word-by-word list, delimited by newlines.

BUGS

deroff is not a full troff(1) interpreter; in particular it doesn't know how to expand macros and how to treat m[mse]'s registers.
Macros are assumed to end with .. and are simply skipped.
deroff can be fooled with circular .nx requests. The .so request deepness is limited.

AUTHOR

David Frey <[email protected]>