Annotation of mandoc/mdocml.1, Revision 1.7
1.1 kristaps 1: .\" $OpenBSD: mdoc.template,v 1.10 2007/05/31 22:10:19 jmc Exp $
2: .\"
3: .\" The following requests are required for all man pages.
4: .\"
5: .\" Remove `\&' from the line below.
1.2 kristaps 6: .Dd $Mdocdate$
7: .Dt mdocml 1
1.1 kristaps 8: .Os
1.3 kristaps 9: .\"
1.1 kristaps 10: .Sh NAME
1.2 kristaps 11: .Nm mdocml
12: .Nd compile manpage source into mark-up language
1.3 kristaps 13: .\"
1.1 kristaps 14: .Sh SYNOPSIS
1.2 kristaps 15: .Nm mdocml
1.7 ! kristaps 16: .Op Fl vW
! 17: .Op Fl f Ar filter
1.2 kristaps 18: .Op Fl o Ar outfile
19: .Op Ar infile
1.3 kristaps 20: .\"
1.1 kristaps 21: .Sh DESCRIPTION
22: The
23: .Nm
1.7 ! kristaps 24: utility parses
! 25: .Xr mdoc
! 26: formatted manual source and passes results into the output filter
! 27: dictated by
! 28: .Fl f Ar filter .
! 29: The only current output filter is
! 30: .Ar validate ,
! 31: the default. The arguments are as follows:
1.6 kristaps 32: .Bl -tag -width "\-o outfile"
1.2 kristaps 33: .It Fl o Ar outfile
34: Place output in
35: .Ar outfile ,
36: which may be
1.6 kristaps 37: .Qq \-
1.2 kristaps 38: for standard output. The default is standard output.
39: .It Ar infile
40: Read input from
41: .Ar infile ,
42: which may be
1.6 kristaps 43: .Qq \-
1.2 kristaps 44: for standard input. The default is standard input.
1.7 ! kristaps 45: .It Fl v
! 46: Print messages (output depends on filter).
1.6 kristaps 47: .It Fl W
1.7 ! kristaps 48: Print warnings (output depends on filter).
1.2 kristaps 49: .El
1.7 ! kristaps 50: .Ss Validate Filter
! 51: The validate filter, specified by
! 52: .Fl f Ar validate ,
! 53: is the default filter. It produces no output, so specifying
! 54: .Fl o Ar outfile
! 55: results in an empty file.
1.1 kristaps 56: .\" The following requests should be uncommented and used where appropriate.
57: .\" This next request is for sections 2, 3, and 9 function return values only.
58: .\" .Sh RETURN VALUES
59: .\" This next request is for sections 1, 6, 7 & 8 only.
60: .\" .Sh ENVIRONMENT
61: .\" .Sh FILES
62: .\" .Sh EXAMPLES
63: .\" This next request is for sections 1, 4, 6, and 8 only.
64: .\" .Sh DIAGNOSTICS
65: .\" The next request is for sections 2, 3, and 9 error and signal handling only.
66: .\" .Sh ERRORS
1.3 kristaps 67: .Sh SEE ALSO
68: .Xr groff 1 ,
69: .Xr mdoc.samples 7 ,
70: .Xr mdoc 7
1.1 kristaps 71: .\" .Sh STANDARDS
72: .\" .Sh HISTORY
1.3 kristaps 73: .Sh AUTHORS
74: The
75: .Nm
76: utility was written by
77: .An Kristaps Dzonsons Aq kristaps@kth.se .
78: .\"
79: .Sh CAVEATS
1.7 ! kristaps 80: Most caveats of
1.3 kristaps 81: .Nm
1.7 ! kristaps 82: stem from ambiguities in
! 83: .Xr mdoc 7
! 84: or the necessary limitations of converting an ad hoc language into
! 85: structured ones:
! 86: .Bl -enum -compact -offset indent
! 87: .It
! 88: The engine doesn't understand
1.3 kristaps 89: .Sq \&Xo
90: and
91: .Sq \&Xc
92: troff macros.
1.7 ! kristaps 93: .It
! 94: All macro arguments may be quoted, instead of only some.
! 95: .It
! 96: Blank lines raise warnings.
! 97: .It
! 98: Non-ascii characters may cause issues.
! 99: .El
1.1 kristaps 100: .\" .Sh BUGS
CVSweb