⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 script-postscript-tso.txt

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 TXT
📖 第 1 页 / 共 4 页
字号:
                Waterloo SCRIPT and a PostScript Printer                       

                    Department of Computing Services                           

                         University of Waterloo                                
                           Waterloo, Ontario                                   
                            Canada  N2L 3G1                                    

                            October 18, 1988                                   


               (c) Department of Computing Services, 1988                      
                                                                               


 Waterloo SCRIPT and a PostScript Printer                      page iii        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        


                                ABSTRACT                                       

 This  document describes  the  current level  of  support in  Waterloo        
 SCRIPT  for any  printer with  a  PostScript interpretive  programming        
 language interface.   The  support has been developed  from specifica-        
 tions  documented in  PostScript Language  Manual  from Adobe  Systems        
 Incorporated.   It  is expected that  all information and  function of        
 this interface will apply to every PostScript printer,  no matter what        
 printing hardware is used in the implementation.                              

    It is  assumed that  the user  is already  familiar with  SCRIPTing        
 formatted documents to such devices as  fixed pitch terminals and line        
 printers.   Such concepts as control words, macro calls with operands,        
 text records and multiple SCRIPT input files are assumed.                     

    The effect  of this old  knowledge on  a new device  with different        
 capabilities is described.   New required information, the assumptions        
 made and the generated output are covered in two areas:  the first for        
 the end user and the second for those who care about how the device is        
 being driven.                                                                 
                                                                               

 page iv                       Waterloo SCRIPT and a PostScript Printer        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        
                                                                               

 Waterloo SCRIPT and a PostScript Printer                        page v        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        


                            ACKNOWLEDGEMENTS                                   

 The University of Waterloo has long  had the need to produce formatted        
 text on the  printed page with the highest possible  level of quality.        
 The PostScript language interface was of immediate interest because it        
 adapts  so  easily to  the  tradeoffs  of different  devices.    Laser        
 printers  and typesetters  with  different  qualities and  speeds  are        
 becoming available  from an increasing  variety of vendors.    All the        
 devices can be driven from an identical data stream.                          

    The idea that PostScript should be supported by SCRIPT as an output        
 device was initiated  by Matthew Foley of Adobe Systems  in the spring        
 of 1985.  At the time, PostScript was merely a word and the PostScript        
 Language Manual was somewhat overwhelming.                                    

    The first experiments in supporting this printer were done by Allan        
 Hetzel of the Computing Center at  the University of Kentucky.   Allan        
 adapted the  Xerox 2700 device  definition to PostScript  with limited        
 success,   but  his  pioneering efforts  demonstrated  that  much  was        
 possible.   A prototype PostScript post-processor  was written in REXX        
 at the University of Kentucky which  contributed greatly to our devel-        
 opment efforts.  Without it, none of the SCRIPT generated output could        
 be printed.                                                                   

    We also want  to express our thanks to QMS  (Quality Micro Systems)        
 for providing a beta version of the QMS-PS 800 printer for evaluation.        
 The  experience proved  to be  totally  uneventful because  everything        
 worked as documented.                                                         
                                                                               

 page vi                       Waterloo SCRIPT and a PostScript Printer        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        
                                                                               

 Waterloo SCRIPT and a PostScript Printer                      page vii        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        


                                CONTENTS                                       


 Abstract  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  iii        

 Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . . .  v        


 Part 1:  User Interface for Adobe PostScript  . . . . . . . . . . .  1        

    External Differences . . . . . . . . . . . . . . . . . . . . . .  1        
       Characters per Inch . . . . . . . . . . . . . . . . . . . . .  1        
       PostScript Printer Option . . . . . . . . . . . . . . . . . .  2        
    User Modifications . . . . . . . . . . . . . . . . . . . . . . .  2        
       User Generated Comments . . . . . . . . . . . . . . . . . . .  2        
       User Modified Characters  . . . . . . . . . . . . . . . . . .  3        
    Unimplemented SCRIPT PostScript Functions  . . . . . . . . . . .  3        


 Part 2:  PostScript Interface File  . . . . . . . . . . . . . . . .  5        

    Supported PostScript Fonts . . . . . . . . . . . . . . . . . . .  5        
       Supported Font Names  . . . . . . . . . . . . . . . . . . . .  5        
       Underscored Fonts . . . . . . . . . . . . . . . . . . . . . .  7        
    PostScript Device Interface  . . . . . . . . . . . . . . . . . .  7        
       Logical Font Definitions  . . . . . . . . . . . . . . . . . .  7        
       PostScript Font Definition  . . . . . . . . . . . . . . . . .  7        
       PostScript Font Selection . . . . . . . . . . . . . . . . . .  8        
       PostScript Print Definition . . . . . . . . . . . . . . . . .  8        
    PostScript Physical Font Definitions . . . . . . . . . . . . . .  9        
    PostScript Logical Font Definitions  . . . . . . . . . . . . . .  9        
       Input Character Definitions . . . . . . . . . . . . . . . . .  9        
    Generated Job Directory Comments . . . . . . . . . . . . . . . . 10        


 Part 3:  PostScript Device Interface  . . . . . . . . . . . . . . . 11        

    Device Definition  . . . . . . . . . . . . . . . . . . . . . . . 11        
    Device Output Appendage  . . . . . . . . . . . . . . . . . . . . 12        
       Appendage Job Directory Comments  . . . . . . . . . . . . . . 12        
       Appendage Text  . . . . . . . . . . . . . . . . . . . . . . . 13        
       Appendage End of Page . . . . . . . . . . . . . . . . . . . . 13        


 Part 4:  PostScript Post-Processor  . . . . . . . . . . . . . . . . 15        

    Purpose  . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15        
    POSTS Physical Font Definitions  . . . . . . . . . . . . . . . . 16        
    Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16        
    Invocation Options . . . . . . . . . . . . . . . . . . . . . . . 18        
    Escape Sequences Used In POSTS Files . . . . . . . . . . . . . . 19        
       Format  . . . . . . . . . . . . . . . . . . . . . . . . . . . 19        
                                                                               

 page viii                     Waterloo SCRIPT and a PostScript Printer        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        


       Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 20        
    OS Batch Invocation  . . . . . . . . . . . . . . . . . . . . . . 21        
    CMS EXEC Invocation  . . . . . . . . . . . . . . . . . . . . . . 21        
    Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . 22        
                                                                               

 Waterloo SCRIPT and a PostScript Printer                        page 1        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        


                                 Part 1                                        

                  USER INTERFACE FOR ADOBE POSTSCRIPT                          


                                                                               
 This part describes the support in  SCRIPT to produce formatted output        
 that  may be  sent  to an  Adobe PostScript  printer  through a  post-        
 processor to  generate the native  "PostScript" input language  of the        
 printer controller.   It is assumed that  the end user knows something        
 about  the general  concepts and  capabilities of  PostScript but  not        
 necessarily much about the instructions that make it work.                    


                                                                               
                          EXTERNAL DIFFERENCES                                 

 When it  was decided  to add Adobe  PostScript to  the list  of SCRIPT        
 output devices,  the primary rule was one of compatibility.   The user        
 should be able to create a SCRIPT input file with no concern about the        
 device on which it will ultimately appear.  The fact that a PostScript        
 printer is  the target output  device and the  Fonts to use,   must be        
 specified.   Other  differences might occur  within the input  file to        
 take advantage of features peculiar to the device.                            


 Characters per Inch                                                           

 PostScript supports  a wide  variety of  fixed pitch  and proportional        
 fonts in different sizes.  A single output line may contain characters        
 from different fonts.    All characters in all fonts may  be scaled to        
 many different pointsizes.  Since the relative widths of these charac-        
 ters are defined  in terms of 1000  units per "em space"  the internal        
 resolution of SCRIPT is 72000 horizontal units per inch.                      

    A document might contain ".IN 5",  meaning "Indent on the left five        
 characters".   To continue to support such  a control word,  a meaning        
 for "5" must be found.   Does it mean five 10 pitch,  five 12 pitch or        
 five proportional blanks?   There is  an invocation parameter "CPI nn"        
 that specifies how  wide each Indent Character is,   regardless of the        
 pitch of the  font being used.   A  "CPI 10" (which is default)   or a        
 "CPI 12" would normally  be the two possible values.    The meaning of        
 control words with  numeric operands that affect  the horizontal posi-        
 tioning of  text would  be interpreted  with CPI.    A Line  Length of        
 ".LL 60" at "CPI 10"  would be a six  inch Line Length,  but  the same        
 ".LL 60" at "CPI 12" would be a five inch Line Length.                        

    A Line  Length specified  in absolute units  such as  ".LL 6.5i" is        
 converted to enough "characters" to fill six and a half inches.               
                                                                               

 page 2                        Waterloo SCRIPT and a PostScript Printer        
 哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪        


 PostScript Printer Option                                                     

 To select PostScript as the SCRIPT  output device,  the "POSTS" option        
 must be specified in the parameter list.   The "POSTS" option causes a        
 table  of escape  functions  to be  enabled  within  SCRIPT to  direct        

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -