Re:Pikchr: A PIC-like markup language for diagrams in techni...
by diggan on Saturday January 06, 2024 @07:51AM
(#38891019)
Seems like the use-cases are kind of different from the two.
Pikchr seems to be made specifically for A) ease of editing and B) compile to graphs after being embedded in markdown code fences
svgbob I guess would work fine for B, but seems like a hassle to use it for A, but then I've never done ASCII art manually, maybe that's why it seems cumbersome to me?
If you come across this graph and want to edit it, how would you approach it? Because I'm guessing you're not manually moving characters around? Seems like a big hassle if so, even if I'm a daily user of vim which could help a lot.
,─.
( 0 )
`-'
/ \
/ \
V V
,─. ,─.
( 1 ) ( 4 )
`-' `-' .
/ \ | \ `.
/ \ | \ `.
V V | \ `.
,─. ,─. V V V
( 2 ) ( 3 ) ,─. ,─. ,─.
`─' `─' ( 5 ) ( 6 ) ( 7 )
`─' `─' `─'
Re:Pikchr: A PIC-like markup language for diagrams in techni...
by PMunch on Sunday January 07, 2024 @04:14AM
(#38899761)
Yeah this is the drawback I was talking about. Vim certainly helps a bit, but some kind of editor or plugin which allowed you to more easily move stuff around, draw lines, draw boxes and circles, etc. would be very handy. The current approach is moving characters around by hand, which is quite tedious.
Of course this comes with a tradeoff, drawing the diagrams can be a bit of a pain. But I believe this can be solved by a good Markdown editor or editor plugin. Alternatively a spec like this could be converted into an svgbob-compatible diagram.
[1]https://ivanceras.github.io/svgbob-editor/ [2]https://google.github.io/typograms/