.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Pod::Simple::Wiki 3pm" .TH Pod::Simple::Wiki 3pm "2022-10-13" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Pod::Simple::Wiki \- A class for creating Pod to Wiki filters. .SH "SYNOPSIS" .IX Header "SYNOPSIS" To create a simple filter to convert from Pod to a wiki format: .PP .Vb 1 \& #!/usr/bin/perl \& \& use strict; \& use warnings; \& use Pod::Simple::Wiki; \& \& \& my $parser = Pod::Simple::Wiki\->new(\*(Aqkwiki\*(Aq); \& \& if ( defined $ARGV[0] ) { \& open IN, $ARGV[0] or die "Couldn\*(Aqt open $ARGV[0]: $!\en"; \& } \& else { \& *IN = *STDIN; \& } \& \& if ( defined $ARGV[1] ) { \& open OUT, ">$ARGV[1]" or die "Couldn\*(Aqt open $ARGV[1]: $!\en"; \& } \& else { \& *OUT = *STDOUT; \& } \& \& $parser\->output_fh( *OUT ); \& $parser\->parse_file( *IN ); \& \& _\|_END_\|_ .Ve .PP To convert Pod to a wiki format using the installed \f(CW\*(C`pod2wiki\*(C'\fR utility: .PP .Vb 1 \& pod2wiki \-\-style mediawiki file.pod > file.wiki .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" The \f(CW\*(C`Pod::Simple::Wiki\*(C'\fR module is used for converting Pod text to Wiki text. .PP Pod (Plain Old Documentation) is a simple markup language used for writing Perl documentation. .PP A Wiki is a user extensible web site. It uses very simple mark-up that is converted to Html. For an introduction to Wikis see: .SH "METHODS" .IX Header "METHODS" .SS "new('wiki_format')" .IX Subsection "new('wiki_format')" The \f(CW\*(C`new\*(C'\fR method is used to create a new \f(CW\*(C`Pod::Simple::Wiki\*(C'\fR object. It is also used to set the output Wiki format. .PP .Vb 3 \& my $parser1 = Pod::Simple::Wiki\->new( \*(Aqwiki\*(Aq ); \& my $parser2 = Pod::Simple::Wiki\->new( \*(Aqmediawiki\*(Aq ); \& my $parser3 = Pod::Simple::Wiki\->new(); # Defaults to \*(Aqwiki\*(Aq .Ve .PP The currently supported formats are: .PP .Vb 10 \& wiki \& kwiki \& usemod \& twiki \& tiddlywiki \& textile \& wikipedia or mediawiki \& markdown \& moinmoin \& confluence .Ve .SS "Other methods" .IX Subsection "Other methods" Pod::Simple::Wiki inherits all of the methods of \f(CW\*(C`Pod::Simple\*(C'\fR. See Pod::Simple for more details. .SH "Supported Formats" .IX Header "Supported Formats" The following wiki formats are supported by \f(CW\*(C`Pod::Simple::Wiki\*(C'\fR: .IP "wiki" 4 .IX Item "wiki" This is the original Wiki format as used on Ward Cunningham's Portland repository of Patterns. See . .IP "kwiki" 4 .IX Item "kwiki" This is the format as used by Brian Ingerson's Kwiki: . .IP "usemod" 4 .IX Item "usemod" This is the format used by the Usemod wikis. See: . .IP "twiki" 4 .IX Item "twiki" This is the format used by TWiki wikis. See: . .IP "tiddlywiki" 4 .IX Item "tiddlywiki" This is the format used by the TiddlyWiki. See: . .IP "textile" 4 .IX Item "textile" The Textile markup format as used on GitHub. See: . .IP "wikipedia or mediawiki" 4 .IX Item "wikipedia or mediawiki" This is the format used by Wikipedia and MediaWiki wikis. See: . .IP "markdown" 4 .IX Item "markdown" This is the format used by GitHub and other sites. See: . .IP "moinmoin" 4 .IX Item "moinmoin" This is the format used by MoinMoin wikis. See: . .IP "muse" 4 .IX Item "muse" Emacs Muse (also known as \*(L"Muse\*(R" or \*(L"Emacs-Muse\*(R") is an authoring and publishing environment for Emacs. .IP "confluence" 4 .IX Item "confluence" This is the format used by Confluence. See: . .PP If no format is specified the parser defaults to \f(CW\*(C`wiki\*(C'\fR. .PP Any other parameters in \f(CW\*(C`new\*(C'\fR will be passed on to the parent \f(CW\*(C`Pod::Simple\*(C'\fR object. See Pod::Simple for more details. .SH "Porting New Wiki Formats" .IX Header "Porting New Wiki Formats" If you are interested in porting a new wiki format have a look at Pod::Simple::Wiki::Template. .PP The \f(CW\*(C`Pod::Simple::Wiki\*(C'\fR git repository is: . .SH "SEE ALSO" .IX Header "SEE ALSO" This module also installs a \f(CW\*(C`pod2wiki\*(C'\fR command line utility. See \f(CW\*(C`pod2wiki \-\-help\*(C'\fR for details. .SH "TODO" .IX Header "TODO" .IP "\(bu" 4 Fix some of the \f(CW\*(C`=over\*(C'\fR edge cases. See the TODOs in the test programs. .SH "ACKNOWLEDGEMENTS" .IX Header "ACKNOWLEDGEMENTS" Thanks to Sean M. Burke for \f(CW\*(C`Pod::Simple\*(C'\fR. It may not be simple but sub-classing it is. \f(CW\*(C`:\-)\*(C'\fR .PP Thanks to Zoffix Znet for various pull requests and fixes. .PP Thanks to Sam Tregar for TWiki support. .PP Thanks Tony Sidaway for Wikipedia/MediaWiki support. .PP Thanks to Daniel T. Staal for Markdown support. .PP Thanks to Michael Matthews for MoinMoin support. .PP Thanks to Christopher J. Madsen for several MediaWiki additions and tests. .PP Thanks Tim Bunce for the TiddlyWiki prod and Ron Savage for the port. .PP Thanks to Olivier 'dolmen' Mengué for various TiddlyWiki patches. .PP Thanks to David Bartle, Andrew Hobbs and Jim Renwick for confluence patches. .PP Thanks to Peter Hallam for MediaWiki enhancements. .PP Thanks to Marco Pessotto for the Muse format. .SH "DISCLAIMER OF WARRANTY" .IX Header "DISCLAIMER OF WARRANTY" Because this software is licensed free of charge, there is no warranty for the software, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the software \*(L"as is\*(R" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the software is with you. Should the software prove defective, you assume the cost of all necessary servicing, repair, or correction. .PP In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who may modify and/or redistribute the software as permitted by the above licence, be liable to you for damages, including any general, special, incidental, or consequential damages arising out of the use or inability to use the software (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the software to operate with any other software), even if such holder or other party has been advised of the possibility of such damages. .SH "LICENSE" .IX Header "LICENSE" Either the Perl Artistic Licence or the \s-1GPL\s0 . .SH "AUTHOR" .IX Header "AUTHOR" John McNamara jmcnamara@cpan.org .SH "COPYRIGHT" .IX Header "COPYRIGHT" MMIII-MMIV, John McNamara. .PP All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.