martinthomson / aasvg

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

Dashed lines #10

Open martinthomson opened 2 years ago

martinthomson commented 2 years ago

At the same time as #9, it probably makes sense to look into support for dashed lines drawn with U+2506 and similar. There is already support for drawing them, just not recognizing them.

rohan-wire commented 2 years ago

First of all Martin, this tool is already so incredibly slick. I have not been this excited about something at IETF in a very long time. IOU a beer at IETF 114. I am very interested in dashed and dotted lines. I'm guessing that there is a problem figuring out the semantics of period and colon characters, otherwise you could use those for horizontal and vertical dotted lines?

martinthomson commented 2 years ago

Yeah, the colons are easy. Replicating the logic for recognizing vertical lines should work out reasonably well, with some tweaks (+ might not be something we want to allow at end points, I don't know). Horizontal lines are tricky because period (.) is at the bottom of the box and there is a whole bit of logic that uses underscores for lines at the edge of the box. We might need to use middle dot (·) or the box art options (┄ or ┅).

Mostly this just needs time, something I don't have much of, even though I enjoy this sort of low-pressure coding.