| 1 |
divert(-1) |
| 2 |
% Lettering.defs |
| 3 |
% Lettering definitions |
| 4 |
|
| 5 |
define(`Letter_init', |
| 6 |
`# Letter grid parameters |
| 7 |
lu = 0.07 |
| 8 |
define(`grthick',`0.4') |
| 9 |
define(`letterlinethick',`(lu/0.07)*1.2') |
| 10 |
define(`ft2',`(linethick/2)pt__') |
| 11 |
linethick_(letterlinethick) |
| 12 |
|
| 13 |
ifelse(m4postprocessor,pstricks, |
| 14 |
` \newgray{gridgray}{0.75} |
| 15 |
\newgray{lightgridgray}{0.80} |
| 16 |
\newgray{linegray}{0.40}', |
| 17 |
m4postprocessor,pgf, |
| 18 |
` \definecolor{gridgray}{rgb}{0.433,0.433,0.433} |
| 19 |
\definecolor{lightgridgray}{rgb}{0.8,0.8,0.8} |
| 20 |
\definecolor{linegray}{rgb}{0.231,0.231,0.231}', |
| 21 |
m4postprocessor,mpost, |
| 22 |
` define(`gridgray',`0.433,0.433,0.433') |
| 23 |
define(`lightgridgray',`0.8,0.8,0.8') |
| 24 |
define(`linegray',`0.231,0.231,0.231')', |
| 25 |
# else |
| 26 |
` define(`gridgray',`0.5 0.5 0.5') |
| 27 |
define(`lightgridgray',`0.8 0.8 0.8') |
| 28 |
define(`linegray',`0.3 0.3 0.3')') |
| 29 |
ifpstricks(`command `"\makeatletter \def\psas@@c{setlinecap 0 0 moveto"' |
| 30 |
command `" 0 0.1 L stroke 0 0 moveto } \makeatother"'') |
| 31 |
`# Letter_init end' |
| 32 |
') |
| 33 |
|
| 34 |
# graph coordinate system |
| 35 |
define(`gco',`(vscal_(lu,$1,$2))') |
| 36 |
|
| 37 |
% `Stroke arrow |
| 38 |
% stroke(linespec,vert offset,label,<-,linelabel)' |
| 39 |
define(`setstroke',`ifmpost( |
| 40 |
`setrgb(0,0,0)', |
| 41 |
`psset_(linecolor=black,arrows=-)')dnl |
| 42 |
linethick_(0.3); arrowwid = 1.6pt__ ; arrowht = 3pt__') |
| 43 |
|
| 44 |
define(`stroke',`rpoint_(`$1') ; { setstroke |
| 45 |
m4lth = linethick |
| 46 |
ifelse((`$2'),(),,`if (`$2') != 0 then { move to rvec_(0,`$2') }') |
| 47 |
ifelse(`$3',,,`ifelse(index(`$3',"),0,`{$3}',{"`$3'"})') |
| 48 |
ifelse(`$5',,,`$5':)line ifelse(`$4',,->,`$4') to rvec_(rp_len,0) dnl |
| 49 |
chop 3pt__ chop 0 |
| 50 |
linethick_(m4lth) } |
| 51 |
') |
| 52 |
|
| 53 |
# non-normalized line at 90 deg to line argument |
| 54 |
define(`perp',`(`$1'.start.y-`$1'.end.y),(`$1'.end.x-`$1'.start.x) ') |
| 55 |
|
| 56 |
define(`grid', |
| 57 |
` lthtmp = linethick; linethick = grthick |
| 58 |
ifmpost(`setrgb(gridgray)',`psset_(linecolor=gridgray)') |
| 59 |
for i=0 to $1 do { |
| 60 |
{ line up ($2)*lu from gco(i,0) } } |
| 61 |
for j=0 to $2 do { |
| 62 |
{ line right ($1)*lu from gco(0,j) } } |
| 63 |
psset_(`linecolor=black') |
| 64 |
linethick = lthtmp ') |
| 65 |
|
| 66 |
define(`elarrow',`i = ifelse(`$7',,-1,`$7') |
| 67 |
for theta = `$1' to `$2' by `$3' do { i = i+1 |
| 68 |
V[i]: `$4'+((`$5')*cosd(theta),(`$6')*sind(theta)) } |
| 69 |
fitcurve(V,i,->) ') |
| 70 |
|
| 71 |
define(`charA', |
| 72 |
`[Origin: gco(0,0) `#' `charA' |
| 73 |
ifelse(`$1',,,`grid(6,6)') |
| 74 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 75 |
L1: line from gco(3,6)+(0,-ft2) to gco(0,0)+(ft2,ft2) |
| 76 |
L2: line from gco(3,6)+(0,-ft2) to gco(6,0)+(-ft2,ft2) |
| 77 |
L3t: line invis from gco(0,2)+(0,ft2) right lu |
| 78 |
L3: line from Intersect_(L1,L3t) to Intersect_(L2,L3t) |
| 79 |
ifelse(`$1',,,` |
| 80 |
stroke(from L1.start to L1.end chop lu ,-lu*0.75,1) |
| 81 |
stroke(from L2.start to L2.end chop lu , lu*0.75,2) |
| 82 |
stroke(from L3.start to L3.end chop lu/3,-lu*0.75,3) ') |
| 83 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 84 |
|
| 85 |
define(`charB', |
| 86 |
`[Origin: gco(0,0) `#' `charB' |
| 87 |
ifelse(`$1',,,`grid(6,6)') |
| 88 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 89 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 90 |
mid = 3.3*lu-ft2 |
| 91 |
topht = 6*lu-2*ft2-mid |
| 92 |
L2: line right_ 5*lu-2*ft2-mid/2 |
| 93 |
L5: arc ccw to Here+(0,mid) with .c at Here+(0,mid/2) |
| 94 |
L3: line from (L1,Here) to Here |
| 95 |
l4l = 4.5*lu-2*ft2-topht/2 |
| 96 |
L4: line from L1.start right_ l4l |
| 97 |
L7: arc cw to Here+(0,-topht) with .c at Here+(0,-topht/2) |
| 98 |
ifelse(`$1',,,` |
| 99 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 100 |
stroke(from L2.start to L2.end chop lu/3,-lu*0.75,2) |
| 101 |
stroke(from L3.start to L3.end chop lu*.75 chop 0,-lu*0.75,3) |
| 102 |
move to L4.start+(0,.75*lu) |
| 103 |
{"4"}; line right l4l chop 3pt__ chop 0 |
| 104 |
arcd(Here-(0,.75*lu+topht/2),.75*lu+topht/2,90,-30) cw -> |
| 105 |
"5" below ljust |
| 106 |
arcd(L2.end+(0,mid/2),mid/2+0.75*lu,15,-90) cw -> ') |
| 107 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 108 |
|
| 109 |
define(`charC', |
| 110 |
`[Origin: gco(0,0) `#' `charC' |
| 111 |
ifelse(`$1',,,`grid(6,6)') |
| 112 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 113 |
ifelse(`$1',,,`circle rad 3*lu-ft2 thick 0.3 dashed at gco(3,3)') |
| 114 |
arcr(gco(3,3),3*lu-ft2,atan2(2.5,1.5),atan2(-2,2.0)) |
| 115 |
ifelse(`$1',,,` |
| 116 |
setstroke |
| 117 |
"1" at gco(3,6) above rjust |
| 118 |
arcd(gco(3,3),3.75*lu,105,atan2(-2,2.1)*rtod_) -> |
| 119 |
"2" at gco(3,6) above ljust |
| 120 |
arcd(gco(3,3),3.75*lu,75,atan2(2.5,1.5)*rtod_) cw -> ') |
| 121 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 122 |
|
| 123 |
define(`charD', |
| 124 |
`[Origin: gco(0,0) `#' `charD' |
| 125 |
ifelse(`$1',,,`grid(6,6)') |
| 126 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 127 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 128 |
lr = 3*lu-ft2 |
| 129 |
L2: line right 5*lu-ft2-lr |
| 130 |
arcd(Here+(0,lr),lr,-90,90) |
| 131 |
line to L1.start |
| 132 |
ifelse(`$1',,,` |
| 133 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 134 |
stroke(from L2.start to L2.end chop lu/3 chop lu/8,-lu*0.75,2) |
| 135 |
move to L1.start+(0,.75*lu) |
| 136 |
{"3"}; line right 5*lu-ft2-lr chop 3pt__ chop 0 |
| 137 |
arcd(Here-(0,.75*lu+lr),.75*lu+lr,90,-90) cw -> ') |
| 138 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 139 |
|
| 140 |
define(`charE', |
| 141 |
`[Origin: gco(0,0) `#' `charE' |
| 142 |
ifelse(`$1',,,`grid(6,6)') |
| 143 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 144 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 145 |
L2: line right 5*lu-2*ft2 |
| 146 |
L3: line from L1.start right 4.5*lu-2*ft2 |
| 147 |
L4: line from gco(0,3.2)+(ft2,0) right 3*lu-2*ft2 |
| 148 |
ifelse(`$1',,,` |
| 149 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 150 |
stroke(from L2.start to L2.end chop lu/2 chop lu/3,-lu*0.75,2) |
| 151 |
stroke(from L3.start to L3.end chop lu*.75 chop lu/3,-lu*0.75,3) |
| 152 |
stroke(from L4.start to L4.end chop lu*.75 chop lu/3,-lu*0.75,4) ') |
| 153 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 154 |
|
| 155 |
define(`charF', |
| 156 |
`[Origin: gco(0,0) `#' `charF' |
| 157 |
ifelse(`$1',,,`grid(6,6)') |
| 158 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 159 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 160 |
L2: line from L1.start right 5*lu-2*ft2 |
| 161 |
L3: line from gco(0,3.2)+(ft2,0) right 3*lu-2*ft2 |
| 162 |
ifelse(`$1',,,` |
| 163 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 164 |
stroke(from L2.start to L2.end chop lu*.75 chop lu/3,-lu*0.75,2) |
| 165 |
stroke(from L3.start to L3.end chop lu*.75 chop lu/3,-lu*0.75,3) ') |
| 166 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 167 |
|
| 168 |
define(`charG', |
| 169 |
`[Origin: gco(0,0) `#' `charG' |
| 170 |
ifelse(`$1',,,`grid(6,6)') |
| 171 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 172 |
ifelse(`$1',,,`circle rad 3*lu-ft2 thick 0.3 dashed at gco(3,3)') |
| 173 |
L3: line from gco(3,3) to gco(5,3) then to gco(5,1) |
| 174 |
arcr(gco(3,3),3*lu-ft2,atan2(2.5,1.5),atan2(-2,2.0)) |
| 175 |
ifelse(`$1',,,` |
| 176 |
setstroke |
| 177 |
"1" at gco(3,6) above rjust |
| 178 |
arcd(gco(3,3),3.75*lu,105,atan2(-2,2.1)*rtod_) -> |
| 179 |
"2" at gco(3,6) above ljust |
| 180 |
arcd(gco(3,3),3.75*lu,75,atan2(2.5,1.5)*rtod_) cw -> |
| 181 |
line from L3.start+(0,-.75*lu) right 1.2*lu chop .5*lu chop 0 |
| 182 |
{ "3" at last line.start rjust } |
| 183 |
arrow down 1.2*lu ') |
| 184 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 185 |
|
| 186 |
define(`charH', |
| 187 |
`[Origin: gco(0,0) `#' `charH' |
| 188 |
ifelse(`$1',,,`grid(6,6)') |
| 189 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 190 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 191 |
L2: line from gco(5,6)+(0,-ft2) to gco(5,0)+(0,ft2) |
| 192 |
L3: line from gco(0,3.2)+(ft2,0) to gco(5,3.2) |
| 193 |
ifelse(`$1',,,` |
| 194 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 195 |
stroke(from L2.start to L2.end chop lu/3, lu*0.75,2) |
| 196 |
stroke(from L3.start to L3.end chop lu*.75 chop lu/3,-lu*0.75,3) ') |
| 197 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 198 |
|
| 199 |
define(`charI', |
| 200 |
`[Origin: gco(0,0) `#' `charI' |
| 201 |
ifelse(`$1',,,`grid(1,6)') |
| 202 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 203 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 204 |
ifelse(`$1',,,` |
| 205 |
stroke(from L1.start to L1.end chop lu/3, lu*0.75,1) ') |
| 206 |
box invis wid 2*ft2 ht 6*lu with .sw at Origin]') |
| 207 |
|
| 208 |
define(`charJ', |
| 209 |
`[Origin: gco(0,0) `#' `charJ' |
| 210 |
ifelse(`$1',,,`grid(6,6)') |
| 211 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 212 |
v = (sqrt(2)-1)*4/3 |
| 213 |
al = 2.5*lu-ft2 |
| 214 |
bl = 2.0*lu-ft2/2 |
| 215 |
CL: gco(2.5,4.0)+(0,-bl) |
| 216 |
E: ellipse ht 2*bl wid 2*al thick 0.3 ifelse(`$1',,invis,dashed) at CL |
| 217 |
L1: line from (E.e,gco(0,6)+(ft2,-ft2)) to E.e |
| 218 |
spline v to (E.e,E.s) then to (E.w,E.s) then to E.w |
| 219 |
ifelse(`$1',,,` |
| 220 |
stroke(from L1.start to L1.end chop lu/3, lu*0.75,1) |
| 221 |
"2" at gco(-.5,1.5) |
| 222 |
spline v -> from gco(-0.4,0.75) to gco(-0.2,-0.65) then to gco(5.65,-0.65) \ |
| 223 |
then to gco(5.65,2) ') |
| 224 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 225 |
|
| 226 |
define(`charK', |
| 227 |
`[Origin: gco(0,0) `#' `charK' |
| 228 |
ifelse(`$1',,,`grid(6,6)') |
| 229 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 230 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 231 |
L3t:line ifelse(`$1',,invis,dashed) thick 0.3 from L1.start \ |
| 232 |
to gco(5,0)+(-ft2,ft2) |
| 233 |
L2: line from gco(4.5,6)+(0,-ft2) to gco(0,2)+(ft2,0) |
| 234 |
L3: line from Intersect_(L3t,L2) to L3t.end |
| 235 |
ifelse(`$1',,,` |
| 236 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 237 |
stroke(from L2.start to L2.end chop lu*4/3 chop lu,-lu*0.75,2) |
| 238 |
stroke(from L3.start to L3.end chop lu*.75 chop lu/3, lu*0.75,3) ') |
| 239 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 240 |
|
| 241 |
define(`charL', |
| 242 |
`[Origin: gco(0,0) `#' `charL' |
| 243 |
ifelse(`$1',,,`grid(6,6)') |
| 244 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 245 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 246 |
L2: line to gco(5,0)+(-ft2,ft2) |
| 247 |
ifelse(`$1',,,` |
| 248 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 249 |
stroke(from L2.start to L2.end chop lu/3,-lu*0.75,2) ') |
| 250 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 251 |
|
| 252 |
define(`charM', |
| 253 |
`[Origin: gco(0,0) `#' `charM' |
| 254 |
ifelse(`$1',,,`grid(6,6)') |
| 255 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 256 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 257 |
L2: line from gco(6,6)+(-ft2,-ft2) to gco(6,0)+(-ft2,ft2) |
| 258 |
L3: line from L1.start to gco(3,0)+(0,ft2) |
| 259 |
L4: line from L2.start to gco(3,0)+(0,ft2) |
| 260 |
ifelse(`$1',,,` |
| 261 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 262 |
stroke(from L2.start to L2.end chop lu/3, lu*0.75,2) |
| 263 |
stroke(from L3.start to L3.end chop lu*.75 chop lu*2, lu*0.75,3) |
| 264 |
stroke(from L4.start to L4.end chop lu*.75 chop lu*2,-lu*0.75,4) ') |
| 265 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 266 |
|
| 267 |
define(`charN', |
| 268 |
`[Origin: gco(0,0) `#' `charN' |
| 269 |
ifelse(`$1',,,`grid(6,6)') |
| 270 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 271 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 272 |
L2: line from gco(5,6)+(0,-ft2) to gco(5,0)+(0,ft2) |
| 273 |
L3: line from L1.start to L2.end |
| 274 |
ifelse(`$1',,,` |
| 275 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 276 |
stroke(from L2.start to L2.end chop lu/3, lu*0.75,2) |
| 277 |
stroke(from L3.start to L3.end chop lu*1.0 chop lu*1.5, lu*0.75,3) ') |
| 278 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 279 |
|
| 280 |
define(`charO', |
| 281 |
`[Origin: gco(0,0) `#' `charO' |
| 282 |
ifelse(`$1',,,`grid(6,6)') |
| 283 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 284 |
circle rad 3*lu-ft2 at gco(3,3) |
| 285 |
ifelse(`$1',,,` |
| 286 |
setstroke |
| 287 |
"1" at gco(3,6) above rjust |
| 288 |
arcd(gco(3,3),3.75*lu,105,atan2(-2,2.1)*rtod_) -> |
| 289 |
"2" at gco(3,6) above ljust |
| 290 |
arcd(gco(3,3),3.75*lu,75,atan2(-2,2.1)*rtod_+5) cw -> ') |
| 291 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 292 |
|
| 293 |
define(`charP', |
| 294 |
`[Origin: gco(0,0) `#' `charP' |
| 295 |
ifelse(`$1',,,`grid(6,6)') |
| 296 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 297 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 298 |
L2: line from gco(0,3)+(ft2,0) right 5*lu-ft2-(3*lu-ft2)/2 |
| 299 |
L3: line from L1.start right 5*lu-ft2-(3*lu-ft2)/2 |
| 300 |
arcd(Here+(0,-(3*lu-ft2)/2),(3*lu-ft2)/2,-90,90) |
| 301 |
ifelse(`$1',,,` |
| 302 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 303 |
stroke(from L2.start to L2.end chop lu*.75 chop lu/3,-lu*0.75,2) |
| 304 |
"3" at gco(0,6)+(0,lu*.75) |
| 305 |
line to (L3.end,Here) chop lu/2 chop 0 |
| 306 |
arcd(Here+(0,-4.5*lu/2),4.5*lu/2,90,-90) cw -> ') |
| 307 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 308 |
|
| 309 |
define(`charQ', |
| 310 |
`[Origin: gco(0,0) `#' `charQ' |
| 311 |
ifelse(`$1',,,`grid(6,6)') |
| 312 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 313 |
circle rad 3*lu-ft2 at gco(3,3) |
| 314 |
rpoint_(from gco(3,3) to gco(5,0)) |
| 315 |
ifelse(`$1',,,`{line dashed dashwid*0.8 thick 0.3 to rvec_(2*lu-ft2,0)}') |
| 316 |
L3: line from rvec_(2*lu-ft2,0) to rvec_(4*lu-ft2,0) |
| 317 |
ifelse(`$1',,,` |
| 318 |
setstroke |
| 319 |
"1" at gco(3,6) above rjust |
| 320 |
arcd(gco(3,3),3.75*lu,105,atan2(-2,2.1)*rtod_) -> |
| 321 |
"2" at gco(3,6) above ljust |
| 322 |
arcd(gco(3,3),3.75*lu,75,atan2(-2,2.1)*rtod_+5) cw -> |
| 323 |
stroke(from L3.start to L3.end chop -lu/3 chop lu/3,-lu*0.75,3) ') |
| 324 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 325 |
|
| 326 |
define(`charR', |
| 327 |
`[Origin: gco(0,0) `#' `charR' |
| 328 |
ifelse(`$1',,,`grid(6,6)') |
| 329 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 330 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 331 |
L2: line from gco(0,3)+(ft2,0) right 5*lu-ft2-(3*lu-ft2)/2 |
| 332 |
Lt4: line thick 0.3 ifelse(`$1',,invis,dashed) from gco(1,6)+(-ft2,-ft2) \ |
| 333 |
to gco(5,0)+(-ft2,ft2) |
| 334 |
L4: line from Intersect_(Lt4,L2) to Lt4.end |
| 335 |
L3: line from L1.start right 5*lu-ft2-(3*lu-ft2)/2 |
| 336 |
arcd(Here+(0,-(3*lu-ft2)/2),(3*lu-ft2)/2,-90,90) |
| 337 |
ifelse(`$1',,,` |
| 338 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 339 |
stroke(from L2.start to L2.end chop lu*.75 chop lu,-lu*0.75,2) |
| 340 |
stroke(from L4.start to L4.end chop lu chop lu*.5,-lu*0.75,4) |
| 341 |
"3" at gco(0,6)+(0,lu*.75) |
| 342 |
line to (L3.end,Here) chop lu/2 chop 0 |
| 343 |
arcd(Here+(0,-4.5*lu/2),4.5*lu/2,90,-80) cw -> ') |
| 344 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 345 |
|
| 346 |
define(`charS', |
| 347 |
`[Origin: gco(0,0) `#' `charS' |
| 348 |
ifelse(`$1',,,`grid(6,6)') |
| 349 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 350 |
ah = 2.0*lu-ft2 |
| 351 |
bh = 1.4*lu-ft2/2 |
| 352 |
CH: gco(2.5,3.2)+(0,bh) |
| 353 |
ifelse(`$1',,,`ellipse ht 2*bh wid 2*ah thick 0.3 dashed at CH') |
| 354 |
al = 2.5*lu-ft2 |
| 355 |
bl = 1.6*lu-ft2/2 |
| 356 |
CL: gco(2.5,3.2)+(0,-bl) |
| 357 |
ifelse(`$1',,,`ellipse ht 2*bl wid 2*al thick 0.3 dashed at CL') |
| 358 |
i = 0 |
| 359 |
V[i]: CH+(ah*cosd(20),bh*sind(20)) |
| 360 |
for theta = 30 to 270 by 22.5 do { i = i+1 |
| 361 |
V[i]: CH+(ah*cosd(theta),bh*sind(theta)) } |
| 362 |
for theta = 90-22.5 to -135 by -22.5 do { i = i+1 |
| 363 |
V[i]: CL+(al*cosd(theta),bl*sind(theta)) } |
| 364 |
i = i+1 |
| 365 |
V[i]: gco(0,1)+(ft2,0) |
| 366 |
fitcurve(V,i) |
| 367 |
ifelse(`$1',,,` |
| 368 |
setstroke |
| 369 |
"1" at gco(1,5.5) above rjust |
| 370 |
elarrow(120,40,-20,CH,2.75*lu,2.15*lu) |
| 371 |
"2" at gco(2.0,4.5) above |
| 372 |
i = -1 |
| 373 |
for theta = 150 to 270 by 30 do { i = i+1 |
| 374 |
V[i]: CH+(1.25*cosd(theta),0.65*sind(theta))*lu } |
| 375 |
elarrow(60,-80,-20,CL,3.25*lu,2.35*lu,i) |
| 376 |
"3" at gco(0,0) above rjust |
| 377 |
elarrow(225,270,15,CL,3.25*lu,2.35*lu) ') |
| 378 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 379 |
|
| 380 |
define(`charT', |
| 381 |
`[Origin: gco(0,0) `#' `charT' |
| 382 |
ifelse(`$1',,,`grid(6,6)') |
| 383 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 384 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(6,6)+(-ft2,-ft2) |
| 385 |
L2: line from gco(3,6)+(0,-ft2) to gco(3,0)+(0,ft2) |
| 386 |
ifelse(`$1',,,` |
| 387 |
stroke(from L1.start to L1.end chop lu/3, lu*0.75,1) |
| 388 |
stroke(from L2.start to L2.end chop lu*2/3 chop lu/3,-lu*0.75,2) ') |
| 389 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 390 |
|
| 391 |
define(`charU', |
| 392 |
`[Origin: gco(0,0) `#' `charU' |
| 393 |
ifelse(`$1',,,`grid(6,6)') |
| 394 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 395 |
v = (sqrt(2)-1)*4/3 |
| 396 |
al = 2.5*lu-ft2 |
| 397 |
bl = 2.0*lu-ft2/2 |
| 398 |
CL: gco(2.5,4.0)+(0,-bl) |
| 399 |
E: ellipse ht 2*bl wid 2*al thick 0.3 ifelse(`$1',,invis,dashed) at CL |
| 400 |
L1: line from (E.w,gco(0,6)+(ft2,-ft2)) to E.w |
| 401 |
L2: line from (E.e,L1.start) to E.e |
| 402 |
spline v to (E.e,E.s) then to (E.w,E.s) then to E.w |
| 403 |
ifelse(`$1',,,` |
| 404 |
stroke(from L2.start to L2.end chop lu/3, lu*0.75,2) |
| 405 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.75,1) |
| 406 |
"3" at gco(-.5,1.5) |
| 407 |
spline v -> from gco(-0.4,0.75) to gco(-0.2,-0.65) then to gco(5.65,-0.65) \ |
| 408 |
then to gco(5.65,2) ') |
| 409 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 410 |
|
| 411 |
define(`charV', |
| 412 |
`[Origin: gco(0,0) `#' `charV' |
| 413 |
ifelse(`$1',,,`grid(6,6)') |
| 414 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 415 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(3,0)+(0,ft2) |
| 416 |
L2: line to gco(6,6)+(-ft2,-ft2) |
| 417 |
ifelse(`$1',,,` |
| 418 |
stroke(from L1.start to L1.end chop lu,-lu*0.75,1) |
| 419 |
stroke(from L2.end to L2.start chop lu, lu*0.75,2) ') |
| 420 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 421 |
|
| 422 |
define(`charW', |
| 423 |
`[Origin: gco(0,0) `#' `charW' |
| 424 |
ifelse(`$1',,,`grid(8,6)') |
| 425 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 426 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(2,0)+(0,ft2) |
| 427 |
L2: line from gco(4,6)+(0,-ft2) to L1.end |
| 428 |
L3: line from L2.start to gco(6,0)+(0,ft2) |
| 429 |
L4: line from gco(8,6)+(-ft2,-ft2) to L3.end |
| 430 |
ifelse(`$1',,,` |
| 431 |
stroke(from L1.start to L1.end chop lu*1.5 chop lu*.5,-lu*0.75,1) |
| 432 |
stroke(from L2.start to L2.end chop lu*.75 chop lu*1.5,-lu*0.75,2) |
| 433 |
stroke(from L3.start to L3.end chop lu*2 chop lu*.5,-lu*0.75,3) |
| 434 |
stroke(from L4.start to L4.end chop lu*.75 chop lu*1.5,-lu*0.75,4) ') |
| 435 |
box invis wid 8*lu ht 6*lu with .sw at Origin]') |
| 436 |
|
| 437 |
define(`charX', |
| 438 |
`[Origin: gco(0,0) `#' `charX' |
| 439 |
ifelse(`$1',,,`grid(6,6)') |
| 440 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 441 |
L1: line from gco(0.5,6)+(ft2,-ft2) to gco(6,0)+(-ft2,ft2) |
| 442 |
L2: line from gco(5.5,6)+(-ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 443 |
ifelse(`$1',,,` |
| 444 |
stroke(from L1.start to L1.end chop lu, lu*0.75,1) |
| 445 |
stroke(from L2.start to L2.end chop lu,-lu*0.75,2) ') |
| 446 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 447 |
|
| 448 |
define(`charY', |
| 449 |
`[Origin: gco(0,0) `#' `charY' |
| 450 |
ifelse(`$1',,,`grid(6,6)') |
| 451 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 452 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(3,3)+(0,ft2) |
| 453 |
L2: line from gco(6,6)+(-ft2,-ft2) to L1.end |
| 454 |
L3: line to gco(3,0)+(0,ft2) |
| 455 |
ifelse(`$1',,,` |
| 456 |
stroke(from L1.start to L1.end chop lu, lu*0.75,1) |
| 457 |
stroke(from L2.start to L2.end chop lu,-lu*0.75,2) |
| 458 |
stroke(from L3.start to L3.end chop lu/3,-lu*0.75,3) ') |
| 459 |
box invis wid 6*lu ht 6*lu with .sw at Origin]') |
| 460 |
|
| 461 |
define(`charZ', |
| 462 |
`[Origin: gco(0,0) `#' `charZ' |
| 463 |
ifelse(`$1',,,`grid(6,6)') |
| 464 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 465 |
L1: line from gco(0.5,6)+(ft2,-ft2) to gco(5,6)+(-ft2,-ft2) |
| 466 |
L2: line to gco(0,0)+(ft2,ft2) |
| 467 |
L3: line to gco(5,0)+(-ft2,ft2) |
| 468 |
ifelse(`$1',,,` |
| 469 |
stroke(from L1.start to L1.end chop lu/3, lu*0.75,1) |
| 470 |
stroke(from L2.start to L2.end chop 1.5*lu chop lu,-lu*0.75,2) |
| 471 |
stroke(from L3.start to L3.end chop lu/3,-lu*0.75,3) ') |
| 472 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 473 |
|
| 474 |
define(`char1', |
| 475 |
`[Origin: gco(0,0) `#' `char1' |
| 476 |
ifelse(`$1',,,`grid(1,6)') |
| 477 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 478 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 479 |
ifelse(`$1',,,` |
| 480 |
stroke(from L1.start to L1.end chop lu/3, lu*0.75,1) ') |
| 481 |
box invis wid 2*ft2 ht 6*lu with .sw at Origin]') |
| 482 |
|
| 483 |
define(`char2', |
| 484 |
`[Origin: gco(0,0) `#' `char2' |
| 485 |
ifelse(`$1',,,`grid(6,6)') |
| 486 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 487 |
ah = 2.0*lu-ft2 |
| 488 |
bh = 1.4*lu-ft2/2 |
| 489 |
CH: gco(2.5,3.2)+(0,bh) |
| 490 |
ifelse(`$1',,,`ellipse ht 2*bh wid 2*ah thick 0.3 dashed at CH') |
| 491 |
al = 2.5*lu-ft2 |
| 492 |
bl = 1.6*lu-ft2/2 |
| 493 |
CL: gco(2.5,3.2)+(0,-bl) |
| 494 |
ifelse(`$1',,,`ellipse ht 2*bl wid 2*al thick 0.3 dashed at CL') |
| 495 |
i = 0 |
| 496 |
V[i]: CH+(ah*cosd(160),bh*sind(160)) |
| 497 |
for theta = 150 to -90+22.5 by -22.5 do { i = i+1 |
| 498 |
V[i]: CH+(ah*cosd(theta),bh*sind(theta)) } |
| 499 |
fitcurve(V,i) |
| 500 |
v = (sqrt(2)-1)*4/3 |
| 501 |
spline v from V[i] to gco(2.8,3.0) then \ |
| 502 |
to gco(1.5,2.6) then to gco(0,1.2)+(ft2,0) then to gco(0,0)+(ft2,ft2) |
| 503 |
psset_(`arrows=c-c') dnl |
| 504 |
L2: line to gco(5,0)+(-ft2,ft2) |
| 505 |
ifelse(`$1',,,` |
| 506 |
setstroke |
| 507 |
"1" at gco(1,5.5) above rjust |
| 508 |
i = -1 |
| 509 |
for theta = 120 to -60 by -20 do { i = i+1 |
| 510 |
V[i]: CH+(2.75*cosd(theta),2.15*sind(theta))*lu } |
| 511 |
i=i+1; V[i]: gco(2.6,2.1) |
| 512 |
i=i+1; V[i]: gco(1.3,1.6) |
| 513 |
i=i+1; V[i]: gco(0.95,0.5) |
| 514 |
v = (sqrt(2)-1)*4/3 |
| 515 |
spline v -> from V[0] to V[1] |
| 516 |
for n = 2 to i do { continue to V[n] } |
| 517 |
stroke(from L2.start to L2.end chop lu/3,-lu*0.75,2) ') |
| 518 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 519 |
|
| 520 |
define(`char3', |
| 521 |
`[Origin: gco(0,0) `#' `char3' |
| 522 |
ifelse(`$1',,,`grid(6,6)') |
| 523 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 524 |
ah = 2.0*lu-ft2 |
| 525 |
bh = 1.4*lu-ft2/2 |
| 526 |
CH: gco(2.5,3.2)+(0,bh) |
| 527 |
H: ellipse ht 2*bh wid 2*ah thick 0.3 ifelse(`$1',,invis,dashed) at CH |
| 528 |
al = 2.5*lu-ft2 |
| 529 |
bl = 1.6*lu-ft2/2 |
| 530 |
CL: gco(2.5,3.2)+(0,-bl) |
| 531 |
L: ellipse ht 2*bl wid 2*al thick 0.3 ifelse(`$1',,invis,dashed) at CL |
| 532 |
i = 0 |
| 533 |
V[i]: CH+(ah*cosd(160),bh*sind(160)) |
| 534 |
for theta = 150 to -90 by -20 do { i = i+1 |
| 535 |
V[i]: CH+(ah*cosd(theta),bh*sind(theta)) } |
| 536 |
fitcurve(V,i) |
| 537 |
line from H.s to (gco(2,3)+(ft2,0),H.s) |
| 538 |
i = -1 |
| 539 |
for theta = 90 to -135 by -22.5 do { i = i+1 |
| 540 |
V[i]: CL+(al*cosd(theta),bl*sind(theta)) } |
| 541 |
i = i+1 |
| 542 |
V[i]: gco(0,1)+(ft2,0) |
| 543 |
fitcurve(V,i) |
| 544 |
ifelse(`$1',,,` |
| 545 |
setstroke |
| 546 |
"1" at gco(1,5.5) above rjust |
| 547 |
elarrow(120,-20,-20,CH,2.75*lu,2.15*lu) |
| 548 |
"2" at gco(4.6,3.5) |
| 549 |
elarrow(40,-80,-10,CL,3.25*lu,2.35*lu) |
| 550 |
"3" at gco(0,0) above rjust |
| 551 |
i = 0 |
| 552 |
V[i]: CL+(3.25*cosd(220),2.35*sind(220))*lu |
| 553 |
elarrow(240,270,15,CL,3.25*lu,2.35*lu,0) ') |
| 554 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 555 |
|
| 556 |
define(`char4', |
| 557 |
`[Origin: gco(0,0) `#' `char4' |
| 558 |
ifelse(`$1',,,`grid(6,6)') |
| 559 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 560 |
L1: line from gco(4,6)+(-ft2,-ft2) to gco(4,0)+(-ft2,ft2) |
| 561 |
L2: line from L1.start to gco(0,1.5)+(ft2,-ft2) |
| 562 |
L3: line to (gco(5,1.5)+(-ft2,0),Here) |
| 563 |
ifelse(`$1',,,` |
| 564 |
stroke(from L1.start to L1.end chop lu/3 chop 0, lu*.75,1) |
| 565 |
stroke(from L2.start to L2.end chop lu chop lu/3,-lu*.75,2) |
| 566 |
stroke(from L3.start to L3.end chop lu/3 chop lu/2,-lu*.75,3) ') |
| 567 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 568 |
|
| 569 |
define(`char5', |
| 570 |
`[Origin: gco(0,0) `#' `char5' |
| 571 |
ifelse(`$1',,,`grid(6,6)') |
| 572 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 573 |
L1: line from gco(.5,6)+(0,-ft2) to gco(.5,3) |
| 574 |
L4: line from L1.start to gco(4.5,6)+(-ft2,-ft2) |
| 575 |
al = 2.5*lu-ft2 |
| 576 |
bl = 2.0*lu-ft2/2 |
| 577 |
CL: gco(2.5,4.0)+(0,-bl) |
| 578 |
i = 0 |
| 579 |
V[i]: L1.end |
| 580 |
for theta = 125 to -135 by -25 do { i = i+1 |
| 581 |
V[i]: CL+(al*cosd(theta),bl*sind(theta)) } |
| 582 |
i = i+1 |
| 583 |
V[i]: gco(0,1)+(ft2,0) |
| 584 |
fitcurve(V,i) |
| 585 |
ifelse(`$1',,,` |
| 586 |
stroke(from L1.start to L1.end chop lu/3 chop 0,-lu*.75,1) |
| 587 |
stroke(from L4.start to L4.end chop lu/3 chop 0, lu*.75,4) |
| 588 |
v = (sqrt(2)-1)*4/3 |
| 589 |
"2" at gco(1.0,4.0) above |
| 590 |
elarrow(110,-80,-10,CL,al+lu*.75,bl+lu*.75) |
| 591 |
"3" at gco(0,0) above rjust |
| 592 |
i = 0 |
| 593 |
V[i]: CL+((al+0.75*lu)*cosd(220),(bl+.75*lu)*sind(220)) |
| 594 |
elarrow(240,270,15,CL,al+lu*.75,bl+lu*.75,0) ') |
| 595 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 596 |
|
| 597 |
define(`char6', |
| 598 |
`[Origin: gco(0,0) `#' `char6' |
| 599 |
ifelse(`$1',,,`grid(6,6)') |
| 600 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 601 |
ab = 2.5*lu-ft2 |
| 602 |
bb = 3.0*lu-ft2 |
| 603 |
Cb: gco(2.5,3.0) |
| 604 |
ifelse(`$1',,,`ellipse ht 2*bb wid 2*ab thick 0.3 dashed at Cb') |
| 605 |
i = -1 |
| 606 |
for theta = -315 to 180-22.5 by 22.5 do { i = i+1 |
| 607 |
if (theta<=-90) then {X:Cb; x=ab; y=bb } \ |
| 608 |
else {X: gco(2.5,2); x=ab; y=2*lu-ft2 } |
| 609 |
V[i]: X+(x*cosd(theta),y*sind(theta)) } |
| 610 |
fitcurve(V,i) |
| 611 |
v = (sqrt(2)-1)*4/3 |
| 612 |
ifelse(`$1',,,` |
| 613 |
setstroke |
| 614 |
"1" at gco(2,6) above |
| 615 |
x = ab+lu*.75; y = bb+lu*.75 |
| 616 |
elarrow(90+22.5,270+22.5,22.5,Cb,x,y) |
| 617 |
"3" at gco(3,6) above |
| 618 |
elarrow(70,45,-12.5,Cb,x,y) |
| 619 |
"2" at gco(1.2,3.8) above |
| 620 |
elarrow(100,-50,-10,gco(2.5,2),ab+lu*.65,2*lu+lu*.65) ') |
| 621 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 622 |
|
| 623 |
define(`char7', |
| 624 |
`[Origin: gco(0,0) `#' `char7' |
| 625 |
ifelse(`$1',,,`grid(6,6)') |
| 626 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 627 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(5,6)+(-ft2,-ft2) |
| 628 |
{ L1t: line invis to gco(1.3,0) |
| 629 |
L2t: line invis up lu from gco(2,0)+(-ft2,0) } |
| 630 |
psset_(`arrows=-') dnl |
| 631 |
arcto(Intersect_(L1t,L2t),L2t.start,2.5*lu) |
| 632 |
line to (Here,gco(2,0)) |
| 633 |
ifelse(`$1',,,` |
| 634 |
stroke(from L1.start to L1.end chop lu/3, lu*0.75,1) |
| 635 |
stroke(from L1t.start to 4th last line.end chop lu/3 chop 0, |
| 636 |
lu*.75,2,thick 0.3,L1) |
| 637 |
L2: line <- up arrowht from gco(2.75,0)+(-ft2,ft2) |
| 638 |
move to L1.end |
| 639 |
arcto(Intersect_(L1,L2),L2.start,(2.5-0.75)*lu,thick 0.3) ') |
| 640 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 641 |
|
| 642 |
define(`char8', |
| 643 |
`[Origin: gco(0,0) `#' `char8' |
| 644 |
ifelse(`$1',,,`grid(6,6)') |
| 645 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 646 |
ah = 2.0*lu |
| 647 |
bh = 1.4*lu |
| 648 |
CH: gco(2.5,6)+(0,-bh) |
| 649 |
H: ellipse ht 2*bh wid 2*ah at CH |
| 650 |
al = 2.5*lu |
| 651 |
bl = 1.6*lu+ft2/2 |
| 652 |
CL: gco(2.5,3.2)+(0,ft2)+(0,-bl) |
| 653 |
L: ellipse ht 2*bl wid 2*al at CL |
| 654 |
ifelse(`$1',,,` |
| 655 |
setstroke |
| 656 |
x = ah+lu*.75; y = bh+lu*.75 |
| 657 |
"1" at gco(2,6) above |
| 658 |
elarrow(110,205,15,CH,x,y) |
| 659 |
"2" at gco(3,6) above |
| 660 |
elarrow(70,-25,-15,CH,x,y) |
| 661 |
x = al+lu*.75; y = bl+lu*.75 |
| 662 |
"3" at gco(0.2,2.6) above |
| 663 |
elarrow(150,260,10,CL,x,y) |
| 664 |
"4" at gco(4.8,2.6) above |
| 665 |
elarrow(30,-80,-10,CL,x,y) ') |
| 666 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 667 |
|
| 668 |
define(`char9', |
| 669 |
`[Origin: gco(0,0) `#' `char9' |
| 670 |
ifelse(`$1',,,`grid(6,6)') |
| 671 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 672 |
ab = 2.5*lu-ft2 |
| 673 |
bb = 3.0*lu-ft2 |
| 674 |
Cb: gco(2.5,3.0) |
| 675 |
ifelse(`$1',,,`ellipse ht 2*bb wid 2*ab thick 0.3 dashed at Cb') |
| 676 |
i = -1 |
| 677 |
for theta = -135 to 360-22.5 by 22.5 do { i = i+1 |
| 678 |
if (theta<=90) then {X:Cb; x=ab; y=bb } \ |
| 679 |
else {X: gco(2.5,4); x=ab; y=2*lu-ft2 } |
| 680 |
V[i]: X+(x*cosd(theta),y*sind(theta)) } |
| 681 |
fitcurve(V,i) |
| 682 |
ifelse(`$1',,,` |
| 683 |
setstroke |
| 684 |
"1" at gco(2,6) above |
| 685 |
elarrow(90+22.5,270+22.5,22.5,X,3.15*lu-ft2,2.65*lu-ft2) |
| 686 |
"2" at gco(3,6) above |
| 687 |
elarrow(80,-80,-10,Cb,ab+lu*.65,bb+lu*.65) |
| 688 |
"3" at gco(0,1) |
| 689 |
elarrow(225,270,15,Cb,3.15*lu,3.65*lu) ') |
| 690 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 691 |
|
| 692 |
define(`char0', |
| 693 |
`[Origin: gco(0,0) `#' `char0' |
| 694 |
ifelse(`$1',,,`grid(6,6)') |
| 695 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 696 |
ab = 2.5*lu-ft2 |
| 697 |
bb = 3.0*lu-ft2 |
| 698 |
Cb: gco(2.5,3.0) |
| 699 |
ellipse ht 2*bb wid 2*ab at Cb |
| 700 |
ifelse(`$1',,,` |
| 701 |
setstroke |
| 702 |
"1" at gco(2,6) above |
| 703 |
elarrow(90+22.5,270,22.5,Cb,.65*lu+ab,.65*lu+bb) |
| 704 |
"2" at gco(3,6) above |
| 705 |
elarrow(70,-80,-10,Cb,ab+lu*.65,bb+lu*.65) ') |
| 706 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 707 |
|
| 708 |
define(`charAnd', |
| 709 |
`[Origin: gco(0,0) `#' `fAnd' |
| 710 |
ifelse(`$1',,,`grid(5,6)') |
| 711 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 712 |
v = (sqrt(2)-1)*4/3 |
| 713 |
spline v from gco(5,0)+(-ft2,ft2) \ |
| 714 |
to gco(4.605,0.312) to gco(1.443,4.038) \ |
| 715 |
to gco(1.335,4.198) to gco(1.134,4.597) to gco(1.103,4.938) \ |
| 716 |
to gco(1.143,5.252) to gco(1.358,5.605) to gco(1.702,5.797) \ |
| 717 |
to gco(2.236,5.857) to gco(2.637,5.772) to gco(2.981,5.499) \ |
| 718 |
to gco(3.157,5.132) to gco(3.087,4.565) to gco(2.746,4.189) \ |
| 719 |
to gco(2.415,3.895) to gco(2.009,3.621) to gco(1.522,3.339) \ |
| 720 |
to gco(1.157,3.095) to gco(0.671,2.769) to gco(0.435,2.520) \ |
| 721 |
to gco(0.227,2.215) to gco(0.101,1.636) to gco(0.234,1.165) \ |
| 722 |
to gco(0.373,0.926) to gco(0.512,0.738) to gco(0.918,0.443) \ |
| 723 |
to gco(1.190,0.340) to gco(1.427,0.274) to gco(2.140,0.166) \ |
| 724 |
to gco(2.617,0.164) to gco(3.031,0.216) to gco(3.616,0.395) \ |
| 725 |
to gco(4.017,0.600) to gco(4.121,0.676) to gco(4.482,1.017) \ |
| 726 |
to gco(4.637,1.302) to gco(4.753,1.532) to gco(4.863,1.875) |
| 727 |
ifelse(`$1',,,` |
| 728 |
setstroke |
| 729 |
"1" at gco(1.4,6) above |
| 730 |
spline -> from gco(1.0,6.2) to gco(.35,5.5) then to gco(.35,4) \ |
| 731 |
then to gco(4.0,0) |
| 732 |
"2" at gco(2.6,6) above |
| 733 |
spline -> from gco(3.0,6.2) to gco(3.75,5.5) then to gco(3.75,3.9) \ |
| 734 |
then to gco(1,2.4) then to gco(1,1.1) then to gco(2,.9) |
| 735 |
"3" at gco(4.2,2.4) |
| 736 |
spline -> from gco(4.1,1.8) to gco(3.8,1.3) then to gco(3,.9) \ |
| 737 |
then to gco(2.2,.9) ') |
| 738 |
box invis wid 5*lu ht 6*lu with .sw at Origin]') |
| 739 |
|
| 740 |
define(`charComma', |
| 741 |
` circle fill_(0) rad ft2 at Here+(0,-3*lu+ft2) |
| 742 |
move to last circle.c |
| 743 |
arc cw from Here+(0,ft2) to Here+(0,-4*ft2) \ |
| 744 |
with .c at Here+(-ft2,-1.5*ft2) |
| 745 |
move to last circle+(ft2,-ft2+3*lu)') |
| 746 |
|
| 747 |
define(`charPeriod', |
| 748 |
` circle fill_(0) rad ft2 at Here+(0,-3*lu+ft2) |
| 749 |
move to last circle+(ft2,-ft2+3*lu)') |
| 750 |
|
| 751 |
define(`chara', |
| 752 |
`[Origin: gco(0,0) `#' `chara' |
| 753 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 754 |
circle rad 2*lu-ft2 with .c at gco(2,2) |
| 755 |
L3: line from gco(4,4)+(-ft2,-ft2) to gco(4,0)+(-ft2,ft2) |
| 756 |
ifelse(`$1',,,` |
| 757 |
setstroke |
| 758 |
"1" at gco(1.5,3.0) |
| 759 |
arcd(gco(2,2),1.2*lu,130,265) -> |
| 760 |
"2" at gco(2.5,3.0) |
| 761 |
arcd(gco(2,2),1.2*lu,50,-85) -> cw |
| 762 |
stroke(from L3.start to L3.end chop lu/3 chop 0,lu*0.5,3) ') |
| 763 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 764 |
|
| 765 |
define(`charb', |
| 766 |
`[Origin: gco(0,0) `#' `charb' |
| 767 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 768 |
circle rad 2*lu-ft2 with .c at gco(2,2) |
| 769 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 770 |
ifelse(`$1',,,` |
| 771 |
setstroke |
| 772 |
stroke(from L1.start to L1.end chop lu/3 chop 0,lu*0.5,1) |
| 773 |
"2" at gco(1.5,3.0) |
| 774 |
arcd(gco(2,2),1.2*lu,130,265) -> |
| 775 |
"3" at gco(2.5,3.0) |
| 776 |
arcd(gco(2,2),1.2*lu,50,-85) -> cw ') |
| 777 |
box invis wid 4*lu ht 6*lu with .sw at Origin]') |
| 778 |
|
| 779 |
define(`charc', |
| 780 |
`[Origin: gco(0,0) `#' `charc' |
| 781 |
ifelse(`$1',,, |
| 782 |
`circle outlined "linegray" rad 2*lu-ft2 thick 0.3 dashed lu/2 at gco(2,2)') |
| 783 |
psset_(`linecolor=linegray') dnl |
| 784 |
arcr(gco(2,2),2*lu-ft2,atan2(1.7,1),atan2(-1,1.6)) |
| 785 |
ifelse(`$1',,,` |
| 786 |
setstroke |
| 787 |
"1" at gco(1.5,3.0) |
| 788 |
arcd(gco(2,2),1.2*lu,130,-45) -> |
| 789 |
"2" at gco(2.5,3.0) |
| 790 |
arcd(gco(2,2),1.2*lu,50,20) -> cw ht 0.75 * arrowht ') |
| 791 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 792 |
|
| 793 |
define(`chard', |
| 794 |
`[Origin: gco(0,0) `#' `chard' |
| 795 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 796 |
circle rad 2*lu-ft2 with .c at gco(2,2) |
| 797 |
L3: line from gco(4,6)+(-ft2,-ft2) to gco(4,0)+(-ft2,ft2) |
| 798 |
ifelse(`$1',,,` |
| 799 |
setstroke |
| 800 |
"1" at gco(1.5,3.0) |
| 801 |
arcd(gco(2,2),1.2*lu,130,265) -> |
| 802 |
"2" at gco(2.5,3.0) |
| 803 |
arcd(gco(2,2),1.2*lu,50,-85) -> cw |
| 804 |
stroke(from L3.start to L3.end chop lu/3 chop 0,lu*0.5,3) ') |
| 805 |
box invis wid 4*lu ht 6*lu with .sw at Origin]') |
| 806 |
|
| 807 |
define(`chare', |
| 808 |
`[Origin: gco(0,0) `#' `chare' |
| 809 |
ifelse(`$1',,, |
| 810 |
`circle outlined "linegray" rad 2*lu-ft2 thick 0.3 dashed lu/2 at gco(2,2)') |
| 811 |
psset_(`linecolor=linegray') dnl |
| 812 |
arcr(gco(2,2),2*lu-ft2,atan2(0.2,2),atan2(-1,1.6)) |
| 813 |
L3: line from last arc.start to (gco(0.2,0).x, last arc.start.y) |
| 814 |
ifelse(`$1',,,` |
| 815 |
setstroke |
| 816 |
"1" at gco(1.5,3.0) |
| 817 |
arcd(gco(2,2),1.2*lu,130,-45) -> |
| 818 |
"2" at gco(2.5,3.0) |
| 819 |
arcd(gco(2,2),1.2*lu,50,20) -> cw ht 0.75 * arrowht ') |
| 820 |
stroke(from L3.end to L3.start chop lu*1.5 chop lu/3,-lu*0.5,3) |
| 821 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 822 |
|
| 823 |
define(`charf', |
| 824 |
`[Origin: gco(0,0) `#' `charf' |
| 825 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 826 |
L3: line from gco(0,4)+(ft2,0) to gco(2,4)+(-ft2,0) |
| 827 |
L1: line from gco(1,0)+(0,ft2) to gco(1,4.8) |
| 828 |
psset_(`linecolor=linegray') dnl |
| 829 |
arc cw to gco(3,5.5)+(0,0) with .c at gco(2.12,4.8) |
| 830 |
ifelse(`$1',,,` |
| 831 |
setstroke |
| 832 |
stroke(from L1.end to L1.start chop -lu/5 chop lu/3,-lu*0.75,1) |
| 833 |
"2" at gco(1.5,4.6) |
| 834 |
arcd(gco(2.12,4.8),0.6*lu,140,40) -> cw ht 0.75 * arrowht |
| 835 |
stroke(from L3.start to L3.end chop lu*.5 chop 0,-lu*0.75,3) ') |
| 836 |
box invis wid 3*lu ht 6*lu with .sw at Origin]') |
| 837 |
|
| 838 |
define(`charg', |
| 839 |
`[Origin: gco(0,0) `#' `charg' |
| 840 |
ifelse(`$1',,, |
| 841 |
`circle outlined "linegray" rad 2*lu-ft2 thick 0.3 dashed lu/2 at gco(2,0) ') |
| 842 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 843 |
circle rad 2*lu-ft2 with .c at gco(2,2) |
| 844 |
L3: line from gco(4,4)+(-ft2,-ft2) to gco(4,0)+(-ft2,0) |
| 845 |
psset_(`linecolor=linegray') dnl |
| 846 |
arcr(gco(2,0),2*lu-ft2,0,atan2(-1,-1.5)) cw |
| 847 |
ifelse(`$1',,,` |
| 848 |
setstroke |
| 849 |
"1" at gco(1.5,3.0) |
| 850 |
arcd(gco(2,2),1.2*lu,130,265) -> |
| 851 |
"2" at gco(2.5,3.0) |
| 852 |
arcd(gco(2,2),1.2*lu,50,-85) -> cw |
| 853 |
"4" at gco(0.7,-0.6) |
| 854 |
arcd(gco(2,0),1.2*lu,-135,-45) -> ht 0.75 * arrowht |
| 855 |
stroke(from L3.start to L3.end chop lu*0 chop 0,lu*0.5,3) ') |
| 856 |
box invis wid 4*lu ht 6*lu with .sw at gco(0,-2)]') |
| 857 |
|
| 858 |
define(`charh', |
| 859 |
`[Origin: gco(0,0) `#' `charh' |
| 860 |
ifelse(`$1',,, |
| 861 |
`circle outlined "linegray" rad 2*lu-ft2 thick 0.3 dashed lu/2 at gco(2,2) ') |
| 862 |
psset_(`linecolor=linegray') dnl |
| 863 |
arcd(gco(2,2),2*lu-ft2,180,0) cw |
| 864 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 865 |
line to gco(4,0)+(-ft2,ft2) |
| 866 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 867 |
ifelse(`$1',,,` |
| 868 |
setstroke |
| 869 |
stroke(from L1.start to L1.end chop lu/3 chop 0,lu*0.5,1) |
| 870 |
"2" at gco(1.0,2.4) |
| 871 |
arcd(gco(2,2),1.2*lu,130,0) cw |
| 872 |
stroke(to (Here,gco(0,0)) chop -3pt__ chop lu/4) ') |
| 873 |
box invis wid 4*lu ht 6*lu with .sw at Origin]') |
| 874 |
|
| 875 |
define(`chari', |
| 876 |
`[Origin: gco(0,0) `#' `chari' |
| 877 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 878 |
L1: line from gco(0,0)+(ft2,ft2) to gco(0,4)+(ft2,-ft2) |
| 879 |
L2: line from gco(0,6)+(ft2,-ft2) to gco(0,5.5)+(ft2,0) |
| 880 |
ifelse(`$1',,,` |
| 881 |
setstroke |
| 882 |
stroke(from L2.start to L2.end+(0,-lu*.2) chop -lu*.7 chop 0,-lu*0.5,) |
| 883 |
"2" at last line.c+(0.1*lu,-0.2*lu) rjust |
| 884 |
stroke(from L1.end to L1.start chop lu/3 chop 0,-lu*0.5,1) ') |
| 885 |
box invis wid ft2*2 ht 6*lu with .sw at Origin]') |
| 886 |
|
| 887 |
define(`charj', |
| 888 |
`[Origin: gco(0,0) `#' `charj' |
| 889 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 890 |
L2: line from gco(2,6)+(0,-ft2) to gco(2,5.5) |
| 891 |
L1: line from gco(2,4)+(0,-ft2) to gco(2,-0.8) |
| 892 |
psset_(`linecolor=linegray') dnl |
| 893 |
arc cw to gco(0,-1.5) with .c at gco(0.88,-0.8) |
| 894 |
ifelse(`$1',,,` |
| 895 |
setstroke |
| 896 |
stroke(from L1.start to L1.end chop lu/3 chop 0,-lu*0.5,1,solid) |
| 897 |
arcd(gco(0.88,-0.8),.62*lu,0,-135) cw -> ht 0.75*arrowht |
| 898 |
stroke(from L2.start to L2.end+(0,-lu*.2) chop -lu*.7 chop 0,-lu*0.5,) |
| 899 |
"2" at last line.c+(0.1*lu,-0.2*lu) rjust ') |
| 900 |
box invis wid 2*lu ht 6*lu with .sw at Origin+(0,-2*lu)]') |
| 901 |
|
| 902 |
define(`chark', |
| 903 |
`[Origin: gco(0,0) `#' `chark' |
| 904 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 905 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 906 |
L2: line from gco(3.4,4)+(0,-ft2) to gco(0,1.6)+(ft2,ft2) |
| 907 |
L3t:line ifelse(`$1',,invis,dashed lu/2) thick 0.3 from gco(0,4)+(ft2,0) \ |
| 908 |
to gco(4,0)+(-ft2,ft2) |
| 909 |
L3: line from Intersect_(L2,L3t) to L3t.end |
| 910 |
ifelse(`$1',,,` |
| 911 |
setstroke |
| 912 |
stroke(from L1.start to L1.end chop lu/3 chop 0,-lu*0.5,1) |
| 913 |
stroke(from L2.start to L2.end chop lu/2 ,-lu*0.6,2) |
| 914 |
stroke(from L3.start to L3.end chop lu/2 ,-lu*0.6,3) ') |
| 915 |
box invis wid 4*lu ht 6*lu with .sw at Origin]') |
| 916 |
|
| 917 |
define(`charl', |
| 918 |
`[Origin: gco(0,0) `#' `charl' |
| 919 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 920 |
L1: line from gco(0,6)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 921 |
ifelse(`$1',,,` |
| 922 |
setstroke |
| 923 |
stroke(from L1.start to L1.end chop lu/3 chop 0,-lu*0.5,1) ') |
| 924 |
box invis wid 2*ft2 ht 6*lu with .sw at Origin]') |
| 925 |
|
| 926 |
define(`charm', |
| 927 |
`[Origin: gco(0,0) `#' `charm' |
| 928 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 929 |
L1: line from gco(0,4)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 930 |
ifelse(`$1',,, |
| 931 |
`circle outlined "linegray" rad 1.5*lu-ft2/2 thick 0.3 dashed lu/2 \ |
| 932 |
at gco(1.5,2.5)+(ft2/2,0) |
| 933 |
circle outlined "linegray" rad 1.5*lu-ft2/2 thick 0.3 dashed lu/2 \ |
| 934 |
at gco(4.5,2.5)+(-ft2/2,0) ') |
| 935 |
psset_(`linecolor=linegray') dnl |
| 936 |
arcd(gco(1.5,2.5)+(ft2/2,0),1.5*lu-ft2/2,180,0) cw |
| 937 |
arcd(gco(4.5,2.5)+(-ft2/2,0),1.5*lu-ft2/2,180,0) cw |
| 938 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 939 |
line from gco(3,2.5) to gco(3,0)+(0,ft2) |
| 940 |
line from gco(6,2.5)+(-ft2,0) to gco(6,0)+(-ft2,ft2) |
| 941 |
ifelse(`$1',,,` |
| 942 |
setstroke |
| 943 |
stroke(from L1.start to L1.end chop lu/3 chop 0,-lu*0.5,1) |
| 944 |
"2" at gco(0.9,2.2) |
| 945 |
arcd(gco(1.5,2.5)+(ft2/2,0),0.75*lu-ft2/2,160,0) cw |
| 946 |
stroke(to (Here,gco(0,0)) chop -3pt__ chop lu/3) |
| 947 |
"3" at gco(3.9,2.2) |
| 948 |
arcd(gco(4.5,2.5)+(-ft2/2,0),0.75*lu-ft2/2,160,0) cw |
| 949 |
stroke(to (Here,gco(0,0)) chop -3pt__ chop lu/3) ') |
| 950 |
box invis wid 6*lu ht 4*lu with .sw at Origin]') |
| 951 |
|
| 952 |
define(`charn', |
| 953 |
`[Origin: gco(0,0) `#' `charn' |
| 954 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 955 |
L1: line from gco(0,4)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 956 |
ifelse(`$1',,, |
| 957 |
`circle outlined "linegray" rad 2*lu-ft2 thick 0.3 dashed lu/2 at gco(2,2) ') |
| 958 |
psset_(`linecolor=linegray') dnl |
| 959 |
arcd(gco(2,2),2*lu-ft2,180,0) cw |
| 960 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 961 |
line from gco(4,2)+(-ft2,0) to gco(4,0)+(-ft2,ft2) |
| 962 |
ifelse(`$1',,,` |
| 963 |
setstroke |
| 964 |
stroke(from L1.start to L1.end chop lu/3 chop 0,-lu*0.5,1) |
| 965 |
"2" at gco(0.9,2.0) |
| 966 |
arcd(gco(2,2),1.25*lu,150,0) cw |
| 967 |
stroke(to (Here,gco(0,0)) chop -3pt__ chop lu/3) ') |
| 968 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 969 |
|
| 970 |
define(`charo', |
| 971 |
`[Origin: gco(0,0) `#' `charo' |
| 972 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 973 |
circle rad 2*lu-ft2 with .c at gco(2,2) |
| 974 |
ifelse(`$1',,,` |
| 975 |
setstroke |
| 976 |
"1" at gco(1.5,3.0) |
| 977 |
arcd(gco(2,2),1.2*lu,130,265) -> |
| 978 |
"2" at gco(2.5,3.0) |
| 979 |
arcd(gco(2,2),1.2*lu,50,-85) -> cw ') |
| 980 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 981 |
|
| 982 |
define(`charp', |
| 983 |
`[Origin: gco(0,0) `#' `charp' |
| 984 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 985 |
L1: line from gco(0,4)+(ft2,-ft2) to gco(0,-2)+(ft2,ft2) |
| 986 |
circle rad 2*lu-ft2 with .c at gco(2,2) |
| 987 |
ifelse(`$1',,,` |
| 988 |
setstroke |
| 989 |
stroke(from L1.start to L1.end chop lu/3 chop 0,-lu*0.5,1) |
| 990 |
"2" at gco(1.5,3.0) |
| 991 |
arcd(gco(2,2),1.2*lu,130,265) -> |
| 992 |
"3" at gco(2.5,3.0) |
| 993 |
arcd(gco(2,2),1.2*lu,50,-85) -> cw ') |
| 994 |
box invis wid 4*lu ht 6*lu with .sw at Origin+(0,-2*lu)]') |
| 995 |
|
| 996 |
define(`charq', |
| 997 |
`[Origin: gco(0,0) `#' `charq' |
| 998 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 999 |
L1: line from gco(4,4)+(-ft2,-ft2) to gco(4,-2)+(-ft2,ft2) |
| 1000 |
circle rad 2*lu-ft2 with .c at gco(2,2) |
| 1001 |
ifelse(`$1',,,` |
| 1002 |
setstroke |
| 1003 |
stroke(from L1.start to L1.end chop lu/3 chop 0,lu*0.5,3) |
| 1004 |
"1" at gco(1.5,3.0) |
| 1005 |
arcd(gco(2,2),1.2*lu,130,265) -> |
| 1006 |
"2" at gco(2.5,3.0) |
| 1007 |
arcd(gco(2,2),1.2*lu,50,-85) -> cw ') |
| 1008 |
box invis wid 4*lu ht 6*lu with .sw at Origin+(0,-2*lu)]') |
| 1009 |
|
| 1010 |
define(`charr', |
| 1011 |
`[Origin: gco(0,0) `#' `charr' |
| 1012 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1013 |
L1: line from gco(0,4)+(ft2,-ft2) to gco(0,0)+(ft2,ft2) |
| 1014 |
psset_(`linecolor=linegray') dnl |
| 1015 |
arc cw from gco(0,3)+(ft2,0) to gco(2,3.85) rad 1.2*lu with .c at gco(1.5,2.5) |
| 1016 |
ifelse(`$1',,,` |
| 1017 |
setstroke |
| 1018 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.5,1) |
| 1019 |
"2" at gco(.6,2) above |
| 1020 |
arcd(gco(1.5,2.5),0.75*lu,140,60) -> cw ht 0.75 * arrowht ') |
| 1021 |
box invis wid 2*lu ht 4*lu with .sw at Origin]') |
| 1022 |
|
| 1023 |
define(`chars', |
| 1024 |
`[Origin: gco(0,0) `#' `chars' |
| 1025 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1026 |
ah = 1.6*lu |
| 1027 |
bh = (4*lu-ft2-2.1*lu)/2 #0.95*lu-ft2/2 |
| 1028 |
CH: gco(2.0,2.1)+(0,bh) |
| 1029 |
ifelse(`$1',,,`ellipse ht 2*bh wid 2*ah thick 0.3 dashed lu/2 at CH') |
| 1030 |
al = 2.0*lu-ft2 |
| 1031 |
bl = (2.1*lu-ft2)/2 |
| 1032 |
CL: gco(2.0,2.1)+(0,-bl) |
| 1033 |
ifelse(`$1',,,`ellipse ht 2*bl wid 2*al thick 0.3 dashed lu/2 at CL') |
| 1034 |
i = -1 |
| 1035 |
for theta = 0 to 270 by 22.5 do { i = i+1 |
| 1036 |
V[i]: CH+(ah*cosd(theta),bh*sind(theta)) } |
| 1037 |
for theta = 90-22.5 to -180 by -22.5 do { i = i+1 |
| 1038 |
V[i]: CL+(al*cosd(theta),bl*sind(theta)) } |
| 1039 |
fitcurve(V,i) |
| 1040 |
ifelse(`$1',,,` |
| 1041 |
setstroke |
| 1042 |
"1" at gco(0.5,3.5) above |
| 1043 |
elarrow(120,40,-20,CH,(ah+.6*lu),(bh+.6*lu)) |
| 1044 |
"2" at gco(1.5,3.2) |
| 1045 |
i = -1 |
| 1046 |
for theta = 150 to 270 by 30 do { i = i+1 |
| 1047 |
V[i]: CH+(lu*cosd(theta),lu*0.5*sind(theta)) } |
| 1048 |
fitcurve(V,i) |
| 1049 |
r = V[i].y-CL.y |
| 1050 |
elarrow(60,-80,-20,CL,2.5*lu,r,i) |
| 1051 |
"3" at gco(-.3,.9) |
| 1052 |
elarrow(210,270,15,CL,2.5*lu,r) ') |
| 1053 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 1054 |
|
| 1055 |
define(`chart', |
| 1056 |
`[Origin: gco(0,0) `#' `chart' |
| 1057 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1058 |
L1: line from gco(1,0)+(0,ft2) to gco(1,6)+(0,-ft2) |
| 1059 |
L2: line from gco(0,4)+(ft2,0) to gco(2,4)+(-ft2,0) |
| 1060 |
ifelse(`$1',,,` |
| 1061 |
setstroke |
| 1062 |
stroke(from L1.end to L1.start chop lu/3,-lu*0.75,1) |
| 1063 |
stroke(from L2.start to L2.end chop lu*.5 chop 0,-lu*0.75,2) ') |
| 1064 |
box invis wid 2*lu ht 6*lu with .sw at Origin]') |
| 1065 |
|
| 1066 |
define(`charu', |
| 1067 |
`[Origin: gco(0,0) `#' `charu' |
| 1068 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1069 |
L2: line from gco(4,4)+(-ft2,-ft2) to gco(4,0)+(-ft2,ft2) |
| 1070 |
ifelse(`$1',,, |
| 1071 |
`circle outlined "linegray" rad 2*lu-ft2 thick 0.3 dashed lu/2 at gco(2,2) ') |
| 1072 |
line from gco(0,4)+(ft2,-ft2) to gco(0,2)+(ft2,0) |
| 1073 |
psset_(`linecolor=linegray') dnl |
| 1074 |
arcd(gco(2,2),2*lu-ft2,180,0) |
| 1075 |
ifelse(`$1',,,` |
| 1076 |
setstroke |
| 1077 |
stroke(from L2.start to L2.end chop lu/3 chop 0,lu*0.5,2) |
| 1078 |
"1" at gco(.9,2.0) |
| 1079 |
arcd(gco(2,2),1.25*lu,210,-30) -> ') |
| 1080 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 1081 |
|
| 1082 |
define(`charv', |
| 1083 |
`[Origin: gco(0,0) `#' `charv' |
| 1084 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1085 |
L1: line from gco(0,4)+(ft2,-ft2) to gco(2,0)+(0,ft2) |
| 1086 |
L2: line to gco(4,4)+(-ft2,-ft2) |
| 1087 |
ifelse(`$1',,,` |
| 1088 |
setstroke |
| 1089 |
stroke(from L1.start to L1.end chop lu chop lu/3,-lu*0.5,1) |
| 1090 |
stroke(from L2.end to L2.start chop lu*.6,-lu*0.5,2) ') |
| 1091 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 1092 |
|
| 1093 |
define(`charw', |
| 1094 |
`[Origin: gco(0,0) `#' `charw' |
| 1095 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1096 |
L1: line from gco(0,4)+(ft2,-ft2) to gco(1.5,0)+(0,ft2) |
| 1097 |
L2: line to gco(3,4)+(0,-ft2) |
| 1098 |
L3: line to gco(4.5,0)+(0,ft2) |
| 1099 |
L4: line to gco(6,4)+(-ft2,-ft2) |
| 1100 |
ifelse(`$1',,,` |
| 1101 |
setstroke |
| 1102 |
stroke(from L1.start to L1.end chop lu chop lu/3,-lu*0.5,1) |
| 1103 |
stroke(from L2.end to L2.start chop lu*.6 chop lu,-lu*0.5,2) |
| 1104 |
stroke(from L3.start to L3.end chop lu*1.5 chop lu/3,-lu*0.5,3) |
| 1105 |
stroke(from L4.end to L4.start chop lu*.6 chop lu,-lu*0.5,4) ') |
| 1106 |
box invis wid 6*lu ht 4*lu with .sw at Origin]') |
| 1107 |
|
| 1108 |
define(`charx', |
| 1109 |
`[Origin: gco(0,0) `#' `charx' |
| 1110 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1111 |
L1: line from gco(0.5,4)+(0,-ft2) to gco(4,0)+(-ft2,ft2) |
| 1112 |
L2: line from gco(3.5,4)+(0,-ft2) to gco(0,0)+(ft2,ft2) |
| 1113 |
ifelse(`$1',,,` |
| 1114 |
setstroke |
| 1115 |
stroke(from L1.start to L1.end chop lu/3,-lu*0.6,1) |
| 1116 |
stroke(from L2.start to L2.end chop lu/3,lu*0.6,2) ') |
| 1117 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 1118 |
|
| 1119 |
define(`chary', |
| 1120 |
`[Origin: gco(0,0) `#' `chary' |
| 1121 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1122 |
L1: line from gco(0,4)+(ft2,-ft2) to gco(2,0)+(0,ft2) |
| 1123 |
L2x: gco(4,4)+(-ft2,-ft2) |
| 1124 |
L2: line from L2x to 1.37<L2x,L1.end> |
| 1125 |
C: Here-(perp(L2))/lin_leng(L2)*lu*1.1 |
| 1126 |
psset_(`linecolor=linegray') dnl |
| 1127 |
arcd(C,lu*1.1,-30,-105) cw |
| 1128 |
ifelse(`$1',,,` |
| 1129 |
setstroke |
| 1130 |
stroke(from L1.start to L1.end chop lu chop lu/2,-lu*0.5,1) |
| 1131 |
stroke(from L2.start to L2.end chop lu*.6 chop 0,-lu*0.5,2,solid) |
| 1132 |
arcd(C,lu*.6,-30,-110) cw -> ht 0.75*arrowht ') |
| 1133 |
box invis wid 4*lu ht 6*lu with .sw at Origin+(0,-2*lu)]') |
| 1134 |
|
| 1135 |
define(`charz', |
| 1136 |
`[Origin: gco(0,0) `#' `charz' |
| 1137 |
psset_(`arrows=c-c,linecolor=linegray') dnl |
| 1138 |
L1: line from gco(0.5,4)+(ft2,-ft2) to gco(4,4)+(-ft2,-ft2) |
| 1139 |
L2: line to gco(0,0)+(ft2,ft2) |
| 1140 |
L3: line to gco(4,0)+(-ft2,ft2) |
| 1141 |
ifelse(`$1',,,` |
| 1142 |
setstroke |
| 1143 |
stroke(from L1.start to L1.end chop lu/3 chop lu,-lu*0.6,1) |
| 1144 |
stroke(from L2.start to L2.end chop lu,lu*0.6,2) |
| 1145 |
stroke(from L3.start to L3.end chop lu/3,-lu*0.6,3) ') |
| 1146 |
box invis wid 4*lu ht 4*lu with .sw at Origin]') |
| 1147 |
|
| 1148 |
define(`xpnd',$*) |
| 1149 |
define(`Letters', |
| 1150 |
`ifelse(`$1',,,` |
| 1151 |
ifelse(substr(`$1',0,1),|,`charComma',substr(`$1',0,1),.,`charPeriod', |
| 1152 |
`xpnd(char`'substr(`$1',0,1))') |
| 1153 |
ifelse(substr(`$1',1,1),,,`move lu*.75/2*(')ifelse(substr(`$1',1,1),,, |
| 1154 |
substr(`$1',1,1),8,17,substr(`$1',1,1),6,16,A`'substr(`$1',1,1),A ,3, |
| 1155 |
substr(`$1',1,1))ifelse(substr(`$1',1,1),,,`-1)') |
| 1156 |
Letters(substr(`$1',2)) ') ') |
| 1157 |
|
| 1158 |
divert(0)dnl |