home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Selectware System
/
IBM57.ISO
/
hav10000
/
easyflow.psh
< prev
next >
Wrap
Text File
|
1990-06-10
|
9KB
|
282 lines
/bd {bind def} def
/thinline {0.5} bd %thickness of all not bold lines
/shadeline {2.25} bd %thickness of lines which shade boxes
/thickline {5} bd %thickness of bold lines
/NormHgt {-10} bd %height of text characters
/SubSupHgt {-5} bd %height of sub and superscript chars (1/2 of NormHgt)
/DblHgt {-20} bd %height of regular titles (2 * NormHgt)
/QuadHgt {-40} bd %height of large titles (4 * NormHgt)
/NormalFN {/Courier} bd %font used for not bold text
/BoldFN {/Courier-Bold} bd %font used for bold text
newpath 0 0 moveto 6 0 lineto 6 10 lineto 0 10 lineto closepath clip
/MenuVec [
65 /Alpha
66 /Beta
67 /Psi
68 /Delta
69 /Epsilon
70 /Phi
71 /Gamma
72 /Eta
73 /Iota
74 /Xi
75 /Kappa
76 /Lambda
77 /Mu
78 /Nu
79 /Omicron
80 /Pi
81 /space
82 /Rho
83 /Sigma
84 /Tau
85 /Theta
86 /Omega
87 /space
88 /Chi
89 /Upsilon
90 /Zeta
97 /alpha
98 /beta
99 /psi
100 /delta
101 /epsilon
102 /phi
103 /gamma
104 /eta
105 /iota
106 /xi
107 /kappa
108 /lambda
109 /mu
110 /nu
111 /omicron
112 /pi
113 /space
114 /rho
115 /sigma
116 /tau
117 /theta
118 /omega
119 /space
120 /chi
121 /upsilon
122 /zeta
] def
/ReEncodeDict 60 dict def
ReEncodeDict
begin
/BasefontDict /Symbol findfont def
/NewfontDict BasefontDict maxlength dict def
BasefontDict
{exch dup /FID ne
{dup /Encoding eq
{exch dup length array copy
NewfontDict 3 1 roll put}
{exch NewfontDict 3 1 roll put}
ifelse
}
{pop pop}
ifelse
} forall
NewfontDict /FontName /Greek put
MenuVec aload
length 2 idiv
{NewfontDict /Encoding get 3 1 roll put}
repeat
/Greek NewfontDict definefont pop
end
/NCVec [
161 /space
162 /Ccedilla
163 /udieresis
164 /eacute
165 /acircumflex
166 /adieresis
167 /agrave
168 /aring
169 /ccedilla
170 /ecircumflex
171 /edieresis
172 /egrave
173 /idieresis
174 /icircumflex
175 /igrave
176 /Adieresis
177 /Aring
178 /Eacute
179 /ae
180 /AE
181 /ocircumflex
182 /odieresis
183 /ograve
184 /ucircumflex
185 /ugrave
186 /ydieresis
187 /Odieresis
188 /Udieresis
189 /oslash
190 /sterling
191 /Oslash
192 /space
193 /florin
194 /aacute
195 /iacute
196 /oacute
197 /uacute
198 /ntilde
199 /Ntilde
200 /ordfeminine
201 /ordmasculine
202 /questiondown
203 /space
204 /logicalnot
205 /space
206 /space
207 /exclamdown
208 /guillemotleft
209 /guillemotright
210 /grave
211 /acute
212 /circumflex
213 /dieresis
214 /ring
215 /cedilla
216 /tilde
217 /macron
218 /breve
219 /dotaccent
] def
/ReEncodeDict 255 dict def
ReEncodeDict
begin
/BasefontDict NormalFN findfont def
/NewfontDict BasefontDict maxlength dict def
BasefontDict
{exch dup /FID ne
{dup /Encoding eq
{exch dup length array copy
NewfontDict 3 1 roll put}
{exch NewfontDict 3 1 roll put}
ifelse
}
{pop pop}
ifelse
} forall
NewfontDict /FontName /NC put
NCVec aload
length 2 idiv
{NewfontDict /Encoding get 3 1 roll put}
repeat
/NC NewfontDict definefont pop
end
/ReEncodeDict 255 dict def
ReEncodeDict
begin
/BasefontDict BoldFN findfont def
/NewfontDict BasefontDict maxlength dict def
BasefontDict
{exch dup /FID ne
{dup /Encoding eq
{exch dup length array copy
NewfontDict 3 1 roll put}
{exch NewfontDict 3 1 roll put}
ifelse
}
{pop pop}
ifelse
} forall
NewfontDict /FontName /NCB put
NCVec aload
length 2 idiv
{NewfontDict /Encoding get 3 1 roll put}
repeat
/NCB NewfontDict definefont pop
end
/dcr 0 def /dcg 0 def /dcb 0 def
/Widest {{stringwidth pop dup 3 2 roll dup 4 1 roll exch gt {pop} {exch pop} ifelse} forall} def
%PrintGreek (monospaces each character)
/PG {dup stringwidth pop TW exch sub 2 div dup 0 rmoveto exch IW exch 0 exch ashow 0 rmoveto} def
%CreateFont (scales and selects desired font)
/CF {FN findfont W H [1 0 0 1 0 0] scale makefont setfont} bd
%GetWidth (finds widest character in a font)
/GW {FN findfont 1 scalefont setfont
0
[(\0) (\1) (\2) (\3) (\4) (\5) (\6) (\7)] Widest
[(\10) (\11) (\12) (\13) (\14) (\15) (\16) (\17)] Widest
[(\20) (\21) (\22) (\23) (\24) (\25) (\26) (\27)] Widest
[(\30) (\31) (\32) (\33) (\34) (\35) (\36) (\37)] Widest
[(\40) (\41) (\42) (\43) (\44) (\45) (\46) (\47)] Widest
[(\50) (\51) (\52) (\53) (\54) (\55) (\56) (\57)] Widest
[(\60) (\61) (\62) (\63) (\64) (\65) (\66) (\67)] Widest
[(\70) (\71) (\72) (\73) (\74) (\75) (\76) (\77)] Widest
[(\100) (\101) (\102) (\103) (\104) (\105) (\106) (\107)] Widest
[(\110) (\111) (\112) (\113) (\114) (\115) (\116) (\117)] Widest
[(\120) (\121) (\122) (\123) (\124) (\125) (\126) (\127)] Widest
[(\130) (\131) (\132) (\133) (\134) (\135) (\136) (\137)] Widest
[(\140) (\141) (\142) (\143) (\144) (\145) (\146) (\147)] Widest
[(\150) (\151) (\152) (\153) (\154) (\155) (\156) (\157)] Widest
[(\160) (\161) (\162) (\163) (\164) (\165) (\166) (\167)] Widest
[(\170) (\171) (\172) (\173) (\174) (\175) (\176) (\177)] Widest
[(\200) (\201) (\202) (\203) (\204) (\205) (\206) (\207)] Widest
[(\210) (\211) (\212) (\213) (\214) (\215) (\216) (\217)] Widest
[(\220) (\221) (\222) (\223) (\224) (\225) (\226) (\227)] Widest
[(\230) (\231) (\232) (\233) (\234) (\235) (\236) (\237)] Widest
[(\240) (\241) (\242) (\243) (\244) (\245) (\246) (\247)] Widest
[(\250) (\251) (\252) (\253) (\254) (\255) (\256) (\257)] Widest
[(\260) (\261) (\262) (\263) (\264) (\265) (\266) (\267)] Widest
[(\270) (\271) (\272) (\273) (\274) (\275) (\276) (\277)] Widest
[(\300) (\301) (\302) (\303) (\304) (\305) (\306) (\307)] Widest
[(\310) (\311) (\312) (\313) (\314) (\315) (\316) (\317)] Widest
[(\320) (\321) (\322) (\323) (\324) (\325) (\326) (\327)] Widest
[(\330) (\331) (\332) (\333) (\334) (\335) (\336) (\337)] Widest
[(\340) (\341) (\342) (\343) (\344) (\345) (\346) (\347)] Widest
[(\350) (\351) (\352) (\353) (\354) (\355) (\356) (\357)] Widest
[(\360) (\361) (\362) (\363) (\364) (\365) (\366) (\367)] Widest
[(\370) (\371) (\372) (\373) (\374) (\375) (\376) (\377)] Widest
5 exch div
/W exch def
} bd
%selects one of the different fonts
/nf {/FN {/NC} def /TW 5 def /IW 1 def /H NormHgt def GW CF} bd
/sf {/FN {/NC} def /TW 5 def /IW 1 def /H SubSupHgt def GW CF} bd
/df {/FN {/NC} def /TW 10 def /IW 2 def /H DblHgt def GW W 2 mul /W exch def CF} bd
/qf {/FN {/NC} def /TW 20 def /IW 4 def /H QuadHgt def GW W 4 mul /W exch def CF} bd
/bf {/FN {/NCB} def /TW 5 def /IW 1 def /H NormHgt def GW CF} bd
/SG {/Greek findfont [6 0 0 NormHgt 0 0] makefont setfont /TW 5 def /IW 1 def} def
%abbreviated postscript commands
/slw {setlinewidth} bd
/mt {moveto} bd
/rmt {rmoveto} bd
/lt {lineto} bd
/rlt {rlineto} bd
/strk {stroke} bd
/slj {setlinejoin} bd
/dc {dcr dcg dcb setrgbcolor} bd dc
/colour {/dcb exch 1 sub dup 2 mod exch /dcr exch 2 idiv dup 2 mod exch /dcg exch 2 idiv def def def dc} bd
%selects different line styles
/nl {dc thinline slw [] 0 setdash} bd
/sl {dc shadeline slw} bd
/bl {dc thickline slw} bd
/dl {dc thinline slw [5 2] 0 setdash} bd
%line decorators
/au {2 slj 0 -4 rmt 3 -6 rlt 3 6 rlt strk 0 slj} bd
/ad {2 slj 0 -6 rmt 3 6 rlt 3 -6 rlt strk 0 slj} bd
/al {2 slj 6 -2 rmt -6 -3 rlt 6 -3 rlt strk 0 slj} bd
/ar {2 slj 0 -2 rmt 6 -3 rlt -6 -3 rlt strk 0 slj} bd
/cu {0 -10 rmt 3 6 rlt 3 -6 rlt strk} bd
/cd {3 -6 rlt 3 6 rlt strk} bd
/cl {0 -2 rmt 6 -3 rlt -6 -3 rlt strk} bd
/cr {6 -2 rmt -6 -3 rlt 6 -3 rlt strk} bd
/ch {3 -5 rmt currentpoint 2.5 0 rmt 2.5 0 360 arc strk} bd
/cv {3 -5 rmt currentpoint 2.5 0 rmt 2.5 0 360 arc strk} bd
/hb {3 -2 rmt 0 -6 rlt strk} bd
/vb {0 -5 rmt 6 0 rlt strk} bd
/chb {1 -3 rmt 0 -4 rlt currentpoint exch 2 add exch 2 180 0 arc 0 4 rlt currentpoint exch -2 add exch 2 0 180 arc strk} bd
/cvb {5 -3 rmt -4 0 rlt currentpoint -2 add 2 90 270 arc 4 0 rlt currentpoint 2 add 2 270 90 arc strk} bd
/atu {2 slj 0.5 -6 rmt 2.5 -4 rlt 2.5 4 rlt closepath fill 0 slj} bd
/atd {2 slj 0.5 -4 rmt 2.5 4 rlt 2.5 -4 rlt closepath fill 0 slj} bd
/atl {2 slj 4 -2.5 rmt -4 -2.5 rlt 4 -2.5 rlt closepath fill 0 slj} bd
/atr {2 slj 2 -2.5 rmt 4 -2.5 rlt -4 -2.5 rlt closepath fill 0 slj} bd