Debian Codegraph @

texmf-dist/fonts/source/public/elvish/tengsecs.mf

raw
1
2 beginchar("l",0.8em#,ex#,desc#) ; "The tengwa lambe" ;
3 pickup main_nib ;
4 x1 = straight_sidebar ; x2 = w - x1 ;
5 top y1 = top y2 = round ex ;
6 z1' = z1 - ( 0.04em * dir penangle) ;
7 z2' = z2 + ( 0.04em * dir penangle) ;
8 draw z1'{dir penangle} .. {dir penangle}z2' ;
9 y3 = y1 ; x3 = 0.6[x1,x2] ; % top of bowl
10 lft x4 = 2curve_sidebar ; y4 = 0.2ex ; % side of bowl
11 bot y5 = -0.5 desc ; x5 = .4w ; % bottom of bowl
12 x6 = w - x4 ; y6 = 0.2ex; % right side of bowl
13 z7 = z6 + (0.05em *(left rotated -10)) ;
14 draw z3{dir (penangle+180)} ..
15 {down}z4 .. z5{right}
16 .. z6 .. {dir -penangle} z7 ;
17 labels(1,2,3,4,5,6) ;
18 endchar ;
19
20 beginchar("I",0.8tinco_width#,ex#,0) ; "The tengwa yanta" ;
21 pickup main_nib ;
22 y1 = 0 ; x1 = straight_sidebar ; % bottom of left arm ;
23 y2 = 0 ; x2 = w - x1 ; % bottom of right arm
24 x3 = 0.5[x1,x2] ; y3 = 0.8ex ; % junction point
25 top y4 = round(ex) ; z4 - z2 = whatever*(z3 - z2) ; % top of arm
26 draw z4 .. z2 ;
27 draw z3 .. z1 ;
28 z4' = z4 + 0.05em * dir(penangle+180) ;
29 z2' = z2 + 0.05em * dir(penangle) ;
30 z1' = z1 + 0.05em * dir(penangle+90) ;
31 draw z4'{dir penangle} .. {z2-z4}z4 ;
32 draw z2'{dir (penangle+180)} .. {z4-z2}z2 ;
33 draw z1'{dir(penangle-90)} .. {z3-z1}z1 ;
34 endchar ;
35
36 beginchar("U",0.9tinco_width#,ex#,0) ; "The tengwa ure" ;
37 pickup main_nib ;
38 top y1 = round(ex+o) ; x1 = 0.5w ;
39 bot y3 = round(-o) ; x3 = x1 ;
40 rt x2 = w - curve_sidebar = w - lft x4 ;
41 y2 = y4 = 0.5h ;
42 draw z1 .. z2 .. z3 .. z4 .. cycle ;
43 endchar ;
44
45
46 beginchar("s",0.9*tinco_width#,asc#,0) ; "The tengwa silme" ;
47 pickup main_nib ;
48 lft x4 = curve_sidebar ; y4 = 0.7ex ; % left side of bow
49 bot y3 = round(-o) ; x3 = good.x 0.5w ; % bottom
50 x2 = w - x4 ; y2 = 0.5ex ; % right side of bow
51 x1 = good.x 0.7w ; y1 = 0.8ex ; % end of bow
52 z1' = z1 + 0.03em*dir(170) ; % serif
53 x5 = 0.55w ; y5 = 0.95asc ; % top end of letter
54 z6 = z5 + 0.05em*(dir(penangle+80)) ; % for serif
55 draw z1'{dir penangle} .. z1 .. z2 .. z3 .. z4{up} .. tension 0.9 and 1.2 .. z5 .. z6 ;
56 labels(1,1',2,3,4,5,6) ;
57 endchar ;
58
59 beginchar("S",0.9*tinco_width#,ex#,desc#); "The tengwa silme nuquerna";
60 pickup main_nib ;
61 lft x2 = curve_sidebar ; y2 = 0.6 ex ; % left
62 top y3 = round(ex+o) ; x3 = 0.55w ; % top
63 rt x4 = w - curve_sidebar ; y4 = 0.4 ex ;
64 x1 = x2 + 0.2w ; y1 = 0.25 ex ; % curly end
65 x5 = x2 ; y5 = -0.9desc ;
66 draw z1{dir(penangle+180)} .. z2{up} .. z3{right} ..
67 z4{down} .. tension 1.2 .. z5 ;
68 labels(1,2,3,4,5) ;
69 endchar ;
70
71 beginchar("r", romen_width#, ex#, desc#); "The tengwa romen";
72 pickup main_nib ;
73 x1 = straight_sidebar ; top y1 = round(0.95ex) ; % top of left arm
74 bot y2 = 0.0ex ; % join at bottom
75 rt x3 = w - curve_sidebar ; y3 = 0.75ex ;% 'top' of right stem ;
76 % want vectors z3-z2 and z1-z2 to be mirror images in direction
77 numeric temp ;
78 y3 - y2 = temp*(y1 - y2) ;
79 x3 - x2 = 1.1temp*(x2 - x1) ; % not quite mirror !
80 draw z1 -- z2 ; % left arm (without serif)
81 z1' = z1 + 0.05em*dir(penangle+135) ;
82 draw z1'{dir penangle} .. {z2-z1}z1 ; % serif
83 top y4 = round(ex - 0.2penwidth*sind penangle) ; x4 = 1/3[x2,x3] ; % end of right arm
84 bot y5 = round(-0.9desc) ; x5 = 0[x2,x3] ; % bottom of tail
85 y6 = -0.2desc ; x6 = 1/2[x5,x3] ; % end of tail
86 path p ;
87 p = z4{dir penangle} .. z3 .. tension 1 .. z2 % {dir (penangle+180)}
88 .. tension 3/4 .. z5{right} .. {dir (penangle+180)}z6 ;
89 draw p ;
90 draw z1'{dir penangle} .. {z2-z1}z1 .. z2 ;
91 labels(1,2,3,4,5,6);
92 endchar ;
93
94 beginchar("&", romen_width#, ex#, desc#); "The tengwa arda";
95 pickup main_nib ;
96 x1 = straight_sidebar ; top y1 = round(0.95ex) ; % top of left arm
97 bot y2 = 0.0ex ; % join at bottom
98 rt x3 = w - curve_sidebar ; y3 = 0.75ex ;% 'top' of right stem ;
99 % want vectors z3-z2 and z1-z2 to be mirror images in direction
100 numeric temp ;
101 y3 - y2 = temp*(y1 - y2) ;
102 x3 - x2 = 1.1temp*(x2 - x1) ; % not quite mirror !
103 draw z1 -- z2 ; % left arm (without serif)
104 z1' = z1 + 0.05em*dir(penangle+135) ;
105 draw z1'{dir penangle} .. {z2-z1}z1 ; % serif
106 top y4 = round(ex - 0.2penwidth*sind penangle) ; x4 = 1/3[x2,x3] ; % end of right arm
107 bot y5 = round(-0.9desc) ; x5 = 0[x2,x3] ; % bottom of tail
108 y6 = -0.2desc ; x6 = 1/2[x5,x3] ; % end of tail
109 path p ;
110 p = z4{dir penangle} .. z3 .. tension 1 .. z2 % {dir (penangle+180)}
111 .. tension 3/4 .. z5{right} .. {dir (penangle+180)}z6 ;
112 draw p ;
113 draw z1'{dir penangle} .. {z2-z1}z1 .. z2 ;
114 z10 = 0.25[z2,z1] ;
115 z11 = z10 + 0.2em*dir(penangle+180) ;
116 z12 = z11 + 0.08em*dir(penangle-90) ;
117 draw z10 .. tension 1.5 .. z11 .. tension 1.5 .. z12 ;
118 labels(1,2,3,4,5,6,10,11,12);
119 endchar ;
120
121 beginchar("z",0.85tinco_width#,asc#,desc#) ; "The tengwa esse" ;
122 pickup main_nib ;
123 % top bow first - make a path for later use
124 x1 = 0.55w ; y1 = 0.95asc ; % top
125 z1' = z1 + 0.05em*dir(penangle+80) ; % serif
126 lft x2 = curve_sidebar ; y2 = 0.5h ; % left side of top bow ;
127 x3 = 0.5w ; y3 = good.y 0.2h ; % bottom of top bow
128 x4 = 0.7w ; y4 = 0.5h ; % end of bow
129 z4' = z4 + 0.03em*dir(170) ; % serif
130 path p ;
131 p = z4'{dir penangle} .. z4 .. z3{left} .. z2{up} ..
132 tension 0.9 and 1.2 .. z1 .. z1' ;
133 draw p ;
134 x5' = x1 ; y5'-y7 = y1-y3 ; % top of bottom bow
135 x6 = x2 ; y6 - y7 = y2 - y3 ; % side
136 x7 = x3 ; bot y7 = round(-0.9desc) ; % bottom
137 z8 - z7 = z4 - z3 ; % end
138 z8' - z8 = z4' - z4 ;
139 path pa ;
140 pa = z8'{dir penangle} .. z8 .. z7{left} .. z6{up} ..
141 tension 0.9 and 1.2 .. z5' ;
142 (t1,t2) = p intersectiontimes pa ;
143 draw subpath(0,t2) of pa ;
144 labels(1,2,3,4,5,6,7,8) ;
145 endchar ;
146
147 beginchar("Z",0.8tinco_width#,ex#,desc#) ; "The tengwa esse nuquerna" ;
148 pickup main_nib ;
149 y1 = 0.5h ; x1 = 0.3w ; % end of top bow
150 z1' = z1 + 0.03em*dir(-10) ; % and serif
151 % ignore z2 (left side) for the moment
152 top y3 = round(ex+o) ; x3 = 0.5w ; % top
153 rt x4 = 0.9w - curve_sidebar ; y4 = 0.65h ; % right
154 y5 = -0.1desc ; lft x5 = curve_sidebar ; %end
155 path p ;
156 p = z1'{dir(penangle+180)} .. z3{right} .. z4{down} ..
157 tension 0.9 and 1.2 .. z5 ;
158 draw p ;
159 z6 = ( (0.5w,-desc) .. (0.5w,0.5ex) ) intersectionpoint p ;
160 x7 = x4 ; y7 = -0.3desc ;
161 x8 = x5 ; y8 = -0.9desc ;
162 draw z6{dir penangle} .. z7{down} .. tension 0.9 and 2 .. z8 ;
163 labels(1,2,3,4,5,6,7,8) ;
164 endchar ;
165
166 beginchar("h",0.8tinco_width#,asc#,0) ; "The tengwa hyarmen" ;
167 pickup main_nib ;
168 bot y1 = 0 ; x1 = straight_sidebar ; % bottom of left arm
169 y2 = 0 ; x2 = w - x1 ; % bottom of right arm
170 x3 = 0.6[x1,x2] ; y3 = 0.9ex ; % junction point
171 top y4 = round (0.9asc) ; z4 - z2 = whatever*(z3-z2) ; % top of arm
172 z4' = z4 + 0.08em*dir(penangle+160);
173 z4'' = z4 + 0.08em*(dir(angle(z2-z4))) ;
174 draw z4'{dir penangle} .. z4'' --- z2 ;
175 draw z3 .. z1 ;
176 z1' = z1 + 0.05em*dir(penangle+180) ;
177 z2' = z2 + 0.05em*dir(penangle) ;
178 draw z2'{dir(penangle+180)} .. {z4-z2}z2 ;
179 draw z1'{dir(penangle-90)} .. {z3-z1}z1 ;
180 labels(1,2,3,4) ;
181 endchar ;
182
183 beginchar("H",tinco_width#,asc#,0) ; "The tengwa hwesta sindarinwa" ;
184 pickup main_nib ;
185 top y1 = asc ; x1 = good.x (w - 0.2em) ;
186 bot y2 = 0 ; x2 = x1 ;
187 draw_telco(1,2,"t") ;
188 x3 = x7 = x1 ; y3 = .75ex ; y7 = 0.1ex ;
189 top y4 = round(ex+o) ;
190 bot y6 = round(-o) ;
191 x4 = 0.5w ;
192 x6 = 0.4w ;
193 y5 = 0.5ex ; x5 = curve_sidebar ;
194 draw z3 .. z4{left} .. z5{down} .. z6{right} .. z7 ;
195 z2' = z2 + 0.05em*dir(penangle) ;
196 z2'' = z2 + 0.2em*right ;
197 z2''' = z2 - 0.05em*dir(penangle+180) ;
198 draw z2{dir penangle} .. z2' .. z2'' .. z2'''{dir penangle} ;
199 labels(1,2,3,4,5,6,2'') ;
200 endchar ;
201
202 beginchar("@",0.3em#,ex#,0) ; "The short carrier" ;
203 pickup main_nib ;
204 top y1 = round(ex) ; y2 = 0 ;
205 x1 = x2 = good.x 0.5w ;
206 draw_telco(1,2,"tb") ;
207 endchar ;
208
209 beginchar("*",0.3em#,ex#,desc#) ; "The long carrier" ;
210 pickup main_nib ;
211 top y1 = round(ex) ; y2 = -0.6desc ;
212 x1 = x2 = good.x 0.5w ;
213 draw_telco(1,2,"t") ;
214 z3 = z2 + 0.2em*dir(penangle-150) ;
215 draw z2{z2-z1} .. z3{dir(penangle+180)} ;
216 endchar ;
217
218 beginchar("A",0.75tinco_width#,ex#,0) ; "The tengwa A" ;
219 pickup main_nib ;
220 top y1 = round(ex+o) ; x1 = 0.6w ;
221 y3 = 0 ; x3 = x1 ;
222 lft x2 = curve_sidebar ; y2 = 0.55h ;
223 x4 = w - straight_sidebar ; x6 = x4+0.05em ;
224 y4 = 0.75h ; y6 = 0.35h ;
225 z4' = z4 + 0.03em*dir(180+penangle) ;
226 draw z4'{dir penangle} .. z4 .. z1{left} .. z2{down} .. z3{right} .. z6 ;
227 endchar ;
228
229 beginchar("|",0.3em#,asc#,0); "The tengwa halla" ;
230 pickup main_nib ;
231 x1 = x2 = good.x 0.5w ;
232 top y1 = asc ;
233 y2 = 0 ;
234 draw_telco(1,2)("tb") ;
235 endchar ;
236
237 beginchar("L",0.8em#,ex#,desc#) ; "The tengwa alda" ;
238 pickup main_nib ;
239 x1 = straight_sidebar = w - x2 ;
240 top y1 = top y2 = round ex ;
241 z1' = z1 - ( 0.04em * dir penangle) ;
242 z2' = z2 + ( 0.04em * dir penangle) ;
243 draw z1'{dir penangle} .. {dir penangle}z2' ;
244 x3 = 0.4[x1,x2] ; % top of bowl
245 y3 = 0.95ex ;
246 lft x4 = straight_sidebar ; y4 = 0.5ex ; % first bend
247 rt x5 = w - straight_sidebar ; y5 = -0.15ex ; % second bend
248 x6 = 0.65w ; bot y6 = -0.7desc ; % bottom of bowl
249 x7 = 0.3w ; y7 = -0.2 ex ; % end
250 draw z3{curl 0} .. tension 2 .. z4{down} .. z5{down} .. z6{left} ..
251 z7{dir penangle} ;
252 endchar ;
253 beginchar("$", romen_width#, asc#, 0) ; "Inverted romen - wh" ;
254 pickup main_nib ;
255 x1 = w - straight_sidebar ; bot y1 = round(0.05ex) ;
256 top y2 = 1.0ex ;
257 lft x3 = curve_sidebar ; y3 = 0.25ex ;
258 numeric temp ;
259 y3 - y2 = temp*(y1 - y2) ;
260 x3 - x2 = 1.1temp*(x2 - x1) ;
261 draw z1 -- z2 ;
262 z1' = z1 + 0.05em*dir(penangle-45) ;
263 draw z1'{dir(penangle+180)} .. {z2-z1}z1 ;
264 bot y4 = round(0.2penwidth*sind penangle) ; x4 = 1/3[x2,x3] ;
265 top y5 = round(ex+0.9desc) ; x5 = 0[x2,x3] ;
266 y6 = ex + 0.2desc ; x6 = 1/2[x5,x3] ;
267 draw z4{dir(penangle+180)} .. z3 .. z2
268 .. tension 3/4 .. z5{left} .. {dir penangle}z6 ;
269 draw z1'{dir penangle} .. {z2 - z1}z1 .. z2 ;
270 labels(1,2,3,4,5,6) ;
271 endchar ;
272
273 beginchar("#",0.7em#,ex#,desc#) ; "Inverted lambe - w" ;
274 pickup main_nib ;
275 x1 = straight_sidebar = w - x2 ;
276 bot y1 = bot y2 = -0.5desc ;
277 z1' = z1 - 0.04em*dir(penangle) ;
278 z2' = z2 + 0.04em*dir(penangle) ;
279 draw z1'{dir penangle} .. {dir penangle}z2' ;
280 y3 = y1 ; x3 = 0.2[x1,x2] ;
281 rt x4 = w - curve_sidebar ; y4 = 0.8ex - 0.5desc;
282 top y5 = round(ex) ; x5 = 0.6w ;
283 x6 = w - x4 ; y6 = y4 ;
284 z7 = z6 + 0.05em*(left rotated 170) ;
285 draw z3{dir penangle} .. {up}z4 .. z5{left}
286 .. z6 .. {dir(180-penangle)}z7 ;
287 labels(1,2,3,4,5,6,7) ;
288 endchar ;
289
290 beginchar("%",0.8tinco_width#,ex#,0) ; "The tengwa for u in up" ;
291 pickup main_nib ;
292 top y1 = ex ; rt x1 = w - straight_sidebar ;
293 y2 = 0 ; x2 = x1 ;
294 draw_telco(1,2)("tb") ;
295 y3 = y1 ; x3 = w - x1 ;
296 x4 = x3 ; y4 = 0.3h ;
297 draw_telco(3,4)("t") ;
298 y5 = 0 ; x5 = 0.45w ;
299 x6 = x1 ; y6 = 0.3ex ;
300 draw z4{z4-z3} .. z5 .. z6{dir penangle} ;
301 labels(5,6) ;
302 endchar ;
303
304 beginchar(9,0.55em#,ex#,0) ; "The schwa tengwa (Pictures plate 48)" ;
305 pickup main_nib ;
306 lft x1 = lft x2 = straight_sidebar ;
307 top y1 = ex ; y2 = 0 ;
308 draw_telco(1,2)("tb") ;
309 y3 = y1 ; rt x3 = w ; %- curve_sidebar ;
310 draw_bar(1,3)("r") ;
311 endchar ;