info-beamer / package-flap-display

An info-beamer based programmable flap display
https://info-beamer.com/pkg/8474
Other
1 stars 6 forks source link

Spanish characters. #1

Closed ddares closed 5 years ago

ddares commented 5 years ago

Hello, could Spanish characters be added to this package?

I need Ñ, ñ, á, é, í, ó, ú, basically.

Thank you.

dividuum commented 5 years ago

In theory yes, but this image containing all the animations would have to be adjusted for that. I didn't create that, @MichaelKreil did. I don't think the code that generated the image is public.

MichaelKreil commented 5 years ago

The code is on GitHub of course: https://github.com/opendatacity/splitflap /textures/1_generate_letters.js generates an image for each letter (with ImageMagick), /textures/2_raytrace.js generates this animations sprite image.

dividuum commented 5 years ago

Oh. That's awesome. Thanks for the pointer. I'll take a quick look to see if I get this running. Thanks a lot.

dividuum commented 5 years ago

So it works but I'll still need to figure out a way to distribute the generated character images so the resulting image fills a texture of 2048x2048 max, as that's a hardware limit of the Pi. Right now the generated texture is x which is 300x4880 for the example I generated.

dividuum commented 5 years ago

Done: https://github.com/info-beamer/package-flap-display/blob/master/refit.py

The package now includes a style for spanish output. Just update it and select the style on the config page.