From: V G Prakash <vprakash@cs.ulowell.edu>
Newsgroups: comp.soft-sys.khoros
Subject: Re:  postscript output of cantata
Date: 17 Dec 92 20:14:55 GMT


Thanks for the response.  Here are some clarifications.

1.Postscript of the program.
+> 
+>  I wanted to get a postscript (color) output of the cantata workspace (only)
+> with network of glyphs. Does khoros have a routine to do this?
+>         If it is not available (which is most likely, since I searched it) it
+
+Wrong! use getimage to produce a viff file from the cantata workspace window,
+then vpostscr to print the viff to a postcript file or device. If you cannot
+use getimage (doesn't work on all 24-bit screens), use the command 'xwd' that
+is is every standard X11-distribution. The resulting xwd-file can be converted
+to viff by 'xwdtopnm' from the pbmplus package or to postscript by 'xpr', again
+in the standard X11 distribution.

Well these are general methods known to most Xwindow programmers.
I was not referring to these indirect methods. 
What I wanted is that, there should be routine or an option on
cantata which when selected should produce a postscript file of the current
workspace and send it a printer. Another option is that the routine should 
just accept the workspace file as input and produce the postscript file. 
This is more user friendly. 

+> might worthwhile to be added in the new version.
+No need, as it's already there. Having the existing thing work on all 24-bit
+screens would be nice, though.

2. Label to Glyph

 
+>      In the present version, there is no facility for a user defined label to
+> glyph. It is necessary to have this feature especially in large programs.
+> I know there is comment glyph, which is not what I wanted.
+> Can this be implemented in future versions?
+
+Half wrong. You can do it now, by taking the .pane file of the program 
+you want to have a different label and edit the 3rd line from the top.
+
+Example: The file 
+    $KHOROS_HOME/repos/cantata/subforms/inputcreate2D/vgconst.pane
+    has the all the UI definitions for the routine vgconst. Make a copy of
+    it and edit the 3rd line from the top:
+
+-P 1 0 80x38+22+2 +10+0 'Image With Constant Pixel Values' vgconst
+                                                           ^^^^^^^
+    now put your private label at the marked position:
+
+-P 1 0 80x38+22+2 +10+0 'Image With Constant Pixel Values' prakassh
+
+
+Now you can start cantata an try your new glyph labels by reading your 
+new .pane-files with the 'read UIS' input under the file utilities menu.
+
+I personally don't believe it makes much sense implementing this in future
+versions of the regular glyphs, as the string real-estate on the regular 
+glyph symbols is very limited. User-composed 'glyphs/mini-panes' are a
+whole different story, though.

I do not think you understood the context I was suggesting.
To give an example, if there is a glyph used at several places, it is often
hard to remember what each of them is doing. If there were a facility to
put my own label which can be edited on the cantata workspace, then I would,
and it apparently makes it very easy for me remember without having to
go through its comment field. The ICONS in MAC has this facility. I do not
believe it is any harder to implement this. 

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
/*************************************************************\
/*                                                           *\
/* V.G.Prakash            Ph: off:  508-934-3613             *\ 
/*                           home:  508-454-5286             *\
/* Research Engineer                                         *\
/* Graphics Research Laboratory                              *\
/* University of Massachussets  *  Lowell       		      *\
/* Lowell, MA 01854                                          *\
/*************************************************************\
Newsgroups: comp.soft-sys.khoros