File: pud.7

package info (click to toggle)
zoem 06-234-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,560 kB
  • ctags: 1,915
  • sloc: ansic: 16,472; sh: 793; makefile: 227
file content (254 lines) | stat: -rw-r--r-- 8,475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
.\" Copyright (c) 2006 Stijn van Dongen
.TH "pud" 7 "22 Aug 2006" "pud 1\&.002, 06-234" "MISCELLANEOUS "
.po 2m
.de ZI
.\" Zoem Indent/Itemize macro I.
.br
'in +\\$1
.nr xa 0
.nr xa -\\$1
.nr xb \\$1
.nr xb -\\w'\\$2'
\h'|\\n(xau'\\$2\h'\\n(xbu'\\
..
.de ZJ
.br
.\" Zoem Indent/Itemize macro II.
'in +\\$1
'in +\\$2
.nr xa 0
.nr xa -\\$2
.nr xa -\\w'\\$3'
.nr xb \\$2
\h'|\\n(xau'\\$3\h'\\n(xbu'\\
..
.if n .ll -2m
.am SH
.ie n .in 4m
.el .in 8m
..
.SH NAME
pud \- Portable Unix Documentation for manual pages and FAQ documents
.SH DESCRIPTION

Portable Unix Documentation or PUD currently provides two
mini-languages for authoring in the UNIX environment\&.
The two mini-languages are for writing UNIX manual pages and FAQ documents\&.
Source documents in PUD languages can be compiled to either
cross-linked html or to troff\&. The troff output can be further compiled
into PostScript, PDF, and plain text\&.
.SH Table of Contents

.ZI 4m "1\&."
NAME
.in -4m
.ZI 4m "2\&."
DESCRIPTION
.in -4m
.ZI 4m "3\&."
Table of Contents
.in -4m
.ZI 4m "4\&."
Portable Unix Documentation extends zoem
.in -4m
.ZI 4m "5\&."
Getting started
.in -4m
.ZI 4m "6\&."
Unix manual pages in html, troff and PostScript
.in -4m
.ZI 4m "7\&."
FAQ documents in html, troff and PostScript
.in -4m
.ZI 4m "8\&."
Manuals and FAQ examples elsewhere
.in -4m
.ZI 4m "9\&."
DocBook considered harmful
.in -4m
.ZI 4m "10\&."
Info evil
.in -4m
.ZI 4m "11\&."
AUTHOR
.in -4m
.ZI 4m "12\&."
SEE ALSO
.in -4m
.SH Portable Unix Documentation extends zoem

