| 1 |
% mathematical symbols by Anthony Phan. |
| 2 |
% file: mathfine.mf (various fine mathematical symbols) |
| 3 |
% last modification: May 16, 2005. |
| 4 |
% Only known charcodes will be generated. |
| 5 |
|
| 6 |
def horizontal_rules_list=math_axis, |
| 7 |
-body_depth,-desc_depth,x_height,cap_height,asc_height,body_height |
| 8 |
enddef; |
| 9 |
|
| 10 |
%beginchar(Infinity,13.8u#+2appr#,v_center(0.2[x_height#,cap_height#])); |
| 11 |
% "Infinity"; |
| 12 |
% numeric a,b; pickup fine.nib; |
| 13 |
% b=vround 0.3[fine,curve]; |
| 14 |
% a=vround((h+d)/18); slope:=(h+d)/3u; |
| 15 |
% pos5(curve,angle(-1,-slope)-90); |
| 16 |
% pos11(b,-90); pos14(b,-90); |
| 17 |
% y1=y9=y5=(h-d)/2; top y7r=h+eps; bot y11r=-d-eps; |
| 18 |
% y7r-y14l=y3l-y11r=a; y3-y3l=y3r-y3=y7-y7l=y7r-y7=y11l-y11; |
| 19 |
% lft x1=appr; rt x9=w-appr; (x5-x1)/(y14-y3)=(x9-x5)/(y7-y11); |
| 20 |
% forsuffixes $=,r,l: |
| 21 |
% hellipse_set(1,3$,4$,5$); hellipse_set(9,7$,6$,5$); |
| 22 |
% endfor |
| 23 |
% slope:=-slope; |
| 24 |
% hellipse_set(1,14,13,5); hellipse_set(9,11,12,5); |
| 25 |
% y15=y13; x13-x14=x14-x15; x15=x2; y15-y1=y1-y2; |
| 26 |
% y10=y12; x10-x11=x11-x12; x8=x10; y10-y9=y9-y8; |
| 27 |
% filldraw stroke z1{down}...z2{1,slope}...z3e{right}...z4e---z6e |
| 28 |
% ...z7e{right}...z8{1,slope}...z9{down}...z10{-1,slope}... |
| 29 |
% z11e{left}...z12---z13...z14e{left}...z15{-1,slope}...z1{down}; |
| 30 |
% penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); |
| 31 |
% tmp_picture:=currentpicture; |
| 32 |
%endchar; |
| 33 |
|
| 34 |
beginchar(Infinity,13.8u#+2appr#,v_center(spread3#)); |
| 35 |
"Infinity"; |
| 36 |
numeric a,b; pickup fine.nib; |
| 37 |
a=vround((h+d+2o)/18); b=vround 0.3[fine,curve]; |
| 38 |
slope:=(h+d+2o)/3.15u; |
| 39 |
pos5(0.3[stem,curve],angle(-1,-slope)-90); |
| 40 |
pos11(b,-90); pos14(b,-90); |
| 41 |
y1=y9=y5=(h-d)/2; top y7r=h+o; bot y11r=-d-o; |
| 42 |
y7r-y14l=y3l-y11r=a; y3-y3l=y3r-y3=y7-y7l=y7r-y7=y11l-y11; |
| 43 |
lft x1=appr; rt x9=w-appr; (x5-x1)/(y14-y3)=(x9-x5)/(y7-y11); |
| 44 |
forsuffixes $=,r,l: |
| 45 |
hellipse_set(1,3$,4$,5$); hellipse_set(9,7$,6$,5$); |
| 46 |
endfor |
| 47 |
slope:=-slope; |
| 48 |
hellipse_set(1,14,13,5); hellipse_set(9,11,12,5); |
| 49 |
y15=y13; x13-x14=x14-x15; x15=x2; y15-y1=y1-y2; |
| 50 |
y10=y12; x10-x11=x11-x12; x8=x10; y10-y9=y9-y8; |
| 51 |
filldraw stroke z1{down}...z2{1,slope}...z3e{right}...z4e---z6e |
| 52 |
...z7e{right}...z8{1,slope}...z9{down}...z10{-1,slope}... |
| 53 |
z11e{left}...z12---z13...z14e{left}...z15{-1,slope}...z1{down}; |
| 54 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); |
| 55 |
tmp_picture:=currentpicture; |
| 56 |
endchar; |
| 57 |
|
| 58 |
iff (known Infinity) and (known proportionnal_to): |
| 59 |
beginchar(proportionnal_to,12u#+2appr#,v_center(spread3#)); |
| 60 |
"Proportionnal to sign"; |
| 61 |
currentpicture:=tmp_picture; |
| 62 |
cullit; |
| 63 |
unfill (w-appr,-d)--(w-appr+4u,-d)-- |
| 64 |
(w-appr+4u,h)--(w-appr,h)--cycle; |
| 65 |
endchar; |
| 66 |
|
| 67 |
% |
| 68 |
% a revoir |
| 69 |
% |
| 70 |
beginchar(partial,6.8u#+2appr#,asc_height#,0); |
| 71 |
"Partial derivative"; |
| 72 |
italcorr x_height#*slant-0.5u#-0.8u#; |
| 73 |
localtransform = identity slanted slant |
| 74 |
yscaled aspect_ratio scaled granularity |
| 75 |
shifted (-hround 0.8u,0); |
| 76 |
pickup fine.nib; pos2(stem,90); pos5(curve,180); |
| 77 |
lft x1-hround 0.35u=lft x5r+eps=appr; |
| 78 |
rt x3=w-appr+eps; x2=0.4[x1,x3]; x4=0.5[x5r,x3]; |
| 79 |
x6=0.5[x5,x3]; |
| 80 |
top y2r=asc_height+o; bot y4=-o; |
| 81 |
top y6=max(x_height,0.5asc_height)+oo; |
| 82 |
y3=0.5[y4,y2r]; y5=0.5[y4,y6]; y1=good.y 0.84[y4,y2r]; |
| 83 |
filldraw stroke z1 up_to_right z2e right_to_down z3; |
| 84 |
filldraw stroke z4 left_to_up z5e up_to_right z6; |
| 85 |
draw z3 down_to_left z4; draw z6{right}...z3; |
| 86 |
penlabels(1,2,3,4,5,6); |
| 87 |
endchar; |
| 88 |
|
| 89 |
beginchar(partial_slash,6.8u#+2appr#,asc_height#,asc_depth#); |
| 90 |
"Slashed partial derivative"; |
| 91 |
italcorr x_height#*slant-0.5u#-0.8u#; |
| 92 |
localtransform=identity slanted slant |
| 93 |
yscaled aspect_ratio scaled granularity |
| 94 |
shifted (-hround 0.8u,0); |
| 95 |
pickup fine.nib; pos2(stem,90); pos5(curve,180); |
| 96 |
lft x1-hround 0.35u=lft x5r+eps=appr; |
| 97 |
rt x3=w-appr+eps; x2=0.4[x1,x3]; x4=0.5[x5r,x3]; |
| 98 |
x6=0.5[x5,x3]; |
| 99 |
top y2r=asc_height+o; bot y4=-o; |
| 100 |
top y6=max(x_height,0.5asc_height)+oo; |
| 101 |
y3=0.5[y4,y2r]; y5=0.5[y4,y6]; y1=good.y 0.84[y4,y2r]; |
| 102 |
filldraw stroke z1 up_to_right z2e right_to_down z3; |
| 103 |
filldraw stroke z4 left_to_up z5e up_to_right z6; |
| 104 |
draw z3 down_to_left z4; draw z6{right}...z3; |
| 105 |
% |
| 106 |
bot y8=-d; y7-asc_height=-y8; |
| 107 |
z7=whatever[z4,z6]; z8=whatever[z4,z6]; |
| 108 |
numeric a; |
| 109 |
a=diag_width(max((rth0-fine),0),(z7-z8) slanted slant); |
| 110 |
penpos7(a,0); penpos8(a,0); filldraw stroke z7e..z8e; |
| 111 |
penlabels(1,2,3,4,5,6,7,8); |
| 112 |
endchar; |
| 113 |
|
| 114 |
% |
| 115 |
% daggers and asterisks |
| 116 |
% |
| 117 |
|
| 118 |
numeric dag_stem,dag_Stem; |
| 119 |
dag_stem=hround 0.3[curve,cap_curve]; |
| 120 |
dag_Stem=hround 0.6[curve,cap_curve]; |
| 121 |
|
| 122 |
beginchar(dagger,6u#+2appr#,asc_height#,asc_depth#); |
| 123 |
"Dagger mark"; |
| 124 |
% italcorr (0.75asc_height#-0.25asc_depth#)*slant-0.5u#; |
| 125 |
interim stress:=0.5; |
| 126 |
pickup fine.nib; |
| 127 |
x1=hround(0.5w-0.5dag_stem)+0.5dag_stem; |
| 128 |
y1=vround(0.25[h,-d]-0.5curve)+0.5curve; |
| 129 |
y4=good.y 0.4[h,-d]; z1=z2=z3; |
| 130 |
filldraw dagger_stroke1(h+oo-y1,dag_stem,hair,up)--cycle; |
| 131 |
x1=x4=x4a=x4b=x5; bot y5=-d-o; |
| 132 |
y4a=stress[y1,y4]; y4b=stress[y5,y4]; |
| 133 |
pos4(dag_Stem,0); pos5(hair,0); |
| 134 |
filldraw stroke z1e{down}...{z4e-z4a}z4e{z4b-z4e}...z5e{down}; |
| 135 |
interim stress:=0.4; |
| 136 |
filldraw dagger_stroke2(x1-appr+eps,curve,vair,left)--cycle; |
| 137 |
filldraw dagger_stroke3(x1-appr+eps,curve,vair,right)--cycle; |
| 138 |
labels(4,4a,4b,4r,4l,5,5r,5l); |
| 139 |
endchar; |
| 140 |
|
| 141 |
beginchar(double_dagger,6u#+2appr#,asc_height#,asc_depth#); |
| 142 |
"Double dagger mark"; |
| 143 |
% italcorr (0.75asc_height#-0.25asc_depth#)*slant-0.5u#; |
| 144 |
interim stress:=0.5; pickup fine.nib; |
| 145 |
x1=hround(0.5w-0.5dag_stem)+0.5dag_stem; |
| 146 |
y1=vround(0.25[h,-d]-0.5curve)+0.5curve; |
| 147 |
x1=x2=x3=x4=x5=x6=x7=x8=x9=x10; y1=y2=y3; h-y1-d=y4=y5=y6; |
| 148 |
filldraw dagger_stroke1(h+oo-y1,dag_stem,hair,up)--cycle; |
| 149 |
filldraw dagger_stroke4(h+oo-y1,dag_stem,hair,down)--cycle; |
| 150 |
y7=good.y 0.35[h,-d]; z10l=z4r; z10r=z4l; y1-y7=y9-y4; |
| 151 |
y8=0.5[y7,y9]; pos7(dag_Stem,0); |
| 152 |
pos8(hair,0); pos9(dag_Stem,0); |
| 153 |
z7a=stress[z1,z7]; z7b=stress[z8,z7]; |
| 154 |
z9a=stress[z4,z9]; z9b=stress[z8,z9]; |
| 155 |
filldraw stroke z1e{down}...{z7e-z7a}z7e{z7b-z7e}...z8e{down} |
| 156 |
...{z9e-z9b}z9e{z9a-z9e}...z10e{down}; |
| 157 |
interim stress:=0.4; |
| 158 |
filldraw dagger_stroke2(x1-appr,curve,vair,left)--cycle; |
| 159 |
filldraw dagger_stroke3(x1-appr+eps,curve,vair,right)--cycle; |
| 160 |
filldraw dagger_stroke5(x1-appr+eps,curve,vair,left)--cycle; |
| 161 |
filldraw dagger_stroke6(x1-appr+eps,curve,vair,right)--cycle; |
| 162 |
labels(7a,7b,9a,9b); penlabels(7,8,9,10); |
| 163 |
endchar; |
| 164 |
|
| 165 |
if (known upper_asterisk) |
| 166 |
or (known lower_asterisk) |
| 167 |
or (known triple_asterisk): |
| 168 |
beginpicture(tmp,ast_size#+2appr#,ast_size#,0); |
| 169 |
autorounded; interim stress:=0.5; pickup null.nib; |
| 170 |
numeric b,c,dag_curve,dag_stem; |
| 171 |
dag_curve=ast_curve; dag_stem=ast_stem; |
| 172 |
b=1.8ast_stem; c=1.4ast_stem; |
| 173 |
% |
| 174 |
x0=hround(0.5w-0.5dag_curve)+0.5dag_curve; y0=0.5[-d,h]; |
| 175 |
for $=1 upto 6: z[$]=b*dir($*60+30)+z0; |
| 176 |
z[$]'=c*dir($*60+60)+z0; endfor |
| 177 |
filldraw for $=1 upto 6: dagger_stroke[$](round(0.5ast_size-b)+eps, |
| 178 |
dag_curve,dag_stem,dir($*60+30))...z[$]'...endfor cycle; |
| 179 |
endpicture; |
| 180 |
fi |
| 181 |
|
| 182 |
beginchar(upper_asterisk,ast_size#+2appr#,body_height#,0); |
| 183 |
"Upper asterisk"; |
| 184 |
% italcorr body_height#*slant-0.5u#; |
| 185 |
currentpicture:=tmp_picture shifted(0,h-ast_size); |
| 186 |
endchar; |
| 187 |
|
| 188 |
beginchar(lower_asterisk,ast_size#+2appr#, |
| 189 |
ast_size#-body_depth#,body_depth#); |
| 190 |
"Lower asterisk"; |
| 191 |
% italcorr charht*slant-0.5u; |
| 192 |
currentpicture:=tmp_picture shifted(0,-body_depth); |
| 193 |
endchar; |
| 194 |
|
| 195 |
beginchar(triple_asterisk,20u#+2appr#,body_height#,body_depth#); |
| 196 |
"Triple asterisks"; |
| 197 |
% italcorr charht*slant-0.5u; |
| 198 |
currentpicture:= |
| 199 |
tmp_picture shifted(hround 6.5u,h-ast_size)+ |
| 200 |
tmp_picture shifted(2hround 6.5u-hround 13u,-d)+ |
| 201 |
tmp_picture shifted(hround 13u,-d); |
| 202 |
endchar; |
| 203 |
|
| 204 |
% |
| 205 |
% Musical signs (supposed to be identical to cm's ones...) |
| 206 |
% |
| 207 |
|
| 208 |
beginchar(musical_flat_sign,5u#+2appr#,body_height#,0); |
| 209 |
"Musical flat sign"; |
| 210 |
pickup crisp.nib; |
| 211 |
pos1(hair,0); pos2(hair,180); pos3(hair,0); x1=x2=x3; |
| 212 |
pos4(.25[hair,curve],60); pos5(curve,0); |
| 213 |
lft x1l=appr; x4=0.5w; rt x5r=w-appr; |
| 214 |
top y1=h; bot y3=-o; top y4=x_height+o; |
| 215 |
y2=y4-.2x_height; y5=3/4x_height; |
| 216 |
filldraw stroke z1e--z3e; % stem |
| 217 |
filldraw stroke z2e{up}...z4e{right}...z5e{down} |
| 218 |
...{2(x3-x5e),y3-y5e}z3e; % bowl |
| 219 |
penlabels(1,2,3,4,5); |
| 220 |
endchar; |
| 221 |
|
| 222 |
beginchar(musical_natural_sign,5u#+2appr#,asc_height#,desc_depth#); |
| 223 |
"Musical natural sign"; |
| 224 |
pickup crisp.nib; |
| 225 |
pos1(hair,0); pos2(curve,90); pos3(curve,90); |
| 226 |
pos4(curve,90); pos5(curve,90); pos6(hair,0); |
| 227 |
rt x1r=hround 7/8u+appr; x2=x4=x1l; x3=x5=x6r=w-x2; |
| 228 |
y1=h+o; top y2r=0; .5[y2,y3]=0; y4-y2=y5-y3=x_height; bot y6=-d-o; |
| 229 |
x2'=x1r; z2'=whatever[z2r,z3r]; x5'=x6l; z5'=whatever[z4l,z5l]; |
| 230 |
(x1r,y)=z1l+whatever*(z5-z4); y6l:=y6l-(y-y1r); y1r:=y; |
| 231 |
filldraw z1l--z2l--z3l--z3r--z2'--z1r--cycle; % left stem and lower bar |
| 232 |
filldraw z6r--z5r--z4r--z4l--z5'--z6l--cycle; % right stem and upper bar |
| 233 |
penlabels(1,2,3,4,5,6); |
| 234 |
endchar; |
| 235 |
|
| 236 |
beginchar(musical_sharp_sign,5u#+2appr#,asc_height#,desc_depth#); |
| 237 |
"Musical sharp sign"; |
| 238 |
pickup crisp.nib; |
| 239 |
pos1(curve,90); pos2(curve,90); pos3(curve,90); pos4(curve,90); |
| 240 |
lft x1=lft x3=appr; rt x2=rt x4=w-appr; |
| 241 |
top y3r=0; .5[y3,y4]=0; y1-y3=y2-y4=x_height; |
| 242 |
filldraw stroke z1e--z2e; filldraw stroke z3e--z4e; % bars |
| 243 |
numeric theta,hstem; theta=angle(z2-z1); |
| 244 |
(hstem-crisp)*cosd theta=hair-crisp; |
| 245 |
pos5(hstem,theta); pos6(hstem,theta); |
| 246 |
pos7(hstem,theta); pos8(hstem,theta); |
| 247 |
lft x5l=lft x6l=hround(2u-.5hair); x7=x8=w-x6; |
| 248 |
top y7l=h+o; bot y6r=-d-o; z7-z5=z8-z6=(whatever,0) rotated theta; |
| 249 |
filldraw stroke z5e--z6e; filldraw stroke z7e--z8e; % stems |
| 250 |
penlabels(1,2,3,4,5,6,7,8); |
| 251 |
endchar; |
| 252 |
|
| 253 |
beginchar(degree_sign, |
| 254 |
5u#+2appr#,0.8asc_height#,0); |
| 255 |
"Degree sign"; |
| 256 |
b:=round min(6.5u,8/12h); |
| 257 |
pickup rule.nib0; |
| 258 |
adjust_dot1((0.5w,6.5/12h),b,true,true); |
| 259 |
full_dot:=false; dot(1,1'); |
| 260 |
endchar; |
| 261 |
|
| 262 |
beginchar(prime_sign, |
| 263 |
u#+max(1.75u#,curve#+2(curve#-stem#))+2appr#, |
| 264 |
0.8asc_height#,0); |
| 265 |
"Prime sign"; |
| 266 |
pickup fine.nib; |
| 267 |
a:=hround(bold+2dw); b:=hround 0.5[vair,stem]; |
| 268 |
y1+0.5a=h; x1+0.5a=w-appr+hround 0.75u; |
| 269 |
y3=1/12asc_height; x3-0.5b=appr-hround 0.5u; |
| 270 |
save r,R,u_; pair u_; u_=unitvector(z1-z3); |
| 271 |
R=0.5(a-fine); x=R/(length(z1-z3)++0.5(b-fine)); |
| 272 |
z1-z2=R*x*u_; z0-z1=R*u_; c:=angle(z1-z3)-90; |
| 273 |
penpos1(2R,c); penpos2(2R*(1+-+x),c); pos3(b,c); |
| 274 |
filldraw z3r---z2r...z1r{u_}... |
| 275 |
(superness[z1,z1.r]+superness[z1,z0]-z1){z0-z1.r} |
| 276 |
...z0{z1.l-z1.r}... |
| 277 |
(superness[z1,z1.l]+superness[z1,z0]-z1){z1.l-z0} |
| 278 |
...z1.l{-u_}...z2l---z3l--cycle; |
| 279 |
penlabels(0,1,2,3); |
| 280 |
tmp_picture:=currentpicture; |
| 281 |
endchar; |
| 282 |
|
| 283 |
beginchar(second_sign, |
| 284 |
u#+2.25u#+2letter_fit#+2max(1.75u#,curve#+2(curve#-stem#))+2appr#, |
| 285 |
0.8asc_height#,0); |
| 286 |
"Second sign"; |
| 287 |
a:=hround(bold+2dw+2.25u+2letter_fit); |
| 288 |
currentpicture:=tmp_picture+(tmp_picture shifted (a,0)); |
| 289 |
endchar; |
| 290 |
|
| 291 |
beginchar(third_sign, |
| 292 |
u#+2*2.00u#+4letter_fit#+3max(1.75u#,curve#+2(curve#-stem#))+2appr#, |
| 293 |
0.8asc_height#,0); |
| 294 |
"Third sign"; |
| 295 |
a:=hround(bold+2dw+2.00u+2letter_fit); |
| 296 |
currentpicture:=tmp_picture+(tmp_picture shifted (a,0)) |
| 297 |
+(tmp_picture shifted (2a,0)); |
| 298 |
endchar; |
| 299 |
|
| 300 |
beginchar(fourth_sign, |
| 301 |
u#+3*1.75u#+6letter_fit#+4max(1.75u#,curve#+2(curve#-stem#))+2appr#, |
| 302 |
0.8asc_height#,0); |
| 303 |
"Fourth sign"; |
| 304 |
a:=hround(bold+2dw+1.75u+2letter_fit); |
| 305 |
currentpicture:=tmp_picture+(tmp_picture shifted (a,0)) |
| 306 |
+(tmp_picture shifted (2a,0))+(tmp_picture shifted (3a,0)); |
| 307 |
endchar; |
| 308 |
|
| 309 |
beginchar(backprime_sign, |
| 310 |
u#+max(1.75u#,curve#+2(curve#-stem#))+2appr#,0.8asc_height#,0); |
| 311 |
"Backrime sign"; |
| 312 |
pickup fine.nib; |
| 313 |
a:=hround(bold+2dw); b:=hround 0.5[vair,stem]; |
| 314 |
y1+0.5a=h; x1-0.5a=appr-hround 0.75u; |
| 315 |
y3=1/12asc_height; x3+0.5b=w-appr+hround 0.5u; |
| 316 |
save r,R,u_; pair u_; u_=unitvector(z1-z3); |
| 317 |
R=0.5(a-fine); x=R/(length(z1-z3)++0.5(b-fine)); |
| 318 |
z1-z2=R*x*u_; z0-z1=R*u_; c:=angle(z1-z3)-90; |
| 319 |
penpos1(2R,c); penpos2(2R*(1+-+x),c); pos3(b,c); |
| 320 |
filldraw z3r---z2r...z1r{u_}... |
| 321 |
(superness[z1,z1.r]+superness[z1,z0]-z1){z0-z1.r} |
| 322 |
...z0{z1.l-z1.r}... |
| 323 |
(superness[z1,z1.l]+superness[z1,z0]-z1){z1.l-z0} |
| 324 |
...z1.l{-u_}...z2l---z3l--cycle; |
| 325 |
penlabels(0,1,2,3); |
| 326 |
endchar; |
| 327 |
|
| 328 |
beginchar(accent_circ, |
| 329 |
5u#+2appr#,asc_height#,0); |
| 330 |
"Circ accent"; |
| 331 |
b:=max(h+2o-1/3[x_height,h],4u); |
| 332 |
pickup pencircle scaled hair; |
| 333 |
adjust_dot1((0.5w,max(1/3[x_height,h]+0.5b-o,x_height+2o)),b,false,false); |
| 334 |
full_dot:=false; dot(1,1'); |
| 335 |
endchar; |
| 336 |
|
| 337 |
beginchar(accent_dot, |
| 338 |
3u#+2appr#, |
| 339 |
min(7/10[x_height#,asc_height]+0.5max(dtsz#,cap_curve#),asc_height#),0); |
| 340 |
"Dot accent"; |
| 341 |
b:=max(dtsz,cap_curve); ensure_centering_of(b); |
| 342 |
pickup null.nib; |
| 343 |
adjust_dot1((0.5w,h+1-0.5b),b,false,false); dot(1,1'); |
| 344 |
endchar; |
| 345 |
|
| 346 |
beginchar(accent_ddot,7u#+2appr#, |
| 347 |
min(7/10[x_height#,asc_height]+0.5max(dtsz#,cap_curve#),asc_height#),0); |
| 348 |
"Ddot accent"; |
| 349 |
b:=max(dtsz,cap_curve);% ensure_centering_of(b); |
| 350 |
pickup null.nib; |
| 351 |
adjust_dot1((0.5w-1.75u,h+1-0.5b),b,false,false); dot(1,1'); |
| 352 |
adjust_dot2((0.5w+1.75u,h+1-0.5b),b,false,false); dot(2,2'); |
| 353 |
endchar; |
| 354 |
|
| 355 |
beginchar(accent_dddot,8u#+2appr#, |
| 356 |
min(7/10[x_height#,asc_height]+0.5max(dtsz#,cap_curve#),asc_height#),0); |
| 357 |
"Dddot accent"; |
| 358 |
a:=hround 3.25u; b:=max(dtsz,cap_curve); ensure_centering_of(b); |
| 359 |
pickup null.nib; |
| 360 |
adjust_dot1((0.5w-a,h+1-0.5b),b,false,false); dot(1,1'); |
| 361 |
adjust_dot2((0.5w,h+1-0.5b),b,false,false); dot(2,2'); |
| 362 |
adjust_dot3((0.5w+a,h+1-0.5b),b,false,false); dot(3,3'); |
| 363 |
endchar; |
| 364 |
|
| 365 |
beginchar(accent_ddddot,9u#+2appr#, |
| 366 |
min(7/10[x_height#,asc_height]+0.5max(dtsz#,cap_curve#),asc_height#),0); |
| 367 |
"Ddddot accent"; |
| 368 |
a:=hround 3u; b:=max(dtsz,cap_curve);% ensure_centering_of(b); |
| 369 |
pickup null.nib; |
| 370 |
adjust_dot1((0.5w-1.5a,h+1-0.5b),b,false,false); dot(1,1'); |
| 371 |
adjust_dot2((0.5w-0.5a,h+1-0.5b),b,false,false); dot(2,2'); |
| 372 |
adjust_dot3((0.5w+0.5a,h+1-0.5b),b,false,false); dot(3,3'); |
| 373 |
adjust_dot4((0.5w+1.5a,h+1-0.5b),b,false,false); dot(4,4'); |
| 374 |
endchar; |
| 375 |
|