News for hackers. Stuff that matters.
Re:Shaky: ASCII Diagram to PNG by bphogan on Monday September 28, 2015 @09:28AM (#10290327)
This. I would love, as an author and teacher, to keep my flowcharts, diagrams, etc with my book code.

Right now I'm using SVG for that, but it's kinda rotten.

Re:Shaky: ASCII Diagram to PNG by davidjgraph on Monday September 28, 2015 @09:35AM (#10290370)
Is that same problem, i.e. you want to be able to diff your diagrams or do you want the actual data format embedded in your document.

If it's the second, you can embed XML within SVG or a PNG. If you draw something simple in draw.io [0] (which I do co-author) and then "File->Export As" either "SVG with XML" or "PNG with XML" the diagram data is stored within the display format itself. This way you can just reload the SVG+XML or PNG+XML and carry on editing. But the PNG and SVG display as you'd normally expect.

Does that solve your problem?

[0] https://www.draw.io/?splash=0

Re:Shaky: ASCII Diagram to PNG by kragen on Monday September 28, 2015 @10:39AM (#10290672)
Yeah, I feel this pain too. MJD's Linogram might work. I've also tried writing the diagrams as Python to produce SVG, or in D3 (to produce SVG), which both work reasonably well but seem like a lot of work.
Re:Shaky: ASCII Diagram to PNG by smorrow on Monday September 28, 2015 @03:46PM (#10292688)
It should be easy to do flowcharts in pic(1). It's also more diff-friendly.

GNU pic can target LaTeX directly, if that helps.

Re:Shaky: ASCII Diagram to PNG by zwischenzug on Monday September 28, 2015 @11:40AM (#10291002)
I use draw.io, and export to xml.