dimar has asked for the wisdom of the Perl Monks concerning the following question:
I am requesting leads, suggestions and comments for the following problem. The problem is, how can one graphically 'draw' *diagrams* (aka graphs, directed-graphs, recursive transition networks, etc) and have that *diagram* be spit out into text? (We already know how to do the reverse with perl and GraphViz).
In other words, I would like to be able to start by drawing something like specimen1 and then from that, automatically generate something like specimen2. I would also like to be able to do the reverse.
The key sticking point is *bi-directional interactivity* it should be easy to go from diagram to text or text to diagram. It doesn't have to be native perl, (XML, SVG, GraphViz dot files or anything works, just as long as it is text or non-proprietary binary format).
No. This is not a homework question. It is part of my due dilligence investigation before I undertake to develop this myself, because if there is no such tool out there, I think it would be useful to either make one, or morph something that already exists into what is described here. In case anyone is wondering, I am leaning toward wxPerl, because of the highly graphical and lexical nature of this undertaking. Critique is welcome.
sentence: +-----------+
+>| adjective |>+
+-------------+ | +-----------+ | +------+ +------+
(start)->-| preposition |->-+------->-------+>| noun |--| verb |-(end)
+-------------+ +------+ +------+
adjective: +---------+
+---| "large" |--+
| +---------+ |
| +---------+ |
(start) -->--+---| "green" |--+-->-- (end)
| +---------+ |
| +---------+ |
+---| "round" |--+
+---------+
sentence: pronoun ( adjective | "" ) noun verb ; adjective: "large" | "green" | "round" ;
The information here and here and here was useful, but unfortunately none of them address both the *bidirectional* aspect and the *graphical* aspect ... the combined goal here.
Any welcome suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Diagram to Text and Vice Versa (DAG, RTN)
by ikegami (Patriarch) on Nov 08, 2004 at 16:38 UTC | |
|
Re: Diagram to Text and Vice Versa (DAG, RTN)
by elwarren (Priest) on Nov 08, 2004 at 20:06 UTC | |
|
Re: Diagram to Text and Vice Versa (DAG, RTN)
by toma (Vicar) on Nov 09, 2004 at 05:32 UTC | |
|
Re: Diagram to Text and Vice Versa (DAG, RTN)
by dave0 (Friar) on Nov 09, 2004 at 18:12 UTC |