Debian Codegraph @

texmf-dist/source/fonts/archaic/oldprsn.dtx

raw
1 % \iffalse meta-comment
2 %
3 % oldprsn.dtx
4 % Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net
5 % Copyright 1999--2005 Peter R. Wilson
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the Latex Project Public License, either
9 % version 1.3 of this license or (at your option) any
10 % later version.
11 % The latest version of the license is in
12 % http://www.latex-project.org/lppl.txt
13 % and version 1.3 or later is part of all distributions of
14 % LaTeX version 2003/06/01 or later.
15 %
16 % This work has the LPPL maintenance status "author-maintained".
17 %
18 % This work consists of the files listed in the README file.
19 %
20 %
21 %<*driver>
22 \documentclass[twoside]{ltxdoc}
23 \usepackage{url}
24 \usepackage[draft=false,
25 plainpages=false,
26 pdfpagelabels,
27 bookmarksnumbered,
28 hyperindex=false
29 ]{hyperref}
30 \providecommand{\phantomsection}{}
31 \OnlyDescription %% comment this out for the full glory
32 \EnableCrossrefs
33 \CodelineIndex
34 \setcounter{StandardModuleDepth}{1}
35 \makeatletter
36 \@mparswitchfalse
37 \makeatother
38 \renewcommand{\MakeUppercase}[1]{#1}
39 \pagestyle{headings}
40 \newenvironment{addtomargins}[1]{%
41 \begin{list}{}{%
42 \topsep 0pt%
43 \addtolength{\leftmargin}{#1}%
44 \addtolength{\rightmargin}{#1}%
45 \listparindent \parindent
46 \itemindent \parindent
47 \parsep \parskip}%
48 \item[]}{\end{list}}
49 \begin{document}
50 \raggedbottom
51 \DocInput{oldprsn.dtx}
52 \end{document}
53 %</driver>
54 %
55 % \fi
56 %
57 % \CheckSum{250}
58 %
59 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
60 % \DoNotIndex{\@centercr,\@cite}
61 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
62 % \DoNotIndex{\@input,\@ixpt,\@m}
63 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
64 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
65 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
66 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
67 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
68 % \DoNotIndex{\advance,\Alph,\alph}
69 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
70 % \DoNotIndex{\bullet}
71 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
72 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
73 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
74 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
75 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
76 % \DoNotIndex{\fbox}
77 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
78 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
79 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
80 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
81 % \DoNotIndex{\input}
82 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
83 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
84 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
85 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
86 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
87 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
88 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
89 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
90 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
91 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
92 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
93 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
94 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
95 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
96 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
97 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
98 % \DoNotIndex{\wd,\xiipt,\year,\z@}
99 %
100 % \changes{v1.0}{1999/03/14}{First public release}
101 % \changes{v1.1}{2000/09/24}{Added numerals}
102 % \changes{v1.2}{2005/06/17}{Added map file}
103 %
104 % \def\fileversion{v1.0} \def\filedate{1999/03/14}
105 % \def\fileversion{v1.1} \def\filedate{2000/09/24}
106 % \def\fileversion{v1.2} \def\filedate{2005/06/17}
107 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
108 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
109 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
110 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
111 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
112 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
113 % \newcommand{\BC}{\textsc{bc}}
114 % \newcommand{\AD}{\textsc{ad}}
115 % \newcommand{\thisfont}{Old Persian}
116 %
117 %
118 % \title{The \Lpack{Old Persian} font\thanks{This
119 % file has version number \fileversion, last revised
120 % \filedate.}}
121 %
122 % \author{%
123 % Peter Wilson\thanks{\texttt{herries dot press at earthlink dot net}}\\
124 % Herries Press }
125 % \date{\filedate}
126 % \maketitle
127 % \begin{abstract}
128 % The \Lpack{oldprsn} bundle provides a set of fonts for the
129 % \thisfont{} cuneiform script which was used between about 500 and 350~\BC{}
130 % in Persia. This is one in a series for archaic scripts.
131 % \end{abstract}
132 % \tableofcontents
133 %
134 %
135 % \section{Introduction}
136 %
137 % The Phoenician alphabet and characters is a direct ancestor of our modern day
138 % Latin alphabet and fonts.
139 % The font presented here is one of a series of fonts intended to show how
140 % the modern Latin alphabet has evolved from its original Phoenician form
141 % to its present day appearance.
142 %
143 % This manual is typeset according to the conventions of the
144 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
145 % extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}.
146 %
147 % Section~\ref{sec:usc} describes the usage of the package.
148 % Commented code for the fonts and
149 % source code for the package is in later sections.
150 %
151 % \subsection{An alphabetic tree}
152 %
153 % Scholars are reasonably agreed that all the world's alphabets are descended
154 % from a Semitic alphabet invented about 1600~\BC{} in the Middle
155 % East~\cite{DRUCKER95}. The word `Semitic' refers
156 % to the family of languages used in the geographical area from
157 % Sinai in the south, up the Mediterranean coast to Asia Minor in the north and
158 % west to the valley of the Euphrates.
159 %
160 % The Phoenician alphabet was stable by about 1100~\BC{} and the script was
161 % written right to left. In earlier times the writing direction was variable,
162 % and so were
163 % the shapes and orientation of the characters. The alphabet consisted of
164 % 22 letters and they were named after things. For example, their first two
165 % letters were called \textit{aleph} (ox), and \textit{beth} (house).
166 % The Phoenician script had
167 % only one case --- unlike our modern fonts which have both upper- and
168 % lower-cases. In modern terms the Phoenician abecedary was: \\
169 % A B G D E Y Z H $\Theta$ I K L M N X O P ts Q R S T \\
170 % where the `Y' (\textit{vau}) character was sometimes written as `F', and
171 % `ts' stands for the \textit{tsade} character.
172 %
173 % The Greek alphabet is one of the descendants of the Phoenician alphabet;
174 % another was Aramaic which is the ancestor of the Arabic, Persian and Indian
175 % scripts.
176 % Initially Greek was written right to left but around the 6th C~\BC{} became
177 % \textit{boustrophedron}, meaning that the lines
178 % alternated in direction. At about 500~\BC{} the writing direction stabilised
179 % as left to
180 % right. The Greeks modified the Phoenician alphabet to match the vocalisation
181 % of their language. They kept the Phoenician names of the letters, suitably
182 % `greekified', so \textit{aleph} became the familar \textit{alpha} and
183 % \textit{beth} became \textit{beta}. At this
184 % point the names of the letters had no meaning. Their were several variants
185 % of the Greek character glyphs until they were finally fixed in Athens in
186 % 403~\BC.
187 % The Greeks did not develop a lower-case
188 % script until about 600--700~\AD.
189 %
190 % The Etruscans based their alphabet on the Greek one, and again modified it.
191 % However, the Etruscans wrote right to left, so their borrowed characters are
192 % mirror images of the original Greek ones. Like the Phoenicians, the Etruscan
193 % script consisted of only one case; they died out before ever needing a
194 % lower-case script. The Etruscan script was used up until the first century
195 % \AD, even though the Etruscans themselves had dissapeared by that time.
196 %
197 %
198 % In turn, the Romans based their alphabet on the Etruscan one, but as they
199 % wrote left to right, the characters were again mirrored (although the early
200 % Roman inscriptions are boustrophedron).
201 %
202 % As the English alphabet is descended from the Roman alphabet
203 % it has a pedigree of some three and a half thousand years.
204 %
205 % \section{The \Lpack{oldprsn} package} \label{sec:usc}
206 %
207 % The earliest cuneiform writing, about 2800~\BC, was used by
208 % the Sumerians in the Middle East~\cite{WALKER87,HEALEY90}.
209 % Other cuneiform scripts were used for Akkadian (2300~\BC) and
210 % Babylonian (2000~\BC). These were partly ideographic and partly
211 % syllabic scripts. The last dated use of a cuneiform script was
212 % in 75~\AD.
213 %
214 % It is claimed that the \thisfont{} cuneiform script was invented by order
215 % of the Achaemenid Persian king Darius~I (521--486~\BC)
216 % for inscriptions on royal monuments. In everday use the Persian scribes
217 % used the Elamite cuneiform or Aramaic scripts. \thisfont{} was
218 % abandoned after Ataxerxes~III (358--338~\BC).
219 %
220 % The script is a syllabary, with 3 vowels and 33 syllabic glyphs.
221 % There are also 5 ideograms, some in multiple forms, for \textit{king},
222 % \textit{country}, \textit{earth}, \textit{god}, and \textit{Ahuramazda}.
223 % The last of these is the name of the Persian god. There are also glyphs for
224 % numbers and a word divider. Walker~\cite{WALKER87} gives general information
225 % on how cuneiform numerals
226 % were used to form numbers; for detailed information
227 % consult Ifrah's magnificent work~\cite{IFRAH00}. Basically, the
228 % writers used a system like the Romans where large numbers were formed
229 % by adding smaller numbers.
230 %
231 % Table~\ref{tab1} lists the
232 % translitered values of the script and Table~\ref{tab2} lists the
233 % ideographs, numerals, and the word divider.
234 %
235 % \DescribeMacro{\copsnfamily}
236 % This command selects the \thisfont{} font family.
237 % The family name is |copsn|.
238 %
239 % \DescribeMacro{\textcopsn}
240 % The command |\textcopsn{|\meta{ASCII/commands}|}|
241 % typesets \meta{ASCII/commands} in the
242 % \thisfont{} font.
243 %
244 % I have provided two means of accessing the \thisfont{} glyphs:
245 % (a)~by ASCII characters, and (b)~via commands.
246 % These are shown in Tables~\ref{tab1} and~\ref{tab2}.
247 %
248 %
249 % \begin{table}
250 % \centering
251 % \caption{The Old Persian syllabary}\label{tab1}
252 % \begin{tabular}{ccl} \hline
253 % Old Persian & ASCII & Command \\ \hline
254 % \textit{a} & a & |\Oa| \\
255 % \textit{i} & i & |\Oi| \\
256 % \textit{u} & u & |\Ou| \\
257 % \textit{ka} & k & |\Oka| \\
258 % \textit{ku} & K & |\Oku| \\
259 % \textit{xa} & x & |\Oxa| \\
260 % \textit{ga} & g & |\Oga| \\
261 % \textit{gu} & G & |\Ogu| \\
262 % \textit{ca} & c & |\Oca| \\
263 % \textit{ja} & j & |\Oja| \\
264 % \textit{ji} & J & |\Oji| \\
265 % \textit{ta} & t & |\Ota| \\
266 % \textit{tu} & T & |\Otu| \\
267 % \textit{tha} & o & |\Otha| \\
268 % \textit{\c{c}a} & C & |\Occa| \\
269 % \textit{da} & d & |\Oda| \\
270 % \textit{di} & P & |\Odi| \\
271 % \textit{du} & D & |\Odu| \\
272 % \textit{na} & n & |\Ona| \\
273 % \textit{nu} & N & |\Onu| \\
274 % \textit{pa} & p & |\Opa| \\
275 % \textit{fa} & f & |\Ofa| \\
276 % \textit{ba} & b & |\Oba| \\
277 % \textit{ma} & m & |\Oma| \\
278 % \textit{mi} & w & |\Omi| \\
279 % \textit{mu} & M & |\Omu| \\
280 % \textit{ya} & y & |\Oya| \\
281 % \textit{ra} & r & |\Ora| \\
282 % \textit{ru} & R & |\Oru| \\
283 % \textit{la} & l & |\Ola| \\
284 % \textit{va} & v & |\Ova| \\
285 % \textit{vi} & V & |\Ovi| \\
286 % \textit{sa} & s & |\Osa| \\
287 % \textit{\v{s}a} & S & |\Osva| \\
288 % \textit{za} & z & |\Oza| \\
289 % \textit{ha} & h & |\Oha| \\
290 % \hline
291 % \end{tabular}
292 % \end{table}
293 %
294 % \begin{table}
295 % \centering
296 % \caption{The Old Persian ideographs}\label{tab2}
297 % \begin{tabular}{ccl} \hline
298 % Old Persian & ASCII & Command \\ \hline
299 % \textit{x\v{s}\={a}yathiya} & X & |\Oking| \\
300 % \textit{dahy\={a}u\v{s}} & q & |\Ocountrya| \\
301 % \textit{dahy\={a}u\v{s}} & Q & |\Ocountryb| \\
302 % \textit{b\={u}mi\v{s}} & L & |\Oearth| \\
303 % \textit{baga} & B & |\Ogod| \\
304 % \textit{Auramazd\={a}} & e & |\OAura| \\
305 % \textit{Ahuramazda} & E & |\OAurb| \\
306 % \textit{Ahuramazda} & F & |\OAurc| \\
307 % \textit{1} & 1 & |\Oone| \\
308 % \textit{2} & 2 & |\Otwo| \\
309 % \textit{10} & 3 & |\Oten| \\
310 % \textit{20} & 4 & |\Otwenty| \\
311 % \textit{100} & 5 & |\Ohundred| \\
312 % \DeleteShortVerb{\|}\texttt{|}\MakeShortVerb{\|} & : & |\Owd| \\
313 % \hline
314 % \end{tabular}
315 % \end{table}
316 %
317 % \DescribeMacro{\translitcopsn}
318 % The command |\translitcopsn{|\meta{commands}|}| will typeset the
319 % transliteration of the \thisfont{} character commands (those in the
320 % third column of the Tables).
321 %
322 % \DescribeMacro{\translitcopsnfont}
323 % The font used for the transliteration is defined by this macro,
324 % which is initialised to an italic font (i.e., |\itshape|).
325 %
326 % \StopEventually{
327 % \bibliographystyle{alpha}
328 % \begin{thebibliography}{GMS94}
329 %
330 % \bibitem[Dav97]{DAVIES97}
331 % W. V. Davies.
332 % \newblock \emph{Reading the Past: Egyptian Hieroglyphs}.
333 % \newblock University of California Press/British Museum, 1997.
334 % \newblock (ISBN 0-520-06287-6)
335 %
336 % \bibitem[Dru95]{DRUCKER95}
337 % Johanna Drucker.
338 % \newblock \emph{The Alphabetic Labyrinth}.
339 % \newblock Thames and Hudson, 1995.
340 %
341 % \bibitem[Fir93]{FIRMAGE93}
342 % Richard A.~Firmage.
343 % \newblock \emph{The Alphabet Abecedarium}.
344 % \newblock David R.~Goodine, 1993.
345 %
346 %
347 % \bibitem[GMS94]{GOOSSENS94}
348 % Michel Goossens, Frank Mittelbach, and Alexander Samarin.
349 % \newblock \emph{The LaTeX Companion}.
350 % \newblock Addison-Wesley Publishing Company, 1994.
351 %
352 % \bibitem[Hea90]{HEALEY90}
353 % John F.~Healey.
354 % \newblock \emph{Reading the Past: The Early Alphabet}.
355 % \newblock University of California Press/British Museum, 1990.
356 % \newblock (ISBN 0-520-07309-6)
357 %
358 % \bibitem[Ifr00]{IFRAH00}
359 % Georges Ifrah.
360 % \newblock \emph{The Universal History of Numbers}.
361 % \newblock John Wiley \& Sons, 2000 (ISBN 0-471-37568-3).
362 % \newblock (Originally published as \textit{Histoire universelle des chiffres}.
363 % Robert Laffort, Paris, 1994.)
364 %
365 % \bibitem[Wal87]{WALKER87}
366 % C.~B.~F.~Walker.
367 % \newblock \emph{Reading the Past: Cuneiform}.
368 % \newblock University of California Press/British Museum, 1987.
369 % \newblock (ISBN 0-520-06115-2)
370 %
371 % \end{thebibliography}
372 % \PrintIndex
373 %
374 % }
375 %
376 %
377 %
378 % \section{The Metafont code} \label{sec:mf}
379 %
380 % \subsection{The parameter file}
381 %
382 % We deal with the parameter file first, and start by announcing
383 % what it is for.
384 % \begin{macrocode}
385 %<*up>
386 %%% COPSN10.MF Computer Old Persian Cuneiform font 10 point design size.
387
388 % \end{macrocode}
389 % Specify the font size.
390 % \begin{macrocode}
391
392 font_identifier:="oldprsn"; font_size 10pt#;
393
394 % \end{macrocode}
395 %
396 %
397 % \begin{macro}{u}
398 % \begin{macro}{ht}
399 % \begin{macro}{s}
400 % \begin{macro}{o}
401 % \begin{macro}{px}
402 % \begin{macro}{font-normal-space}
403 % \begin{macro}{font-normal-shrink}
404 % \begin{macro}{font-x-height}
405 % \begin{macro}{font-quad}
406 % Define the very simple font parameters.
407 % \begin{macrocode}
408 u#:=.2pt#; % unit width
409 ht#:=8pt#; % height of characters (CM cap-height is approx 6.8pt)
410 s#:=1.5pt#; % width correction (right and left)
411 o#:=1/20pt#; % overshoot
412 px#:=.4pt#; % horizontal width of pen
413 font_normal_space:=7pt#; % width of a blank space
414 font_normal_shrink:=.9pt#; % width correction for blank space
415 font_x_height:=4.5pt#; % height of one ex
416 font_quad:=10pt#; % an em
417
418 % \end{macrocode}
419 % \end{macro}
420 % \end{macro}
421 % \end{macro}
422 % \end{macro}
423 % \end{macro}
424 % \end{macro}
425 % \end{macro}
426 % \end{macro}
427 % \end{macro}
428 %
429 % Now for the driver (file) for the font.
430 %
431 % \subsection{The driver file}
432 %
433 % In a more complex font this would be in a separate driver file.
434 %
435 % \begin{macrocode}
436 font_coding_scheme:="Old Persian glyphs";
437 mode_setup;
438
439 % \end{macrocode}
440 %
441 % \begin{macro}{ho}
442 % \begin{macro}{leftloc}
443 % \begin{macro}{py}
444 % Perform additional setup.
445 % \begin{macrocode}
446 ho#:=o#; % horizontal overshoot
447 leftloc#:=s#; % leftmost xcoord of character
448 py#:=px#; % vertical thickness of the pen
449
450 define_pixels(s,u);
451 define_blacker_pixels(px,py);
452 define_good_x_pixels(leftloc);
453 define_corrected_pixels(o); % turn on overshoot correction
454 define_horizontal_corrected_pixels(ho);
455
456 % \end{macrocode}
457 % \end{macro}
458 % \end{macro}
459 % \end{macro}
460 %
461 % \begin{macro}{midloc}
462 % \begin{macro}{rightloc}
463 % \begin{macro}{aw}
464 % Variables for the middldle and rightmost xcoord of a character, and
465 % the actual width of a character.
466 % \begin{macrocode}
467 numeric midloc, rightloc, aw;
468 % \end{macrocode}
469 % \end{macro}
470 % \end{macro}
471 % \end{macro}
472 %
473 % \begin{macro}{stylus}
474 % Define the pen.
475 % \begin{macrocode}
476 pickup pencircle xscaled px yscaled py;
477 stylus:=savepen;
478
479 % \end{macrocode}
480 % \end{macro}
481 %
482 % \begin{macro}{trht}
483 % \begin{macro}{trbs}
484 % The normal height and base of a triangle.
485 % \begin{macrocode}
486 numeric trht, trbs;
487 % \end{macrocode}
488 % \end{macro}
489 % \end{macro}
490 %
491 % \begin{macro}{th}
492 % \begin{macro}{tb}
493 % The ratio of the normal height and base of a triangle with respect to
494 % the character height.
495 % \begin{macrocode}
496 numeric th, tb;
497 th = 6/24; tb = 8/24;
498 % \end{macrocode}
499 % \end{macro}
500 % \end{macro}
501 %
502 % \begin{macro}{wiht}
503 % \begin{macro}{wibs}
504 % The normal height and base of a wing.
505 % \begin{macrocode}
506 numeric wiht, wibs;
507 % \end{macrocode}
508 % \end{macro}
509 % \end{macro}
510 %
511 % \begin{macro}{wh}
512 % \begin{macro}{wb}
513 % The ratio of the normal height and base of a wing with respect to
514 % the character height.
515 % \begin{macrocode}
516 numeric wh, wb;
517 wh = 10/24; wb = 20/24;
518 % \end{macrocode}
519 % \end{macro}
520 % \end{macro}
521 %
522 %
523 % \begin{macro}{beginglyph}
524 % A macro to save some typing of beginchar arguments, and also assigns
525 % values to various variables.
526 %
527 % \begin{macrocode}
528 def beginglyph(expr code, unit_width) =
529 beginchar(code, unit_width*ht#+2s#, ht#, 0);
530 midloc:=1/2w; rightloc:=(w-s); aw := rightloc-leftloc;
531 trht := th*h; trbs := tb*h;
532 wiht := wh*h; wibs := wb*h;
533 pickup stylus enddef;
534
535 % \end{macrocode}
536 % \end{macro}
537 %
538 % \begin{macro}{cmchar}
539 % |cmchar| should precede each character
540 % \begin{macrocode}
541 let cmchar=\;
542
543 % \end{macrocode}
544 % \end{macro}
545 %
546 % \begin{macro}{triangle}
547 % |triangle($, ht, base, angle)| calculates the points on a triangle
548 % whose apex is at |z$|, of height |ht| and base width |base| rotated
549 % at |angle| from pointing along the positive |x| axis.
550 % \begin{macrocode}
551
552 def triangle(suffix $)(expr ht, bs, ang) =
553 path pth[];
554 pair pr[];
555 pr1 := (x$-ht,y$); % midpoint of base in default position
556 pr2 := pr1 shifted (1/2bs*up); % base points
557 pr3 := pr1 shifted (1/2bs*down);
558 z$trl = pr2 rotatedaround(z$, ang);
559 z$trr = pr3 rotatedaround(z$, ang);
560 z$trc = 1/2[z$trl,z$trr];
561 z$tic = 1/2[z$,z$trc];
562 pth$ := z$--z$trl--z$trr--cycle;
563 enddef;
564
565 % \end{macrocode}
566 % \end{macro}
567 %
568 % \begin{macro}{trir}
569 % |trir($, ht, base)| calculates the points on a triangle
570 % whose apex is at |z$|, of height |ht| and base width |base|
571 % pointing in the positive |x| direction (i.e., Right).
572 % \begin{macrocode}
573
574 def trir(suffix $)(expr ht, bs) =
575 path pth[];
576 z$trc = (x$-ht, y$); % midpoint of base
577 z$trl = (x$trc, y$trc+1/2bs); % base points
578 z$trr = (x$trc, y$trc-1/2bs);
579 z$tic = 1/2[z$,z$trc];
580 pth$ := z$--z$trl--z$trr--cycle;
581 enddef;
582
583 % \end{macrocode}
584 % \end{macro}
585 %
586 % \begin{macro}{triu}
587 % |triu($, ht, base)| calculates the points on a triangle
588 % whose apex is at |z$|, of height |ht| and base width |base|
589 % pointing in the positive |y| direction (i.e. Up).
590 % \begin{macrocode}
591
592 def triu(suffix $)(expr ht, bs) =
593 path pth[];
594 z$trc = (x$, y$-ht); % midpoint of base
595 z$trl = (x$-1/2bs, y$trc); % base points
596 z$trr = (x$+1/2bs, y$trc); % base points
597 z$tic = 1/2[z$,z$trc];
598 pth$ := z$--z$trl--z$trr--cycle;
599 enddef;
600
601 % \end{macrocode}
602 % \end{macro}
603 %
604 % \begin{macro}{tril}
605 % |tril($, ht, base)| calculates the points on a triangle
606 % whose apex is at |z$|, of height |ht| and base width |base|
607 % pointing in the negative |x| direction (i.e., Left).
608 % \begin{macrocode}
609
610 def tril(suffix $)(expr ht, bs) =
611 path pth[];
612 z$trc = (x$+ht, y$); % midpoint of base
613 z$trl = (x$trc, y$trc-1/2bs); % base points
614 z$trr = (x$trc, y$trc+1/2bs);
615 z$tic = 1/2[z$,z$trc];
616 pth$ := z$--z$trl--z$trr--cycle;
617 enddef;
618
619 % \end{macrocode}
620 % \end{macro}
621 %
622 % \begin{macro}{trid}
623 % |tril($, ht, base)| calculates the points on a triangle
624 % whose apex is at |z$|, of height |ht| and base width |base|
625 % pointing in the negative |x| direction (i.e., Left).
626 % \begin{macrocode}
627
628 def tril(suffix $)(expr ht, bs) =
629 path pth[];
630 z$trc = (x$+ht, y$); % midpoint of base
631 z$trl = (x$trc, y$trc-1/2bs); % base points
632 z$trr = (x$trc, y$trc+1/2bs);
633 z$tic = 1/2[z$,z$trc];
634 pth$ := z$--z$trl--z$trr--cycle;
635 enddef;
636
637 % \end{macrocode}
638 % \end{macro}
639 %
640 % \begin{macro}{trid}
641 % |trid($, ht, base)| calculates the points on a triangle
642 % whose apex is at |z$|, of height |ht| and base width |base|
643 % pointing in the negative |y| direction (i.e. Down).
644 % \begin{macrocode}
645
646 def trid(suffix $)(expr ht, bs) =
647 path pth[];
648 z$trc = (x$, y$+ht); % midpoint of base
649 z$trl = (x$+1/2bs, y$trc); % base points
650 z$trr = (x$-1/2bs, y$trc); % base points
651 z$tic = 1/2[z$,z$trc];
652 pth$ := z$--z$trl--z$trr--cycle;
653 enddef;
654
655 % \end{macrocode}
656 % \end{macro}
657 %
658 % \begin{macro}{wing}
659 % |wing($, ht, base, angle)| calculates the points on a `flying wing'
660 % whose apex is at |z$|, of height |ht| and base width |base| rotated
661 % at |angle| from pointing along the negative |x| axis.
662 % \begin{macrocode}
663
664 def wing(suffix $)(expr ht, bs, ang) =
665 path pth[];
666 pair pr[];
667 pr1 := (x$+ht,y$); % midpoint of base in default position
668 pr2 := pr1 shifted (1/2bs*down); % base points
669 pr3 := pr1 shifted (1/2bs*up);
670 pr4 := pr1 rotatedaround(z$, ang);
671 z$wil = pr2 rotatedaround(z$, ang);
672 z$wir = pr3 rotatedaround(z$, ang);
673 z$wic = 1/2[z$,pr4];
674 pth$ := z$--z$wil{(z$wic-z$wil)}..z$wic..{(z$wir-z$wic)}z$wir--cycle;
675 enddef;
676
677 % \end{macrocode}
678 % \end{macro}
679 %
680 % \begin{macro}{wingl}
681 % |wingl($, ht, base)| calculates the points on a `flying wing'
682 % whose apex is at |z$|, of height |ht| and base width |base|
683 % pointing in the negative |x| direction (i.e., Left).
684 % \begin{macrocode}
685
686 def wingl(suffix $)(expr ht, bs) =
687 path pth[];
688 z$wil = (x$+ht, y$-1/2bs); % base points
689 z$wir = (x$wil, y$+1/2bs);
690 z$wic = (1/2[x$,x$wil], y$); % midpoint of base curve
691 pth$ := z$--z$wil{(z$wic-z$wil)}..z$wic..{(z$wir-z$wic)}z$wir--cycle;
692 enddef;
693
694 % \end{macrocode}
695 % \end{macro}
696 %
697 % \begin{macro}{wingd}
698 % |wingd($, ht, base)| calculates the points on a `flying wing'
699 % whose apex is at |z$|, of height |ht| and base width |base|
700 % pointing in the negative |y| direction (i.e., Down).
701 % \begin{macrocode}
702
703 def wingd(suffix $)(expr ht, bs) =
704 path pth[];
705 z$wil = (x$+1/2bs, y$+ht); % base points
706 z$wir = (x$-1/2bs, y$wil);
707 z$wic = (x$, 1/2[y$,y$wil]); % midpoint of base curve
708 pth$ := z$--z$wil{(z$wic-z$wil)}..z$wic..{(z$wir-z$wic)}z$wir--cycle;
709 enddef;
710
711 % \end{macrocode}
712 % \end{macro}
713 %
714 % \begin{macro}{wingr}
715 % |wingr($, ht, base)| calculates the points on a `flying wing'
716 % whose apex is at |z$|, of height |ht| and base width |base|
717 % pointing in the positive |x| direction (i.e., Right).
718 % \begin{macrocode}
719
720 def wingr(suffix $)(expr ht, bs) =
721 path pth[];
722 z$wil = (x$-ht, y$+1/2bs); % base points
723 z$wir = (x$wil, y$-1/2bs);
724 z$wic = (1/2[x$,x$wil], y$); % midpoint of base curve
725 pth$ := z$--z$wil{(z$wic-z$wil)}..z$wic..{(z$wir-z$wic)}z$wir--cycle;
726 enddef;
727
728 % \end{macrocode}
729 % \end{macro}
730 %
731 % \begin{macro}{wingu}
732 % |wingu($, ht, base)| calculates the points on a `flying wing'
733 % whose apex is at |z$|, of height |ht| and base width |base|
734 % pointing in the positive |y| direction (i.e., Up).
735 % \begin{macrocode}
736
737 def wingu(suffix $)(expr ht, bs) =
738 path pth[];
739 z$wil = (x$-1/2bs, y$-ht); % base points
740 z$wir = (x$+1/2bs, y$wil);
741 z$wic = (x$, 1/2[y$,y$wil]); % midpoint of base curve
742 pth$ := z$--z$wil{(z$wic-z$wil)}..z$wic..{(z$wir-z$wic)}z$wir--cycle;
743 enddef;
744
745 % \end{macrocode}
746 % \end{macro}
747 %
748 % Finally the code (file) that does all the work.
749 %
750 % \subsection{The glyph code}
751 %
752 % The following code generates the glyphs for the \thisfont{} font.
753 % The characters
754 % are defined in the original alphabetic ordering.
755 %
756 %
757 % \begin{macro}{a}
758 % The \thisfont{} A.
759 % \begin{macrocode}
760 cmchar "Old Persian letter a";
761 beginglyph("a", (3tb+2th));
762 z1trl=(leftloc,h); % top pin
763 trir(1, trht, trbs); fill pth1;
764 z1'=(rightloc,y1); draw z1tic--z1';
765 z12trc=(midloc,y1trr); % middle pin
766 trid(12, trht, trbs); fill pth12;
767 z12'=(x12,0); draw z12tic--z12';
768 z11trl=z12trr; % left pin
769 trid(11, trht, trbs); fill pth11;
770 z11'=(x11,0); draw z11tic--z11';
771 z13trr=z12trl; % right pin
772 trid(13, trht, trbs); fill pth13;
773 z13'=(x13,0); draw z13tic--z13';
774 labels(1,11,12,13);
775 endchar;
776
777 % \end{macrocode}
778 % \end{macro}
779 %
780 %
781 % \begin{macro}{i}
782 % The \thisfont{} I.
783 % \begin{macrocode}
784 cmchar "Old Persian letter i";
785 beginglyph("i", (2tb)); %% 3tb too large
786 z1trl=(leftloc,h); % top pin
787 trir(1, trht, trbs); fill pth1;
788 z1'=(rightloc,y1); draw z1tic--z1';
789 z11trr=z1trr; % left pin
790 trid(11, trht, trbs); fill pth11;
791 z11'=(x11,0); draw z11tic--z11';
792 z12trr=z11trl; % middle pin
793 trid(12, trht, trbs); fill pth12;
794 z12'=(x12,0); draw z12tic--z12';
795 z2trc=(x11trl,y1); % second top head
796 trir(2, trht, trbs); fill pth2;
797 labels(1,2,11,12,13);
798 endchar;
799
800 % \end{macrocode}
801 % \end{macro}
802 %
803 %
804 % \begin{macro}{u}
805 % The \thisfont{} U.
806 % \begin{macrocode}
807 cmchar "Old Persian letter u";
808 beginglyph("u", (2tb+wh)); %% 3tb+wh too large
809 z31=(leftloc,1/2h); % left wing
810 wingl(31, wiht, wibs); fill pth31;
811 z1trl=(x31wil,h); % top pin
812 trir(1, trht, trbs); fill pth1;
813 z1'=(rightloc,y1); draw z1tic--z1';
814 z11trr=z1trr; % left pin
815 trid(11, trht, trbs); fill pth11;
816 z11'=(x11,0); draw z11tic--z11';
817 z12trr=z11trl; % middle pin
818 trid(12, trht, trbs); fill pth12;
819 z12'=(x12,0); draw z12tic--z12';
820 labels(1,2,11,12,13);
821 endchar;
822
823 % \end{macrocode}
824 % \end{macro}
825 %
826 %
827 % \begin{macro}{k}
828 % The \thisfont{} KA.
829 % \begin{macrocode}
830 cmchar "Old Persian syllable ka (k)";
831 beginglyph("k", (3tb)); %% 4tb too large
832 z1trr=(leftloc,h); % left pin
833 trid(1, trht, trbs); fill pth1;
834 z1'=(x1,0); draw z1tic--z1';
835 z11trr=(x1trl,1/2h); % top pin
836 trir(11, trht, trbs); fill pth11;
837 z11'=(rightloc,y11); draw z11tic--z11';
838 z12trl=z11trr; % bottom pin
839 trir(12, trht, trbs); fill pth12;
840 z12'=(rightloc,y12); draw z12tic--z12';
841 labels(1,11,12);
842 endchar;
843
844 % \end{macrocode}
845 % \end{macro}
846 %
847 % \begin{macro}{K}
848 % The \thisfont{} KU.
849 % \begin{macrocode}
850 cmchar "Old Persian syllable ku (K)";
851 beginglyph("K", (tb+wh));
852 z1=(leftloc,1/2h); % wing
853 wingl(1, wiht, wibs); fill pth1;
854 z2trr=(x1wil,h); % pin
855 trid(2, trht, trbs); fill pth2;
856 z2'=(x2,0); draw z2tic--z2';
857 labels(1,2);
858 endchar;
859
860 % \end{macrocode}
861 % \end{macro}
862 %
863 % \begin{macro}{x}
864 % The \thisfont{} XA.
865 % \begin{macrocode}
866 cmchar "Old Persian syllable xa (x)";
867 beginglyph("x", (2tb+2wh));
868 z1=(leftloc,1/2h); % left wing
869 wingl(1, wiht, wibs); fill pth1;
870 z2=(x1wil,y1); % right wing
871 wingl(2, wiht, wibs); fill pth2;
872 z11trr=(x2wil,h); % left pin
873 trid(11, trht, trbs); fill pth11;
874 z11'=(x11,0); draw z11tic--z11';
875 z12trr=z11trl; % right pin
876 trid(12, trht, trbs); fill pth12;
877 z12'=(x12,0); draw z12tic--z12';
878 labels(1,2,11,12);
879 endchar;
880
881 % \end{macrocode}
882 % \end{macro}
883 %
884 % \begin{macro}{g}
885 % The \thisfont{} GA.
886 % \begin{macrocode}
887 cmchar "Old Persian syllable ga (g)";
888 beginglyph("g", (3tb+wh));
889 z1=(leftloc,1/2h); % wing
890 wingl(1, wiht, wibs); fill pth1;
891 z11trr=(x1wil,h); % left pin
892 trid(11, trht, trbs); fill pth11;
893 z11'=(x11,0); draw z11tic--z11';
894 z12trr=z11trl; % right pin
895 trid(12, trht, trbs); fill pth12;
896 z12'=(x12,0); draw z12tic--z12';
897 z21trc=(x12trl,y1); % small pin
898 trir(21, trht, trbs); fill pth21;
899 z21'=(rightloc,y21); draw z21tic--z21';
900 labels(1,2,11,12,21);
901 endchar;
902
903 % \end{macrocode}
904 % \end{macro}
905 %
906 % \begin{macro}{G}
907 % The \thisfont{} syllable GU.
908 % \begin{macrocode}
909 cmchar "Old Persian syllable gu (G)";
910 beginglyph("G", (2tb+th+wh)); %% 3tb+wh too large
911 z1=(leftloc,1/2h); % wing
912 wingl(1, wiht, wibs); fill pth1;
913 z12trc=(x1wil, 1/2h); % middle pin
914 trir(12, trht, trbs); fill pth12;
915 z12'=(rightloc,y12); draw z12tic--z12';
916 z13trl=z12trr; % bottom pin
917 trir(13, trht, trbs); fill pth13;
918 z13'=(rightloc,y13); draw z13tic--z13';
919 z11trr=z12trl; % top pin
920 trir(11, trht, trbs); fill pth11;
921 z11'=(rightloc,y11); draw z11tic--z11';
922 z111trc=1/2[z11trc,z11'];
923 trir(111, trht, trbs); fill pth111;
924 labels(1,2,3,4,5,6,11,12,13,111);
925 endchar;
926
927 % \end{macrocode}
928 % \end{macro}
929 %
930 % \begin{macro}{c}
931 % The \thisfont{} syllable CA.
932 % \begin{macrocode}
933 cmchar "Old Persian syllable ca (c)";
934 beginglyph("c", (4tb));
935 z1trl=(leftloc,h); % top pin
936 trir(1, trht, trbs); fill pth1;
937 z11trr=(x1, y1trr); % left pin
938 trid(11, trht, trbs); fill pth11;
939 z11'=(x11,0); draw z11tic--z11';
940 z12trr=z11trl; % middle pin
941 trid(12, trht, trbs); fill pth12;
942 z12'=(x12,0); draw z12tic--z12';
943 z2trl=z12trl; % bottom pin
944 trir(2, trht, trbs); fill pth2;
945 z2'=(rightloc,y2); draw z2tic--z2';
946 z1'=(x2trl,y1); draw z1tic--z1'; % body of top pin
947 labels(1,2,3,4,5,6,11,12,13);
948 endchar;
949
950 % \end{macrocode}
951 % \end{macro}
952 %
953 % \begin{macro}{j}
954 % The \thisfont{} syllable JA.
955 % \begin{macrocode}
956 cmchar "Old Persian syllable ja (j)";
957 beginglyph("j", (th+tb+wh));
958 z1trc=(leftloc,1/2h); % hor pin
959 trir(1, trht, trbs); fill pth1;
960 z2=(rightloc-wiht,y1); % wing
961 wingl(2, wiht, wibs); fill pth2;
962 draw z1tic--z2;
963 z11trc=(1/2[x1,x2], h); % vert pin
964 trid(11, trht, trbs); fill pth11;
965 z11'=(x11,0); draw z11tic--z11';
966 labels(1,2,3,4,11,12,13);
967 endchar;
968
969 % \end{macrocode}
970 % \end{macro}
971 %
972 % \begin{macro}{J}
973 % The \thisfont{} syllable JI.
974 % \begin{macrocode}
975 cmchar "Old Persian syllable ji (J)";
976 beginglyph("J",(7/2tb+wh)); %% 4tb+wh too large
977 z1trc=(leftloc, 1/2h); % left pin
978 trir(1, trht, trbs); fill pth1;
979 z2=(x1+trbs, y1); % wing
980 draw z1tic--z2;
981 wingl(2, wiht, wibs); fill pth2;
982 z12trc=(x2wil,y1); % middle pin
983 trir(12, trht, trbs); fill pth12;
984 z12'=(rightloc, y12); draw z12tic--z12';
985 z11trr=z12trl; % top pin
986 trir(11, trht, trbs); fill pth11;
987 z11'=(rightloc, y11); draw z11tic--z11';
988 z13trl=z12trr; % bottom pin
989 trir(13, trht, trbs); fill pth13;
990 z13'=(rightloc, y13); draw z13tic--z13';
991 labels(1,2,3,4,5,6,7,8,9,10,11,12,13);
992 endchar;
993
994 % \end{macrocode}
995 % \end{macro}
996 %
997 % \begin{macro}{t}
998 % The \thisfont{} syllable TA.
999 % \begin{macrocode}
1000 cmchar "Old Persian syllable ta (t)";
1001 beginglyph("t", (4tb+th)); %% 5tb too large
1002 z3trl=(rightloc,h); % right pin
1003 trid(3, trht, trbs); fill pth3;
1004 z3'=(x3,0); draw z3tic--z3';
1005 z1trl=(x3trr-trbs,h); % left pin
1006 trid(1, trht, trbs); fill pth1;
1007 z1'=(x1,0); draw z1tic--z1';
1008 z11trr=(leftloc,1/2h); % top pin
1009 trir(11, trht, trbs); fill pth11;
1010 z11'=(x1,y11); draw z11tic--z11';
1011 z12trl=z11trr; % bottom pin
1012 trir(12, trht, trbs); fill pth12;
1013 z12'=(x1,y12); draw z12tic--z12';
1014 z2trc=(1/2[x1,x3], y11trl); % middle pin
1015 trid(2, trht, trbs); fill pth2;
1016 z2'=(x2,0); draw z2tic--z2';
1017 labels(1,2,3,4,5,6,7,8,9,10,11,12);
1018 endchar;
1019
1020 % \end{macrocode}
1021 % \end{macro}
1022 %
1023 % \begin{macro}{T}
1024 % The \thisfont{} syllable TU.
1025 % \begin{macrocode}
1026 cmchar "Old Persian syllable tu (T)";
1027 beginglyph("T", (4tb+th)); %% 5tb too large
1028 z1trr=(leftloc,h); % left pin
1029 trid(1, trht, trbs); fill pth1;
1030 z1'=(x1,0); draw z1tic--z1';
1031 z2trr=z1trl; % center pin
1032 trid(2, trht, trbs); fill pth2;
1033 z2'=(x2,0); draw z2tic--z2';
1034 z3trr=z2trl; % right pin
1035 trid(3, trht, trbs); fill pth3;
1036 z3'=(x3,0); draw z3tic--z3';
1037 z11trl=(x3trl, 1/2h); % short hor pin
1038 trir(11, trht, trbs); fill pth11;
1039 z11'=(rightloc,y11); draw z11tic--z11';
1040 labels(1,2,3,11);
1041 endchar;
1042
1043 % \end{macrocode}
1044 % \end{macro}
1045 %
1046 %
1047 % \begin{macro}{o}
1048 % The \thisfont{} syllable THA.
1049 % \begin{macrocode}
1050 cmchar "Old Persian syllable tha (o)";
1051 beginglyph("o", (2tb+wh));
1052 z1trr=(leftloc,h); % left pin
1053 trid(1, trht, trbs); fill pth1;
1054 z1'=(x1,0); draw z1tic--z1';
1055 z2=(x1,1/2h); % wing
1056 wingl(2, wiht, wibs); fill pth2;
1057 z3trr=(x2wil,h); % right pin
1058 trid(3, trht, trbs); fill pth3;
1059 z3'=(x3,0); draw z3tic--z3';
1060 labels(1,2,3);
1061 endchar;
1062
1063 % \end{macrocode}
1064 % \end{macro}
1065 %
1066 %
1067 % \begin{macro}{C}
1068 % The \thisfont{} syllable C(cedilla)A.
1069 % \begin{macrocode}
1070 cmchar "Old Persian syllable c(cedilla)a (C)";
1071 beginglyph("C", (2tb));
1072 z1trl=(leftloc,h); % top pin
1073 trir(1, trht, trbs); fill pth1;
1074 z1'=(rightloc,y1); draw z1tic--z1';
1075 z2trl=z1trr; % center pin
1076 trir(2, trht, trbs); fill pth2;
1077 z2'=(rightloc,y2); draw z2tic--z2';
1078 z11trr=z2trr; % left pin
1079 trid(11, trht, trbs); fill pth11;
1080 z11'=(x11,0); draw z11tic--z11';
1081 z12trr=z11trl; % right pin
1082 trid(12, trht, trbs); fill pth12;
1083 z12'=(x12,0); draw z12tic--z12';
1084 labels(1,2,11,12);
1085 endchar;
1086
1087 % \end{macrocode}
1088 % \end{macro}
1089 %
1090 %
1091 % \begin{macro}{d}
1092 % The \thisfont{} syllable DA.
1093 % \begin{macrocode}
1094 cmchar "Old Persian syllable da (d)";
1095 beginglyph("d", (2tb));
1096 z1trl=(leftloc,h); % top pin
1097 trir(1, trht, trbs); fill pth1;
1098 z1'=(rightloc,y1); draw z1tic--z1';
1099 z11trr=z1trr; % left pin
1100 trid(11, trht, trbs); fill pth11;
1101 z11'=(x11,0); draw z11tic--z11';
1102 z12trr=z11trl; % right pin
1103 trid(12, trht, trbs); fill pth12;
1104 z12'=(x12,0); draw z12tic--z12';
1105 labels(1,2,11,12);
1106 endchar;
1107
1108 % \end{macrocode}
1109 % \end{macro}
1110 %
1111 %
1112 % \begin{macro}{P}
1113 % The \thisfont{} syllable DI.
1114 % \begin{macrocode}
1115 cmchar "Old Persian syllable di (P)";
1116 beginglyph("P", (3tb+th)); %% 4tb too large
1117 z2trl=(rightloc,h); % right pin
1118 trid(2, trht, trbs); fill pth2;
1119 z2'=(x2,0); draw z2tic--z2';
1120 z1trl=z2trr; % left pin
1121 trid(1, trht, trbs); fill pth1;
1122 z1'=(x1,0); draw z1tic--z1';
1123 z12trc=(leftloc,1/2h); % center pin
1124 trir(12, trht, trbs); fill pth12;
1125 z12'=(x1,y12); draw z12tic--z12';
1126 z11trr=z12trl; % top pin
1127 trir(11, trht, trbs); fill pth11;
1128 z11'=(x1,y11); draw z11tic--z11';
1129 z13trl=z12trr; % bottom pin
1130 trir(13, trht, trbs); fill pth13;
1131 z13'=(x1,y13); draw z13tic--z13';
1132 labels(1,2,11,12,13);
1133 endchar;
1134
1135 % \end{macrocode}
1136 % \end{macro}
1137 %
1138 %
1139 % \begin{macro}{D}
1140 % The \thisfont{} syllable DU.
1141 % \begin{macrocode}
1142 cmchar "Old Persian syllable du (D)";
1143 beginglyph("D", (2tb+th+wh)); %% 3tb+wh too large
1144 z1=(leftloc,h/2); % wing
1145 wingl(1, wiht, wibs); fill pth1;
1146 z2trl=(rightloc,h); % right pin
1147 trid(2, trht, trbs); fill pth2;
1148 z2'=(x2,0); draw z2tic--z2';
1149 z12trc=(x1wil,h/2); % center pin
1150 trir(12, trht, trbs); fill pth12;
1151 z12'=(x2,y12); draw z12tic--z12';
1152 z11trr=z12trl; % top pin
1153 trir(11, trht, trbs); fill pth11;
1154 z11'=(x2,y11); draw z11tic--z11';
1155 z13trl=z12trr; % bottom pin
1156 trir(13, trht, trbs); fill pth13;
1157 z13'=(x2,y13); draw z13tic--z13';
1158 labels(1,2,11,12,13);
1159 endchar;
1160
1161 % \end{macrocode}
1162 % \end{macro}
1163 %
1164 %
1165 %
1166 % \begin{macro}{n}
1167 % The \thisfont{} syllable NA.
1168 % \begin{macrocode}
1169 cmchar "Old Persian syllable na (n)";
1170 beginglyph("n", (2tb+wh));
1171 z1=(rightloc-wiht, h/2); % wing
1172 wingl(1, wiht, wibs); fill pth1;
1173 z11trr=(leftloc,h/2); % top pin
1174 trir(11, trht, trbs); fill pth11;
1175 z11'=(x1,y11); draw z11tic--z11';
1176 z12trl=z11trr; % bottom pin
1177 trir(12, trht, trbs); fill pth12;
1178 z12'=(x1,y12); draw z12tic--z12';
1179 labels(1,11,12);
1180 endchar;
1181
1182 % \end{macrocode}
1183 % \end{macro}
1184 %
1185 %
1186 %
1187 % \begin{macro}{N}
1188 % The \thisfont{} syllable NU.
1189 % \begin{macrocode}
1190 cmchar "Old Persian syllable nu (N)";
1191 beginglyph("N", (2tb+2wh));
1192 z1=(leftloc, h/2); % left wing
1193 wingl(1, wiht, wibs); fill pth1;
1194 z2=(x1wil, y1); % right wing
1195 wingl(2, wiht, wibs); fill pth2;
1196 z11trr=(x2wil,h/2); % top pin
1197 trir(11, trht, trbs); fill pth11;
1198 z11'=(rightloc,y11); draw z11tic--z11';
1199 z12trl=z11trr; % bottom pin
1200 trir(12, trht, trbs); fill pth12;
1201 z12'=(rightloc,y12); draw z12tic--z12';
1202 labels(1,2,11,12);
1203 endchar;
1204
1205 % \end{macrocode}
1206 % \end{macro}
1207 %
1208 %
1209 %
1210 % \begin{macro}{p}
1211 % The \thisfont{} syllable PA.
1212 % \begin{macrocode}
1213 cmchar "Old Persian syllable pa (p)";
1214 beginglyph("p", (2tb));
1215 z1trc=(leftloc,h); % top pin
1216 trir(1, trht, trbs); fill pth1;
1217 z1'=(rightloc,y1); draw z1tic--z1';
1218 z2trl=(x1,y1); % middle pin
1219 trir(2, trht, trbs); fill pth2;
1220 z2'=(rightloc,y2); draw z2tic--z2';
1221 z3trl=(x1trc,y2); % bottom pin
1222 trir(3, trht, trbs); fill pth3;
1223 z3'=(rightloc,y3); draw z3tic--z3';
1224 z11trr=z3trr; % left pin
1225 trid(11, trht, trbs); fill pth11;
1226 z11'=(x11,0); draw z11tic--z11';
1227 z12trr=z11trl; % right pin
1228 trid(12, trht, trbs); fill pth12;
1229 z12'=(x12,0); draw z12tic--z12';
1230 labels(1,2,3,11,12);
1231 endchar;
1232
1233 % \end{macrocode}
1234 % \end{macro}
1235 %
1236 %
1237 %
1238 % \begin{macro}{f}
1239 % The \thisfont{} syllable FA.
1240 % \begin{macrocode}
1241 cmchar "Old Persian syllable fa (f)";
1242 beginglyph("f", (tb+2wh));
1243 z1trr=(leftloc,h); % left pin
1244 trid(1, trht, trbs); fill pth1;
1245 z1'=(x1,0); draw z1tic--z1';
1246 z11=(x1,h/2); % left wing
1247 wingl(11, wiht, wibs); fill pth11;
1248 z12=(x11wil,y11); % right wing
1249 wingl(12, wiht, wibs); fill pth12;
1250 labels(1,11,12);
1251 endchar;
1252
1253 % \end{macrocode}
1254 % \end{macro}
1255 %
1256 %
1257 %
1258 % \begin{macro}{b}
1259 % The \thisfont{} syllable BA.
1260 % \begin{macrocode}
1261 cmchar "Old Persian syllable ba (b)";
1262 beginglyph("b", (3tb));
1263 z1trl=(rightloc,h); % right pin
1264 trid(1, trht, trbs); fill pth1;
1265 z1'=(x1,0); draw z1tic--z1';
1266 z11trr=(leftloc,h/2); % top pin
1267 trir(11, trht, trbs); fill pth11;
1268 z11'=(x1,y11); draw z11tic--z11';
1269 z12trl=z11trr; % bottom pin
1270 trir(12, trht, trbs); fill pth12;
1271 z12'=(x1,y12); draw z12tic--z12';
1272 labels(1,11,12);
1273 endchar;
1274
1275 % \end{macrocode}
1276 % \end{macro}
1277 %
1278 %
1279 % \begin{macro}{m}
1280 % The \thisfont{} syllable MA.
1281 % \begin{macrocode}
1282 cmchar "Old Persian syllable ma (m)";
1283 beginglyph("m", (4tb+th)); %% 5tb too large
1284 z3trl=(rightloc,h); % right pin
1285 trid(3, trht, trbs); fill pth3;
1286 z3'=(x3,0); draw z3tic--z3';
1287 z2trl=(x3trr,y3); % center pin
1288 trid(2, trht, trbs); fill pth2;
1289 z2'=(x2,0); draw z2tic--z2';
1290 z1trl=(x2trr,h); % left pin
1291 trid(1, trht, trbs); fill pth1;
1292 z1'=(x1,0); draw z1tic--z1';
1293 z11trc=(leftloc, h/2); % hor pin
1294 trir(11, trht, trbs); fill pth11;
1295 z11'=(x1,y11); draw z11tic--z11';
1296 labels(1,2,3,11);
1297 endchar;
1298
1299 % \end{macrocode}
1300 % \end{macro}
1301 %
1302 %
1303 % \begin{macro}{w}
1304 % The \thisfont{} syllable MI.
1305 % \begin{macrocode}
1306 cmchar "Old Persian syllable mi (w)";
1307 beginglyph("w", (2tb+wh));
1308 z1trr=(leftloc,h); % left pin
1309 trid(1, trht, trbs); fill pth1;
1310 z1'=(x1,0); draw z1tic--z1';
1311 z2=(x1,h/2); % wing
1312 wingl(2, wiht, wibs); fill pth2;
1313 z11trr=(x2wil, h/2); % top pin
1314 trir(11, trht, trbs); fill pth11;
1315 z11'=(rightloc,y11); draw z11tic--z11';
1316 z12trl=z11trr; % bottom pin
1317 trir(12, trht, trbs); fill pth12;
1318 z12'=(rightloc,y12); draw z12tic--z12';
1319 labels(1,2,11,12);
1320 endchar;
1321
1322 % \end{macrocode}
1323 % \end{macro}
1324 %
1325 %
1326 % \begin{macro}{M}
1327 % The \thisfont{} syllable MU.
1328 % \begin{macrocode}
1329 cmchar "Old Persian syllable mu (M)";
1330 beginglyph("M", (5tb+wh));
1331 z5trc=(rightloc-2trbs, h/2); % right pin
1332 trir(5, trht, trbs); fill pth5;
1333 z5'=(rightloc,y5); draw z5tic--z5';
1334 z4=(x5trc-wiht,y5); % wing
1335 wingl(4, wiht, wibs); fill pth4;
1336 z2trc=(leftloc+trht,y5); % middle pin
1337 trir(2, trht, trbs); fill pth2;
1338 z2'=z4; draw z2tic--z2';
1339 z1trr=(leftloc,y2trl); % top pin
1340 trir(1, trht, trbs); fill pth1;
1341 z1'=(3/4[x1,x2'],y1); draw z1tic--z1';
1342 z3trl=(leftloc,y2trr); % bottom pin
1343 trir(3, trht, trbs); fill pth3;
1344 z3'=(x1',y3); draw z3tic--z3';
1345 labels(1,2,3,4);
1346 endchar;
1347
1348 % \end{macrocode}
1349 % \end{macro}
1350 %
1351 %
1352 % \begin{macro}{y}
1353 % The \thisfont{} syllable YA.
1354 % \begin{macrocode}
1355 cmchar "Old Persian syllable ya (y)";
1356 beginglyph("y", (2tb+wh));
1357 z1trr=(leftloc,h); % left pin
1358 trid(1, trht, trbs); fill pth1;
1359 z1'=(x1,0); draw z1tic--z1';
1360 z2=(x1,h/2); % wing
1361 wingl(2, wiht, wibs); fill pth2;
1362 z11trc=(x2wil, h/2); % right pin
1363 trir(11, trht, trbs); fill pth11;
1364 z11'=(rightloc,y11); draw z11tic--z11';
1365 labels(1,2,11,12);
1366 endchar;
1367
1368 % \end{macrocode}
1369 % \end{macro}
1370 %
1371 %
1372 % \begin{macro}{r}
1373 % The \thisfont{} syllable RA.
1374 % \begin{macrocode}
1375 cmchar "Old Persian syllable ra (r)";
1376 beginglyph("r", (3tb+th)); %% 4tb too large
1377 z11trl=(rightloc, h); % right pin
1378 trid(11, trht, trbs); fill pth11;
1379 z11'=(x11,0); draw z11tic--z11';
1380 z2trc=(leftloc+trht,h/2); % middle pin
1381 trir(2, trht, trbs); fill pth2;
1382 z2'=(x11,y2); draw z2tic--z2';
1383 z1trr=(leftloc,y2trl); % top pin
1384 trir(1, trht, trbs); fill pth1;
1385 z1'=(x2',y1); draw z1tic--z1';
1386 z3trl=(leftloc,y2trr); % bottom pin
1387 trir(3, trht, trbs); fill pth3;
1388 z3'=(x2',y3); draw z3tic--z3';
1389 labels(1,2,3,4);
1390 endchar;
1391
1392 % \end{macrocode}
1393 % \end{macro}
1394 %
1395 %
1396 %
1397 % \begin{macro}{R}
1398 % The \thisfont{} syllable RU.
1399 % \begin{macrocode}
1400 cmchar "Old Persian syllable ru (R)";
1401 beginglyph("R", (tb+th+2wh)); %% 2tb+2wh too large
1402 z3=(rightloc-wiht,h/2); % right wing
1403 wingl(3, wiht, wibs); fill pth3;
1404 z2=(x3-wiht,y3); % left wing
1405 wingl(2, wiht, wibs); fill pth2;
1406 z1trc=(leftloc,y3); % pin
1407 trir(1, trht, trbs); fill pth1;
1408 z1'=z2; draw z1tic--z1';
1409 labels(1,2,3);
1410 endchar;
1411
1412 % \end{macrocode}
1413 % \end{macro}
1414 %
1415 %
1416 %
1417 % \begin{macro}{l}
1418 % The \thisfont{} syllable LA.
1419 % \begin{macrocode}
1420 cmchar "Old Persian syllable la (l)";
1421 beginglyph("l", (3tb+th)); %% 4tb too large
1422 z11trl=(rightloc,h); % right pin
1423 trid(11, trht, trbs); fill pth11;
1424 z11'=(x11,0); draw z11tic--z11';
1425 z2trc=(leftloc,h/2); % middle pin
1426 trir(2, trht, trbs); fill pth2;
1427 z2'=(x11,y2); draw z2tic--z2';
1428 z1trr=(x2,y2trl); % top pin
1429 trir(1, trht, trbs); fill pth1;
1430 z1'=(x2',y1); draw z1tic--z1';
1431 z3trl=(x1trr,y2trr); % bottom pin
1432 trir(3, trht, trbs); fill pth3;
1433 z3'=(x2',y3); draw z3tic--z3';
1434 labels(1,2,3,11);
1435 endchar;
1436
1437 % \end{macrocode}
1438 % \end{macro}
1439 %
1440 %
1441 % \begin{macro}{v}
1442 % The \thisfont{} syllable VA.
1443 % \begin{macrocode}
1444 cmchar "Old Persian syllable va (v)";
1445 beginglyph("v", (5tb));
1446 z11trc=(leftloc,h/2); % left hor pin
1447 trir(11, trht, trbs); fill pth11;
1448 z11'=(x11+trbs,y11); draw z11tic--z11';
1449 z12trc=(x11',h); % vert pin
1450 trid(12, trht, trbs); fill pth12;
1451 z12'=(x12,0); draw z12tic--z12';
1452 z2=(x12+1/2trbs+2trht, h/2); % middle pin
1453 trir(2, trht, trbs); fill pth2;
1454 z2'=(rightloc,y2); draw z2tic--z2';
1455 z1trr=(x2trc-trht,y2trl); % top pin
1456 trir(1, trht, trbs); fill pth1;
1457 z1'=(x2',y1); draw z1tic--z1';
1458 z3trl=(x1trr,y2trr); % bottom pin
1459 trir(3, trht, trbs); fill pth3;
1460 z3'=(x2',y3); draw z3tic--z3';
1461 labels(1,2,3,11);
1462 endchar;
1463
1464 % \end{macrocode}
1465 % \end{macro}
1466 %
1467 %
1468 %
1469 % \begin{macro}{V}
1470 % The \thisfont{} syllable VI.
1471 % \begin{macrocode}
1472 cmchar "Old Persian syllable vi (V)";
1473 beginglyph("V", (2tb));
1474 z1trl=(midloc,1/3h); % left pin
1475 trid(1, trht, trbs); fill pth1;
1476 z1'=(x1,0); draw z1tic--z1';
1477 z2trr=z1trl; % right pin
1478 trid(2, trht, trbs); fill pth2;
1479 z2'=(x2,0); draw z2tic--z2';
1480 z3trc=(x1trl,h); % top pin
1481 trid(3, trht, trbs); fill pth3;
1482 z3'=(x3,y1trl); draw z3tic--z3';
1483 z11trc=(leftloc, 1/2[y1trl,y3trl]); % hor pin
1484 trir(11, trht, trbs); fill pth11;
1485 z11'=(rightloc,y11); draw z11tic--z11';
1486 labels(1,2,3,4,11);
1487 endchar;
1488
1489 % \end{macrocode}
1490 % \end{macro}
1491 %
1492 %
1493 %
1494 % \begin{macro}{s}
1495 % The \thisfont{} syllable SA.
1496 % \begin{macrocode}
1497 cmchar "Old Persian syllable sa (s)";
1498 beginglyph("s", (3tb+th)); %% 4tb too large
1499 z12trr=(leftloc,h); % vert pin
1500 trid(12, trht, trbs); fill pth12;
1501 z12'=(x12,0); draw z12tic--z12';
1502 z2=(x12+1/2trbs+2trht, h/2); % middle pin
1503 trir(2, trht, trbs); fill pth2;
1504 z2'=(rightloc,y2); draw z2tic--z2';
1505 z1trr=(x2trc-trht,y2trl); % top pin
1506 trir(1, trht, trbs); fill pth1;
1507 z1'=(x2',y1); draw z1tic--z1';
1508 z3trl=(x1trr,y2trr); % bottom pin
1509 trir(3, trht, trbs); fill pth3;
1510 z3'=(x2',y3); draw z3tic--z3';
1511 labels(1,2,3,11,12);
1512 endchar;
1513
1514 % \end{macrocode}
1515 % \end{macro}
1516 %
1517 %
1518 %
1519 % \begin{macro}{S}
1520 % The \thisfont{} syllable SvA.
1521 % \begin{macrocode}
1522 cmchar "Old Persian syllable sva (S)";
1523 beginglyph("S", (2wh));
1524 z1=(leftloc,1/2wibs); % left wing
1525 wingl(1, wiht, wibs); fill pth1;
1526 z2=(x1+wiht,y1); % right wing
1527 wingl(2, wiht, wibs); fill pth2;
1528 z3trl=(leftloc,h); % pin
1529 trir(3, trht, trbs); fill pth3;
1530 z3'=(rightloc,y3); draw z3tic--z3';
1531 labels(1,2,3);
1532 endchar;
1533
1534 % \end{macrocode}
1535 % \end{macro}
1536 %
1537 %
1538 %
1539 % \begin{macro}{z}
1540 % The \thisfont{} syllable ZA.
1541 % \begin{macrocode}
1542 cmchar "Old Persian syllable za (z)";
1543 beginglyph("z", (4tb));
1544 z1trr=(leftloc,h); % left pin
1545 trid(1, trht, trbs); fill pth1;
1546 z1'=(x1,0); draw z1tic--z1';
1547 z2trl=(rightloc,h); % right pin
1548 trid(2, trht, trbs); fill pth2;
1549 z2'=(x2,0); draw z2tic--z2';
1550 z11trc=(x1trl,h/2); % hor pins
1551 trir(11, trht, trbs); fill pth11;
1552 z11'=(x2trr,y11); draw z11tic--z11';
1553 z12trc=1/2[z11trc,z11'];
1554 trir(12, trht, trbs); fill pth12;
1555 labels(1,2,11);
1556 endchar;
1557
1558 % \end{macrocode}
1559 % \end{macro}
1560 %
1561 %
1562 %
1563 % \begin{macro}{h}
1564 % The \thisfont{} syllable HA.
1565 % \begin{macrocode}
1566 cmchar "Old Persian syllable ha (h)";
1567 beginglyph("h", (2tb+2wh));
1568 z1=(leftloc,h/2); % left wing
1569 wingl(1, wiht, wibs); fill pth1;
1570 z2=(rightloc-wiht,y1); % right wing
1571 wingl(2, wiht, wibs); fill pth2;
1572 z11trr=(x1wil,y1); % top pin
1573 trir(11, trht, trbs); fill pth11;
1574 z11'=(x2,y11); draw z11tic--z11';
1575 z12trl=z11trr; % bottom pin
1576 trir(12, trht, trbs); fill pth12;
1577 z12'=(x2,y12); draw z12tic--z12';
1578 labels(1,2,11,12);
1579 endchar;
1580
1581 % \end{macrocode}
1582 % \end{macro}
1583 %
1584 %
1585 %
1586 % \begin{macro}{X}
1587 % The \thisfont{} word: king.
1588 % \begin{macrocode}
1589 cmchar "Old Persian word: king (X)";
1590 beginglyph("X", (3tb+2wh));
1591 z4=(rightloc-wiht, h/2); % right wing
1592 wingl(4, wiht, wibs); fill pth4;
1593 z11trc=(x4,h); % center vert pin
1594 trid(11, trht, trbs); fill pth11;
1595 z11'=(x11,0); draw z11tic--z11';
1596 z3wir=(x11trr,y4wir); % left wing
1597 wingl(3, wiht, wibs); fill pth3;
1598 z1trr=(leftloc,y4); % top pin
1599 trir(1, trht, trbs); fill pth1;
1600 z1'=(x3,y1); draw z1tic--z1';
1601 z2trl=z1trr; % bottom pin
1602 trir(2, trht, trbs); fill pth2;
1603 z2'=(x1',y2); draw z2tic--z2';
1604 labels(1,2,3,4,11);
1605 endchar;
1606
1607 % \end{macrocode}
1608 % \end{macro}
1609 %
1610 %
1611 %
1612 % \begin{macro}{q}
1613 % The \thisfont{} word: country (version a).
1614 % \begin{macrocode}
1615 cmchar "Old Persian word: country (version a) (q)";
1616 beginglyph("q", (9/4tb+wh)); %% 5/2tb+wh too large
1617 numeric n[];
1618 n1 := 1/2wiht;
1619 n2 := 1/2wibs;
1620 z12trl=(rightloc,h); % right pin
1621 trid(12, trht, trbs); fill pth12;
1622 z12'=(x12,0); draw z12tic--z12';
1623 z11trl=z12trr; % left pin
1624 trid(11, trht, trbs); fill pth11;
1625 z11'=(x11,0); draw z11tic--z11';
1626 z1=(leftloc, h-1/2n2); % top left wing
1627 wingl(1, n1, n2); fill pth1;
1628 z2=(x1wil, y1); % top right wing
1629 wingl(2, n1, n2); fill pth2;
1630 z3=(x1, 1/2n2); % bottom left wing
1631 wingl(3, n1, n2); fill pth3;
1632 z4=(x2, y3); % bottom right wing
1633 wingl(4, n1, n2); fill pth4;
1634 labels(1,2,3,4,11,12);
1635 endchar;
1636
1637 % \end{macrocode}
1638 % \end{macro}
1639 %
1640 %
1641 %
1642 % \begin{macro}{Q}
1643 % The \thisfont{} word: country (version b).
1644 % \begin{macrocode}
1645 cmchar "Old Persian word: country (version b) (Q)";
1646 beginglyph("Q", (5/4tb+wh)); %% 3/2tb+wh too large
1647 numeric n[];
1648 n1 := 1/2wiht;
1649 n2 := 1/2wibs;
1650 z11trl=(rightloc,h); % right pin
1651 trid(11, trht, trbs); fill pth11;
1652 z11'=(x11,0); draw z11tic--z11';
1653 z1=(leftloc, h-1/2n2); % top left wing
1654 wingl(1, n1, n2); fill pth1;
1655 z2=(x1wil, y1); % top right wing
1656 wingl(2, n1, n2); fill pth2;
1657 z3=(x1, 1/2n2); % bottom left wing
1658 wingl(3, n1, n2); fill pth3;
1659 z4=(x2, y3); % bottom right wing
1660 wingl(4, n1, n2); fill pth4;
1661 labels(1,2,3,4,11,12);
1662 endchar;
1663
1664 % \end{macrocode}
1665 % \end{macro}
1666 %
1667 %
1668 %
1669 % \begin{macro}{L}
1670 % The \thisfont{} word: earth.
1671 % \begin{macrocode}
1672 cmchar "Old Persian word: earth (L)";
1673 beginglyph("L", (3wh));
1674 z1=(leftloc, wiht); % left wing
1675 wingl(1, wiht, wibs); fill pth1;
1676 z2=(x1wil, y1); % center wing
1677 wingl(2, wiht, wibs); fill pth2;
1678 z3=(x2wil, y1); % right wing
1679 wingl(3, wiht, wibs); fill pth3;
1680 z11trr=(x1,y1wir); % top pin
1681 trir(11, trht, trbs); fill pth11;
1682 z11'=(rightloc,y11); draw z11tic--z11';
1683 z12trc=(x2,y11);
1684 trir(12, trht, trbs); fill pth12;
1685 z13trc=(x3,y11);
1686 trir(13, trht, trbs); fill pth13;
1687 labels(1,2,3,11,12,13);
1688 endchar;
1689
1690 % \end{macrocode}
1691 % \end{macro}
1692 %
1693 %
1694 %
1695 % \begin{macro}{B}
1696 % The \thisfont{} word: god.
1697 % \begin{macrocode}
1698 cmchar "Old Persian word: god (B)";
1699 beginglyph("B", (2tb+2wh));
1700 z4=(rightloc-wiht, h/2); % right wing
1701 wingl(4, wiht, wibs); fill pth4;
1702 z3=(x4-wiht, y4); % left wing
1703 wingl(3, wiht, wibs); fill pth3;
1704 z1trc=(leftloc,y4); % pin
1705 trir(1, trht, trbs); fill pth1;
1706 z1'=z3; draw z1tic--z1';
1707 z2trc=1/2[z1trc,z1'];
1708 trir(2, trht, trbs); fill pth2;
1709 labels(1,2,3,4);
1710 endchar;
1711
1712 % \end{macrocode}
1713 % \end{macro}
1714 %
1715 %
1716 % \begin{macro}{e}
1717 % The \thisfont{} word: Auramazda (verion a).
1718 % \begin{macrocode}
1719 cmchar "Old Persian word: Auramazda (version a) (e)";
1720 beginglyph("e", (3tb+wh));
1721 z43=(rightloc-wiht, h/2); % wing
1722 wingl(43, wiht, wibs); fill pth43;
1723 z46trc=(x43,h); % vert pin
1724 trid(46, trht, trbs); fill pth46;
1725 z46'=(x46,0); draw z46tic--z46';
1726 z14trr=(leftloc,h/2); % pin 3
1727 trir(14, trht, trbs); fill pth14;
1728 z14'=(x46,y14); draw z14tic--z14';
1729 z24trc=1/2[z14trc,z14']; z34trc=2/3[z14trc,z14'];
1730 trir(24, trht, trbs); fill pth24;
1731 % trir(34, trht, trbs); fill pth34;
1732
1733 z12trl=z14trr; % pin 2
1734 trir(12, trht, trbs); fill pth12;
1735 z12'=(x46,y12); draw z12tic--z12';
1736 z22=(x24,y12); z32=(x34,y12);
1737 trir(22, trht, trbs); fill pth22;
1738 % trir(32, trht, trbs); fill pth32;
1739
1740 % z21trl=(x24trc, y12trr); % pin 1
1741 % trir(21, trht, trbs); fill pth21;
1742 % z21'=(x46,y21); draw z21tic--z21';
1743 % z31=(x34,y21);
1744 % trir(31, trht, trbs); fill pth31;
1745 %
1746 % z25trr=(x24trc, y14trl); % pin 4
1747 % trir(25, trht, trbs); fill pth25;
1748 % z25'=(x46,y25); draw z25tic--z25';
1749 % z35=(x34,y25);
1750 % trir(35, trht, trbs); fill pth35;
1751 labels(12,14,21,22,23,24,25,31,32,33,34,35,41,42,43,44,45,46);
1752 endchar;
1753
1754 % \end{macrocode}
1755 % \end{macro}
1756 %
1757 % \begin{macro}{E}
1758 % The \thisfont{} word: Auramazda (verion b).
1759 % \begin{macrocode}
1760 cmchar "Old Persian word: Auramazda (version b) (E)";
1761 beginglyph("E", (4tb));
1762 %% z43=(rightloc-wiht, h/2); % wing
1763 %% wingl(43, wiht, wibs); fill pth43;
1764 z46trc=(rightloc,h+trht); % vert pin
1765 trid(46, trht, trbs); fill pth46;
1766 z46'=(x46,-1/2trbs); draw z46tic--z46';
1767 z14trr=(leftloc,h/2); % pin 3
1768 trir(14, trht, trbs); fill pth14;
1769 z14'=(x46,y14); draw z14tic--z14';
1770 z24trc=1/3[z14trc,z14']; z34trc=2/3[z14trc,z14'];
1771 trir(24, trht, trbs); fill pth24;
1772 trir(34, trht, trbs); fill pth34;
1773
1774 z12trl=z14trr; % pin 2
1775 trir(12, trht, trbs); fill pth12;
1776 z12'=(x46,y12); draw z12tic--z12';
1777 z22=(x24,y12); z32=(x34,y12);
1778 trir(22, trht, trbs); fill pth22;
1779 trir(32, trht, trbs); fill pth32;
1780
1781 z21trl=(x24trc, y12trr); % pin 1
1782 trir(21, trht, trbs); fill pth21;
1783 z21'=(x46,y21); draw z21tic--z21';
1784 z31=(x34,y21);
1785 trir(31, trht, trbs); fill pth31;
1786
1787 z25trr=(x24trc, y14trl); % pin 4
1788 trir(25, trht, trbs); fill pth25;
1789 z25'=(x46,y25); draw z25tic--z25';
1790 z35=(x34,y25);
1791 trir(35, trht, trbs); fill pth35;
1792 labels(12,14,21,22,23,24,25,31,32,33,34,35,41,42,43,44,45,46);
1793 endchar;
1794
1795 % \end{macrocode}
1796 % \end{macro}
1797 %
1798 % \begin{macro}{F}
1799 % The \thisfont{} word: Auramazda (verion c).
1800 % \begin{macrocode}
1801 cmchar "Old Persian word: Auramazda (version c) (F)";
1802 beginglyph("F", (4tb+wh));
1803 z43=(rightloc-wiht, h/2); % wing
1804 wingl(43, wiht, wibs); fill pth43;
1805 z46trc=(x43,h+trht); % vert pin
1806 trid(46, trht, trbs); fill pth46;
1807 z46'=(x46,-1/2trbs); draw z46tic--z46';
1808 z14trr=(leftloc,y43); % pin 3
1809 trir(14, trht, trbs); fill pth14;
1810 z14'=(x46,y14); draw z14tic--z14';
1811 z24trc=1/3[z14trc,z14']; z34trc=2/3[z14trc,z14'];
1812 trir(24, trht, trbs); fill pth24;
1813 trir(34, trht, trbs); fill pth34;
1814
1815 z12trl=z14trr; % pin 2
1816 trir(12, trht, trbs); fill pth12;
1817 z12'=(x46,y12); draw z12tic--z12';
1818 z22=(x24,y12); z32=(x34,y12);
1819 trir(22, trht, trbs); fill pth22;
1820 trir(32, trht, trbs); fill pth32;
1821
1822 z21trl=(x24trc, y12trr); % pin 1
1823 trir(21, trht, trbs); fill pth21;
1824 z21'=(x46,y21); draw z21tic--z21';
1825 z31=(x34,y21);
1826 trir(31, trht, trbs); fill pth31;
1827
1828 z25trr=(x24trc, y14trl); % pin 4
1829 trir(25, trht, trbs); fill pth25;
1830 z25'=(x46,y25); draw z25tic--z25';
1831 z35=(x34,y25);
1832 trir(35, trht, trbs); fill pth35;
1833 labels(12,14,21,22,23,24,25,31,32,33,34,35,41,42,43,44,45,46);
1834 endchar;
1835
1836 % \end{macrocode}
1837 % \end{macro}
1838 %
1839 %
1840 %
1841 %
1842 % \begin{macro}{1}
1843 % The \thisfont{} numeral 1
1844 % \begin{macrocode}
1845 cmchar "Old Persian numeral 1 (1)";
1846 beginglyph("1", (tb));
1847 z1trc=(midloc,h);
1848 trid(1, trht, trbs); fill pth1;
1849 z1'=(x1,0); draw z1tic--z1';
1850 labels(1,2);
1851 endchar;
1852
1853 % \end{macrocode}
1854 % \end{macro}
1855 %
1856 % \begin{macro}{2}
1857 % The \thisfont{} numeral 2
1858 % \begin{macrocode}
1859 cmchar "Old Persian numeral 2 (2)";
1860 beginglyph("2", (tb));
1861 z1trc=(midloc,h);
1862 trid(1, trht, trbs); fill pth1;
1863 z1'=(x1,0); draw z1tic--z1';
1864 z2trc=1/2[z1trc,z1'];
1865 trid(2, trht, trbs); fill pth2;
1866 labels(1,2);
1867 endchar;
1868
1869 % \end{macrocode}
1870 % \end{macro}
1871 %
1872 % \begin{macro}{3}
1873 % The \thisfont{} numeral 10
1874 % \begin{macrocode}
1875 cmchar "Old Persian numeral 10 (3)";
1876 beginglyph("3", (wh));
1877 z1=(leftloc,h/2);
1878 wingl(1, wiht, wibs); fill pth1;
1879 labels(1,2);
1880 endchar;
1881
1882 % \end{macrocode}
1883 % \end{macro}
1884 %
1885 % \begin{macro}{4}
1886 % The \thisfont{} numeral 20
1887 % \begin{macrocode}
1888 cmchar "Old Persian numeral 20 (4)";
1889 beginglyph("4", (1/2wh));
1890 z1=(leftloc,3/4h);
1891 wingl(1, 1/2wiht, 1/2wibs); fill pth1;
1892 z2=(leftloc,1/4h);
1893 wingl(2, 1/2wiht, 1/2wibs); fill pth2;
1894 labels(1,2);
1895 endchar;
1896
1897 % \end{macrocode}
1898 % \end{macro}
1899 %
1900 % \begin{macro}{5}
1901 % The \thisfont{} numeral 100
1902 % \begin{macrocode}
1903 cmchar "Old Persian numeral 100 (5)";
1904 beginglyph("5", (tb+2th));
1905 z1trl=(leftloc,h); % top pins
1906 trir(1, trht, trbs); fill pth1;
1907 z2trr=(rightloc,h);
1908 tril(2, trht, trbs); fill pth2;
1909 draw z1tic--z2tic;
1910 z11trc=(1/2[x1,x2],y1trr); % vertical pin
1911 trid(11, trht, trbs); fill pth11;
1912 z11'=(x11,0); draw z11tic--z11';
1913 labels(1,2,11);
1914 endchar;
1915
1916 % \end{macrocode}
1917 % \end{macro}
1918 %
1919 %
1920 %
1921 %
1922 %
1923 % \begin{macro}{:}
1924 % The \thisfont{} word divider.
1925 % \begin{macrocode}
1926 cmchar "Old Persian word divider (:)";
1927 beginglyph(":", (3tb));
1928 numeric alpha;
1929 alpha := trbs;
1930 z1=(leftloc+alpha, h-alpha);
1931 z2=(rightloc-alpha, alpha);
1932 triangle(1, trht, trbs, angle((z2-z1)));
1933 fill pth1; draw z1tic--z2;
1934 labels(1,2);
1935 endchar;
1936
1937 % \end{macrocode}
1938 % \end{macro}
1939 %
1940 % The end of the glyphs.
1941 %
1942 % \begin{macrocode}
1943 end
1944
1945 %</up>
1946 % \end{macrocode}
1947 %
1948 %
1949 %
1950 % \section{The font definition files} \label{sec:fd}
1951 %
1952 % \begin{macrocode}
1953 %<*fdot1>
1954 \DeclareFontFamily{OT1}{copsn}{}
1955 \DeclareFontShape{OT1}{copsn}{m}{n}{ <-> copsn10 }{}
1956 \DeclareFontShape{OT1}{copsn}{bx}{n}{ <-> sub copsn/m/n }{}
1957 \DeclareFontShape{OT1}{copsn}{b}{n}{ <-> sub copsn/m/n }{}
1958 \DeclareFontShape{OT1}{copsn}{m}{sl}{ <-> sub copsn/m/n }{}
1959 \DeclareFontShape{OT1}{copsn}{m}{it}{ <-> sub copsn/m/n }{}
1960 %</fdot1>
1961 % \end{macrocode}
1962 %
1963 %
1964 % \begin{macrocode}
1965 %<*fdt1>
1966 \DeclareFontFamily{T1}{copsn}{}
1967 \DeclareFontShape{T1}{copsn}{m}{n}{ <-> copsn10 }{}
1968 \DeclareFontShape{T1}{copsn}{bx}{n}{ <-> sub copsn/m/n }{}
1969 \DeclareFontShape{T1}{copsn}{b}{n}{ <-> sub copsn/m/n }{}
1970 \DeclareFontShape{T1}{copsn}{m}{sl}{ <-> sub copsn/m/n }{}
1971 \DeclareFontShape{T1}{copsn}{m}{it}{ <-> sub copsn/m/n }{}
1972 %</fdt1>
1973 % \end{macrocode}
1974 %
1975 % \section{The \Lpack{oldprsn} package code} \label{sec:code}
1976 %
1977 % Announce the name and version of the package, which requires
1978 % \LaTeXe{}.
1979 % \begin{macrocode}
1980 %<*usc>
1981 \NeedsTeXFormat{LaTeX2e}
1982 \ProvidesPackage{oldprsn}[2000/09/24 v1.1 package for Old Persian font]
1983 % \end{macrocode}
1984 %
1985 %
1986 % \begin{macro}{\copsnfamily}
1987 % Selects the font family in the OT1 encoding.
1988 % \begin{macrocode}
1989 \newcommand{\copsnfamily}{\usefont{OT1}{copsn}{m}{n}}
1990 % \end{macrocode}
1991 % \end{macro}
1992 %
1993 % \begin{macro}{\textcopsn}
1994 % Text command for the font family.
1995 % \begin{macrocode}
1996 \DeclareTextFontCommand{\textcopsn}{\copsnfamily}
1997
1998 % \end{macrocode}
1999 % \end{macro}
2000 %
2001 % The commands for the signs.
2002 % \begin{macrocode}
2003 \chardef\Oa=`a
2004 \chardef\Oi=`i
2005 \chardef\Ou=`u
2006 \chardef\Oka=`k
2007 \chardef\Oku=`K
2008 \chardef\Oxa=`x
2009 \chardef\Oga=`g
2010 \chardef\Ogu=`G
2011 \chardef\Oca=`c
2012 \chardef\Oja=`j
2013 \chardef\Oji=`J
2014 \chardef\Ota=`t
2015 \chardef\Otu=`T
2016 \chardef\Otha=`o
2017 \chardef\Occa=`C
2018 \chardef\Oda=`d
2019 \chardef\Odi=`P
2020 \chardef\Odu=`D
2021 \chardef\Ona=`n
2022 \chardef\Onu=`N
2023 \chardef\Opa=`p
2024 \chardef\Ofa=`f
2025 \chardef\Oba=`b
2026 \chardef\Oma=`m
2027 \chardef\Omi=`w
2028 \chardef\Omu=`M
2029 \chardef\Oya=`y
2030 \chardef\Ora=`r
2031 \chardef\Oru=`R
2032 \chardef\Ola=`l
2033 \chardef\Ova=`v
2034 \chardef\Ovi=`V
2035 \chardef\Osa=`s
2036 \chardef\Osva=`S
2037 \chardef\Oza=`z
2038 \chardef\Oha=`h
2039 \chardef\Oking=`X
2040 \chardef\Ocountrya=`q
2041 \chardef\Ocountryb=`Q
2042 \chardef\Oearth=`L
2043 \chardef\Ogod=`B
2044 \chardef\OAura=`e
2045 \chardef\OAurb=`E
2046 \chardef\OAurc=`F
2047 \chardef\Owd=`:
2048 \chardef\Oone=`1
2049 \chardef\Otwo=`2
2050 \chardef\Oten=`3
2051 \chardef\Otwenty=`4
2052 \chardef\Ohundred=`5
2053
2054 % \end{macrocode}
2055 %
2056 % \begin{macro}{\translitcopsn}
2057 % \begin{macro}{\translitcopsnfont}
2058 % |\translitcopsn{|\meta{char-commands}|}| typesets a transliteration of
2059 % the \thisfont{} character commands. These are typeset with the
2060 % |\translitcopsnfont|.
2061 % \begin{macrocode}
2062 \newcommand{\translitcopsn}[1]{{%
2063 \@translitO\translitcopsnfont #1}}
2064 \newcommand{\translitcopsnfont}{\itshape}
2065
2066 % \end{macrocode}
2067 % \end{macro}
2068 % \end{macro}
2069 %
2070 % \begin{macro}{\@translitO}
2071 % This macro redefines all the character producing commands for use within
2072 % |\translitcopsn|. It is important not to have any spaces in the definition.
2073 % \begin{macrocode}
2074 \newcommand{\@translitO}{%
2075 \def\Oa{a-}%
2076 \def\Oi{i-}%
2077 \def\Ou{u-}%
2078 \def\Oka{ka-}%
2079 \def\Oku{ku-}%
2080 \def\Oxa{xa-}%
2081 \def\Oga{ga-}%
2082 \def\Ogu{gu-}%
2083 \def\Oca{ca-}%
2084 \def\Oja{ja-}%
2085 \def\Oji{ji-}%
2086 \def\Ota{ta-}%
2087 \def\Otu{tu-}%
2088 \def\Otha{tha-}%
2089 \def\Occa{\c{c}a-}%
2090 \def\Oda{da-}%
2091 \def\Odi{di-}%
2092 \def\Odu{du-}%
2093 \def\Ona{na-}%
2094 \def\Onu{nu-}%
2095 \def\Opa{pa-}%
2096 \def\Ofa{fa-}%
2097 \def\Oba{ba-}%
2098 \def\Oma{ma-}%
2099 \def\Omi{mi-}%
2100 \def\Omu{mu-}%
2101 \def\Oya{ya-}%
2102 \def\Ora{ra-}%
2103 \def\Oru{ru-}
2104 \def\Ola{la-}%
2105 \def\Ova{va-}%
2106 \def\Ovi{vi-}%
2107 \def\Osa{sa-}%
2108 \def\Osva{\v{s}a-}%
2109 \def\Oza{za-}%
2110 \def\Oha{ha-}%
2111 \def\Oking{x\v{s}\={a}yathiya\space}%
2112 \def\Ocountrya{dahy\={a}u\v{s}\space}%
2113 \def\Ocountryb{dahy\={a}u\v{s}\space}%
2114 \def\Oearth{b\={u}mi\v{s}\space}%
2115 \def\Ogod{baga\space}%
2116 \def\OAura{Auramazd\={a}\space}%
2117 \def\OAurb{Ahuramazda\space}%
2118 \def\OAurc{Ahuramazda\space}%
2119 \def\Owd{:\space}%
2120 \def\Oone{1+}%
2121 \def\Otwo{2+}%
2122 \def\Oten{10+}%
2123 \def\Otwenty{20+}%
2124 \def\Ohundred{100+}%
2125 }
2126
2127 % \end{macrocode}
2128 % \end{macro}
2129 %
2130 % The end of this package.
2131 % \begin{macrocode}
2132 %</usc>
2133 % \end{macrocode}
2134 %
2135 % \section{The map file}
2136 %
2137 % Just a short map file.
2138 % \changes{v1.2}{2005/06/17}{Added the map file}
2139 %
2140 % \begin{macrocode}
2141 %<*map>
2142 copsn10 Archaic-Old-Persian <copsn10.pfb
2143 %</map>
2144 % \end{macrocode}
2145 %
2146 %
2147 % \Finale
2148 %
2149 \endinput
2150
2151 %% \CharacterTable
2152 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
2153 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
2154 %% Digits \0\1\2\3\4\5\6\7\8\9
2155 %% Exclamation \! Double quote \" Hash (number) \#
2156 %% Dollar \$ Percent \% Ampersand \&
2157 %% Acute accent \' Left paren \( Right paren \)
2158 %% Asterisk \* Plus \+ Comma \,
2159 %% Minus \- Point \. Solidus \/
2160 %% Colon \: Semicolon \; Less than \<
2161 %% Equals \= Greater than \> Question mark \?
2162 %% Commercial at \@ Left bracket \[ Backslash \\
2163 %% Right bracket \] Circumflex \^ Underscore \_
2164 %% Grave accent \` Left brace \{ Vertical bar \|
2165 %% Right brace \} Tilde \~}
2166
2167