head	1.10;
access;
symbols
	groff-1_20_1_real:1.10
	groff-1_20_1:1.10
	groff-1_20:1.10
	groff-1_19_2:1.10
	FDL:1.9
	groff-1_19_1:1.9
	groff-1_19:1.8
	groff-1_18_1:1.7
	groff-1_18:1.6
	groff-1_17_2:1.4
	groff-1_17_1:1.4
	groff-1_17a:1.4
	groff-1_17:1.4
	groff-1_16_1b:1.1.1.1
	groff-1_16_1a:1.1.1.1
	groff-1_16_1:1.1.1.1
	groff-1_16:1.1.1.1
	groff-20000311:1.1.1.1
	groff-20000310-1:1.1.1.1
	groff-20000310:1.1.1.1
	pre-1_16:1.1.1.1
	start:1.1.1.1
	wlemb:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2005.02.04.00.09.00;	author wl;	state Exp;
branches;
next	1.9;

1.9
date	2003.05.02.18.40.20;	author wlemb;	state Exp;
branches;
next	1.8;

1.8
date	2002.10.26.19.24.08;	author wlemb;	state Exp;
branches;
next	1.7;

1.7
date	2002.10.07.09.14.48;	author wlemb;	state Exp;
branches;
next	1.6;

1.6
date	2002.05.03.17.14.53;	author wlemb;	state Exp;
branches;
next	1.5;

1.5
date	2002.04.15.10.21.15;	author wlemb;	state Exp;
branches;
next	1.4;

1.4
date	2001.04.09.22.59.20;	author wlemb;	state Exp;
branches;
next	1.3;

1.3
date	2001.03.24.15.04.41;	author wlemb;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.23.00.17.51;	author wlemb;	state Exp;
branches;
next	1.1;

1.1
date	2000.02.06.09.39.44;	author wlemb;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.02.06.09.39.44;	author wlemb;	state Exp;
branches;
next	;


desc
@@


1.10
log
@

* tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
Update BSD license.
@
text
@.\" Copyright (c) 1991, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. [Deleted.  See
.\"     ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change]
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @@(#)doc-nroff	8.1 (Berkeley) 06/08/93
.\"
.\"     %beginstrip%
.
.
.eo
.
.\" use -rD=1 for double-sided printing
.
.if !r D .nr D 0
.
.\" use -rcR=0 to have multiple pages instead of a single, very long page
.
.if !r cR .nr cR 1
.
.\" the following switch is ignored in nroff mode
.
.nr S 10
.
.\" the `doc-xx-font' strings must not be empty!
.
.ds doc-caption-font \f[R]
.ds doc-caption-font2 \f[R]
.ds doc-Ad-font \f[I]
.ds doc-Ar-font \f[I]
.ds doc-Cm-font \f[B]
.ds doc-Em-font \f[I]
.ds doc-Er-font \f[R]
.ds doc-Ev-font \f[R]
.ds doc-Fa-font \f[I]
.ds doc-Fd-font \f[B]
.ds doc-Fl-font \f[B]
.ds doc-Fn-font \f[B]
.ds doc-Ft-font \f[I]
.ds doc-Ic-font \f[B]
.ds doc-Li-font \f[R]
.ds doc-Me-font \f[B]
.ds doc-Nm-font \f[B]
.ds doc-No-font \f[R]
.ds doc-Pa-font \f[I]
.ds doc-Sh-font \f[B]
.ds doc-Sy-font \f[B]
.ds doc-Sx-font \f[I]
.ds doc-Tn-font-shape \f[R]
.ds doc-Tn-font-size
.ds doc-Va-font \f[I]
.ds doc-Xr-font \f[R]
.
.ds doc-left-parenthesis \f[R](\f[]
.ds doc-right-parenthesis \f[R])\f[]
.ds lp \f[R](\f[]
.ds rp \f[R])\f[]
.ds doc-left-bracket \f[R][\f[]
.ds doc-right-bracket \f[R]]\f[]
.
.\" miscellaneous
.nr doc-subheader-indent .5i
.nr doc-paragraph-space 1v
.
.ec
.nr doc-digit-width \w'\0\0'u
.nr doc-fixed-width \w'0'
.eo
.
.
.\" NS doc-header-space global register
.\" NS   the space between header and body
.
.nr doc-header-space 0.5i
.
.
.\" NS doc-footer-space global register
.\" NS   the space between body and footer
.
.nr doc-footer-space 0.5i
.
.
.\" NS doc-display-vertical global register
.\" NS   vertical space between list elements etc.
.
.nr doc-display-vertical 0
.
.
.\" NS doc-setup-page-layout macro
.\" NS   set up page layout
.\" NS
.\" NS modifies:
.\" NS   doc-display-vertical
.
.de doc-setup-page-layout
.  ie r LL \
.    ll \n[LL]u
.  el \
.    ll 78n
.
.  ie r LT \
.    lt \n[LT]u
.  el \
.    lt 78n
.
.  po 0i
.
.  nr doc-display-vertical 1v
.  ad l
.  na
..
.
.
.ec
.
.ds doc-left-singlequote \[oq]
.ds doc-right-singlequote \[cq]
.
.\" the following strings are `official'
.ds <= \[<=]
.ds >= \[>=]
.ds aa \[aa]
.ds ga \[ga]
.ds q \[dq]
.ds Ne \[!=]
.ds Le \[<=]
.ds Ge \[>=]
.ds Lt <
.ds Gt >
.ds Pm \[+-]
.ds Na \f[I]NaN\f[]
.ds Ba \f[R]|\f[]
.ds Am &
.
.\" Unicode TTYs have all glyph forms; for other TTY character sets we need
.\" character representations which are different from GNU troff's standard
.\" forms.
.ie '\*[.T]'utf8' \{\
.  ds Rq \[rq]
.  ds Lq \[lq]
.  ds ua \[ua]
.  ds Pi \[*p]
.  ds If \[if]
.\}
.el \{\
.  ds Rq ''
.  ds Lq ``
.  ds ua ^
.  ds Pi pi
.  ds If infinity
.\}
.
.eo
.
.
.\" NS doc-header-string global string
.\" NS   the final string used for the manual page header
.
.ds doc-header-string
.
.
.\" NS doc-setup-header macro
.\" NS   install and initialize header and footer support
.\" NS
.\" NS modifies:
.\" NS   doc-header-string
.
.de doc-setup-header
.  ds doc-header-string "\*[doc-document-title]
.  if !"\*[doc-section]"Null" \
.    as doc-header-string (\*[doc-section])
.
.  ie \n[cR] \
.    doc-header
.  el \{\
.    wh 0 doc-header
.    wh -1.167i doc-footer
.  \}
.
.  e@@ doc-end-macro
..
.
.
.\" NS doc-get-width macro
.\" NS   computes the width of a string as a multiple of `doc-fixed-width':
.\" NS   `.doc-get-width string'
.\" NS
.\" NS modifies:
.\" NS   doc-width
.
.de doc-get-width
.  nr doc-width \w\$1
.  ie (\n[doc-width] >= \n[doc-fixed-width]) \{\
.    ie (\n[doc-width] % \n[doc-fixed-width]) \
.      nr doc-width ((\n[doc-width] / \n[doc-fixed-width]) + 1)
.    el \
.      nr doc-width (\n[doc-width] / \n[doc-fixed-width])
.  \}
.  el \
.    nr doc-width 0
..
.
.
.\" NS doc-get-arg-width macro
.\" NS   computes the width of an argument as a multiple of
.\" NS   `doc-fixed-width': `.doc-get-arg-width arg-index'
.\" NS
.\" NS modifies:
.\" NS   doc-width
.
.de doc-get-arg-width
.  nr doc-width \w\*[doc-arg\$1]
.  ie (\n[doc-width] >= \n[doc-fixed-width]) \{\
.    ie (\n[doc-width] % \n[doc-fixed-width]) \
.      nr doc-width ((\n[doc-width] / \n[doc-fixed-width]) + 1)
.    el \
.      nr doc-width (\n[doc-width] / \n[doc-fixed-width])
.  \}
.  el \
.    nr doc-width 0
..
.
.
.\" NS Ql user macro
.\" NS   quoted literal define
.\" NS
.\" NS modifies:
.\" NS   doc-macro-name
.\" NS   doc-quote-left
.\" NS   doc-quote-right
.\" NS
.\" NS width register `Ql' set in doc-common
.
.de Ql
.  if !\n[doc-arg-limit] \{\
.    ie \n[.$] \
.      ds doc-macro-name Ql
.    el \
.      tm Usage: .Ql argument ... (#\n[.c])
.  \}
.
.  ds doc-quote-left "\*[doc-left-singlequote]
.  ds doc-quote-right "\*[doc-right-singlequote]
.
.  doc-enclose-string \$@@
..
.
.
.ec
.
.\" EOF
@


1.9
log
@* tmac/doc-common (Nd): Use \[em].

* tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
doc-footer-space): Initialize to 0.5i.
(doc-setup-page-layout): Don't set doc-header-space and
doc-footer-space.

