* José Castro <[EMAIL PROTECTED]> [2005-07-25 16:55]:
> It takes something like http://jose-castro.org/ttt/merlyn and
> returns http://jose-castro.org/ttt/merlyn.html

Hasn’t everyone written one of those? I’m starting to think it’s
rite of passage. I wrote one that takes ASCII PPMs as input and
produces HTML tables as output.

My code is also capable of using characters in a <pre></pre>
section as pixels, dropping in the appropriate <span> tags,
either with class attributes and colours stored in a stylesheet,
or with style attributes and colours inlined in the tags.

If you want to see it, let me know.

OTOH, modern browsers let you embed an image in a document by way
of using a data: URI in the src attribute of an <img> (or in a
stylesheet) so the "need" (if there ever was one) for these HTML
table kludges is diminishing.

In any case, if I were you, I’d look into parsing PPM/PNM or XPM
files, and the name I’d consider is something like

    Image::HTMLTableRender
    Image::RenderToHTML

Definitely something in the Image:: TLNS, since that’s what it is
about.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;

Reply via email to