Re: Bug#605380: ITP: aha -- ANSI HTML Adapter
Hi Adam,
Adam Borowski wrote:
> On Mon, Nov 29, 2010 at 01:55:05PM +0100, Axel Beckert wrote:
> > * Package name : aha
> > * URL or Web page : http://ziz.delphigl.com/tool_aha.php
> >
> > aha converts ANSI colors to HTML, e.g. if you want to publish the
> > output of ls --color=yes as static HTML somewhere, e.g. in your blog.
>
> Uhm, except it doesn't even work. Or rather, there might possibly be some
> program whose output it happens to handle,
I planned to test it thoroughly before uploading. Expect some
text-mode color on planet.d.o soon. ;-)
> Besides totally broken parsing and handling of SGR codes, it will also take
> anything that starts with \e[ to be a SGR. Not to mention writing all
> messages in German.
I pointed the upstream author to you preliminary bug report. :-)
> I vaguely recall there being some program with this functionality in Debian
> already, however, after a (very brief) search I can't seem to find
> it.
I looked quite close for such a program in Debian and couldn't find
one either. Then I started googling and found aha. And I was happy.
This usually results in packaging. ;-)
> If there indeed is none, you can use my implementation:
>
> http://angband.pl/svn/kbtin/trunk/ansi2html.c
Haven't found that one with Google, so thanks!
> It can handle all standard SGR codes. There's no support for xterm-256
> colors, but I can add that if it would be useful for someone.
I'll have a look at it. Maybe both efforts can be merged into one.
Regards, Axel
--
,''`. | Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
Reply to: