khrome / ascii-art

A Node.js library for ansi codes, figlet fonts, ascii art and other ASCII graphics
MIT License
681 stars 287 forks source link

Default alphabet error (i18n) #5

Closed jdz321 closed 4 years ago

jdz321 commented 6 years ago

I just try the example command in https://github.com/khrome/ascii-art/blob/master/docs/Terminal.md, it shows me an error below

image

khrome commented 6 years ago

perhaps related to localization? what happens when you explicitly use an alphabet with -a?

jdz321 commented 6 years ago

It works... What could be the cause?

image

this tool is interesting and I wanna to fix it 😀

khrome commented 6 years ago

I'm going to guess that the default is somehow changed as part of localization... my hint being the undefined entry using a localized string in the list of available alphabets. Thanks for looking at it... let me know if you discover anything!

khrome commented 6 years ago

Theoretically this alphabet should have no effect, as it's initialized in main, but only used if images are rendered. probably just poorly handled init logic.

khrome commented 4 years ago

the 2.0 architecture changed things around, this should not be the case anymore.