On Fri, Dec 07, 2012 18:43:37 PM +0100, Marco Fioretti wrote:

> I'll try to install the .pm file manually and report the result, but
> of course any suggestion is very welcome

Here is what I did:

1) click on "view raw file" in
https://code.google.com/p/txt2tags/source/browse/trunk/extras/HTML-WikiConverter-Txt2tags/lib/HTML/WikiConverter/Txt2tags.pm

2) save the result as Txt2tags.pm in the same system folder where the
   rest of the Perl HTML modules are installed (on FC17 it is
   /usr/share/perl5/vendor_perl/HTML/ )

at that point, the code below works as expected, i.e. it saves inside
$T2T the txt2tags version of the HTML content previously loaded in
$CONTENT:

######################################################################
use HTML::WikiConverter;
use HTML::Txt2tags;

my $wc = new HTML::WikiConverter( dialect => 'Txt2tags' );

(other Perl code here...)

$T2T = $wc->html2wiki(html => $CONTENT);

######################################################################

As I said, it works, but of course if I overlooked something and/or
there is something that could be done better, thanks in advance for
letting me know!

Thanks Eric for the converter, it's a perfect complement to txt2tags.

Marco

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list

Reply via email to