scripts icon indicating copy to clipboard operation
scripts copied to clipboard

Cannot convert files from ANSI-art galleries

Open ant-222 opened this issue 6 years ago • 5 comments
trafficstars

Hello, while trying to convert this .ans file with your script:

cat fist.ans | ./ansi2html.sh -p > fist.html

I received a mess. Should your script work with these files?

ant-222 avatar Aug 20 '19 17:08 ant-222

It would be good to get a screenshot as my terminal doesn't make much sense of it either with: iconv -fiso-8859-1 < fist.ans

This image looks to be made from multiple passes, but ansi2html isn't handling resetting the position and is just outputting them one after another.

pixelb avatar Aug 21 '19 11:08 pixelb

This e-mail in Markdown

It would be good to get a screenshot as my terminal doesn't make much sense of it either with:

   iconv -fiso-8859-1 < pb.o/scripts/priv/ansi2html/ansi2html_tests/fist.ans

The image should render thus—if that's what you ask.

This image looks to be made from multiple passes, but ansi2html isn't handling resetting the position and is just outputting them one after another.

Do you mean that the failure of your script to render that file is expected behavior? If so, it shame because a shell script one of the most simple, portable, and self-contained solutions. Could you, perhaps, consider implementing multipass support? It would make you script a great tool for many ANSI-art galleries, such as the one whence I downloaded the fist.ans expample.

ant-222 avatar Aug 21 '19 20:08 ant-222

Sorry for the previous message. I didn't know Github did not process Markdown correctly when loading it from e-mails.

It would be good to get a screenshot as my terminal doesn't make much sense of it either with:

   iconv -fiso-8859-1 < fist.ans

The image should render thus—if that's what you ask.

This image looks to be made from multiple passes, but ansi2html isn't handling resetting the position and is just outputting them one after another.

Do you mean that the failure of your script to render that file is expected behavior? If so, it shame because a shell script one of the most simple, portable, and self-contained solutions. Could you, perhaps, consider implementing multipass support? It would make you script a great tool for many ANSI-art galleries, such as the one whence I downloaded the fist.ans expample.

ant-222 avatar Aug 21 '19 20:08 ant-222

Thanks for the screenshot. Ideally the script should handle this

pixelb avatar Aug 22 '19 11:08 pixelb

So you accept this issue as a change request? Great news, and many thanks.

ant-222 avatar Aug 22 '19 11:08 ant-222