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

📄 script-postscript-tso.txt

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 TXT
📖 第 1 页 / 共 4 页
字号:
 provided to define up to four  Logical Fonts of the PostScript printer        
 into a single Font Name.  A Logical Font is a set of characters chosen        
 from the available Physical Fonts.                                            


 PostScript Font Definition                                                    

 The "POSTS" interface  file must be imbedded in a  document before any        
 text may be entered in the input  file.   If the document is not being        
 formatted for a  PostScript printer,  the interface file  may still be        
 imbedded as  the interface  first checks that  the "POSTS"  option has        
 been specified before defining the Font Names that may be used.               

    When the "POSTS"  interface is imbedded,  up to  four Physical Font        
 Names may be provided as operands.                                            

       .im POSTS FONT fontname name1 name2 name3 name4                         

 where:                                                                        

 fontname  is an identifier of up to  twelve characters of your choice.        
           It is treated as if entered in  uppercase and may be used in        
           Begin Font (.BF) control words throughout the document.             

 name1     is the Font Name to be used for Normal text in the document.        
           The "-U"  suffix should be  avoided for "name1".    The Font        
           Name  may be  specified  with the  desired  pointsize as  an        
           integer following the name and separated with a blank.              

 name2     is the Font  Name to use for Underscored (.US)   text or any        
           character overstruck with  an underscore in the  input.   If        
           this  is  omitted then  "name2"  defaults  to the  value  of        
           "name1".                                                            

 name3     is the Font Name to use for BOLD (.BD) text or any character        
           overstruck with  itself in the  input.   If this  is omitted        
           then Bold text will appear as "name2" text.                         
                                                                               

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


 name4     is the Font Name  to use for Bold Italic (.BI)   text or any        
           character both overstruck with itself and an underscore.  If        
           omitted then "name4" defaults to the value of "name3".              

 The following  example defines the  Times-Roman font for  normal text,        
 Times-Italic for italic, Times-Bold for boldface and the same font but        
 underscored for bold-italic.  A "fontid" name of TEXT is assigned:            

  .im POSTS FONT text Time TimeI TimeB TimeB-U                                 

 This example defines a Font Name of MONO to be made up with members of        
 the Courier family of monospaced fonts:                                       

  .im POSTS FONT mono Cour Cour-U CourB CourB-U                                

 This  example defines  a Font  Name of  NORM to  be made  up with  the        
 Helvetica family in pointsize 8:                                              

  .im POSTS FONT norm Helv 8 HelvO 8 HelvB 8 HelvBO 8                          


 PostScript Font Selection                                                     

 The "fontname" specified in the first invocation of the "POSTS" inter-        
 face file will be  in effect for the start of  the job.   The Physical        
 Font Name arguments  are available for the normal,   italic,  bold and        
 bold-italic text that follows.                                                

    All defined "fontname"s can be  manipulated throughout the document        
 by using the Begin Font (.BF)  and Previous Font (.PF)  control words.        
 The use of the  Font Names Definitions may be nested up  to a level of        
 twenty,  so  each ".BF"  should be paired  with a  corresponding ".PF"        
 control word.   The first Font Name  Definition cannot be removed with        
 the Previous Font control word.                                               


 PostScript Print Definition                                                   

 A character string  may be passed to  the output file to  document the        
 purpose of  the file.    By default this  will be  set to  a character        
 string that identifies  the version of SCRIPT used,  and  the time and        
 date when the job was formatted.   This  may be defined to any desired        
 string with the POSTS Interface File.                                         

  .im POSTS PRINT arbitrary character string                                   

 Such a PRINT definition must precede any logical font definition.             
                                                                               

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


                  POSTSCRIPT PHYSICAL FONT DEFINITIONS                         

 When SCRIPT  is creating output for  the PostScript printer,   a table        
 containing all  the available  physical fonts and  the width  of every        
 possible character in those fonts  is loaded dynamically.   This table        
 is called "PDPOSTS".   If new fonts are acquired for the printer, then        
 the  physical name  of these  fonts and  the width  of each  character        
 within the font  must be added to  the table of Physical  Font Defini-        
 tions.                                                                        


                                                                               
                  POSTSCRIPT LOGICAL FONT DEFINITIONS                          

 The characters  that any document requires  always seem to  exceed the        
 characters available  in a single Physical  Font.   This can  be espe-        
 cially  true of  special symbols  for special  disciplines of  foreign        
 languages.   A Logical Font Definition  allows the input characters to        
 be selected from one or more Physical Fonts that may be available, but        
 all the input characters appear to belong to a single font.                   

    The Logical Fonts that SCRIPT will process are created by the POSTS        
 Interface file.  SCRIPT treats the PostScript device as an intelligent        
 terminal with multiple font capabilities.  Up to four PostScript fonts        
 may be specified as operands.  Each font is first validated as being a        
 known PostScript Font.   Note that a font and a font with underscoring        
 count as a single font.  The mapping of font to member name is defined        
 in file  "POSTS@" which is listed  in the Appendices.    The interface        
 file  generates a  Job Directory  Comment that  defines the  reference        
 number for the Physical Font Name to the post-processor.                      


 Input Character Definitions                                                   

 The input characters in a SCRIPT file  are mapped to a character posi-        
 tion through a table known as  a "CODEPAGE".   Any number of Codepages        
 may be  defined for  special purpose  mapping of  input characters  to        
 character position in a Physical Font.                                        

    An input character within a Codepage is defined as follows:                

       .PH ichar font# ochar                                                   

 where:                                                                        

 ichar     is a character to be found in an input text line.  It may be        
           entered as a single character or a hexadecimal pair.                

 font#     is a relative font number to access the character.  This may        
           be a number  in the range of  1 to 10.   A  Logical Font may        
           thus  be composed  of  characters from  up  to ten  Physical        
           Fonts.                                                              
                                                                               

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


 ochar     is the character  to be entered in the  formatted text file.        
           It would  normally be the same  as the "ichar" but  might be        
           different to emulate the standard EBCDIC character mappings.        
           It may  be entered  as a single  character or  a hexadecimal        
           pair.                                                               


                                                                               
                    GENERATED JOB DIRECTORY COMMENTS                           

 The  following pattern  Job Directory  Comments are  generated in  the        
 output  file before  any  text.   By  inserting  Output Comment  (.OC)        
 control words after imbedding POSTS,  any  or all of the generated Job        
 Directory Comments can be changed but this is strongly discouraged.           

 <esc>*                                                                        
    A Job Comment always begins the list of Job Directory Comments.  It        
    may be defined with the ".im  POSTS PRINT" command and will default        
    to a string defining the version of SCRIPT,  and the time and date.        
    The entire record will be ignored by the post-processor.                   

 <esc>Fn,member,codepage,'Physical Font Name'.                                 
    These  Font Directory  comments  are  generated between  the  Print        
    command and the start of print data.  One Font Directory command is        
    generated for each unique Physical Font Name required to define the        
    font requirements  of the job.    The value  of "n" has  been arbi-        
    trarily assigned for each possible font.                                   

       Following  the Font  Number  is the  actual  Physical Font  Name        
    represented by the number within the print data.                           
                                                                               

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


                                 Part 3                                        

                      POSTSCRIPT DEVICE INTERFACE                              


                                                                               
 This part  describes the support  in SCRIPT  to drive the  Adobe Post-        
 Script as  an output device.    The characteristics of  the PostScript        
 that are used  are described and the SCRIPT capabilities  that make it        
 possible are reviewed.                                                        


                                                                               
                           DEVICE DEFINITION                                   

 When a  user includes the "POSTS"  option in the  invocation parameter        
 list,  a table of output device characteristics is selected.   Some of        
 the characteristics do exist in reality on the device but others are a        
 convenient, high level characteristic that is emulated just before the        
 output record is written to the output file.                                  

    The following describes the functions that are thought to exist for        
 the PostScript:                                                               

 Adjust:  Global Adjust  and Even/Odd Adjust are  fully supported.   An        

⌨️ 快捷键说明

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