Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %
3 % aramaic.dtx
4 %
5 % Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net
6 % Copyright 1999--2005 Peter R. Wilson
7 %
8 % This work may be distributed and/or modified under the
9 % conditions of the Latex Project Public License, either
10 % version 1.3 of this license or (at your option) any
11 % later version.
12 % The latest version of the license is in
13 % http://www.latex-project.org/lppl.txt
14 % and version 1.3 or later is part of all distributions of
15 % LaTeX version 2003/06/01 or later.
16 %
17 % This work has the LPPL maintenance status "author-maintained".
18 %
19 % This work consists of the files listed in the README file.
20 %
21 %
22 %<*driver>
23 \documentclass[twoside]{ltxdoc}
24 \usepackage{url}
25 \usepackage[draft=false,
26 plainpages=false,
27 pdfpagelabels,
28 bookmarksnumbered,
29 hyperindex=false
30 ]{hyperref}
31 \providecommand{\phantomsection}{}
32 \OnlyDescription %% comment this out for the full glory
33 \EnableCrossrefs
34 \CodelineIndex
35 \setcounter{StandardModuleDepth}{1}
36 \makeatletter
37 \@mparswitchfalse
38 \makeatother
39 \renewcommand{\MakeUppercase}[1]{#1}
40 \pagestyle{headings}
41 \newenvironment{addtomargins}[1]{%
42 \begin{list}{}{%
43 \topsep 0pt%
44 \addtolength{\leftmargin}{#1}%
45 \addtolength{\rightmargin}{#1}%
46 \listparindent \parindent
47 \itemindent \parindent
48 \parsep \parskip}%
49 \item[]}{\end{list}}
50 \begin{document}
51 \raggedbottom
52 \DocInput{aramaic.dtx}
53 \end{document}
54 %</driver>
55 %
56 %
57 % \fi
58 %
59 % \CheckSum{242}
60 %
61 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
62 % \DoNotIndex{\@centercr,\@cite}
63 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
64 % \DoNotIndex{\@input,\@ixpt,\@m}
65 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
66 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
67 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
68 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
69 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
70 % \DoNotIndex{\advance,\Alph,\alph}
71 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
72 % \DoNotIndex{\bullet}
73 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
74 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
75 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
76 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
77 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
78 % \DoNotIndex{\fbox}
79 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
80 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
81 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
82 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
83 % \DoNotIndex{\input}
84 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
85 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
86 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
87 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
88 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
89 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
90 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
91 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
92 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
93 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
94 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
95 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
96 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
97 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
98 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
99 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
100 % \DoNotIndex{\wd,\xiipt,\year,\z@}
101 %
102 % \changes{v1.0}{1999/03/14}{First public release}
103 % \changes{v1.1}{2000/09/30}{Minor changes to glyph encodings}
104 % \changes{v1.2}{2005/06/14}{Added Type1 map file}
105 %
106 % \def\fileversion{v1.0} \def\filedate{1999/03/14}
107 % \def\fileversion{v1.1} \def\filedate{2000/09/30}
108 % \def\fileversion{v1.2} \def\filedate{2005/06/14}
109 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
110 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
111 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
112 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
113 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
114 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
115 % \newcommand{\BC}{\textsc{bc}}
116 % \newcommand{\AD}{\textsc{ad}}
117 % \newcommand{\thisfont}{Aramaic}
118 %
119 % \title{The \Lpack{Aramaic} fonts\thanks{This
120 % file has version number \fileversion, last revised
121 % \filedate.}}
122 %
123 % \author{%
124 % Peter Wilson\thanks{\texttt{herries dor press at earthlink dot net}}\\
125 % Herries Press }
126 % \date{\filedate}
127 % \maketitle
128 % \begin{abstract}
129 % The \Lpack{aramaic} bundle provides a set of fonts for the
130 % Aramaic script which was used between about the tenth and second
131 % centuries~\BC{} in the Middle East.
132 % \end{abstract}
133 % \tableofcontents
134 %
135 %
136 %
137 % \section{Introduction}
138 %
139 % The Phoenician alphabet and characters is a direct ancestor of our modern day
140 % Latin alphabet and fonts.
141 % The font presented here is one of a series of fonts intended to show how
142 % the modern Latin alphabet has evolved from its original Phoenician form
143 % to its present day appearance.
144 %
145 % This manual is typeset according to the conventions of the
146 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
147 % extraction of the \LaTeX{} macro source files~\cite{COMPANION}.
148 %
149 % Section~\ref{sec:usc} describes the usage of the package.
150 % Commented code for the fonts and source code for the package is in later sections.
151 %
152 % \subsection{An alphabetic tree}
153 %
154 % Scholars are reasonably agreed that all the world's alphabets are descended
155 % from a Semitic alphabet invented about 1600~\BC{} in the Middle
156 % East~\cite{DRUCKER95}. The word `Semitic' refers
157 % to the family of languages used in the geographical area from
158 % Sinai in the south, up the Mediterranean coast to Asia Minor in the north and
159 % west to the valley of the Euphrates.
160 %
161 % The Phoenician alphabet was stable by about 1100~\BC{} and the script was
162 % written right to left. In earlier times the writing direction was variable,
163 % and so were
164 % the shapes and orientation of the characters. The alphabet consisted of
165 % 22 letters and they were named after things. For example, their first two
166 % letters were called \textit{aleph} (ox), and \textit{beth} (house).
167 % The Phoenician script had
168 % only one case --- unlike our modern fonts which have both upper- and
169 % lower-cases. In modern terms the Phoenician abecedary was: \\
170 % A B G D E Y Z H $\Theta$ I K L M N X O P ts Q R S T \\
171 % where the `Y' (\textit{vau}) character was sometimes written as `F', and
172 % `ts' stands for the \textit{tsade} character.
173 %
174 % The Greek alphabet is one of the descendants of the Phoenician alphabet;
175 % another was Aramaic which is the ancestor of the Arabic, Persian and Indian
176 % scripts.
177 % Initially Greek was written right to left but around the 6th C~\BC{} became
178 % \textit{boustrophedron}, meaning that the lines
179 % alternated in direction. At about 500~\BC{} the writing direction stabilised
180 % as left to
181 % right. The Greeks modified the Phoenician alphabet to match the vocalisation
182 % of their language. They kept the Phoenician names of the letters, suitably
183 % `greekified', so \textit{aleph} became the familar \textit{alpha} and
184 % \textit{beth} became \textit{beta}. At this
185 % point the names of the letters had no meaning. Their were several variants
186 % of the Greek character glyphs until they were finally fixed in Athens in
187 % 403~\BC.
188 % The Greeks did not develop a lower-case
189 % script until about 600--700~\AD.
190 %
191 % The Etruscans based their alphabet on the Greek one, and again modified it.
192 % However, the Etruscans wrote right to left, so their borrowed characters are
193 % mirror images of the original Greek ones. Like the Phoenicians, the Etruscan
194 % script consisted of only one case; they died out before ever needing a
195 % lower-case script. The Etruscan script was used up until the first century
196 % \AD, even though the Etruscans themselves had dissapeared by that time.
197 %
198 %
199 % In turn, the Romans based their alphabet on the Etruscan one, but as they
200 % wrote left to right, the characters were again mirrored (although the early
201 % Roman inscriptions are boustrophedron).
202 %
203 % As the English alphabet is descended from the Roman alphabet
204 % it has a pedigree of some three and a half thousand years.
205 %
206 % \section{The \Lpack{aramaic} package} \label{sec:usc}
207 %
208 % The \thisfont{} script is an early offshoot from the Phoenician
209 % script, eventually leading to the Arabic and square Jewish scripts.
210 % It was used between about the tenth and second centuries~\BC{}
211 % in the Middle East. The version presented is typical of about the
212 % middle of its life.
213 %
214 % The alphabet consisted of 22 characters.
215 % Table~\ref{tab} lists, in the \thisfont{} alphabetical order, the
216 % transliterated value of the characters and, where I know it, the
217 % modern name of the character.
218 %
219 % \begin{table}
220 % \centering
221 % \caption{The \thisfont{} script and alphabet}\label{tab}
222 % \begin{tabular}{clcll} \hline
223 % Value & Name? & ASCII & Command & Command \\ \hline
224 % \textit{a} &
225 % aleph &
226 % ' a & |\Arq| |\Aa| &
227 % |\Aaleph|
228 % \\
229 % \textit{b} &
230 % beth &
231 % b & |\Ab| &
232 % |\Abeth|
233 % \\
234 % \textit{g} &
235 % gimel &
236 % g & |\Ag| &
237 % |\Agimel|
238 % \\
239 % \textit{d} &
240 % daleth &
241 % d & |\Ad| &
242 % |\Adaleth|
243 % \\
244 % \textit{h} &
245 % he &
246 % h & |\Ah| &
247 % |\Ahe|
248 % \\
249 % \textit{w} &
250 % vav &
251 % w & |\Aw| &
252 % |\Avav|
253 % \\
254 % \textit{z} &
255 % zayin &
256 % z & |\Az| &
257 % |\Azayin|
258 % \\
259 % \textit{\d{h}} &
260 % heth &
261 % H & |\Ahd| &
262 % |\Aheth|
263 % \\
264 % \textit{\d{t}} &
265 % teth &
266 % T & |\Atd| &
267 % |\Ateth|
268 % \\
269 % \textit{y} &
270 % yod &
271 % y & |\Ay| &
272 % |\Ayod|
273 % \\
274 % \textit{k} &
275 % kaph &
276 % k & |\Ak| &
277 % |\Akaph|
278 % \\
279 % \textit{l} &
280 % lamed &
281 % l & |\Al| &
282 % |\Alamed|
283 % \\
284 % \textit{m} &
285 % mem &
286 % m & |\Am| &
287 % |\Amem|
288 % \\
289 % \textit{n} &
290 % nun &
291 % n & |\An| &
292 % |\Anun|
293 % \\
294 % \textit{s} &
295 % samekh &
296 % s & |\As| &
297 % |\Asamekh|
298 % \\
299 % \textit{`} &
300 % ayin &
301 % ` o & |\Alq| |\Ao| &
302 % |\Aayin|
303 % \\
304 % \textit{p} &
305 % pe &
306 % p & |\Ap| &
307 % |\Ape|
308 % \\
309 % \textit{\d{s}} &
310 % sade &
311 % x & |\Asd| &
312 % |\Asade|
313 % \\
314 % \textit{q} &
315 % qoph &
316 % q & |\Aq| &
317 % |\Aqoph|
318 % \\
319 % \textit{r} &
320 % resh &
321 % r & |\Ar| &
322 % |\Aresh|
323 % \\
324 % \textit{\v{s}} &
325 % shin &
326 % S & |\Asv| &
327 % |\Ashin|
328 % \\
329 % \textit{t} &
330 % tav &
331 % t & |\At| &
332 % |\Atav|
333 % \\
334 % \hline
335 % \end{tabular}
336 % \end{table}
337 %
338 %
339 %
340 % \DescribeMacro{\aramfamily}
341 % This command selects the \thisfont{} font family. The family name is |aram|.
342 %
343 % \DescribeMacro{\textaram}
344 % The command |\textaram{|\meta{text}|}| typesets \meta{text} in the
345 % \thisfont{} font.
346 %
347 % I have provided three ways of accessing the \thisfont{} glyphs:
348 % (a) by ASCII characters,
349 % (b) by commands whose names are based on the transliterated values, and
350 % (c) by commands whose names are based on the (modern) name of the
351 % character.
352 % These are shown in Table~\ref{tab}.
353 %
354 %
355 % \DescribeMacro{\translitaram}
356 % The command |\translitaram{|\meta{commands}|}| will typeset the
357 % transliteration of the \thisfont{} character commands (those in the
358 % last two columns of Table~\ref{tab}).
359 %
360 % \DescribeMacro{\translitaramfont}
361 % The font used for the transliteration is defined by this macro,
362 % which is initialsed to an italic font (i.e., |\itshape|).
363 %
364 % \StopEventually{
365 % \bibliographystyle{alpha}
366 % \begin{thebibliography}{GMS94}
367 %
368 % \bibitem[Dav97]{DAVIES97}
369 % W. V. Davies.
370 % \newblock \emph{Reading the Past: Egyptian Hieroglyphs}.
371 % \newblock University of California Press/British Museum, 1997.
372 % \newblock (ISBN 0-520-06287-6)
373 %
374 % \bibitem[Dru95]{DRUCKER95}
375 % Johanna Drucker.
376 % \newblock \emph{The Alphabetic Labyrinth}.
377 % \newblock Thames and Hudson, 1995.
378 %
379 % \bibitem[Fir93]{FIRMAGE93}
380 % Richard A.~Firmage.
381 % \newblock \emph{The Alphabet Abecedarium}.
382 % \newblock David R.~Goodine, 1993.
383 %
384 % \bibitem[MG04]{COMPANION}
385 % Frank Mittelbach and Michel Goossens.
386 % \newblock \emph{The LaTeX Companion}.
387 % \newblock Addison-Wesley Publishing Company, second edition, 2004.
388 %
389 % \bibitem[Hea90]{HEALEY90}
390 % John F.~Healey.
391 % \newblock \emph{Reading the Past: The Early Alphabet}.
392 % \newblock University of California Press/British Museum, 1990.
393 % \newblock (ISBN 0-520-07309-6)
394 %
395 % \end{thebibliography}
396 % \PrintIndex
397 % }
398 %
399 %
400 % \section{The Metafont code} \label{sec:mf}
401 %
402 % \subsection{The parameter file}
403 %
404 % We deal with the parameter file first, and start by announcing
405 % what it is for.
406 % \begin{macrocode}
407 %<*up>
408 %%% ARAM10.MF Computer Aramaic font 10 point design size.
409
410 % \end{macrocode}
411 % Specify the font size.
412 % \begin{macrocode}
413
414 font_identifier:="aramaic"; font_size 10pt#;
415
416 % \end{macrocode}
417 %
418 %
419 % \begin{macro}{u}
420 % \begin{macro}{ht}
421 % \begin{macro}{s}
422 % \begin{macro}{o}
423 % \begin{macro}{px}
424 % \begin{macro}{font-normal-space}
425 % \begin{macro}{font-normal-shrink}
426 % \begin{macro}{font-x-height}
427 % \begin{macro}{font-quad}
428 % Define the very simple font parameters.
429 % \begin{macrocode}
430 u#:=.2pt#; % unit width
431 ht#:=7pt#; % height of characters (CM cap-height is approx 6.8pt)
432 s#:=1.5pt#; % width correction (right and left)
433 o#:=1/20pt#; % overshoot
434 px#:=.6pt#; % horizontal width of pen
435 font_normal_space:=7pt#; % width of a blank space
436 font_normal_shrink:=.9pt#; % width correction for blank space
437 font_x_height:=4.5pt#; % height of one ex
438 font_quad:=10pt#; % an em
439
440 % \end{macrocode}
441 % \end{macro}
442 % \end{macro}
443 % \end{macro}
444 % \end{macro}
445 % \end{macro}
446 % \end{macro}
447 % \end{macro}
448 % \end{macro}
449 % \end{macro}
450 %
451 % For a full font, normally the driver file would be called
452 % here. In this case I have embedded it.
453 % \begin{macrocode}
454
455 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
456 % end of parameters
457 % start of driver code
458 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
459
460 % \end{macrocode}
461 %
462 %
463 % \subsection{The driver file}
464 %
465 % If there was a seperate driver file, this would be its contents.
466 %
467 % \begin{macrocode}
468
469 font_coding_scheme:="Aramaic glyphs";
470 mode_setup;
471
472 % \end{macrocode}
473 %
474 % \begin{macro}{ho}
475 % \begin{macro}{leftloc}
476 % \begin{macro}{py}
477 % Perform additional setup.
478 % \begin{macrocode}
479 ho#:=o#; % horizontal overshoot
480 leftloc#:=s#; % leftmost xcoord of character
481 py#:=.8px#; % vertical thickness of the pen
482
483 define_pixels(s,u);
484 define_blacker_pixels(px,py);
485 define_good_x_pixels(leftloc);
486 define_corrected_pixels(o); % turn on overshoot correction
487 define_horizontal_corrected_pixels(ho);
488
489 % \end{macrocode}
490 % \end{macro}
491 % \end{macro}
492 % \end{macro}
493 %
494 % \begin{macro}{midloc}
495 % \begin{macro}{rightloc}
496 % Variables for the middle xcoord and rightmost xcoord of a character.
497 % \begin{macrocode}
498 numeric midloc, rightloc;
499 % \end{macrocode}
500 % \end{macro}
501 % \end{macro}
502 %
503 % \begin{macro}{stylus}
504 % Define the pen.
505 % \begin{macrocode}
506 pickup pencircle xscaled px yscaled py;
507 stylus:=savepen;
508
509 % \end{macrocode}
510 % \end{macro}
511 %
512 % \begin{macro}{beginglyph}
513 % A macro to save some typing of beginchar arguments.
514 % \begin{macrocode}
515 def beginglyph(expr code, unit_width) =
516 beginchar(code, unit_width*ht#+2s#, ht#, 0);
517 midloc:=1/2w; rightloc:=(w-s);
518 pickup stylus enddef;
519
520 % \end{macrocode}
521 % \end{macro}
522 %
523 % \begin{macro}{cmchar}
524 % |cmchar| should precede each character
525 % \begin{macrocode}
526 let cmchar=\;
527
528 % \end{macrocode}
529 % \end{macro}
530 %
531 % \begin{macrocode}
532 newinternal defaultsmoothrad;
533 numeric smoothrad, defaultsmoothrad;
534 defaultsmoothrad := 2px;
535 smoothrad := 2px;
536
537 tertiarydef p ~ q =
538 begingroup
539 c_ := fullcircle scaled 2smoothrad shifted point 0 of q;
540 a_ := ypart(c_ intersectiontimes p);
541 b_ := ypart(c_ intersectiontimes q);
542 if a_ < 0: point 0 of p{direction 0 of p} else: subpath(0,a_) of p fi
543 ... if b_ < 0: {direction infinity of q}point infinity of q
544 else: subpath(b_,infinity) of q fi
545 endgroup
546 enddef;
547
548 def smoothly(text t) =
549 hide(n_:=0; for z=t: z_[incr n_]:= z; endfor)
550 (z_1 for k=2 upto n_-1: --z_[k]) ~ (z_[k] endfor --z_[n_])
551 enddef;
552
553 % \end{macrocode}
554 %
555 % That would be the end of a seperate drive file, except for calling
556 % the glyph code file.
557 %
558 % \subsection{The glyph code}
559 %
560 % The following code generates the glyphs for the Aramaic font.
561 % The characters
562 % are defined in the Phoenician alphabetic ordering.
563 %
564 % \begin{macrocode}
565
566 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
567 % end of driver code
568 % start of glyph code
569 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
570
571 % \end{macrocode}
572 %
573 % \begin{macro}{'}
574 % The \thisfont{} letter \textit{aleph}. Like an X.
575 % \begin{macrocode}
576
577 cmchar "Aramaic letter aleph (coded as ')";
578 beginglyph("'",1.0);
579 numeric n[];
580 n1 := rightloc-leftloc; % glyph width
581 z1=(leftloc,0); z2=(rightloc,h);
582 z3=(midloc,h/2);
583 draw z1{dir(45)}..z3{right}..{up}z2;
584 z11=(1/4[leftloc,rightloc],h); z12=(rightloc,0);
585 draw z11--z12;
586 labels(1,2,3,4,5,11,12);
587 endchar;
588
589 % \end{macrocode}
590 % \end{macro}
591 %
592 % \begin{macro}{a}
593 % The \thisfont{}letter \textit{aleph}.
594 % \begin{macrocode}
595
596 cmchar "Aramaic letter aleph (coded as a)";
597 beginglyph("a",1.0);
598 numeric n[];
599 n1 := rightloc-leftloc; % glyph width
600 z1=(leftloc,0); z2=(rightloc,h);
601 z3=(midloc,h/2);
602 draw z1{dir(45)}..z3{right}..{up}z2;
603 z11=(1/4[leftloc,rightloc],h); z12=(rightloc,0);
604 draw z11--z12;
605 labels(1,2,3,4,5,11,12);
606 endchar;
607
608 % \end{macrocode}
609 % \end{macro}
610 %
611 % \begin{macro}{b}
612 % The \thisfont{} letter \textit{bet}. Like a lowercase y.
613 % \begin{macrocode}
614
615 cmchar "Aramaic letter bet (coded as b)";
616 beginglyph("b",0.8);
617 z1=(1/4[leftloc,rightloc],h);
618 z2=(x1,3/4h);
619 z3=(rightloc,y2);
620 z5=(leftloc,0);
621 %%draw z1--z2--z3;
622 draw smoothly(z1, z2, z3);
623 draw z3{dir(-120)}..{left}z5;
624 labels(1,2,3,4,5); endchar;
625
626 % \end{macrocode}
627 % \end{macro}
628 %
629 % \begin{macro}{g}
630 % The \thisfont{} letter \textit{gimel}. Like a stick bent into
631 %an upside down V.
632 % \begin{macrocode}
633
634 cmchar "Aramaic letter gimel (coded as g)";
635 beginglyph("g", 0.7);
636 z1=(leftloc, 1/3h);
637 z2=(rightloc,h);
638 z3=(rightloc,0);
639 %%draw z1--z2--z3;
640 draw smoothly(z1, z2, z3);
641 labels(1,2,3,4); endchar;
642
643 % \end{macrocode}
644 % \end{macro}
645 %
646 % \begin{macro}{d}
647 % The \thisfont{} letter \textit{dalet}. More y-like than bet.
648 % \begin{macrocode}
649
650 cmchar "Aramaic letter dalet (coded as d)";
651 beginglyph("d",0.6);
652 z1=(leftloc,h);
653 z2=(x1,3/4h);
654 z3=(rightloc,h);
655 z4=(rightloc,0);
656 draw z1{down}..{up}z3;
657 draw z3--z4;
658 labels(1,2,3,4,5); endchar;
659
660 % \end{macrocode}
661 % \end{macro}
662 %
663 % \begin{macro}{h}
664 % The \thisfont{} letter \textit{he}. Like a lowercase n.
665 % \begin{macrocode}
666
667 cmchar "Aramaic letter he (coded as h)";
668 beginglyph("h",0.8);
669 z1=(leftloc,2/3h);
670 z2=(rightloc,h);
671 z3=(rightloc,0);
672 z11=1/2[z1,z2];
673 z12=(x11,1/2y1);
674 draw smoothly(z1, z2, z3);
675 draw z11--z12;
676 labels(1,2,3,4,5,6,7,8,9,10); endchar;
677
678 % \end{macrocode}
679 % \end{macro}
680 %
681 % \begin{macro}{w}
682 % The \thisfont{} letter \textit{vav}. Slightly bent stick.
683 % \begin{macrocode}
684
685 cmchar "Aramaic letter vav (coded as w)";
686 beginglyph("w",0.4);
687 z1=(leftloc,h);
688 z2=(rightloc,h);
689 z3=(rightloc,0);
690 draw z1{dir(-45)}..{down}z3;
691 labels(1,2,3,4,5,6,7,8,9,10); endchar;
692
693 % \end{macrocode}
694 % \end{macro}
695 %
696 % \begin{macro}{z}
697 % The \thisfont{} letter \textit{zayin}. Short vertical line.
698 % \begin{macrocode}
699
700 cmchar "Aramaic letter zayin (coded as z)";
701 beginglyph("z",0.2);
702 z1=(midloc,3/4h);
703 z2=(midloc,1/4h);
704 draw z1--z2;
705 labels(1,2,3,4,5,6,7,8,9,10); endchar;
706
707 % \end{macrocode}
708 % \end{macro}
709 %
710 % \begin{macro}{H}
711 % The \thisfont{} letter \textit{het} (h sub dot).
712 % \begin{macrocode}
713
714 cmchar "Aramaic letter het (h sub dot?) (coded as H)";
715 beginglyph("H", 0.7);
716 z1=(leftloc,0); z2=(leftloc,h);
717 z3=(rightloc,0); z4=(rightloc,h);
718 z5=7/8[z1,z2];
719 draw z1--z2;
720 draw smoothly(z5, z4, z3);
721 labels(1,2,3,4,5,6,7,8,9,10); endchar;
722
723 % \end{macrocode}
724 % \end{macro}
725 %
726 %
727 %
728 % \begin{macro}{T}
729 % The \thisfont{} letter \textit{tet} (t sub dot). Like the numeral 6.
730 % \begin{macrocode}
731
732 cmchar "Aramaic letter tet (t sub dot) (coded as T)";
733 beginglyph("T",0.6);
734 path pth[];
735 z1=(1/3[leftloc,rightloc], h);
736 z2=(leftloc, 3/8h);
737 z4=(rightloc,0);
738 z5=(rightloc, 7/12h);
739 pth1 := z1..z2{down}..{right}z4;
740 z6 = point 1.3 of pth1;
741 pth2 := pth1 & z4--z5--z6;
742 draw pth1;
743 draw smoothly(z4, z5, z6);
744 labels(1,2,3,4,5,6,7,8,9); endchar;
745
746 % \end{macrocode}
747 % \end{macro}
748 %
749 % \begin{macro}{y}
750 % The \thisfont{} letter \textit{yod}. Like a circumflex accent.
751 % \begin{macrocode}
752
753 cmchar "Aramaic letter yod (coded as y)";
754 beginglyph("y",0.2);
755 z1=(leftloc, 6/8h);
756 z2=(midloc,h);
757 z3=(rightloc,y1);
758 draw z1--z2--z3;
759 labels(1,2,3,4,5,6); endchar;
760
761 % \end{macrocode}
762 % \end{macro}
763 %
764 %
765 % \begin{macro}{k}
766 % The \thisfont{} letter \textit{kaf}.
767 % More upright and stiffer version of \textit{bet}.
768 % \begin{macrocode}
769
770 cmchar "Aramaic letter kaf (coded as k)";
771 beginglyph("k",0.6);
772 z1=(leftloc,h);
773 z2=(x1,7/8y1);
774 z3=(rightloc,y1);
775 z5=(3/4[x1,x3],0);
776 draw z1--z2;
777 draw smoothly(z2, z3, z5);
778 labels(1,2,3,4,5); endchar;
779
780 % \end{macrocode}
781 % \end{macro}
782 %
783 % \begin{macro}{l}
784 % The \thisfont{} letter \textit{lamed}.
785 % Like a handwritten l.
786 % \begin{macrocode}
787
788 cmchar "Aramaic letter lamed (coded as l)";
789 beginglyph("l",0.5);
790 z1=(midloc,h);
791 z2=(leftloc, 1/4h);
792 z3=(midloc,0);
793 z4=(rightloc,1/2y2);
794 draw z1--z2{down}..{right}z3..z4;
795 labels(1,2,3,4,5,6); endchar;
796
797 % \end{macrocode}
798 % \end{macro}
799 %
800 % \begin{macro}{m}
801 % The \thisfont{} letter \textit{mem}.
802 % Like \textit{bet} with a line through the top bar.
803 % \begin{macrocode}
804
805 cmchar"Aramaic letter mem (coded as m)";
806 beginglyph("m",0.8);
807 z1=(leftloc,h);
808 z2=(x1,3/4h);
809 z3=(rightloc,y2);
810 z5=(leftloc,0);
811 draw smoothly(z1, z2, z3, z5);
812 z11=(1/2[x2,x3],y1);
813 z12 = z11 shifted (3/2(y1-y2)*down);
814 draw z11--z12;
815 labels(1,2,3,4,5,11,12); endchar;
816
817 % \end{macrocode}
818 % \end{macro}
819 %
820 % \begin{macro}{n}
821 % The \thisfont{} letter \textit{nun}.
822 % Like a very thin \textit{bet}.
823 % \begin{macrocode}
824
825 cmchar "Aramaic letter nun (coded as n)";
826 beginglyph("n",0.3);
827 z1=(leftloc,h);
828 z2=(x1,3/4h);
829 z3=(rightloc,y2);
830 z5=(leftloc,0);
831 draw smoothly(z1, z2, z3, z5);
832 labels(1,2,3,4,5,11,12); endchar;
833
834 % \end{macrocode}
835 % \end{macro}
836 %
837 %
838 % \begin{macro}{s}
839 % The \thisfont{} letter \textit{samekh}.
840 % \begin{macrocode}
841
842 cmchar "Aramaic letter samekh (coded as s)";
843 beginglyph("s", 0.6);
844 z1=(leftloc,h);
845 z2=(x1,2/3h);
846 z3=(rightloc,y2);
847 z5=(rightloc,0);
848 z4=1/2[z1,z3];
849 draw z1{right}..z4{down}..{left}z2;
850 draw smoothly(z2, z3, z5);
851 labels(1,2,3,4,5,11,12); endchar;
852
853 % \end{macrocode}
854 % \end{macro}
855 %
856 %
857 % \begin{macro}{`}
858 % The \thisfont{} letter \textit{ayin}.
859 % Like a U.
860 % \begin{macrocode}
861
862 cmchar "Aramaic letter ayin (coded as `)";
863 beginglyph("`",0.6);
864 z1=(leftloc,3/4h);
865 z3=(rightloc,y1);
866 z2=(1/2[x1,x3], (h-y1));
867 draw z1{down}..z2{right}..{up}z3;
868 labels(1,2,3,4,5,6,7); endchar;
869
870 % \end{macrocode}
871 % \end{macro}
872 %
873 % \begin{macro}{o}
874 % The \thisfont{} letter \textit{ayin}.
875 % \begin{macrocode}
876
877 cmchar "Aramaic letter ayin (coded as o)";
878 beginglyph("o",0.6);
879 z1=(leftloc,3/4h);
880 z3=(rightloc,y1);
881 z2=(1/2[x1,x3], (h-y1));
882 draw z1{down}..z2{right}..{up}z3;
883 labels(1,2,3,4,5,6,7); endchar;
884
885 % \end{macrocode}
886 % \end{macro}
887 %
888 % \begin{macro}{p}
889 % The \thisfont{} letter \textit{pe}.
890 % Looks like an ear.
891 % \begin{macrocode}
892
893 cmchar "Aramaic letter pe (coded as p)";
894 beginglyph("p", 0.6);
895 z1=(leftloc,7/8h);
896 z2=(midloc,h);
897 z3=(rightloc,6/8h);
898 z5=(leftloc,0);
899 draw z1..z2{right}..z3{down}..z5;
900 labels(1,2,3,4,5,6); endchar;
901
902 % \end{macrocode}
903 % \end{macro}
904 %
905 % \begin{macro}{x}
906 % The \thisfont{} letter \textit{tsadi}.
907 % Like a P sloping slightly forwards.
908 % \begin{macrocode}
909
910 cmchar "Aramaic letter tsadi (S sub dot) (coded as x)";
911 beginglyph("x", 0.6);
912 z1=(1/8[leftloc,rightloc], h);
913 z2=(leftloc,0);
914 z3=7/8[z2,z1];
915 z4=(1/2[x1,rightloc], h);
916 z6=(1/2[x3,x4],5/8h);
917 z5=(rightloc, 2/3[y6,y4]);
918 draw z1--z2;
919 draw z3...z4...z5{down}...z6;
920 labels(1,2,3,4,5,6); endchar;
921
922 % \end{macrocode}
923 % \end{macro}
924 %
925 % \begin{macro}{q}
926 % The \thisfont{} letter \textit{qof}.
927 % Like a P sloping slightly backwards.
928 % \begin{macrocode}
929
930 cmchar "Aramaic letter qof (coded as q)";
931 beginglyph("q", 0.7);
932 z1=(leftloc,h);
933 z3=(rightloc,13/16h);
934 z2=(1/8[x1,x3], y1);
935 z4=(1/2[x2,x3], 9/16h);
936 z11=z2;
937 z12=(2/8[x11,rightloc], 0);
938 draw z1--z2{right}..z3{down}..{left}z4;
939 draw z11--z12;
940 labels(1,2,3,4,5,6,7,11,12); endchar;
941
942 % \end{macrocode}
943 % \end{macro}
944 %
945 %
946 %
947 % \begin{macro}{r}
948 % The \thisfont{} letter \textit{resh}.
949 % Practically identical to \textit{dalet}.
950 % \begin{macrocode}
951
952 cmchar "Aramaic letter resh (coded as r)";
953 beginglyph("r",0.6);
954 z1=(leftloc,h);
955 z2=(x1,3/4h);
956 z3=(rightloc,h);
957 z4=(rightloc,0);
958 draw z1{down}..{up}z3;
959 draw z3--z4;
960 labels(1,2,3,4,5); endchar;
961
962 % \end{macrocode}
963 % \end{macro}
964 %
965 %
966 % \begin{macro}{S}
967 % The \thisfont{} letter \textit{shin} (s sup v).
968 % Like a rounded E partly lying on its back.
969 % \begin{macrocode}
970
971 cmchar "Aramaic letter shin (s sup v) (coded as S)";
972 beginglyph("S", 0.8);
973 path pth[];
974 z1=(leftloc,h);
975 z4=(rightloc,1/2h);
976 z3=(2/3[x1,x4], 0);
977 pth1 := z1{down}..z3{right}..{up}z4;
978 z2= point 0.5 of pth1;
979 z12=(1/2[x3,x4], 1/2[y4,y1]);
980 draw z2--z12;
981 draw pth1;
982 labels(1,2,3,4,5,6,7,11,12); endchar;
983
984 % \end{macrocode}
985 % \end{macro}
986 %
987 % \begin{macro}{t}
988 % The \thisfont{} letter \textit{tav}.
989 % Like my handwritten lowercase p.
990 % \begin{macrocode}
991
992 cmchar "Aramaic letter tav (coded as t)";
993 beginglyph("t", 1.0);
994 path pth[];
995 z1=(midloc,h);
996 z3=(leftloc,0);
997 z2=(1/2[x3,x1], 1/8[y3,y1]);
998 z11=5/8[z2,z1];
999 z12=(1/2[x1,rightloc],h);
1000 z13=(rightloc,y11);
1001 z14=(x12,1/2[y2,y11]);
1002 draw smoothly(z1, z2, z3);
1003 draw z11...z12{right}...z13{down}...z14;
1004 labels(1,2,3,4,10,11,12,13,14); endchar;
1005
1006
1007 % \end{macrocode}
1008 % \end{macro}
1009 %
1010 %
1011 % The end of the glyphs.
1012 %
1013 % \begin{macrocode}
1014
1015 end
1016
1017 %</up>
1018 % \end{macrocode}
1019 %
1020 %
1021 %
1022 % \section{The font definition files} \label{sec:fd}
1023 %
1024 % \begin{macrocode}
1025 %<*fdot1>
1026 \DeclareFontFamily{OT1}{aram}{}
1027 \DeclareFontShape{OT1}{aram}{m}{n}{ <-> aram10 }{}
1028 \DeclareFontShape{OT1}{aram}{bx}{n}{ <-> sub aram/m/n }{}
1029 \DeclareFontShape{OT1}{aram}{b}{n}{ <-> sub aram/m/n }{}
1030 \DeclareFontShape{OT1}{aram}{m}{sl}{ <-> sub aram/m/n }{}
1031 \DeclareFontShape{OT1}{aram}{m}{it}{ <-> sub aram/m/n }{}
1032 %</fdot1>
1033 % \end{macrocode}
1034 %
1035 %
1036 % \begin{macrocode}
1037 %<*fdt1>
1038 \DeclareFontFamily{T1}{aram}{}
1039 \DeclareFontShape{T1}{aram}{m}{n}{ <-> aram10 }{}
1040 \DeclareFontShape{T1}{aram}{bx}{n}{ <-> sub aram/m/n }{}
1041 \DeclareFontShape{T1}{aram}{b}{n}{ <-> sub aram/m/n }{}
1042 \DeclareFontShape{T1}{aram}{m}{sl}{ <-> sub aram/m/n }{}
1043 \DeclareFontShape{T1}{aram}{m}{it}{ <-> sub aram/m/n }{}
1044 %</fdt1>
1045 % \end{macrocode}
1046 %
1047 %
1048 % \section{The \Lpack{aramaic} package code} \label{sec:code}
1049 %
1050 % Announce the name and version of the package, which requires
1051 % \LaTeXe{}.
1052 % \begin{macrocode}
1053 %<*usc>
1054 \NeedsTeXFormat{LaTeX2e}
1055 \ProvidesPackage{aramaic}[2000/09/30 v1.0 package for Aramaic fonts]
1056 % \end{macrocode}
1057 %
1058 %
1059 % \begin{macro}{\aramfamily}
1060 % Selects the font family in the T1 encoding.
1061 % \begin{macrocode}
1062 \newcommand{\aramfamily}{\usefont{T1}{aram}{m}{n}}
1063 % \end{macrocode}
1064 % \end{macro}
1065 %
1066 % \begin{macro}{\textaram}
1067 % Text command for the font family.
1068 % \begin{macrocode}
1069 \DeclareTextFontCommand{\textaram}{\aramfamily}
1070
1071 % \end{macrocode}
1072 % \end{macro}
1073 %
1074 % The commands for the signs.
1075 % \begin{macrocode}
1076 \chardef\Arq=`' \chardef\Aa=`a \chardef\Aaleph=`'
1077 \chardef\Ab=`b \chardef\Abeth=`b
1078 \chardef\Ag=`g \chardef\Agimel=`g
1079 \chardef\Ad=`d \chardef\Adaleth=`d
1080 \chardef\Ah=`h \chardef\Ahe=`h
1081 \chardef\Aw=`w \chardef\Avav=`w
1082 \chardef\Az=`z \chardef\Azayin=`z
1083 \chardef\Ahd=`H \chardef\Aheth=`H
1084 \chardef\Atd=`T \chardef\Ateth=`T
1085 \chardef\Ay=`y \chardef\Ayod=`y
1086 \chardef\Ak=`k \chardef\Akaph=`k
1087 \chardef\Al=`l \chardef\Alamed=`l
1088 \chardef\Am=`m \chardef\Amem=`m
1089 \chardef\An=`n \chardef\Anun=`n
1090 \chardef\As=`s \chardef\Asamekh=`s
1091 \chardef\Alq=`` \chardef\Ao=`o \chardef\Aayin=``
1092 \chardef\Ap=`p \chardef\Ape=`p
1093 \chardef\Asd=`x \chardef\Asade=`x
1094 \chardef\Aq=`q \chardef\Aqoph=`q
1095 \chardef\Ar=`r \chardef\Aresh=`r
1096 \chardef\Asv=`S \chardef\Ashin=`S
1097 \chardef\At=`t \chardef\Atav=`t
1098
1099 % \end{macrocode}
1100 %
1101 % \begin{macro}{\translitaram}
1102 % \begin{macro}{\transliaramfont}
1103 % |\translitaram{|\meta{commands}|}| transliterates
1104 % \meta{commands} using the |\translitaram| font.
1105 % \begin{macrocode}
1106 \newcommand{\translitaram}[1]{{%
1107 \@translitA\translitaramfont #1}}
1108 \newcommand{\translitaramfont}{\itshape}
1109
1110 % \end{macrocode}
1111 % \end{macro}
1112 % \end{macro}
1113 %
1114 % \begin{macro}{\@translitA}
1115 % This macro redefines all the character commands to produce
1116 % the transliterated value instead of the glyph. There must be no
1117 % spaces in the definition.
1118 % \begin{macrocode}
1119 \newcommand{\@translitA}{%
1120 \def\Arq{'}\def\Aa{\Arq}\def\Aaleph{\A}%
1121 \def\Ab{b}\def\Abeth{\Ab}%
1122 \def\Ag{g}\def\Agimel{\Ag}%
1123 \def\Ad{d}\def\Adaleth{\Ad}%
1124 \def\Ah{h}\def\Ahe{\Ah}%
1125 \def\Aw{w}\def\Avav{\Aw}%
1126 \def\Az{z}\def\Azayin{\Az}%
1127 \def\Ahd{\d{h}}\def\Aheth{\Ahd}%
1128 \def\Atd{\d{t}}\def\Ateth{\Atd}%
1129 \def\Ay{y}\def\Ayod{\Ay}%
1130 \def\Ak{k}\def\Akaph{\Ak}%
1131 \def\Al{l}\def\Alamed{\Al}%
1132 \def\Am{m}\def\Amem{\Am}%
1133 \def\An{n}\def\Anun{\An}%
1134 \def\As{s}\def\Asamekh{\As}%
1135 \def\Alq{`}\def\Ao{\Alq}\def\Aayin{\Alq}%
1136 \def\Ap{p}\def\Ape{\Ap}%
1137 \def\Asd{\d{s}}\def\Asade{\Asd}%
1138 \def\Aq{q}\def\Aqoph{\Aq}%
1139 \def\Ar{r}\def\Aresh{\Ar}%
1140 \def\Asv{\v{s}}\def\Ashin{\Asv}%
1141 \def\At{t}\def\Atav{\At}%
1142 }
1143
1144 % \end{macrocode}
1145 % \end{macro}
1146 %
1147 %
1148 %
1149 % The end of this package.
1150 % \begin{macrocode}
1151 %</usc>
1152 % \end{macrocode}
1153 %
1154 % \section{The map file}
1155 %
1156 % This is pretty short.
1157 % \changes{v1.2}{2005/06/13}{Added the map file}
1158 % \begin{macrocode}
1159 %<*map>
1160 aram10 Archaic-Aramaic <aram10.pfb
1161 %</map>
1162 % \end{macrocode}
1163 %
1164 %
1165 % \Finale
1166 % \PrintIndex
1167 %
1168 \endinput
1169
1170 %% \CharacterTable
1171 %% {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
1172 %% 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
1173 %% Digits \0\1\2\3\4\5\6\7\8\9
1174 %% Exclamation \! Double quote \" Hash (number) \#
1175 %% Dollar \$ Percent \% Ampersand \&
1176 %% Acute accent \' Left paren \( Right paren \)
1177 %% Asterisk \* Plus \+ Comma \,
1178 %% Minus \- Point \. Solidus \/
1179 %% Colon \: Semicolon \; Less than \<
1180 %% Equals \= Greater than \> Question mark \?
1181 %% Commercial at \@ Left bracket \[ Backslash \\
1182 %% Right bracket \] Circumflex \^ Underscore \_
1183 %% Grave accent \` Left brace \{ Vertical bar \|
1184 %% Right brace \} Tilde \~}
1185
1186