Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert files from ANSI-art galleries #26

Open
ant-222 opened this issue Aug 20, 2019 · 5 comments
Open

Cannot convert files from ANSI-art galleries #26

ant-222 opened this issue Aug 20, 2019 · 5 comments

Comments

@ant-222
Copy link

ant-222 commented Aug 20, 2019

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?

@pixelb
Copy link
Owner

pixelb commented Aug 21, 2019

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.

@ant-222
Copy link
Author

ant-222 commented Aug 21, 2019 via email

@ant-222
Copy link
Author

ant-222 commented Aug 21, 2019

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.

@pixelb
Copy link
Owner

pixelb commented Aug 22, 2019

Thanks for the screenshot.
Ideally the script should handle this

@ant-222
Copy link
Author

ant-222 commented Aug 22, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants