1 .\" $Vendor-Id: demandoc.1,v 1.6 2011/12/25 19:35:44 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.
22 .Nd emit only text of UNIX manuals
30 utility emits only the text portions of well-formed
39 parses standard input and outputs only text nodes, preserving line
41 Escape sequences are omitted from the output.
43 Its arguments are as follows:
47 This outputs each word of text on its own line.
50 in this case, refers to whitespace-delimited terms beginning with at
51 least two letters and not consisting of any escape sequences.
52 Words have their leading and trailing punctuation
53 .Pq double-quotes, sentence punctuation, etc.
59 If a document is not well-formed, it is skipped.
67 flags are silently discarded for calling compatibility with the
72 utility exits with one of the following values:
74 .Bl -tag -width Ds -compact
78 An operating system error occurred, for example memory exhaustion or an
79 error accessing input files.
82 to exit at once, possibly in the middle of parsing or formatting a file.
83 The output databases are corrupt and should be removed .
86 The traditional usage of
88 is for spell-checking manuals on
90 This is accomplished as follows (assuming British spelling):
92 .Dl $ demandoc -w file.1 | spell -b
99 replaces the historical deroff utility for handling modern
107 utility was written by
108 .An Kristaps Dzonsons ,
109 .Mt kristaps@bsd.lv .