Document basic mdoc(7) support, and some fixes.

This commit is contained in:
wiz 2002-01-21 18:36:44 +00:00
parent 9cf6e5c45d
commit 782f0d51c3
1 changed files with 21 additions and 8 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: checknr.1,v 1.11 2001/12/01 18:53:34 wiz Exp $
.\" $NetBSD: checknr.1,v 1.12 2002/01/21 18:36:44 wiz Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@ -33,7 +33,7 @@
.\"
.\" @(#)checknr.1 8.1 (Berkeley) 6/6/93
.\"
.Dd June 6, 1993
.Dd January 21, 2002
.Dt CHECKNR 1
.Os
.Sh NAME
@ -43,8 +43,8 @@
.Nm
.Op Fl a Ns Ar \&.x1.y1.x2.y2. ... \&.xn.yn
.Op Fl c Ns Ar \&.x1.x2.x3 ... \&.xn
.Op Fl s
.Op Fl f
.Op Fl s
.Ar file
.Sh DESCRIPTION
.Nm
@ -59,8 +59,8 @@ If no files are specified,
.Nm
checks the standard input.
.Pp
Options:
.Bl -tag -width Ds
Recognized options are:
.Bl -tag -width xxx -compact -offset indent
.It Fl a
Add additional pairs of macros to the list of known macros.
This must be followed by groups of six characters, each group defining
@ -71,7 +71,7 @@ the first macro name,
another period,
and the second macro name.
For example, to define a pair .BS and .ES, use
.Sq Li \-a.BS.ES
.Sq Li \-a.BS.ES .
.It Fl c
Define commands which would otherwise be complained about
as undefined.
@ -88,7 +88,7 @@ size changes.
.El
.Pp
Delimiters checked are:
.Bl -enum
.Bl -enum -compact -offset indent
.It
Font changes using \efx ... \efP.
.It
@ -135,7 +135,9 @@ knows about the
.Xr ms 7
and
.Xr me 7
macro packages.
macro packages,
as well as the macros from
.Xr mdoc 7 .
.Sh DIAGNOSTICS
.Bd -ragged -compact
Complaints about unmatched delimiters.
@ -145,6 +147,7 @@ Various complaints about the syntax of commands.
.Sh SEE ALSO
.Xr nroff 1 ,
.Xr troff 1 ,
.Xr mdoc 7 ,
.Xr me 7 ,
.Xr ms 7
.Sh HISTORY
@ -152,9 +155,19 @@ The
.Nm
command appeared in
.Bx 4.0 .
Basic
.Xr mdoc 7
support appeared in
.Nx 1.6 .
.Sh BUGS
There is no way to define a 1 character macro name using
.Fl a .
.Pp
Does not correctly recognize certain reasonable constructs,
such as conditionals.
.Pp
.Xr mdoc 7
macros that are not at the beginning of the line are not recognized.
Among others, this results in too many
.Ql Unmatched Zz
errors.