News for hackers. Stuff that matters.
Re:Ditaa: DIagrams Through Ascii Art by dbcurtis on Monday February 15, 2016 @02:23PM (#11105298)
Well, OK, but usually I want to go the other way. How about something that can take a drawing produced in some sort of reasonable drawing tool and produce ASCII art that I can include in some kind of ASCII-only file (like program source.) Originating a drawing in ASCII-art is about as fun as a poke in the eye with a sharp stick.

Certainly, there is value on ASCII-art to nice-graphics mark-up, but only to the extent that the ASCII-art is used as an intermediate, human readable, common-demoninator storage format. Authoring in ASCII-art just needs to stop.

Re:Ditaa: DIagrams Through Ascii Art by Animats on Monday February 15, 2016 @01:53PM (#11105146)
Aw. I wrote a UNIX filter to do that around 1980. It looked at lines of text three lines at a time, and converted "+", "-", "_", and "|" characters used together to line drawing characters to make clean boxes, lines, and joins.

    ┏━━━━━━━━━━┓       ┏━━━━━━━━━━┓
    ┃Like this.┣━━━━━━━┫          ┃
    ┗━━━━┳━━━━━┛       ┗━━━━━━━━━━┛ 
         ┃
         ┃             ┏━━━━━━━━━━┓
         ┗━━━━━━━━━━━━━┫          ┃
                       ┗━━━━━━━━━━┛
Re:Ditaa: DIagrams Through Ascii Art by vmorgulis on Tuesday February 16, 2016 @07:56AM (#11109496)
It's perfect!

How did you do that?

Re:Ditaa: DIagrams Through Ascii Art by Animats on Tuesday February 16, 2016 @01:12PM (#11111857)
Unicode line drawing characters in a Markdown monospace code block.
Re:Ditaa: DIagrams Through Ascii Art by akavel on Monday February 15, 2016 @02:11PM (#11105232)
Migrated to github:

https://github.com/stathissideris/ditaa

(SF.net lists 2011 as SVN trunk date, github lists "13 days ago")

In related work, see also my Go port at:

https://github.com/akavel/ditaa

(side by side comparison: http://akavel.github.io/ditaa/)

Re:Ditaa: DIagrams Through Ascii Art by prideout on Monday February 15, 2016 @01:49PM (#11105126)
Markdeep from Morgan McGuire can do something like this too: https://casual-effects.com/markdeep/
Re:Ditaa: DIagrams Through Ascii Art by jordache on Monday February 15, 2016 @02:22PM (#11105290)
From their examples:

    +--------+   +-------+    +-------+
    |        | --+ ditaa +--> |       |
    |  Text  |   +-------+    |diagram|
    |Document|   |!magic!|    |       |
    |     {d}|   |       |    |       |
    +---+----+   +-------+    +-------+
        :                         ^
        |       Lots of work      |
        +-------------------------+
Typing this out is a lot more work than creating it in Visio...
Re:Ditaa: DIagrams Through Ascii Art by scarredwaits on Monday February 15, 2016 @02:32PM (#11105350)
Agreed. But check out artist mode on Emacs...
Re:Ditaa: DIagrams Through Ascii Art by lallysingh on Monday February 15, 2016 @03:00PM (#11105519)
Seconded, artist mode is great for this stuff.

Separately, check out plantuml for diagrams from text http://plantuml.com/

Re:Ditaa: DIagrams Through Ascii Art by jordache on Monday February 15, 2016 @03:27PM (#11105691)
ok.. maybe this is only a value add for Emacs users?
Re:Ditaa: DIagrams Through Ascii Art by kleiba on Monday February 15, 2016 @04:47PM (#11106292)
org-mode certainly supports it, which is a big plus.
Re:Ditaa: DIagrams Through Ascii Art by Corun on Monday February 15, 2016 @04:01PM (#11105938)
Related: http://monodraw.helftone.com is a beautiful ASCII Diagramming Tool for Mac.
Re:Ditaa: DIagrams Through Ascii Art by splitbrain on Monday February 15, 2016 @02:18PM (#11105271)
There used to be ditaa.org which provided access to ditaa via a simple HTTP API. Unfortunately it seems to have vanished.
Re:Ditaa: DIagrams Through Ascii Art by neolefty on Monday February 15, 2016 @08:00PM (#11107249)
My fault. It was running on a free Amazon ec2 instance and I forgot to transition it to paid when the time ran out. If anyone wants to get it running again I've still got the domain and can point it to the right place.

I'm on vacation now but this gives me a good reason to get it working again!

Re:Ditaa: DIagrams Through Ascii Art by vmorgulis on Tuesday February 16, 2016 @08:00AM (#11109515)
An idea (don't know if it's feasible) is to compile to JS with GWT and put that to GitHub pages.
Re:Ditaa: DIagrams Through Ascii Art by herbst on Tuesday February 16, 2016 @12:02PM (#11111261)
> a small command-line utility written in Java

That somehow sounds wrong. Other than that, very cute. I remember when i wrote a task tracker for myself in school projects and suddenly there was a requirement to print them out. Creating a ASCII representation was the most fun part.

Re:Ditaa: DIagrams Through Ascii Art by Exuma on Monday February 15, 2016 @02:25PM (#11105315)
Better up your varnish game
Re:Ditaa: DIagrams Through Ascii Art by mgr86 on Monday February 15, 2016 @01:28PM (#11105007)
not to be confused with DITA: The Darwin Information Typing Architecture[1].

[1]. http://dita.xml.org/