xref: /csrg-svn/usr.bin/deroff/deroff.1 (revision 61961)
1*61961Sbostic.\" Copyright (c) 1990, 1993
2*61961Sbostic.\"	The Regents of the University of California.  All rights reserved.
319402Smckusick.\"
448239Sbostic.\" %sccs.include.proprietary.roff%
543683Scael.\"
6*61961Sbostic.\"	@(#)deroff.1	8.1 (Berkeley) 06/06/93
748239Sbostic.\"
843683Scael.Dd
943683Scael.Dt DEROFF 1
1043683Scael.Os ATT 7th
1143683Scael.Sh NAME
1243683Scael.Nm deroff
1343683Scael.Nd remove nroff, troff, tbl and eqn constructs
1443683Scael.Sh SYNOPSIS
1543683Scael.Nm deroff
1643683Scael.Op Fl w
1743683Scael.Ar file \&...
1843683Scael.Sh DESCRIPTION
1943683Scael.Nm Deroff
2019403Smckusickreads each file in sequence and removes all
2143683Scael.Xr nroff 1
2219402Smckusickand
2343683Scael.Xr troff 1
2419402Smckusickcommand lines, backslash constructions, macro definitions,
2543683Scael.Xr eqn 1
2619403Smckusickconstructs (between `.EQ' and `.EN' lines or between delimiters),
2719403Smckusickand table descriptions and writes the remainder on the standard output.
2843683Scael.Nm Deroff
2919403Smckusickfollows chains of included files (`.so' and `.nx' commands);
3019403Smckusickif a file has already been included, a `.so' is ignored and a `.nx'
3119403Smckusickterminates execution.  If no input file is given,
3243683Scael.Nm deroff
3319402Smckusickreads from the standard input.
3443683Scael.Pp
3519402SmckusickIf the
3643683Scael.Fl w
3719403Smckusickflag is given, the output is a word list, one `word' (string of letters,
3819403Smckusickdigits, and apostrophes, beginning with a letter; apostrophes are removed)
3919403Smckusickper line, and all other characters ignored.
4019402SmckusickOtherwise, the output follows the original, with the deletions mentioned above.
4143683Scael.Sh SEE ALSO
4243683Scael.Xr troff 1 ,
4343683Scael.Xr eqn 1 ,
4443683Scael.Xr tbl 1
4543683Scael.Sh HISTORY
4643683Scael.Nm Deroff
4743683Scaelappeared in Version 7 AT&T Unix.
4843683Scael.Sh BUGS
4943683Scael.Nm Deroff
5019402Smckusickis not a complete
5143683Scael.Xr troff 1
5219403Smckusickinterpreter, so it can be confused by subtle constructs.
5319402SmckusickMost errors result in too much rather than too little output.
54