HTML::WikiConverter::Txt2tags version 0.01
==========================================

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


To install this module, 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)


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@<P>@<p>@g' | sed 's@</P>@</p><br/><br/>\n\n\nLINEBREAK@g' | html2wiki --dialect Txt2tags | sed 's@LINEBREAK@\n\n@g' > {i%%.*}.t2t ; done


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.
