man.html
来自「perl教程」· HTML 代码 · 共 336 行 · 第 1/2 页
HTML
336 行
output).</p>
</dd>
</li>
<dt><strong><a name="item_release">release</a></strong>
<dd>
<p>Set the centered footer. By default, this is the version of Perl you run
Pod::Man under. Note that some system an macro sets assume that the
centered footer will be a modification date and will prepend something like
"Last modified: "; if this is the case, you may want to set <a href="#item_release"><code>release</code></a> to
the last modified date and <a href="#item_date"><code>date</code></a> to the version number.</p>
</dd>
</li>
<dt><strong><a name="item_section">section</a></strong>
<dd>
<p>Set the section for the <code>.TH</code> macro. The standard section numbering
convention is to use 1 for user commands, 2 for system calls, 3 for
functions, 4 for devices, 5 for file formats, 6 for games, 7 for
miscellaneous information, and 8 for administrator commands. There is a lot
of variation here, however; some systems (like Solaris) use 4 for file
formats, 5 for miscellaneous information, and 7 for devices. Still others
use 1m instead of 8, or some mix of both. About the only section numbers
that are reliably consistent are 1, 2, and 3.</p>
</dd>
<dd>
<p>By default, section 1 will be used unless the file ends in .pm in which case
section 3 will be selected.</p>
</dd>
</li>
</dl>
<p>The standard Pod::Parser method <code>parse_from_filehandle()</code> takes up to two
arguments, the first being the file handle to read POD from and the second
being the file handle to write the formatted output to. The first defaults
to STDIN if not given, and the second defaults to STDOUT. The method
<code>parse_from_file()</code> is almost identical, except that its two arguments are the
input and output disk files instead. See <a href="../../lib/Pod/Parser.html">the Pod::Parser manpage</a> for the specific
details.</p>
<p>
</p>
<hr />
<h1><a name="diagnostics">DIAGNOSTICS</a></h1>
<dl>
<dt><strong><a name="item_roff_font_should_be_1_or_2_chars_2c_not__22_25s_22">roff font should be 1 or 2 chars, not "%s"</a></strong>
<dd>
<p>(F) You specified a *roff font (using <a href="#item_fixed"><code>fixed</code></a>, <a href="#item_fixedbold"><code>fixedbold</code></a>, etc.) that
wasn't either one or two characters. Pod::Man doesn't support *roff fonts
longer than two characters, although some *roff extensions do (the canonical
versions of <strong>nroff</strong> and <strong>troff</strong> don't either).</p>
</dd>
</li>
<dt><strong><a name="item_invalid_link__25s">Invalid link %s</a></strong>
<dd>
<p>(W) The POD source contained a <code>L<></code> formatting code that
Pod::Man was unable to parse. You should never see this error message; it
probably indicates a bug in Pod::Man.</p>
</dd>
</li>
<dt><strong><a name="item_invalid_quote_specification__22_25s_22">Invalid quote specification "%s"</a></strong>
<dd>
<p>(F) The quote specification given (the quotes option to the constructor) was
invalid. A quote specification must be one, two, or four characters long.</p>
</dd>
</li>
<dt><strong><a name="item__s__d_">%s:%d: Unknown command paragraph "%s".</a></strong>
<dd>
<p>(W) The POD source contained a non-standard command paragraph (something of
the form <code>=command args</code>) that Pod::Man didn't know about. It was ignored.</p>
</dd>
</li>
<dt><strong>%s:%d: Unknown escape E<%s></strong>
<dd>
<p>(W) The POD source contained an <code>E<></code> escape that Pod::Man didn't
know about. <code>E<%s></code> was printed verbatim in the output.</p>
</dd>
</li>
<dt><strong>%s:%d: Unknown formatting code %s</strong>
<dd>
<p>(W) The POD source contained a non-standard formatting code (something of
the form <code>X<></code>) that Pod::Man didn't know about. It was ignored.</p>
</dd>
</li>
<dt><strong>%s:%d: Unmatched =back</strong>
<dd>
<p>(W) Pod::Man encountered a <code>=back</code> command that didn't correspond to an
<code>=over</code> command.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="bugs">BUGS</a></h1>
<p>Eight-bit input data isn't handled at all well at present. The correct
approach would be to map E<> escapes to the appropriate UTF-8
characters and then do a translation pass on the output according to the
user-specified output character set. Unfortunately, we can't send eight-bit
data directly to the output unless the user says this is okay, since some
vendor *roff implementations can't handle eight-bit data. If the *roff
implementation can, however, that's far superior to the current hacked
characters that only work under troff.</p>
<p>There is currently no way to turn off the guesswork that tries to format
unmarked text appropriately, and sometimes it isn't wanted (particularly
when using POD to document something other than Perl).</p>
<p>The NAME section should be recognized specially and index entries emitted
for everything in that section. This would have to be deferred until the
next section, since extraneous things in NAME tends to confuse various man
page processors.</p>
<p>Pod::Man doesn't handle font names longer than two characters. Neither do
most <strong>troff</strong> implementations, but GNU troff does as an extension. It would
be nice to support as an option for those who want to use it.</p>
<p>The preamble added to each output file is rather verbose, and most of it is
only necessary in the presence of E<> escapes for non-ASCII
characters. It would ideally be nice if all of those definitions were only
output if needed, perhaps on the fly as the characters are used.</p>
<p>Pod::Man is excessively slow.</p>
<p>
</p>
<hr />
<h1><a name="caveats">CAVEATS</a></h1>
<p>The handling of hyphens and em dashes is somewhat fragile, and one may get
the wrong one under some circumstances. This should only matter for
<strong>troff</strong> output.</p>
<p>When and whether to use small caps is somewhat tricky, and Pod::Man doesn't
necessarily get it right.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><a href="../../lib/Pod/Parser.html">the Pod::Parser manpage</a>, <em>perlpod(1)</em>, <em>pod2man(1)</em>, <em>nroff(1)</em>, <em>troff(1)</em>,
<em>man(1)</em>, <em>man(7)</em></p>
<p>Ossanna, Joseph F., and Brian W. Kernighan. "Troff User's Manual,"
Computing Science Technical Report No. 54, AT&T Bell Laboratories. This is
the best documentation of standard <strong>nroff</strong> and <strong>troff</strong>. At the time of
this writing, it's available at
<a href="http://www.cs.bell-labs.com/cm/cs/cstr.html">http://www.cs.bell-labs.com/cm/cs/cstr.html</a>.</p>
<p>The man page documenting the man macro set may be <em>man(5)</em> instead of
<em>man(7)</em> on your system. Also, please see <em>pod2man(1)</em> for extensive
documentation on writing manual pages if you've not done it before and
aren't familiar with the conventions.</p>
<p>The current version of this module is always available from its web site at
<a href="http://www.eyrie.org/~eagle/software/podlators/">http://www.eyrie.org/~eagle/software/podlators/</a>. It is also part of the
Perl core distribution as of 5.6.0.</p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Russ Allbery <<a href="mailto:rra@stanford.edu">rra@stanford.edu</a>>, based <em>very</em> heavily on the original
<strong>pod2man</strong> by Tom Christiansen <<a href="mailto:tchrist@mox.perl.com">tchrist@mox.perl.com</a>>.</p>
<p>
</p>
<hr />
<h1><a name="copyright_and_license">COPYRIGHT AND LICENSE</a></h1>
<p>Copyright 1999, 2000, 2001, 2002, 2003 by Russ Allbery <<a href="mailto:rra@stanford.edu">rra@stanford.edu</a>>.</p>
<p>This program is free software; you may redistribute it and/or modify it
under the same terms as Perl itself.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?