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

Consider reading unicode arrow or line characters #2

Open
samliddicott opened this issue Aug 3, 2017 · 2 comments
Open

Consider reading unicode arrow or line characters #2

samliddicott opened this issue Aug 3, 2017 · 2 comments

Comments

@samliddicott
Copy link

Have you considered limited support for reading and interpreting unicode characters?

U+00B7 middle dot could be used for dotted lines, instead of hyphen

Or, using math symbols: http://jrgraphix.net/r/Unicode/2200-22FF
U+22EE ⋮ vertical 3 dots
U+22EF ⋯ horizontal 3 dots
U+22F0 ⋰ dotted slash
U+22F1 ⋱ dotted backslash

Box drawing lines: http://jrgraphix.net/r/Unicode/2500-257F
(includes rounded conrners, diagonal crossover etc).

Unicode arrows: http://jrgraphix.net/r/Unicode/2190-21FF
Supplementary arrows A: http://jrgraphix.net/r/Unicode/27F0-27FF
Supplementary arrows B: http://jrgraphix.net/r/Unicode/2900-297F
(oh my eyes)

I realise that there could be no end to this, and "almost" with so many symbols and a fixed-width font, who needs SVG... (Me, me, I need SVG).

dmullis pushed a commit to dmullis/goat that referenced this issue Jun 23, 2022
@dmullis
Copy link
Collaborator

dmullis commented Jun 22, 2024

Note that some Unicode characters do not conform to the standard 2:1 height:width aspect ratio. Worse, the non-conformity is specific to individual fonts. See examples/unicode.txt.

Consistent aspect ratio in the incoming text rectangle is a hard requirement, regardless of whether a Unicode character is to trigger graphical output in the SVG, or merely passed through as text annotation.

So, there may be value in additional Unicode support, but how to adequately test against whatever fonts may be found "in the wild" remains problematic.

@dmullis
Copy link
Collaborator

dmullis commented Jul 18, 2024

Experimenting shows that the following have dimensions same as common alnums in a variety of the fonts installed on Ubuntu:

│ BOX DRAWINGS LIGHT VERTICAL
─ BOX DRAWINGS LIGHT HORIZONTAL

It may be possible to treat these as variants of '|' and '-' that select an alternate line style on SVG output.

A caveat is that the BOX DRAWINGS plane seems to contain no diagonals suitable to code for '/' and '' rendered in an alternate SVG style.

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

No branches or pull requests

2 participants