* REVISION: Set to 1.

* doc/pic.ms: Document possible problems with `figname'.
@
text
@d12 2
a13 4
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"      This product includes software developed by the University of
.\"      California, Berkeley and its contributors.
@


1.8
log
@
* tmac/doc-ditroff: Remove useless switch/variable -rC.
(doc-setup-header): Don't set page register `%'.
* tmac/doc-nroff: Remove variable `C'.
(doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
(doc-setup-header): Don't set page register `%'.
Don't call `bp'.
* tmac/doc-common (doc-header): Call `ns'.
(doc-paragraph): Protect .sp with .br so that it survives the
implicit new-page trap.
* tmac/doc.tmac (Bp, Bl, doc-set-vertical-and-indent): Ditto.

* tmac/doc*:Replace ' with . for consistency in all mdoc-related
files if no effect.
@
text
@d100 1
a100 1
.nr doc-header-space 0
d106 1
a106 1
.nr doc-footer-space 0
a119 2
.\" NS   doc-footer-space
.\" NS   doc-header-space
a121 3
.  nr doc-header-space .5i
.  nr doc-footer-space .5i
.
@


1.7
log
@
* tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
suppress additional whitespace after the header.

* tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
with NetBSD.

* src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.

* tmac/doc-common(doc-volume-operating-system-ateol): New flag.
(Dt): Use it to improve language localization (especially Russian
and French).

* src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
* src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
drawing commands.
* src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
curve type.
Call `picurve' for BSPLINE.
(HGPrintElt): Handle BSPLINE.
* src/preproc/grn/README: Document it.
@
text
@d47 1
a47 1
.\" the following switches are ignored in nroff mode
a49 1
.nr C 0
d124 1
a124 4
.  ie \n[cR] \
.    nr doc-header-space 0
.  el \
.    nr doc-header-space .5i
a199 1
.  nr % 1
a209 3
.
.  if ((\n[nl] == 0) : (\n[nl] == -1)) \
'    bp
@


1.6
log
@
* doc/groff.texinfo: Don't use the string `Appendix' for appendix
headers (both in the text and the table of contents).
* man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
directories.

Use registers LL and LT (similar to -ms) for controlling the
length of title and line, respectively, in the -man and -mdoc
macro packages.

* tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
(doc-setup-page-layout): Use \n[LL] and \n[LT].
* tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
(TH): Use \n[LL].
(an-header, an-p-footer): Use \n[LT].
* NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
doc/groff.texinfo: Document it.
@
text
@d168 1
@


1.5
log
@
Add new escape \F to switch font family.

* src/roff/troff/input.cc (token::next): Handle \F.
* src/roff/troff/env.cc (environment::set_family): Handle
`interrupted' flag.
* NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
Document it.

* tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
spaces in tags.

* tmac/Xps.tmac: Remove some redundant code.

* tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
man/groff_out.man, man/groff.man, man/groff_diff.man,
src/roff/groff/groff.man: Replace \f[P] with \f[].
@
text
@d131 10
a140 2
.  ll 78n
.  lt 78n
@


1.4
log
@Fix indentation in SYNOPSIS.

Updated to include changes of latest BSD mdoc version (basically,
`.Fn' and `.Fc' put a final semicolon after a function declaration
in the SYNOPSIS section.

* tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
(doc-in-synopsis-section): New variable.  Updated all related
functions.
(doc-indent-synopsis-active): New register.
(Nd, Fn, Fo): Use it.
(Cd): It requires manipulation of n[doc-indent-synopsis] so that
`.Cd' with long argument line produces indented wrapped lines.
Also, the misplaced `.nop *[doc-Nm-font]c'' caused extra
undesirable line break to be output.
(doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
`.rs'.
(Fn, Fc): Add final `;' to output.
(doc-save-global-vars, doc-restore-global-vars): Updated.
* tmac/doc-common: Remove `Ex' register.
Updated.
* tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
copyright.
@
text
@d81 6
a86 6
.ds doc-left-parenthesis \f[R](\f[P]
.ds doc-right-parenthesis \f[R])\f[P]
.ds lp \f[R](\f[P]
.ds rp \f[R])\f[P]
.ds doc-left-bracket \f[R][\f[P]
.ds doc-right-bracket \f[R]]\f[P]
d158 2
a159 2
.ds Na \f[I]NaN\f[P]
.ds Ba \f[R]|\f[P]
@


1.3
log
@* tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
selecting the font size.
* tmac/groff_mdoc.man, NEWS: Document it.


* tmac/groff_mdoc.reference.man: Small updates and renamed to ...
* tmac/groff_mdoc.man: This.  The quick reference has been removed.
* tmac/Makefile.sub, NEWS: Updated.
@
text
@d1 2
a2 2
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
d32 1
a32 1
.\"     @@(#)doc-nroff 5.6 (Berkeley) 8/5/91
@


1.2
log
@Replaced mdoc implementation.  The new version is `state of the
art', using almost all new features of groff 1.17 -- it won't run
with older versions.

* tmac/doc.tmac: Completely rewritten.
* tmac/doc-common: Ditto.
* tmac/doc-nroff: Ditto.
* tmac/doc-ditroff: Ditto.
* tmac/doc-syms: Ditto.
* tmac/mdoc.local: New file.
* tmac/groff_mdoc.samples.man: Replaced with ...
* tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
* tmac/strip.sed: Updated.
* tmac/Makefile.sub: Updated.
* INSTALL: Updated.

* tmac/groff_man.man: Add `man.local' to the FILES section.
@
text
@d47 5
@


1.1
log
@Initial revision
@
text
@d14 2
a15 2
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
d32 1
a32 1
.\"     @@(#)doc-nroff	5.6 (Berkeley) 8/5/91
a33 1
.\" tmac.mdoc-nroff
d35 98
a132 63
.\"
.ds aD \fI
.ds aR \fI
.ds cM \fB
.ds dF \fR
.ds eM \fI
.ds eR \fR
.ds eV \fR
.ds fA \fI
.ds fD \fB
.ds fL \fB
.ds fN \fB
.ds fP \fP
.ds fS
.ds fT \fI
.ds Hs \fR
.ds iC \fB
.ds lI \fR
.ds lP \fR\|(\fP
.ds rP \fR\|)\fP
.ds lp \fR\|(\fP
.ds rp \fR\|)\fP
.ds lB \fR\|[\|\fP
.ds rB \fR\|]\fP
.ds mL \fB
.ds nM \fB
.ds nO \fR
.ds pA \fI
.ds Pu {\ .\ ,\ ;\ :\ (\ )\ [\ ]}
.ds rA \fR
.ds rT \fI
.ds sH \fB
.ds sP
.ds sY \fB
.ds sX \fI
.ds tF \fR
.ds tN
.ds vA \fI
.ds Vs \fR
.ds vT \fB
.ds xR \fR
.\"	MISCELLANEOUS
.nr sI .5i
.nr Ti .5i
.nr cR 1
.nr Pp 1v
.ds lS \0\0
.nr lS \w'\0\0'u
.nr dI 6n
.\"
.de pL
.ie \\n(cR .nr Hm 0
.el .nr Hm .5i
.nr Fm .5i
.nr ll 78n
.ll 78n
.nr lt 78n
.lt 78n
.nr po 0i
.po 0i
.nr dV 1v
.ad l
.na
d134 16
a149 15
.ds <= \&<\&=
.ds >= \&>\&=
.ds Rq ''
.ds Lq ``
.ds ua ^
.ds aa \'
.ds ga \`
.ds sL `
.ds sR '
.ds q \&"
.\" Math stuff
.ds Pi pi
.ds Ne !=
.ds Le <=
.ds Ge >=
d152 13
a164 17
.ds Pm +-
.ds If infinity
.ds Na \fINaN\fP
.ds Ba \fR\&|\fP

.\"
.de hK
.nr % 1
.ds hT \\*(dT
.if !"\\*(cH"Null" \{\
.	ie !"\\*(gP"Null" .as hT \|(\|\\*(cH\\*(gP\|)
.	el .as hT \\|(\\|\\*(cH\\|)
.\}
.if "\\*(cH"Null" .if !"\\*(gP"Null" .as hT \&\|(\|\\*(gP\|)
.ie \\n(cR \{\
.	hM
.	wh -1v fM
d167 5
a171 2
.	wh 0 hM
.	wh -1.167i fM
d173 33
a205 2
.if \\n(nl==0:\\n(nl==-1 'bp
.em lM
d207 19
a225 8
.nr fW \w'0'
.de sW
.nr sW \w\\$1
.ie \\n(sW>=\\n(fW \{\
.       ie \\n(sW%\\n(fW .nr sW (\\n(sW/\\n(fW)+1
.       el .nr sW \\n(sW/\\n(fW
.\}
.el .nr sW 0
d227 19
a245 7
.de aW
.nr sW \w\\*(A\\$1
.ie \\n(sW>=\\n(fW \{\
.       ie \\n(sW%\\n(fW .nr sW (\\n(sW/\\n(fW)+1
.       el .nr sW \\n(sW/\\n(fW
.\}
.el .nr sW 0
d247 12
a258 1
.\" NS Ql macro - Quoted literal define
d260 11
a270 64
.if \\n(aC==0  \{\
.	ds mN Ql
.	ds A1 \\$1
.	ds A2 \\$2
.	ds A3 \\$3
.	ds A4 \\$4
.	ds A5 \\$5
.	ds A6 \\$6
.	ds A7 \\$7
.	ds A8 \\$8
.	ds A9 \\$9
.	nr fV \\n(.$
. 	fV
.\}
.ds qL \&\\*(sL
.ds qR \&\\*(sR
.En \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.\" NS Sh macro - Section Headers
.\" NS nS register - Section Header SYNOPSIS flag
.\" NS nF register - Section Header FILES flag
.\" NS nA register - Section Header SEE ALSO flag
.\" NS nT register - Section Header STANDARDS flag
.de Sh
.nr nS 0
.nr sE 0
.nr iS 0
.ie "\\$1"NAME" \{\
.       hK
'       in 0
.\}
.el \{\
.       nr nS 0
.       nr nA 0
.       nr nF 0
.       nr nT 0
.       nr nY 0
.       nr aN 0
.       nr oT 0
.       if "\\$1"SEE" .nr nA 1
.       if "\\$1"FILES" .nr nF 1
.       if "\\$1"STANDARDS" .nr nT 1
.       if "\\$1"SYNOPSIS" .nr nS 1
.       if "\\$1"DESCRIPTION" \{\
.               rr fB
.               rr Fb
.               ds Fb
.               nr fY 0
.               nr fZ 0
.       \}
.	if "\\$1"AUTHORS" .nr nY 1
.       in 0
.\}
.pL
'sp
.ns
.ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
.if !\\n(cR .ne 3
'fi
\&\\*(sH\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9
\&\fP\s0\&
.in \\n(.iu+\\n(Tiu
.if "\\$1"SEE" .nr sE 1
.ns
d272 5
@


1.1.1.1
log
@groff pre-1.16 with new directory structure
@
text
@@
