Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Draw “text-mode” diagrams using Braille characters (github.com/mlang)
22 points by mlang23 on May 30, 2019 | hide | past | favorite | 12 comments



This is interesting. I wrote a Python library a while ago that exploits Braille characters: https://github.com/dheera/python-termgraphics

And if you're into robots, I also wrote a ROS topic visualizer: https://github.com/dheera/rosshow


Braille characters are fun in the terminal. I wrote a toy tool to convert images to Braille years ago[1].

Here's an example of converting a world map[2] to Braille[3].

[1]: https://github.com/beefsack/go-dot

[2]: https://i.imgur.com/ZoIYe2N.png

[3]: https://i.imgur.com/5VR35bS.png


ImageMagick can convert to Braille already. Just use convert and the ubrl extension.


Very cool. Reminds me of one of my favorite Julia packages:

https://github.com/Evizero/UnicodePlots.jl

It uses Braille characters as well as others to render all kinds of plots in a text terminal. So handy sometimes, and so reliable.


> brldia circle 1

Is that one of them old-fashioned circles from Indiana back when pi equaled 3? :)


It seems that in some fonts the Braille space (code point 0x2800) is not the same width as the other Braille characters. On this Windows computer it seems that "Segoe UI Symbol", a Microsoft font, is being used by default, and has that problem.


How do braille displays deal with pages containing these unicode characters? Could something along these lines offer a way to make diagrams accessible to blind users? (a few lines at a time, anyway...)


I'm going to guess not well.

Whether written, spoken, or extruded as Braille, words are generally used for a serialized conveyance of information. Images on the other hand are meaningful because of the spatial relationships of their content.

You're probably better off describing the visuals.


As a blind person, I have to disagree with your assertion. Do you actually have experience with this stuff, or are you just guessing?


Yes. I am the author of diagrams-braille and am blind myself. I actually use it to "visualize" graphical things on my braille display.


These displays usually consist of a single row of text at most, don’t they?

Like the ones they talk about in this video: https://youtu.be/tVuLGrab9JA

I can’t imagine trying to interpret a diagram on that would make a lot of sense.

Also, keep in mind that any labels or other text in the diagram would also need to be communicated using the Braille symbols.

A physical diagram that you could touch and feel on the other hand, that used Braille for text and lines for the lines and other shapes for the other shapes, on the other hand is something else I think. I have seen such diagrams in reality. But those you can touch and feel freely in any direction, anywhere at the same time.


Right. What does one of those do if it encounters the Unicode braille codepoints?

One could say it just echoes them to the device verbatim. But to me, this seems like a movie that's originally in English, but part way through the movie, someone says something in German, for effect. If you then translate (specifically, dub) the movie to German, how do you translate the German? If you just leave it as-is, you lose the "they switched languages here" information that the original contained.

Not sure what else you could do. You could inject some text that says "Oh hey user, this was originally Braille, even on visual displays", as an escape of sorts.

But for all I know these devices do something like "unrecognized character" and draw the Braille equivalent of boxes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: