[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: input/regression/graphviz.ly

From: Stan Sanderson
Subject: Re: input/regression/graphviz.ly
Date: Fri, 30 Nov 2007 20:37:29 -0600

On Nov 30, 2007, at 7:07 PM, Joe Neeman wrote:

On Sat, 1 Dec 2007 11:28:11 Graham Percival wrote:
Stan Sanderson wrote:
Would you briefly explain what I might expect from the the graphviz.ly example? I'm not sure whether #(graph-write graph (current-error- port)) would/should do anything on my Mac. I do have Graphviz.app v.1.13 on my
machine, but have not worked with it.

The contents of a graphviz-readable file should be dumped to the console (or a log file?). If you save lilypond's output (from "digraph G" to the end) to a
file named test.dot and run
$ dot -Tps test.dot -o test.ps
(or using graphviz somehow from the gui -- I don't know how, sorry) then you
should get a .ps file that shows internal interactions between grobs.

Since this output is mainly used for internal debugging, I'm not exactly sure what counts as a regression. I suppose as long as the output works with graphviz to correctly render a graph, it counts as working. I've just checked that it works for me with graphviz version 2.12; if it doesn't work with your
version, I'll add a comment to that effect in the file.


Thanks for the explanation. I did as you suggested (running from the terminal) and copied the output for the regression example. This is what was generated:

digraph G {
node [shape=rectangle]

I saved the file, opened it with Graphviz, and (!) a rectangle was drawn. I'll assume it is working.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]