3 #=======================================================================
5 # File ID: 236cf176-5d3d-11df-a10d-90e6ba3022ac
6 # Konverterer HTML til MediaWiki-dialekt.
9 # ©opyleft 2004– Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License, see end of file for legal stuff.
11 #=======================================================================
16 use HTML
::WikiConverter
;
22 getopts
('h') || die("Option error. Use -h for help.\n");
27 $progname =~ s
#^.*/(.*?)$#$1#;
31 my $html = join("", <>);
32 my $wc = new HTML
::WikiConverter
( dialect
=> 'MediaWiki' );
33 print $wc->html2wiki($html);
36 # Send the help message to stdout {{{
42 Usage: $progname [options] [file [files [...]]]
55 # Plain Old Documentation (POD) {{{
77 Print a brief help summary.
87 Made by Øyvind A. Holm S<E<lt>sunny _AT_ sunbase.orgE<gt>>.
91 Copyleft © Øyvind A. Holm <sunny@sunbase.org>
92 This is free software; see the file F<COPYING> for legalese stuff.
96 This program is free software; you can redistribute it and/or modify it
97 under the terms of the GNU General Public License as published by the
98 Free Software Foundation; either version 2 of the License, or (at your
99 option) any later version.
101 This program is distributed in the hope that it will be useful, but
102 WITHOUT ANY WARRANTY; without even the implied warranty of
103 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
104 See the GNU General Public License for more details.
106 You should have received a copy of the GNU General Public License along
107 with this program; if not, write to the Free Software Foundation, Inc.,
108 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
116 # vim: set fenc=UTF-8 ft=perl fdm=marker ts=4 sw=4 sts=4 et fo+=w :
117 # End of file html2wiki