martinthomson / aasvg

Turn ASCII art into SVG
BSD 2-Clause "Simplified" License
70 stars 11 forks source link

Harpoons to half arrow? #13

Open asedeno opened 1 year ago

asedeno commented 1 year ago

I found myself wanting half arrows while trying to render some connection encapulation, but found no examples or success in my attempts.

The least cumbersome idea I found was to use these harpoon characters to end the line segment. Adding support for reading these as part of a line and ending it with half of an arrowhead would be great, though I don't have time to look into implementing it right away so you get an issue instead of a pull request.

codepoint glyph name
21BC LEFTWARDS HARPOON WITH BARB UPWARDS
21BD LEFTWARDS HARPOON WITH BARB DOWNWARDS
21BE UPWARDS HARPOON WITH BARB RIGHTWARDS
21BF UPWARDS HARPOON WITH BARB LEFTWARDS
21C0 RIGHTWARDS HARPOON WITH BARB UPWARDS
21C1 RIGHTWARDS HARPOON WITH BARB DOWNWARDS
21C2 DOWNWARDS HARPOON WITH BARB RIGHTWARDS
21C3 DOWNWARDS HARPOON WITH BARB LEFTWARDS