HTML::WikiConverter::Txt2tags version 0.04 ========================================== HTML::WikiConverter::Txt2tags adds the Txt2tags dialect to HTML::WikiConverter allowing the conversion of HTML to Txt2tags markup. SYNOPSIS Converting HTML to wiki markup is easy: use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => 'Txt2tags' ); print $wc->html2wiki( $html ); Or from the command line: % html2wiki --dialect Txt2tags input.html > output.wiki There's also a web interface if you're so inclined: http://diberri.dyndns.org/wikipedia/html2wiki/ (this module is not online now) DEPENDENCIES * HTML::WikiConverter version 0.68 INSTALLATION Install html-wikiconverter and curl first. On Debian/Ubuntu: sudo apt-get install libhtml-wikiconverter-perl curl Then: cpan install HTML::WikiConverter::Txt2tags Alternatively, to install this module, download the HTML-WikiConverter-Txt2tags-0.##.zip archive, extract it and run the following commands: perl Makefile.PL make make test make install You can also copy html2txt2tags into your $PATH (for example /usr/local/bin) KNOWN BUGS In the case you don't get correct line break in some HTML files, you can call this kind of command which may correct the problem: for i in *.html ; do cat $i | sed 's@

@

@g' | sed 's@

@



\n\n\nLINEBREAK@g' | html2wiki --dialect Txt2tags | sed 's@LINEBREAK@\n\n@g' > {i%%.*}.t2t ; done Some left/right/center align for images might not convert as expected in txt2tags SUPPORT AND DOCUMENTATION After installing, you can find documentation for this module with the perldoc command. perldoc HTML::WikiConverter::Txt2tags You can also look for information at: Search CPAN http://search.cpan.org/dist/HTML-WikiConverter-Txt2tags CPAN Request Tracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-WikiConverter-Txt2tags AnnoCPAN, annotated CPAN documentation: http://annocpan.org/dist/HTML-WikiConverter-Txt2tags CPAN Ratings: http://cpanratings.perl.org/d/HTML-WikiConverter-Txt2tags COPYRIGHT AND LICENCE Copyright (C) 2007 David J. Iberri This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.