deroff(1) remove roff and preprocessor constructs


deroff [-w] {file(s)}


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.


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


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.


David Frey <[email protected]>