[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

858.0. "Rotated text in PostScript figures do not print" by CRAYON::GENT (Party gone out of bounds -- B52's) Fri Aug 28 1987 11:21

There is a problem including SIGHT or GRED files (processed through
RENDER) in DOCUMENT PostScript output when the figure contains 
rotated text. When you print the file, the LPS40 issues the 
following error:

	%LPS-W-TYPCHK, typecheck: Argument of wrong type - 
		offending command is putinterval

I believe this is occurring because the DOCUMENT prologue redefines the
PostScript operator concat. RENDER uses concat to rotate text, expecting
concat to require one matrix as an argument. However the new definition
expects a string and a value as the arguments.

As a general rule, I would think it is not a good idea to refine PostScript
operators. Could you please use a different procedure name for the DOCUMENT 
definition, or somehow protect included files from this trap?

Thank you,

--Andrew

P.S. I am using baselevel 9.
T.RTitleUserPersonal
Name
DateLines
858.1DECWET::KOSAKFri Aug 28 1987 17:109
    We just got bitten by this one too.  I hope a fix will be available
    soon (that is, something we can implement locally before a new
    baselevel is released).  Not being able to include rotated text
    has rendered many of our drawings unincludable, and is proving to
    be most cumbersome.
    
    By the way, text rotated at + or - 90 degrees will include.
    
    -- Craig
858.2Yup -- sorry about thatVAXUUM::DEVRIESM.D. -- your Device DoctorWed Sep 02 1987 17:407
    The analysis of the problem is correct (the prolog redefines "concat")
    and the proposed solution is also correct (it shouldn't).
    
    As a workaround -- can you edit the figure file to use "rotate"
    instead of "concat"?
    
    --Mark
858.3or vice versaCRAYON::GENTParty gone out of bounds -- B52'sThu Sep 03 1987 09:0111
    Hi Mark,
    
    Wouldn't the better approach be to edit the prologue and change
    concat to sonething like doc-concat? That way you only need to
    edit the prologue once, rather than editing every picture you draw?
    
    Is this possible? If so, where is the prologue kept?
    
    Thanks,
    
    --Andrew
858.4Yes, that's the way to go about itVAXUUM::DEVRIESM.D. -- your Device DoctorThu Sep 03 1987 09:5014
>    Wouldn't the better approach be to edit the prologue and change
>    concat to sonething like doc-concat? That way you only need to
>    edit the prologue once, rather than editing every picture you draw?
>    
>    Is this possible? If so, where is the prologue kept?

    Yes, that is what will be needed.  I'm not in a position to make
    such a change, test it, and distribute it right now, so I avoided
    the subject.  But if you want to do that, go right ahead.
    
    The prolog file is DOC$PS_FONTS:DVC$PROLOG.PS.
    
    Thanks,
    Mark
858.5CRAYON::GENTParty gone out of bounds -- B52'sThu Sep 03 1987 12:153
    Thanks Mark.
    
    --Andrew