Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000397graphvizOutput Generationpublic2004-05-26 00:002011-04-28 04:02
ReporterBinayak Banerjee 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-*OS Version
Summary0000397: Custom postscript code nodes broken
Description



I required some custom shapes, so I cracked open the postscript book and
generated those
I needed using DFDbox (from the example) as a guide. All of these show up
quite well in ghostscript.
Unfortunately, ghostscript barfs (technical term) when I try to use these
as a shape in the dot
input eg. [shape=cloud]. This follows the section on user defined
postscript procedures.



Going back to basics, I created the following dot file:
<CD>
digraph testit {



      n1 [shape=box];
      n2 [shape=ellipse];



      n1->n2;
}
</CD>



invoking this as: dot -Tps -o OUT1.ps testit.dot
This works as expected.



Then I tried invoking it as:



dot -Tps -l DFDbox.ps -o OUT2.ps testit.dot



Here ghostscript barfs again. Inspecting the two files, I found that
OUT1.ps contains a great deal of preliminary setup
in the postscript that is omitted when specifying the library (in the
latter case). It appears as though specification of a
library via the -l flag means that the standard postscript header stuff is
not included. Copying the excluded material
to the header of OUT2.ps generated the expected diagram.



Next experiment was to change the shape of n1 above to DFDbox. This
resulted in the message from dot that:



Error: No or improper shapefile="<nil>" on user-defined shape="DFDbox" on
node n1.



Of course, I tried to put in the shapefile attribute for n1 [shapefile
="DFDbox.ps",shape=DFDbox]. With the quotes, it claims
that this is a missing or incorrect shapefile. Without the quotes I have a
parse error.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID458
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (28 May 2004)
VERSION 1.11
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => erg


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker