pod2texinfo -- Perl Online Documentation to TeXinfo
pod2texinfo
pod2texinfo filters Perl pod documents to TeXinfo documents.
pod2texinfo perl_doc_entry.pod
this will write to a file perl_doc_entry.tex.
What pod2texinfo does:
Pod file perl_doc_entry.pod
is filtered to perl_doc_entry.tex.
Indented paragraphs
are translated into @example ... @end example.
@example ... @end example
other paragraphs are translated into strings with TeX special characters escaped.
The headings are converted from their POD form into a TeXInfo equivalent, and the uncommon ones are indexed:
=head1 heading
is translated into
@subheading heading @cindex heading
=head2 heading
@subsubheading heading @cindex heading
only when heading does not match frequent patterns such as DESCRIPTION, DIAGNOSTICS,... otherwise it is translated into:
@subsubheading heading
=over N
@itemize
if following =item starts with *,
=item
@enumerate
if following =item starts with 1.,
@table
if else.
Indentation level N is ignored.
=back
is translated, as appropriate, into
@end itemize
if started with @itemize,
@end enumerate
if started with @enumerate,
@end table
if started with @table.
=item * heading
@item heading
=item 1. heading
=item heading
@item heading @cindex heading
In heading text, and other paragraphs, the following translation of pod quotes are done, and then TeX special characters are escaped after that.
I
@emph{text}
B
@strong{text},
S
text1, where text1 is a string with blank characters replaced with ~,
C
@code{text2}, where text2 is a string with TeX special characters escaped to obtain a literal printout,
E
TeXInfo escaped string,
L
This may include a URL or a referencing string as is done by pod2man,
F
@file{file},
Z
a null string,
The package can be acquired from CPAN (http://www.cpan.org/) or from http://www.geocities.com/CapeCanaveral/Lab/1862/script/pod2texinfo-10.tgz
This installation is the same as any other Perl 5 module:
perl Makefile.PL
make
make install
The documentation is contained in the pod2texinfo file, in POD format. The man pages will install automatically, or may be extracted manually by:
pod2man pod2texinfo pod2texinfo.man>
pod2man pod2texinfo
A version of this documentation can be found at http://www.geocities.com/CapeCanaveral/Lab/1862/script/pod2texinfo.html
If HTML escapes E<text> other than E<amp>,E<lt>,E<gt>,E<quot> are used in C<>, translation will produce wrong character strings. Translation of HTML escapes of various European accents might be wrong.
Version 1.0. November 25, 1998.
This script is a modified version of pod2latex, which itself is a modified version of pod2man.
pod2latex
pod2man
Randall Maas mailto:randym@acm.org change LaTeX to TeXInfo and made a few appropriate changes
To install pod2texinfo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm pod2texinfo
CPAN shell
perl -MCPAN -e shell install pod2texinfo
For more information on module installation, please visit the detailed CPAN module installation guide.