Portable Unix Documentation is built on top of
\fBzoem\fP (http://micans\&.org/zoem), an all-purpose
macro/programming language\&. PUD documents are processed by compiling
them with the zoem processor\&.
The documents themselves are generally well-structured, relatively free
of formatting statements and compact to write\&.
They can be easily extended since the full zoem language is available
from within a portable unix document\&.

Portable Unix Documentation is currently shipped with zoem\&. To use it
you need zoem and if you install zoem you automatically get PUD\&. The
upside is that the language files locations (which must be imported in
a PUD document) are compiled into zoem and zoem and PUD will work
seamlessly together\&.
.SH Getting started

.ZJ 2m 3m "i"
Get and install
\fBzoem\fP (http://micans\&.org/zoem)\&.
All PUD files will be installed as well\&. If you are reading this
locally on your system, chances are zoem and PUD are installed\&.
.in -5m

.ZJ 2m 3m "ii"
On this page read the pointers in section
\fISection\ \&6\fP if you want to write a manual page\&.
Read the pointers in section \fISection\ \&7\fP if you
want to write an FAQ\&. The fastest way to get up to speed is to copy and
modify a template or existing source document\&.
.in -5m

.ZJ 2m 3m "iii"
While writing your document, consult
the \fBpud-man(7)\fP documentation,
the \fBpud-faq(7)\fP documentation,
and the \fBpud-base(7)\fP documentation as necessary\&.
.in -5m

.ZJ 2m 3m "iv"
Off you go\&. If you need macro
facilities or programming facilities, zoem is there to assist you\&.
Simple macro tasks are easy to accomplish\&. For more involved stuff you
might want to consult the Zoem User Manual (or ZUM)\&.
ZUM should be installed
locally\&.
Alternatively view the latest ZUM
\fBat micans\fP (http://micans\&.org/zoem/doc/zum\&.html)
or subscribe to the mailing list
(http://micans\&.org/zoem/index\&.html#list)\&.
.in -5m
.SH Unix manual pages in html, troff and PostScript

With the \fBpud-man(7)\fP
package you create manual pages for output in either
\fItroff\fP (groff, nroff) or html\&. The first can be viewed from a
terminal, the second in a browser\&.

The fictitious \fIbuzzz\fP utility is described in a PUD manual
page\&. It is shipped with every zoem distribution and the buzzz
manual page should be installed \fIlocally\fP
in the same location as \fIits source\fP\&.
If the location is hard to find you can just obtain the
PUD source from the zoem source distribution, or alternatively
you may view the latest
\fBbuzzz source\fP (http://micans\&.org/zoem/mac/buzzz\&.azm)
upstream at micans\&.
Further local links are to the
\fIPostScript version\fP and the
\fIplain text format\fP\&.

For other examples consider the oldest PUD manual page ever written: the
\fBMCL manual page\fP (http://micans\&.org/mcl/man/mcl\&.html),
the same in
\fBPostScript output\fP (http://micans\&.org/mcl/man/mcl\&.ps),
and the
\fBsource for all this\fP (http://micans\&.org/mcl/man/mcl\&.azm)\&.
By using the venerable \fIcol\fP program, the troff output
can be converted to nice looking
\fBplain text format\fP (http://micans\&.org/mcl/man/mcl\&.txt)\&.
Find the
\fBtroff output\fP (http://micans\&.org/mcl/man/mcl\&.1) disclosed as well\&.

There are some 20+ manual pages for
\fBdifferent utilities in the mcl family\fP (http://micans\&.org/mcl/man/)\&.
.SH FAQ documents in html, troff and PostScript

Create FAQ documents with \fBpud-faq(7)\fP for output in either \fItroff\fP
(groff, nroff) or html\&. The former can be viewed in a terminal via the UNIX
man page system, the latter can be viewed in a browser\&.

The
\fIPUD FAQ mini-language\fP
is described as a rather trivial FAQ itself\&. It can be viewed in
\fIPostScript\fP
(compiled from troff compiled from
\fIthe zoem source\fP
and in
\fIplain text\fP
(again compiled from troff)\&.

For examples behold the
\fBbrowsing delight\fP (http://micans\&.org/mcl/man/mclfaq\&.html)
that is the mcl FAQ, and the
\fBPostScript pleasure\fP (http://micans\&.org/mcl/man/mclfaq\&.ps)\&.
Find the
\fBnoblest format\fP (http://micans\&.org/mcl/man/mclfaq\&.txt), the
\fBimpregnable troff\fP (http://micans\&.org/mcl/man/mclfaq\&.7), and the
\fBsource\fP (http://micans\&.org/mcl/man/mclfaq\&.azm) for all that jazz\&.
.SH Manuals and FAQ examples elsewhere

\fBOther people\fP exist writing PUD\&. Not many yet\&.
Joost van Baal has used the pud-faq package and the pud-man package
to create documentation for
\fBGnuPG (in Dutch)\fP (http://mdcc\&.cx/gnupg/),
\fBcaspar\fP (http://mdcc\&.cx/pub/caspar/caspar-latest/doc/),
and the
\fBstrong (fire)walls of uruk\fP (http://mdcc\&.cx/pub/uruk/uruk-latest/man/)\&.
.SH DocBook considered harmful

People justly wonder why PUD turns away from the blazing light of
goodness that is DocBook\&. DocBook does provide manual page elements and
it does support gazillions of output devices\&.
Nevertheless DocBook man pages are a cruelty, a curse
and the bane of all things good and pure\&.

DocBook cannot be written, it cannot be maintained, it cannot be
programmed\&. Yes, XML and DocBook are not \fIsupposed\fP to be
programmed, but where is the decree that man should toil and suffer so
that his documentation would be transmogrifyable into all eternity?

DocBook provides some sort of manual page ontology, describing
supposedly every element you might ever need\&. Inevitably you will
want to do things that are not provided and then you are stuck\&.
DocBook lists and enumerations are painful and limited\&. The verbosity
of DocBook makes a mountain out of what should be a mole hill\&.

Zoem manual pages are concise and can be easily cross-referenced\&. The
source is a pleasure to read and output from self-documenting commands can
be imported\&. Zoem IO, macro and programming facilities make the
source extendable so that new requirements can be coped with\&.

Wise people argue that one cannot fathom the needs of future generations and
urge the good people of UNIX to use DocBook\&. The fool knows that this
particular premise disproves the thesis and that joy begets joy\&.
Factor the present into the authoring sustainability equation and the
scales tip\&.

At this juncture, I am hesitantly willing to bet that the PUD languages
can easily be ported to DocBook\&. None of the pain, all of the gain\&.
The PUD \fIitemize\fP environment is a sticking point though\&. It
provides, horrors, a few formatting options\&. Optional paragraphs skips,
compact mode, right-alignment of items, automatic enumeration, and the
fantabulous intermezzo feature\&.
.SH Info evil

The good people of info consider manual pages obsolete\&. What
more is there to say? It is all written
\fBhere\fP (http://micans\&.org/stijn/views/infoinferno\&.html)\&.
.SH AUTHOR

PUD was written by Stijn van Dongen\&.
.SH SEE ALSO

.ZI 3m "\fBpud-man(7)\fP"
\ \&
.in -3m
.ZI 3m "\fBpud-faq(7)\fP"
\ \&
.in -3m
.ZI 3m "\fBpud-base(7)\fP"
\ \&
.in -3m
.ZI 3m "\fBpud-ref(7)\fP"
\ \&
.in -3m