1 .\" $Id: demandoc.1,v 1.5 2011/09/02 13:04:05 kristaps Exp $
3 .\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: September 2 2011 $
22 .Nd emit only text of UNIX manuals
30 utility emits only the text portions of well-formed
36 Its arguments are as follows:
40 This outputs each word of text on its own line.
43 in this case, refers to whitespace-delimited terms beginning with at
44 least two letters and not consisting of any escape sequences.
45 Words have their leading and trailing punctuation
46 .Pq double-quotes, sentence punctuation, etc.
56 accepts standard input.
57 If a document is not well-formed, it is skipped.
61 parses its input and outputs only text nodes, preserving line column
63 Escape sequences are omitted from the output.
71 flags are silently discarded for calling compatibility with the
76 utility exits with one of the following values:
78 .Bl -tag -width Ds -compact
82 An operating system error occurred, for example memory exhaustion or an
83 error accessing input files.
86 to exit at once, possibly in the middle of parsing or formatting a file.
87 The output databases are corrupt and should be removed .
90 The traditional usage of
92 is for spell-checking manuals on
94 This is accomplished as follows (assuming British spelling):
96 .Dl $ demandoc -w file.1 | spell -b
103 replaces the historical deroff utility for handling modern
111 utility was written by
112 .An Kristaps Dzonsons ,
113 .Mt kristaps@bsd.lv .