Svgbob – Create a graphical representation of text diagrams
github.com
github.com
I do think that creating and updating these kind of diagrams would be quite tedious. I'd take a DSL (PlantUML, Graphviz, Structurizr) over graphical tools though. At $JOB we also use Miro at the moment, and that tool has a way to see changes since your last visit. I'd much rather be able to approve a change in a diagram via a pull request review.
That makes me wonder, do any of you know about content management systems that are GUI based, but are able to have a pull-request like workflow?
With text, it might be relatively easy to compare the final states. In case of free-form graphics, that could be a lot harder!
place them over eachother and compare pixels.
Example: https://imgur.com/a/s3LF3cM
KeenWrite[0], my text editor, renders changes to text diagrams in quasi-real-time by calling out to Kroki. Meaning, you can embed Svgbob in Markdown documents using:
``` diagram-svgbob
// diagram text
```
[0]: https://github.com/DaveJarvis/keenwrite/blob/master/docs/scr...Super cool!
Is there a tool to convert SVG back to text graph? That would help text-based file as document a lot.
Actually, I was to lazy to even ask here, so thanks for asking.
Let's hope someone even lazier can just upvote without replying.
/s
[1] https://mk12.github.io/sicp/text/2/2.html#2.2.1 (generated from https://github.com/mk12/sicp/blob/master/notes/text.md#221-r...)
[2] https://mk12.github.io/sicp/exercise/2/2.html#ex2.42 (generated from https://github.com/mk12/sicp/blob/master/src/sicp/chapter-2....)
[3] https://github.com/mk12/sicp/blob/master/notes/pandoc/render...
Svgbob – convert ASCII diagrams to SVG, now with styling support - https://news.ycombinator.com/item?id=22325720 - Feb 2020 (33 comments)
Svgbob: Convert your ASCII diagram scribbles into happy little SVG - https://news.ycombinator.com/item?id=19857349 - May 2019 (35 comments)
Convert ASCII scribbles to SVG - https://news.ycombinator.com/item?id=14422777 - May 2017 (13 comments)
For instance, this draws an obtuse angle and a right angle that are not connected to each other:
_/|__
This simply adds height to the right angle, but does not connect them: .
_/|__
But this connects both angles together with a sharp point: +
_/|__
Also, a bit of a nitpick: while I love the amount of examples, I wish they were sectioned off rather than having all of the unformatted text in a single textarea on the left and all rendered images on the right. Trying to scroll the page, I keep scrolling the textarea instead, which breaks the alignment.Overall, super cool project. I'm looking forward to trying this in real world scenarios soon
Termgraph: https://github.com/mkaz/termgraph
I wonder how hard it would be to make one that takes hand drawn input and converts it to professional like charts. Basically pick the symbol output style and it converts your hand drawn charts to this.
Not sure why it concatenates some of the words in the demo, but it's pointless for normal text, so probably not important.