[WM] Text::Textile and WebMake

Matt Okeson-Harlow mharlow at grephead.com
Thu Nov 20 19:37:01 GMT 2003


this is the unified diff of what i did to get textile working in my webmake setup...
seems to be working ok, there are a few bugs with Text::Textile yet so...

btw, i don't think this will work as a patch...

mharlow at minerva% diff -u /usr/local/share/perl/5.8.0/HTML/WebMake/FormatConvert.pm FormatConvert.pm
--- /usr/local/share/perl/5.8.0/HTML/WebMake/FormatConvert.pm   2003-11-19 10:31:51.000000000 -0600
+++ FormatConvert.pm    2001-11-26 01:01:38.000000000 -0600
@@ -22,9 +22,6 @@

 sub set_converters {
   my $self = shift;
-
-  $self->add_converter ('text/tt', 'text/html',
-                       'Text::Textile', \&tt_to_html);

   $self->add_converter ('text/et', 'text/html',
                        'Text::EtText::EtText2HTML', \&et_to_html);
@@ -194,20 +191,6 @@
 }

 # -------------------------------------------------------------------------
-# textile stuff
-
-sub tt_to_html
-{
-       my ($self,$contobj,$txt) = @_;
-       require Text::Textile;
-
-       my $textile = new Text::Textile;
-       $self = $textile->process($txt);
-       return $self;
-}
-
-
-# -------------------------------------------------------------------------

 sub pod_to_html {
   my ($self, $contobj, $txt) = @_;


On Mon, Nov 17, 2003 at 01:45:38AM -0800, Wes Meltzer wrote:
> I wish I knew that much Perl. I can try, but if I fail abysmally, is anyone else interested in such a project?
> 
> --Wes :wm
> 
> Justin Mason wrote, on Sunday, November 16, 2003 at 11:31 PM -0800:
> 
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >
> >Wes Meltzer writes:
> >>It looks as though this involves just adding a few lines here and there
> >>to HTML::WebMake::FormatConvert and adding a new subroutine
> >>textile_to_html() to call. Because Textile doesn't contain options and a
> >>glossary like EtText, all this would involve would be, I think, a quick
> >>$self->{textile}->process($text); or whatever correct syntax here is.
> >>
> >>Am I misinterpreting the situation?
> >
> >No, that's about right!  WM's format converter is that simple.  Feel free
> >to patch away ;)   I'll gladly add it to CVS if you post the patch here.
> >(I'm pretty stuck for time -- as usual.)
> >
> >- --j.
> >-----BEGIN PGP SIGNATURE-----
> >Version: GnuPG v1.2.2 (GNU/Linux)
> >Comment: Exmh CVS
> >
> >iD8DBQE/uHlEQTcbUG5Y7woRAqcdAKDqNSDPy/FxFPSpT2xPdQOL+l/xNACgsnUi
> >YMk1cbNhTRublRMydAdlk8M=
> >=osJd
> >-----END PGP SIGNATURE-----
> >
> >_______________________________________________
> >Webmake-talk mailing list
> >Webmake-talk at taint.org
> >http://webmake.taint.org/mailman/listinfo/webmake-talk
> --
> Wes Meltzer <ithildin at teleport.com>
> http://www.magnesium.net/~gregsamsa/
> "Even the smallest person can change the course of the future."
> _______________________________________________
> Webmake-talk mailing list
> Webmake-talk at taint.org
> http://webmake.taint.org/mailman/listinfo/webmake-talk

-- 
matt okeson-harlow
mharlow at grephead dot com



More information about the Webmake-talk mailing list