Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %
3 % phoenician.dtx
4 %
5 % Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net
6 % Copyright 1999--2006 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 %<*driver>
22 \documentclass[twoside]{ltxdoc}
23 \usepackage{phoenician}
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{phoenician.dtx}
53 \end{document}
54 %</driver>
55 %
56 % \fi
57 %
58 % \CheckSum{491}
59 %
60 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
61 % \DoNotIndex{\@centercr,\@cite}
62 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
63 % \DoNotIndex{\@input,\@ixpt,\@m}
64 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
65 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
66 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
67 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
68 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
69 % \DoNotIndex{\advance,\Alph,\alph}
70 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
71 % \DoNotIndex{\bullet}
72 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
73 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
74 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
75 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
76 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
77 % \DoNotIndex{\fbox}
78 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
79 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
80 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
81 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
82 % \DoNotIndex{\input}
83 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
84 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
85 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
86 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
87 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
88 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
89 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
90 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
91 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
92 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
93 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
94 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
95 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
96 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
97 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
98 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
99 % \DoNotIndex{\wd,\xiipt,\year,\z@}
100 %
101 % \changes{v1.0}{1999/03/14}{First public release}
102 % \changes{v2.0}{2000/10/01}{Major changes to practically everything}
103 % \changes{v2.1}{2005/04/04}{Minor circumstances and Type1}
104 % \changes{v2.2}{2006/02/05}{Changes to two characters plus some fixes}
105 %
106 % \def\fileversion{v1.0} \def\filedate{1999/03/14}
107 % \def\fileversion{v2.0} \def\filedate{2000/10/01}
108 % \def\fileversion{v2.1} \def\filedate{2005/04/04}
109 % \def\fileversion{v2.2} \def\filedate{2006/02/05}
110 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
111 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
112 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
113 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
114 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
115 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
116 % \newcommand{\BC}{\textsc{bc}}
117 % \newcommand{\AD}{\textsc{ad}}
118 % \newcommand{\thisfont}{Phoenician}
119 %
120 % \title{The \Lpack{Phoenician} fonts\thanks{This
121 % file has version number \fileversion, last revised
122 % \filedate.}}
123 %
124 % \author{%
125 % Peter Wilson\thanks{\texttt{herries dot press at earthlink dot net}}\\
126 % Herries Press
127 % }
128 % \date{\filedate}
129 % \maketitle
130 % \begin{abstract}
131 % The \Lpack{phoenician} package provides a set of Postscript Type1
132 % fonts for the Phoenician script used about 1100~\BC.
133 % \end{abstract}
134 % \tableofcontents
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{MITTELBACH04}.
148 %
149 % Section~\ref{sec:usc} describes the usage of the package.
150 % Commented MetaFont code for the fonts
151 % and source code for the package may be in later sections.
152 %
153 % \subsection{An alphabetic tree}
154 %
155 % Scholars are reasonably agreed that all the world's alphabets are descended
156 % from a Semitic alphabet invented about 1600~\BC{} in the Middle
157 % East~\cite{DRUCKER95}. The word `Semitic' refers
158 % to the family of languages used in the geographical area from
159 % Sinai in the south, up the Mediterranean coast to Asia Minor in the north and
160 % west to the valley of the Euphrates.
161 %
162 % The Phoenician alphabet was stable by about 1100~\BC{} and the script was
163 % written right to left. In earlier times the writing direction was variable,
164 % and so were
165 % the shapes and orientation of the characters. The alphabet consisted of
166 % 22 letters and they were named after things. For example, their first two
167 % letters were called \textit{aleph} (ox), and \textit{beth} (house).
168 % The Phoenician script had
169 % only one case --- unlike our modern fonts which have both upper- and
170 % lower-cases. In modern terms the Phoenician abecedary was: \\
171 % A B G D E Y Z H $\Theta$ I K L M N X O P ts Q R S T \\
172 % where the `Y' (\textit{vau}) character was sometimes written as `F', and
173 % `ts' stands for the \textit{tsade} character.
174 %
175 % The Greek alphabet is one of the descendants of the Phoenician alphabet;
176 % another was Aramaic which is the ancestor of the Arabic, Persian and Indian
177 % scripts.
178 % Initially Greek was written right to left but around the 6th C~\BC{} became
179 % \textit{boustrophedron}, meaning that the lines
180 % alternated in direction. At about 500~\BC{} the writing direction stabilised
181 % as left to
182 % right. The Greeks modified the Phoenician alphabet to match the vocalisation
183 % of their language. They kept the Phoenician names of the letters, suitably
184 % `greekified', so \textit{aleph} became the familar \textit{alpha} and
185 % \textit{beth} became \textit{beta}. At this
186 % point the names of the letters had no meaning. Their were several variants
187 % of the Greek character glyphs until they were finally fixed in Athens in
188 % 403~\BC.
189 % The Greeks did not develop a lower-case
190 % script until about 600--700~\AD.
191 %
192 % The Etruscans based their alphabet on the Greek one, and again modified it.
193 % However, the Etruscans wrote right to left, so their borrowed characters are
194 % mirror images of the original Greek ones. Like the Phoenicians, the Etruscan
195 % script consisted of only one case; they died out before ever needing a
196 % lower-case script. The Etruscan script was used up until the first century
197 % \AD, even though the Etruscans themselves had dissapeared by that time.
198 %
199 %
200 % In turn, the Romans based their alphabet on the Etruscan one, but as they
201 % wrote left to right, the characters were again mirrored (although the early
202 % Roman inscriptions are boustrophedron).
203 %
204 % As the English alphabet is descended from the Roman alphabet
205 % it has a pedigree of some three and a half thousand years.
206 %
207 % \section{The \Lpack{phoenician} package} \label{sec:usc}
208 %
209 % The Phoenician alphabet consisted of 22 letters.
210 % The Phoenician font as provided here consists of 23 letter shapes
211 % as there appears to be two forms of the letter \textit{vav}.
212 % I have used infromation from Johanna Drucker~\cite{DRUCKER95},
213 % John Healey~\cite{HEALEY90} and
214 % Richard Firmage~\cite{FIRMAGE93}, as well as the
215 % \textit{Encyclopedia Brittanica}, in deciding on the letter shapes.
216 %
217 %
218 % Table~\ref{tab} lists, in the \thisfont{} alphabetical order, the
219 % transliterated value of the characters and, where I know it, the
220 % modern name of the character.
221 %
222 % \begin{table}
223 % \centering
224 % \caption{The \thisfont{} script and alphabet}\label{tab}
225 % \begin{tabular}{cclcll} \hline
226 % Glyph & Value & Name & ASCII & Commands (L-R) & Commands (R-L)\\ \hline
227 % \textphnc{a} & \textit{a} &
228 % aleph &
229 % ' a & |\Arq| |\Aa| |\Aaleph| &
230 % |\ARrq| |\ARa| |\ARaleph|
231 % \\
232 % \textphnc{b} & \textit{b} &
233 % beth &
234 % b & |\Ab| |\Abeth| &
235 % |\ARb| |\ARbeth|
236 % \\
237 % \textphnc{g} & \textit{g} &
238 % gimel &
239 % g & |\Ag| |\Agimel| &
240 % |\ARg| |\ARgimel|
241 % \\
242 % \textphnc{d} & \textit{d} &
243 % daleth &
244 % d & |\Ad| |\Adaleth| &
245 % |\ARd| |\ARdaleth|
246 % \\
247 % \textphnc{h} & \textit{h} &
248 % he &
249 % h & |\Ah| |\Ahe| &
250 % |\ARh| |\ARhe|
251 % \\
252 % \textphnc{f} & \textit{w} &
253 % vav &
254 % f & |\Af| |\Avaf| &
255 % |\ARf| |\ARvaf|
256 % \\
257 % \textphnc{w} & \textit{w} &
258 % vav &
259 % w & |\Aw| |\Avav| &
260 % |\ARw| |\ARvav|
261 % \\
262 % \textphnc{z} & \textit{z} &
263 % zayin &
264 % z & |\Az| |\Azayin| &
265 % |\ARz| |\ARzayin|
266 % \\
267 % \textphnc{H} & \textit{\d{h}} &
268 % heth &
269 % H & |\Ahd| |\Aheth| &
270 % |\ARhd| |\ARheth|
271 % \\
272 % \textphnc{T} & \textit{\d{t}} &
273 % teth &
274 % T & |\Atd| |\Ateth| &
275 % |\ARtd| |\ARteth|
276 % \\
277 % \textphnc{y} & \textit{y} &
278 % yod &
279 % y & |\Ay| |\Ayod| &
280 % |\ARy| |\ARyod|
281 % \\
282 % \textphnc{k} & \textit{k} &
283 % kaph &
284 % k & |\Ak| |\Akaph| &
285 % |\ARk| |\ARkaph|
286 % \\
287 % \textphnc{l} & \textit{l} &
288 % lamed &
289 % l & |\Al| |\Alamed| &
290 % |\ARl| |\ARlamed|
291 % \\
292 % \textphnc{m} & \textit{m} &
293 % mem &
294 % m & |\Am| |\Amem| &
295 % |\ARm| |\ARmem|
296 % \\
297 % \textphnc{n} & \textit{n} &
298 % nun &
299 % n & |\An| |\Anun| &
300 % |\ARn| |\ARnun|
301 % \\
302 % \textphnc{s} & \textit{s} &
303 % samekh &
304 % s & |\As| |\Asamekh| &
305 % |\ARs| |\ARsamekh|
306 % \\
307 % \textphnc{o} & \textit{`} &
308 % ayin &
309 % ` o & |\Alq| |\Ao| |\Aayin| &
310 % |\ARlq| |\ARo| |\ARayin|
311 % \\
312 % \textphnc{p} & \textit{p} &
313 % pe &
314 % p & |\Ap| |\Ape| &
315 % |\ARp| |\ARpe|
316 % \\
317 % \textphnc{x} & \textit{\d{s}} &
318 % sade &
319 % x & |\Asd| |\Asade| &
320 % |\ARsd| |\ARsade|
321 % \\
322 % \textphnc{q} & \textit{q} &
323 % qoph &
324 % q & |\Aq| |\Aqoph| &
325 % |\ARq| |\ARqoph|
326 % \\
327 % \textphnc{r} & \textit{r} &
328 % resh &
329 % r & |\Ar| |\Aresh| &
330 % |\ARr| |\ARresh|
331 % \\
332 % \textphnc{S} & \textit{\v{s}} &
333 % shin &
334 % S & |\Asv| |\Ashin| &
335 % |\ARsv| |\ARshin|
336 % \\
337 % \textphnc{t} & \textit{t} &
338 % tav &
339 % t & |\At| |\Atav| &
340 % |\ARt| |\ARtav|
341 % \\
342 % \hline
343 % \end{tabular}
344 % \end{table}
345 %
346 %
347 %
348 %
349 % \DescribeMacro{\phncfamily}
350 % This command selects the Phoenician font family. The family name is |phnc|.
351 %
352 % \DescribeMacro{\textphnc}
353 % The command |\textphnc{|\meta{text}|}| typesets \meta{text} in the
354 % Phoenician font.
355 %
356 % I have provided three ways of accessing the \thisfont{} glyphs:
357 % (a) by ASCII characters,
358 % (b) by commands whose names are based on the transliterated values, and
359 % (c) by commands whose names are based on the (modern) name of the
360 % character.
361 % These are shown in Table~\ref{tab} for left-to-right writing. For
362 % right-to-left typesetting the glyphs, which are mirror images of
363 % those for left-to-right writing, can only be accessed by commands
364 % corresponding to those in the table --- those that are of the form
365 % |\ARxxx| instead of |\Axxx|.
366 %
367 % \DescribeMacro{\translitphnc}
368 % The command |\translitphnc{|\meta{commands}|}| will typeset the
369 % transliteration of the \thisfont{} character commands (those in the
370 % last two columns of Table~\ref{tab}).
371 %
372 % \DescribeMacro{\translitphncfont}
373 % The font used for the transliteration is defined by this macro,
374 % which is initialised to an italic font (i.e., |\itshape|).
375 %
376 %
377 % \StopEventually{
378 %
379 % \bibliographystyle{alpha}
380 % \begin{thebibliography}{GMS94}
381 %
382 % \bibitem[Dru95]{DRUCKER95}
383 % Johanna Drucker.
384 % \newblock \emph{The Alphabetic Labyrinth}.
385 % \newblock Thames and Hudson, 1995.
386 %
387 % \bibitem[Fir93]{FIRMAGE93}
388 % Richard A.~Firmage.
389 % \newblock \emph{The Alphabet Abecedarium}.
390 % \newblock David R.~Goodine, 1993.
391 %
392 % \bibitem[Hea90]{HEALEY90}
393 % John F.~Healey.
394 % \newblock \emph{The Early Alphabet}.
395 % \newblock University of California Press/British Museum, 1990.
396 %
397 % \bibitem[MG04]{MITTELBACH04}
398 % Frank Mittelbach and Michel Goossens.
399 % \newblock \emph{The LaTeX Companion}.
400 % \newblock Addison-Wesley Publishing Company, second edition, 2004.
401 %
402 % \end{thebibliography}
403 % \PrintIndex
404 % }
405 %
406 % \section{The Metafont code} \label{sec:mf}
407 %
408 % \subsection{The parameter file}
409 %
410 % We deal with the parameter file first, and start by announcing
411 % what it is for.
412 % \begin{macrocode}
413 %<*up>
414 %%% PHNC10.MF Computer Phoenician font 10 point design size.
415
416 % \end{macrocode}
417 % Specify the font size.
418 % \begin{macrocode}
419
420 font_identifier:="Archaic-Phoenician"; font_size 10pt#;
421
422 % \end{macrocode}
423 %
424 %
425 % \begin{macro}{u}
426 % \begin{macro}{ht}
427 % \begin{macro}{s}
428 % \begin{macro}{o}
429 % \begin{macro}{px}
430 % \begin{macro}{font-normal-space}
431 % \begin{macro}{font-normal-shrink}
432 % \begin{macro}{font-x-height}
433 % \begin{macro}{font-quad}
434 % Define the very simple font parameters.
435 % \begin{macrocode}
436 u#:=.2pt#; % unit width
437 ht#:=7pt#; % height of characters (CM cap-height is approx 6.8pt)
438 s#:=1.5pt#; % width correction (right and left)
439 o#:=1/20pt#; % overshoot
440 px#:=.7pt#; % horizontal width of pen
441 font_normal_space:=7pt#; % width of a blank space
442 font_normal_shrink:=.9pt#; % width correction for blank space
443 font_x_height:=4.5pt#; % height of one ex
444 font_quad:=10pt#; % an em
445
446 % \end{macrocode}
447 % \end{macro}
448 % \end{macro}
449 % \end{macro}
450 % \end{macro}
451 % \end{macro}
452 % \end{macro}
453 % \end{macro}
454 % \end{macro}
455 % \end{macro}
456 %
457 % For a full font, normally the driver file would be called next.
458 % In this case I have embedded it.
459 % \begin{macrocode}
460
461 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
462 % end of parameters
463 % start of driver code
464 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
465
466 % \end{macrocode}
467 %
468 %
469 % \subsection{The driver file}
470 %
471 % If there was a seperate driver file, this would be its contents.
472 %
473 % \begin{macrocode}
474
475 font_coding_scheme:="Archaic-Phoenician";
476 mode_setup;
477
478 % \end{macrocode}
479 %
480 % \begin{macro}{ho}
481 % \begin{macro}{leftloc}
482 % \begin{macro}{py}
483 % Perform additional setup.
484 % \begin{macrocode}
485 ho#:=o#; % horizontal overshoot
486 leftloc#:=s#; % leftmost xcoord of character
487 py#:=.9px#; % vertical thickness of the pen
488
489 define_pixels(s,u);
490 define_blacker_pixels(px,py);
491 define_good_x_pixels(leftloc);
492 define_corrected_pixels(o); % turn on overshoot correction
493 define_horizontal_corrected_pixels(ho);
494
495 % \end{macrocode}
496 % \end{macro}
497 % \end{macro}
498 % \end{macro}
499 %
500 % \begin{macro}{midloc}
501 % \begin{macro}{rightloc}
502 % Variables for the middle xcoord and rightmost xcoord of a character.
503 % \begin{macrocode}
504 numeric midloc, rightloc;
505 % \end{macrocode}
506 % \end{macro}
507 % \end{macro}
508 %
509 % \begin{macro}{stylus}
510 % Define the pen.
511 % \begin{macrocode}
512 pickup pencircle xscaled px yscaled py;
513 stylus:=savepen;
514
515 % \end{macrocode}
516 % \end{macro}
517 %
518 % \begin{macro}{beginglyph}
519 % A macro to save some typing of beginchar arguments.
520 % \begin{macrocode}
521 def beginglyph(expr code, unit_width) =
522 beginchar(code, unit_width*ht#+2s#, ht#, 0);
523 midloc:=1/2w; rightloc:=(w-s);
524 pickup stylus enddef;
525
526 % \end{macrocode}
527 % \end{macro}
528 %
529 % \begin{macro}{cmchar}
530 % |cmchar| should precede each character
531 % \begin{macrocode}
532 let cmchar=\;
533
534 % \end{macrocode}
535 % \end{macro}
536 %
537 % This would be the end of the driver file, except for calling the
538 % glyph code file.
539 %
540 %
541 % \subsection{The glyph code}
542 %
543 % The following code generates the glyphs for the Phoenician font. The characters
544 % are defined in the Phoenician alphabetic ordering.
545 %
546 % \begin{macrocode}
547
548 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
549 % end of driver code
550 % start of glyph code
551 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
552
553 % \end{macrocode}
554 %
555 % \begin{macro}{'}
556 % The Phoenician \textit{alpeh} (ox), which is like our A but tilted.
557 % \begin{macrocode}
558 cmchar "Phoenician letter aleph (')";
559 beginglyph("'",0.6);
560 x3=rightloc; y3=0.5h; % apex
561 x1=0.1[leftloc, rightloc]; y1=0.1h; % bottom leg end
562 z2=(leftloc,0.9h); % top leg end
563 x7= 0.7[leftloc, rightloc]; y7=0; % construction points
564 x6= 0.2[leftloc, rightloc]; y6=h;
565 z4'= whatever[z1,z3] = whatever[z7,z6]; % bottom leg intersection
566 z5'= whatever[z2,z3] = whatever[z7,z6]; % top leg intersection
567 z4 = 1.2[z5', z4']; z5 = 1.1[z4', z5'];
568 draw z1--z3--z2; % the legs
569 draw z4--z5; % the bar
570 labels(1,2,3,4,4',5,5',6,7);
571 endchar;
572
573 % \end{macrocode}
574 % \end{macro}
575 %
576 % \begin{macro}{a}
577 % The Phoenician \textit{aleph} (ox), which is like our A but tilted.
578 % \begin{macrocode}
579 cmchar "Phoenician letter aleph (a)";
580 beginglyph("a",0.6);
581 x3=rightloc; y3=0.5h; % apex
582 x1=0.1[leftloc, rightloc]; y1=0.1h; % bottom leg end
583 z2=(leftloc,0.9h); % top leg end
584 x7= 0.7[leftloc, rightloc]; y7=0; % construction points
585 x6= 0.2[leftloc, rightloc]; y6=h;
586 z4'= whatever[z1,z3] = whatever[z7,z6]; % bottom leg intersection
587 z5'= whatever[z2,z3] = whatever[z7,z6]; % top leg intersection
588 z4 = 1.2[z5', z4']; z5 = 1.1[z4', z5'];
589 draw z1--z3--z2; % the legs
590 draw z4--z5; % the bar
591 labels(1,2,3,4,4',5,5',6,7);
592 endchar;
593
594 % \end{macrocode}
595 % \end{macro}
596 %
597 % \begin{macro}{b}
598 % The Phoenician \textit{beth} (house), somewhat like a modern P.
599 % \begin{macrocode}
600 cmchar "Phoenician letter beth (b)";
601 beginglyph("b",0.6);
602 x1=x3=0.2[leftloc, rightloc];
603 rt x4=rightloc; y4= 0.75h;
604 x2=leftloc;
605 bot y1=-o; top y3=h; y2=0.5h;
606 draw z1..z2..z3; % the upright
607 draw z3--z4--z2; % upper bowl
608 labels(1,2,3,4); endchar;
609
610 % \end{macrocode}
611 % \end{macro}
612 %
613 % \begin{macro}{g}
614 % The Phoenician \textit{gimel} (camel). Like a broken topped T.
615 % \begin{macrocode}
616 cmchar "Phoenician letter gimel (g)";
617 beginglyph("g", 0.6);
618 x3=leftloc; x1=x2=midloc; x4=rightloc;
619 bot y1=-o; y2=y3=h;
620 y4=0.8h;
621 draw z1--z2; % the stem
622 draw z3--z2--z4; % the top bar
623 labels(1,2,3,4); endchar;
624
625 % \end{macrocode}
626 % \end{macro}
627 %
628 % \begin{macro}{D}
629 % The Phoenician \textit{daleth} (door); it's like the Greek \textit{delta} ($\Delta$).
630 % \begin{macrocode}
631 cmchar "Phoenician letter daleth (d)";
632 beginglyph("d",0.6);
633 x1=leftloc; x2=rightloc; x3=midloc;
634 bot y1= bot y2= 0; top y3=h;
635 draw z1--z2--z3--cycle;
636 labels(1,2,3); endchar;
637
638 % \end{macrocode}
639 % \end{macro}
640 %
641 % \begin{macro}{h}
642 % The Phoenician \textit{he} (window?), like a droopy E.
643 % \begin{macrocode}
644 cmchar "Phoenician letter he (h)";
645 beginglyph("h",0.6);
646 numeric alpha;
647 alpha:=0.1;
648 x4=x5=x6=x7=leftloc;
649 x1=x2=x3=rightloc;
650 bot y4=-o; y7=h;
651 y6=.7h; y5=.4h;
652 y1=y5-alpha*h; y2=y6-alpha*h; y3=y7-alpha*h;
653 draw z4--z7; % the upright
654 draw z1--z5; draw z2--z6; draw z3--z7; % the arms
655 labels(1,2,3,4,5,6,7); endchar;
656
657 % \end{macrocode}
658 % \end{macro}
659 %
660 % \begin{macro}{f}
661 % This is one of forms of the Phoenician \textit{vau} (nail).
662 % It's like a 2-armed E.
663 % \begin{macrocode}
664 cmchar "Phoenician letter vau (f)";
665 beginglyph("f",0.6);
666 numeric alpha;
667 alpha:=0.1;
668 x4=x5=x6=x7=leftloc;
669 x1=x2=x3=rightloc;
670 bot y4=-o; y7=h;
671 y6=.6h; y5=.4h;
672 y1=y5-alpha*h; y2=y6-alpha*h; y3=y7-alpha*h;
673 draw z4--z7; % the upright
674 draw z2--z6; draw z3--z7; % the arms
675 labels(1,2,3,4,5,6,7); endchar;
676
677 % \end{macrocode}
678 % \end{macro}
679 %
680 % \begin{macro}{z}
681 % The Phoenician \textit{zayin} (dagger?). It looks like a modern seriffed I.
682 % \begin{macrocode}
683 cmchar "Phoenician letter zayin (z)";
684 beginglyph("z",0.2);
685 x1=x2=midloc;
686 bot y1=-o; top y2=h;
687 draw z1--z2; % the upright
688 x3=x5=leftloc; x4=x6=rightloc;
689 y3=y4=y1; y5=y6=y2;
690 draw z3--z4; % lower bar
691 draw z5--z6; % upper bar
692 labels(1,2); endchar;
693
694 % \end{macrocode}
695 % \end{macro}
696 %
697 %
698 %
699 %
700 % \begin{macro}{H}
701 % The Phoenician \textit{cheth} (fence?). It looks like a rectangle with
702 % one horizontal internal bar.
703 % \changes{v2.2}{2006/02/05}{Deleted one bar from (c)heth}
704 % \begin{macrocode}
705 cmchar "Phoenician letter cheth (H)";
706 beginglyph("H", 0.6);
707 numeric alpha;
708 alpha:=0.1;
709 x4=x6=leftloc;
710 x1=x3=rightloc;
711 bot y1=-o; top y6=h;
712 y3=y6-alpha*h; y4=y1+alpha*h;
713 z2=0.5[z1,z3]; z5=0.5[z4,z6];
714 draw z1--z3--z6--z4--cycle; % outer boundary
715 draw z2--z5; % bar
716 labels(1,2,3,4,5,6); endchar;
717
718 % \end{macrocode}
719 % \end{macro}
720 %
721 % \begin{macro}{Thet}
722 % The Phoenician \textit{thet}. It's a precursor of the Greek \textit{theta} ($\Theta$).
723 % \begin{macrocode}
724 cmchar "Phoenician letter thet (T)";
725 beginglyph("T",1.0);
726 path p;
727 x1=leftloc; x3=rightloc;
728 y2=h; y4=0;
729 x2=x4=midloc;
730 y1=y3=h/2;
731 z100=(x2,y3); % circle center
732 p = z1..z2..z3..z4..cycle;
733 z11= (z100--(leftloc,h)) intersectionpoint p;
734 z12= (z100--(rightloc,h)) intersectionpoint p;
735 z13= (z100--(rightloc,0)) intersectionpoint p;
736 z14= (z100--(leftloc,0)) intersectionpoint p;
737 draw p;
738 draw z11--z13; draw z12--z14; % the cross
739 labels(1,2,3,4,11,12,13,14); endchar;
740
741 % \end{macrocode}
742 % \end{macro}
743 %
744 %
745 % \begin{macro}{y}
746 % The Phoenician \textit{yod} (hand).
747 % A bit like a leaning F with a reversed leaning L.
748 % \changes{v2.2}{2006/02/05}{Completely changed yod --- it was horribly wrong}
749 % \begin{macrocode}
750 cmchar "Phoenician letter yod (y)";
751 beginglyph("y",0.6);
752 x1=rightloc; y1=0.7h; % end top arm
753 x4=leftloc; y4=0.25h; % end bottom arm
754 x2=1/3[x1,x4]; y2=h; % top
755 x3=1/4[x4,x1]; y3=0; % bottom
756 z5=5/8[z3,z2]; z5-z6 = 0.6(z2-z1); % middle arm
757 draw z1--z2--z3--z4; draw z5--z6;
758 labels (1,2,3,4,5,6); endchar;
759
760 % \end{macrocode}
761 % \end{macro}
762 %
763 %
764 % \begin{macro}{k}
765 % The Phoenician \textit{kaph} (palm of the hand).
766 % \begin{macrocode}
767 cmchar "Phoenician letter kaph (k)";
768 beginglyph("k",0.6);
769 numeric alpha;
770 alpha:=0.8;
771 z1=(rightloc,0);
772 z3=(rightloc,h);
773 z5=(leftloc,h);
774 z4=alpha[z1,z5];
775 z2=alpha[z1,z3];
776 draw z1--z5; % the stem
777 draw z3--z4--z2; % arms
778 labels(1,2,3,4,5); endchar;
779
780 % \end{macrocode}
781 % \end{macro}
782 %
783 % \begin{macro}{l}
784 % The letter \textit{lamed} (ox goad) which is asymmetrical.
785 % \begin{macrocode}
786 cmchar "Phoenician lamed (l)";
787 beginglyph("l",0.4);
788 x1=leftloc; x2=x3=rightloc;
789 bot y2=-o;
790 y1=.3h;
791 y3=h;
792 draw z2--z3; % the upright
793 draw z2--z1; % the arms
794 labels(1,2,3); endchar;
795
796 % \end{macrocode}
797 % \end{macro}
798 %
799 % \begin{macro}{m}
800 % The Phoenician \textit{mem} (water).
801 % \begin{macrocode}
802
803 cmchar"Phoenician letter mem (m)";
804 beginglyph("m",1.0);
805 x1=rightloc;
806 x5=x6=leftloc;
807 x2=3/4[x5,x1]; x3=1/2[x5,x1]; x4=1/4[x5,x1];
808 bot y6= -o;
809 top y5= top y3 = h;
810 top y1=.8h;
811 y2=.6h;
812 y4=.7h;
813 draw z6--z5;
814 draw z1--z2--z3--z4--z5;
815 labels(1,2,3,4,5,6); endchar;
816
817 % \end{macrocode}
818 % \end{macro}
819 %
820 % \begin{macro}{n}
821 % The Phoenician \textit{nun} (fish).
822 % \begin{macrocode}
823 cmchar "Phoenician letter nun (n)";
824 beginglyph("n",0.6);
825 x1=rightloc;
826 x3=midloc; x2=x4=leftloc;
827 bot y2=-o;
828 top y1= top y4= h;
829 y3=.7h;
830 draw z2--z4;
831 draw z1--z3--z4;
832 labels(1,2,3,4); endchar;
833
834 % \end{macrocode}
835 % \end{macro}
836 %
837 %
838 % \begin{macro}{s}
839 % The Phoenician \textit{samech} (post).
840 % It is a progenitor of the Greek \textit{xi} ($\Xi$).
841 % \begin{macrocode}
842 cmchar "Phoenician letter samekh (s)";
843 beginglyph("s", 0.6);
844 x1= x2 = midloc;
845 x3=x4=x5=leftloc;
846 x6=x7=x8=rightloc;
847 y1=0;
848 y3=y6=0.4h;
849 y4=y7=0.7h;
850 y5=y2=y8=h;
851 draw z1--z2; % upright
852 draw z3--z6; draw z4--z7; draw z5--z8; % arms
853 labels(1,2,3,4,5,6,7,8); endchar;
854
855 % \end{macrocode}
856 % \end{macro}
857 %
858 % \begin{macro}{o}
859 % The Phoenician \textit{ayin} (eye).
860 % \begin{macrocode}
861 cmchar "Phoenician letter ayin (o)";
862 beginglyph("o",1.0);
863 x1=leftloc; x3=rightloc;
864 y2=h; y4=0;
865 x2=x4=midloc;
866 y1=y3=h/2;
867 draw z1..z2..z3..z4..cycle;
868 labels(1,2,3,4); endchar;
869
870 % \end{macrocode}
871 % \end{macro}
872 %
873 % \begin{macro}{`}
874 % The Phoenician \textit{ayin} (eye).
875 % \begin{macrocode}
876 cmchar "Phoenician letter ayin (`)";
877 beginglyph("`",1.0);
878 x1=leftloc; x3=rightloc;
879 y2=h; y4=0;
880 x2=x4=midloc;
881 y1=y3=h/2;
882 draw z1..z2..z3..z4..cycle;
883 labels(1,2,3,4); endchar;
884
885 % \end{macrocode}
886 % \end{macro}
887 %
888 % \begin{macro}{p}
889 % The Phoenician \textit{pe} (mouth).
890 % \begin{macrocode}
891 cmchar "Phoenician letter pe (p)";
892 beginglyph("p", 0.4);
893 x1=rightloc; x2=x3=leftloc;
894 bot y3=-o; y2=h;
895 y1=0.8h;
896 draw z1..z2{left}--z3;
897 labels(1,2,3); endchar;
898
899 % \end{macrocode}
900 % \end{macro}
901 %
902 % \begin{macro}{x}
903 % The Phoenician \textit{tsade}.
904 % \begin{macrocode}
905 cmchar "Phoenician letter tsade (x)";
906 beginglyph("x", 0.6);
907 x1=x2=rightloc;
908 x3=0.4[leftloc, rightloc];
909 x4=0.6[leftloc, rightloc];
910 x5=leftloc;
911 y1=0;
912 y2=y3=h;
913 y4=y5=0.8h;
914 draw z1--z2--z3--z4--z5;
915 labels(1,2,3,4,5); endchar;
916
917 % \end{macrocode}
918 % \end{macro}
919 %
920 %
921 % \begin{macro}{q}
922 % The Phoenician \textit{qoph} (knot?).
923 % \begin{macrocode}
924 cmchar "Phoenician letter qoph (q)";
925 beginglyph("q",0.6);
926 numeric alpha;
927 x1=leftloc;
928 x3=rightloc;
929 alpha=0.5(x3-x1); % circle radius
930 y2=h;
931 y4=y2-2alpha;
932 bot y5=-o;
933 x2=x4=x5=midloc;
934 y1=y3=h-alpha;
935 draw z1..z2..z3..z4..cycle; % the circle
936 draw z5--z2; % the upright
937 labels(1,2,3,4,5); endchar;
938
939 % \end{macrocode}
940 % \end{macro}
941 %
942 % \begin{macro}{r}
943 % The Phoenician \textit{resh} (head). It looks a little like a P.
944 % \begin{macrocode}
945 cmchar "Phoenician letter resh(r)";
946 beginglyph("r", 0.4);
947 x1=x2=x3=leftloc; x4=rightloc;
948 bot y1=-o; top y2=h;
949 y3=y4=0.5h;
950 draw z1--z2--z4--z3;
951 labels(1,2,3,4); endchar;
952
953 % \end{macrocode}
954 % \end{macro}
955 %
956 % \begin{macro}{S}
957 % The Phoenician \textit{shin} (teeth). It's like a Greek \textit{sigma} ($\Sigma$)
958 % lying on its side.
959 % \begin{macrocode}
960 cmchar "Phoenician letter shin (S)";
961 beginglyph("S", 0.6);
962 z1=(leftloc,h); z5=(rightloc,h);
963 x2 = 0.2[leftloc, rightloc]; x4 = 0.8[leftloc, rightloc];
964 x3=midloc;
965 y2=y4=0;
966 y3 = 0.4h;
967 draw z1--z2--z3--z4--z5;
968 labels(1,2,3,4,5); endchar;
969
970 % \end{macrocode}
971 % \end{macro}
972 %
973 % \begin{macro}{t}
974 % The Phoenician \textit{tav} (mark).
975 % \begin{macrocode}
976 cmchar "Phoenician letter tav (t)";
977 beginglyph("t", 0.5);
978 x1=x2=midloc;
979 x3=leftloc; x4=rightloc;
980 bot y1=0; y2=h;
981 y3=y4=0.6h;
982 draw z1--z2; % the stem
983 draw z3--z4; % the crossbar
984 labels(1,2,3,4); endchar;
985
986 % \end{macrocode}
987 % \end{macro}
988 %
989 % \begin{macro}{w}
990 % Another form of the Phoenician \textit{vau}.
991 % \begin{macrocode}
992 cmchar "Phoenician letter vau (w)";
993 beginglyph("w", 0.6);
994 x1=x2=midloc;
995 x3=leftloc; x4=rightloc;
996 bot y1=0; y2=0.6h;
997 y3=y4=h;
998 draw z1--z2; % the stem
999 draw z3--z2--z4; % the crossbar
1000 labels(1,2,3,4); endchar;
1001
1002 % \end{macrocode}
1003 % \end{macro}
1004 %
1005 %
1006 %
1007 % The following characters are for the normal Phoenician writing mode
1008 % of right to left. The characters are mirror images of the ASCII uppercase
1009 % counterparts. Symmetric characters that are called by \LaTeX{} commands
1010 % need not be coded.
1011 %
1012 %
1013 % \begin{macro}{A}
1014 % The Phoenician \textit{aleph} (ox), which is like our A but tilted.
1015 % \changes{v2.2}{2006/02/05}{Added the missing R-L aleph}
1016 % \begin{macrocode}
1017 cmchar "Phoenician letter R-L aleph (A)";
1018 beginglyph("A",0.6);
1019 x3=leftloc; y3=0.5h; % apex
1020 x1=0.1[rightloc,leftloc]; y1=0.1h; % end bottom leg
1021 z2=(rightloc,0.9h); % end top leg
1022 x7=0.7[rightloc,leftloc]; y7=0; % construction points
1023 x6=0.2[rightloc,leftloc]; y6=h;
1024 z4'= whatever[z1,z3] = whatever[z7,z6]; % bottom leg intersection
1025 z5'= whatever[z2,z3] = whatever[z7,z6]; % top leg intersection
1026 z4 = 1.2[z5', z4']; z5 = 1.1[z4', z5'];
1027 draw z1--z3--z2; % the legs
1028 draw z4--z5; % the bar
1029 labels(1,2,3,4,4',5,5',6,7);
1030 endchar;
1031
1032 % \end{macrocode}
1033 % \end{macro}
1034 %
1035 % \begin{macro}{B}
1036 % The letter beth, which is asymmetrical.
1037 % \begin{macrocode}
1038 cmchar "Phoenician R-L b (B)";
1039 beginglyph("B",0.6);
1040 x1=x3=0.2[rightloc, leftloc];
1041 lft x4=leftloc; y4= 0.75h;
1042 x2=rightloc;
1043 bot y1=-o; top y3=h; y2=0.5h;
1044 draw z1..z2..z3; % the upright
1045 draw z3--z4--z2; % the bowl
1046 labels(1,2,3,4); endchar;
1047
1048 % \end{macrocode}
1049 % \end{macro}
1050 %
1051 % \begin{macro}{G}
1052 % The letter G which is asymmetrical.
1053 % \begin{macrocode}
1054 cmchar "Phoenician R-L g (G)";
1055 beginglyph("G", 0.6);
1056 x3=rightloc; x1=x2=midloc; x4=leftloc;
1057 bot y1=-o; y2=y3=h;
1058 y4=0.8h;
1059 draw z1--z2; % the stem
1060 draw z3--z2--z4; % top bar
1061 labels(1,2,3,4); endchar;
1062
1063 % \end{macrocode}
1064 % \end{macro}
1065 %
1066 % \begin{macro}{e}
1067 % The letter he which is asymmetrical.
1068 % \begin{macrocode}
1069 cmchar "Phoenician R-L he (e)";
1070 beginglyph("e",0.6);
1071 numeric alpha;
1072 alpha:=0.1;
1073 x1=x2=x3=leftloc; x4=x5=x6=x7=rightloc;
1074 bot y4=-o; y7=h;
1075 y6=.7h; y5=.4h;
1076 y1=y5-alpha*h; y2=y6-alpha*h; y3=y7-alpha*h;
1077 draw z4--z7; % the upright
1078 draw z1--z5; draw z2--z6; draw z3--z7; % the arms
1079 labels(1,2,3,4,5,6,7); endchar;
1080
1081 % \end{macrocode}
1082 % \end{macro}
1083 %
1084 % \begin{macro}{F}
1085 % The letter vau (f) which is asymmetrical.
1086 % \begin{macrocode}
1087 cmchar "Phoenician R-L f-vau (F)";
1088 beginglyph("F",0.6);
1089 numeric alpha;
1090 alpha:=0.1;
1091 x1=x2=x3=leftloc; x4=x5=x6=x7=rightloc;
1092 bot y4=-o; y7=h;
1093 y6=.6h; y5=.4h;
1094 y1=y5-alpha*h; y2=y6-alpha*h; y3=y7-alpha*h;
1095 draw z4--z7; % the upright
1096 draw z2--z6; draw z3--z7; % the arms
1097 labels(1,2,3,4,5,6,7); endchar;
1098
1099 % \end{macrocode}
1100 % \end{macro}
1101 %
1102 %
1103 % \begin{macro}{E}
1104 % The letter heth which is asymmetrical.
1105 % \changes{v2.2}{2006/02/05}{Deleted one bar from L-R heth}
1106 % \begin{macrocode}
1107 cmchar "Phoenician R-L heth (E)";
1108 beginglyph("E", 0.6);
1109 numeric alpha;
1110 alpha:=0.1;
1111 x1=x3=leftloc; x4=x6=rightloc;
1112 bot y1=-o; top y6=h;
1113 y3=y6-alpha*h; y4=y1+alpha*h;
1114 z2=0.5[z1,z3]; z5=0.5[z4,z6];
1115 draw z1--z3--z6--z4--cycle; % outer boundary
1116 draw z2--z5; % bar
1117 labels(1,2,3,4,5,6,7,8); endchar;
1118
1119 % \end{macrocode}
1120 % \end{macro}
1121 %
1122 %
1123 %
1124 % \begin{macro}{Y}
1125 % The Phoenician \textit{yod} (hand), which is asymetrical.
1126 % A bit like a leaning F with a reversed leaning L.
1127 % \changes{v2.2}{2006/02/05}{Added L-R yod}
1128 % \begin{macrocode}
1129 cmchar "Phoenician letter L-R yod (Y)";
1130 beginglyph("Y",0.6);
1131 x1=leftloc; y1=0.7h; % end top arm
1132 x4=rightloc; y4=0.25h; % end bottom arm
1133 x2=1/3[x1,x4]; y2=h; % top
1134 x3=1/4[x4,x1]; y3=0; % bottom
1135 z5=5/8[z3,z2]; z5-z6 = 0.6(z2-z1); % middle arm
1136 draw z1--z2--z3--z4; draw z5--z6;
1137 labels (1,2,3,4,5,6); endchar;
1138
1139 % \end{macrocode}
1140 % \end{macro}
1141 %
1142 %
1143 % \begin{macro}{K}
1144 % The letter kaph which is asymmetrical.
1145 % \begin{macrocode}
1146 cmchar "Phoenician R-L kaph (K)";
1147 beginglyph("K",0.6);
1148 numeric alpha;
1149 alpha:=0.8;
1150 z1=(leftloc,0);
1151 z3=(leftloc,h);
1152 z5=(rightloc,h);
1153 z4=alpha[z1,z5];
1154 z2=alpha[z1,z3];
1155 draw z1--z5; % the stem
1156 draw z3--z4--z2; % the arms
1157 labels(1,2,3,4,5); endchar;
1158
1159 % \end{macrocode}
1160 % \end{macro}
1161 %
1162 % \begin{macro}{L}
1163 % The Phoenician \textit{lamed} (ox goad) which is asymmetrical.
1164 % \begin{macrocode}
1165 cmchar "Phoenician R-L lamed (L)";
1166 beginglyph("L",0.4);
1167 x2=x3=leftloc;
1168 x1=rightloc;
1169 bot y2=-o;
1170 y1=.3h;
1171 y3=h;
1172 draw z2--z3; % the upright
1173 draw z2--z1; % the arms
1174 labels(1,2,3); endchar;
1175
1176 % \end{macrocode}
1177 % \end{macro}
1178 %
1179 % \begin{macro}{M}
1180 % The letter mem which is asymmetrical.
1181 % \begin{macrocode}
1182 cmchar"Phoenician R-L mem (M)";
1183 beginglyph("M",1.0);
1184 x1=leftloc;
1185 x5=x6=rightloc;
1186 x2=1/4[x1,x5]; x3=1/2[x1,x5]; x4=3/4[x1,x5];
1187 bot y6= -o;
1188 top y5= top y3 = h;
1189 top y1=.8h;
1190 y2=.6h;
1191 y4=.7h;
1192 draw z6--z5;
1193 draw z1--z2--z3--z4--z5;
1194 labels(1,2,3,4,5,6); endchar;
1195
1196 % \end{macrocode}
1197 % \end{macro}
1198 %
1199 % \begin{macro}{N}
1200 % The letter nun which is asymmetrical.
1201 % \begin{macrocode}
1202 cmchar "Phoenician R-L nun (N)";
1203 beginglyph("N",0.6);
1204 x1=leftloc;
1205 x3=midloc; x2=x4=rightloc;
1206 bot y2=-o;
1207 top y1= top y4= h;
1208 y3=.7h;
1209 draw z2--z4;
1210 draw z1--z3--z4;
1211 labels(1,2,3,4); endchar;
1212
1213 % \end{macrocode}
1214 % \end{macro}
1215 %
1216 %
1217 % \begin{macro}{P}
1218 % The letter pe which is asymmetrical.
1219 % \begin{macrocode}
1220 cmchar "Phoenician R-L pe (P)";
1221 beginglyph("P", 0.4);
1222 x1=leftloc; x2=x3=rightloc;
1223 bot y3=-o; y2=h;
1224 y1=0.8h;
1225 draw z1..z2{right}--z3;
1226 labels(1,2,3); endchar;
1227
1228 % \end{macrocode}
1229 % \end{macro}
1230 %
1231 %
1232 % \begin{macro}{X}
1233 % The Phoenician \textit{tsade} which is asymmetrical.
1234 % \begin{macrocode}
1235 cmchar "Phoenician R-L tsade (X)";
1236 beginglyph("X", 0.6);
1237 x1=x2=leftloc;
1238 x3=0.6[leftloc, rightloc];
1239 x4=0.4[leftloc, rightloc];
1240 x5=rightloc;
1241 y1=0;
1242 y2=y3=h;
1243 y4=y5=0.8h;
1244 draw z1--z2--z3--z4--z5;
1245 labels(1,2,3,4,5); endchar;
1246
1247 % \end{macrocode}
1248 % \end{macro}
1249 %
1250 % \begin{macro}{R}
1251 % The letter resh which is asymmetrical.
1252 % \begin{macrocode}
1253 cmchar "Phoenician R-L resh (R)";
1254 beginglyph("R", 0.4);
1255 x1=x2=x3=rightloc; x4=leftloc;
1256 bot y1=-o; top y2=h;
1257 y3=y4=0.5h;
1258 draw z1--z2--z4--z3;
1259 labels(1,2,3,4); endchar;
1260
1261 % \end{macrocode}
1262 % \end{macro}
1263 %
1264 %
1265 %
1266 % The end of the glyphs and the file.
1267 % \begin{macrocode}
1268
1269 end
1270
1271 %</up>
1272 % \end{macrocode}
1273 %
1274 %
1275 %
1276 % \section{The font definition files} \label{sec:fd}
1277 %
1278 % \begin{macrocode}
1279 %<*fdot1>
1280 \DeclareFontFamily{OT1}{phnc}{}
1281 \DeclareFontShape{OT1}{phnc}{m}{n}{ <-> phnc10 }{}
1282 \DeclareFontShape{OT1}{phnc}{bx}{n}{ <-> sub phnc/m/n }{}
1283 \DeclareFontShape{OT1}{phnc}{b}{n}{ <-> sub phnc/m/n }{}
1284 \DeclareFontShape{OT1}{phnc}{m}{sl}{ <-> sub phnc/m/n }{}
1285 \DeclareFontShape{OT1}{phnc}{m}{it}{ <-> sub phnc/m/n }{}
1286 %</fdot1>
1287 % \end{macrocode}
1288 %
1289 %
1290 % \begin{macrocode}
1291 %<*fdt1>
1292 \DeclareFontFamily{T1}{phnc}{}
1293 \DeclareFontShape{T1}{phnc}{m}{n}{ <-> phnc10 }{}
1294 \DeclareFontShape{T1}{phnc}{bx}{n}{ <-> sub phnc/m/n }{}
1295 \DeclareFontShape{T1}{phnc}{b}{n}{ <-> sub phnc/m/n }{}
1296 \DeclareFontShape{T1}{phnc}{m}{sl}{ <-> sub phnc/m/n }{}
1297 \DeclareFontShape{T1}{phnc}{m}{it}{ <-> sub phnc/m/n }{}
1298 %</fdt1>
1299 % \end{macrocode}
1300 %
1301 % \section{The \Lpack{phoenician} package code} \label{sec:code}
1302 %
1303 % Announce the name and version of the package, which requires
1304 % \LaTeXe{}.
1305 % \changes{v1.2}{2006/02/05}{Added code for L-R yod}
1306 % \begin{macrocode}
1307 %<*usc>
1308 \NeedsTeXFormat{LaTeX2e}
1309 %%%\ProvidesPackage{phoenician}[2000/10/01 v1.1 package for Phoenician fonts]
1310 \ProvidesPackage{phoenician}[2006/02/05 v1.2 package for Phoenician fonts]
1311 % \end{macrocode}
1312 %
1313 %
1314 % \begin{macro}{\phncfamily}
1315 % Selects the Phoenician font family in the OT1 encoding.
1316 % \begin{macrocode}
1317 \newcommand{\phncfamily}{\usefont{OT1}{phnc}{m}{n}}
1318 % \end{macrocode}
1319 % \end{macro}
1320 %
1321 % \begin{macro}{\textphnc}
1322 % Text command for the Phoenician font family.
1323 % \begin{macrocode}
1324 \DeclareTextFontCommand{\textphnc}{\phncfamily}
1325 % \end{macrocode}
1326 % \end{macro}
1327 %
1328 % The commands for the signs.
1329 % \begin{macrocode}
1330
1331 %%%\chardef\Arq=`' \chardef\ARrq=`' \chardef\Aaleph=`a \chardef\ARaleph=`a
1332 %%%\chardef\Aa=`a \chardef\ARa=`a
1333 \chardef\Arq=`' \chardef\ARrq=`' \chardef\Aaleph=`a \chardef\ARaleph=`A
1334 \chardef\Aa=`a \chardef\ARa=`A
1335 \chardef\Ab=`b \chardef\ARb=`B \chardef\Abeth=`b \chardef\ARbeth=`B
1336 \chardef\Ag=`g \chardef\ARg=`G \chardef\Agimel=`g \chardef\ARgimel=`G
1337 \chardef\Ad=`d \chardef\ARd=`d \chardef\Adaleth=`d \chardef\ARdaleth=`d
1338 \chardef\Ah=`h \chardef\ARh=`e \chardef\Ahe=`h \chardef\ARhe=`e
1339 \chardef\Af=`f \chardef\ARf=`F \chardef\Avaf=`f \chardef\ARvaf=`F
1340 \chardef\Az=`z \chardef\ARz=`z \chardef\Azayin=`z \chardef\ARzayin=`z
1341 \chardef\Ahd=`H \chardef\ARhd=`E \chardef\Aheth=`H \chardef\ARheth=`E
1342 \chardef\Atd=`T \chardef\ARtd=`T \chardef\Ateth=`T \chardef\ARteth=`T
1343 %%%\chardef\Ay=`y \chardef\ARy=`y \chardef\Ayod=`y \chardef\ARyod=`y
1344 \chardef\Ay=`y \chardef\ARy=`Y \chardef\Ayod=`y \chardef\ARyod=`Y
1345 \chardef\Ak=`k \chardef\ARk=`K \chardef\Akaph=`k \chardef\ARkaph=`K
1346 \chardef\Al=`l \chardef\ARl=`L \chardef\Alamed=`l \chardef\ARlamed=`L
1347 \chardef\Am=`m \chardef\ARm=`M \chardef\Amem=`m \chardef\ARmem=`M
1348 \chardef\An=`n \chardef\ARn=`N \chardef\Anun=`n \chardef\ARnun=`N
1349 \chardef\As=`s \chardef\ARs=`s \chardef\Asamekh=`s \chardef\ARsamekh=`s
1350 \chardef\Alq=`` \chardef\ARlq=`` \chardef\Aayin=`` \chardef\ARayin=``
1351 \chardef\Ao=`o \chardef\ARo=`o
1352 \chardef\Ap=`p \chardef\ARp=`P \chardef\Ape=`p \chardef\ARpe=`P
1353 \chardef\Asd=`x \chardef\ARsd=`X \chardef\Asade=`x \chardef\ARsade=`X
1354 \chardef\Aq=`q \chardef\ARq=`q \chardef\Aqoph=`q \chardef\ARqoph=`q
1355 \chardef\Ar=`r \chardef\ARr=`R \chardef\Aresh=`r \chardef\ARresh=`R
1356 \chardef\Asv=`S \chardef\ARsv=`S \chardef\Ashin=`S \chardef\ARshin=`S
1357 \chardef\At=`t \chardef\ARt=`t \chardef\Atav=`t \chardef\ARtav=`t
1358 \chardef\Aw=`w \chardef\ARw=`w \chardef\Avav=`w \chardef\ARvav=`w
1359
1360 % \end{macrocode}
1361 %
1362 % \begin{macro}{\translitphnc}
1363 % \begin{macro}{\translitphncfont}
1364 % |\translitphnc{|\meta{commands}|}| transliterates \meta{commands}
1365 % using the |\translitphncfont| font.
1366 % \begin{macrocode}
1367 \newcommand{\translitphnc}[1]{{%
1368 \@translitP\translitphncfont #1}}
1369 \newcommand{\translitphncfont}{\itshape}
1370
1371 % \end{macrocode}
1372 % \end{macro}
1373 % \end{macro}
1374 %
1375 % \begin{macro}{\@translitP}
1376 % This macro redefines all the character commands to produce the
1377 % transliterated version instead of the glyph.
1378 % There must be no spaces in the definition.
1379 % \begin{macrocode}
1380 \newcommand{\@translitP}{%
1381 \def\Arq{'}\def\ARrq{\Arq}\def\Aaleph{\Arq}\def\ARaleph{\Arq}%
1382 \def\Aa{\Arq}\def\ARa{\Arq}%
1383 \def\Ab{b}\def\ARb{\Ab}\def\Abeth{\Ab}\def\ARbeth{\Ab}%
1384 \def\Ag{g}\def\ARg{\Ag}\def\Agimel{\Ag}\def\ARgimel{\Ag}%
1385 \def\Ad{d}\def\ARd{\Ad}\def\Adaleth{\Ad}\def\ARdaleth{\Ad}%
1386 \def\Ah{h}\def\ARh{\Ah}\def\Ahe{\Ah}\def\ARhe{\Ah}%
1387 \def\Af{w}\def\ARf{\Af}\def\Avaf{\Af}\def\ARvaf{\Af}%
1388 \def\Az{z}\def\ARz{\Az}\def\Azayin{\Az}\def\ARzayin{\Az}%
1389 \def\Ahd{\d{h}}\def\ARhd{\Ahd}\def\Aheth{\Ahd}\def\ARheth{\Ahd}%
1390 \def\Atd{\d{t}}\def\ARtd{\Atd}\def\Ateth{\Atd}\def\ARteth{\Atd}%
1391 \def\Ay{y}\def\ARy{\Ay}\def\Ayod{\Ay}\def\ARyod{\Ay}%
1392 \def\Ak{k}\def\ARk{\Ak}\def\Akaph{\Ak}\def\ARkaph{\Ak}%
1393 \def\Al{l}\def\ARl{\Al}\def\Alamed{\Al}\def\ARlamed{\Al}%
1394 \def\Am{m}\def\ARm{\Am}\def\Amem{\Am}\def\ARmem{\Am}%
1395 \def\An{n}\def\ARn{\An}\def\Anun{\An}\def\ARnun{\An}%
1396 \def\As{s}\def\ARs{\As}\def\Asamekh{\As}\def\ARsamekh{\As}%
1397 \def\Alq{`}\def\ARlq{\Alq}\def\Aayin{\Alq}\def\ARayin{\Alq}%
1398 \def\Ao{\Alq}\def\ARo{\Ablq}%
1399 \def\Ap{p}\def\ARp{\Ap}\def\Ape{\Ap}\def\ARpe{\Ap}%
1400 \def\Asd{\d{s}}\def\ARsd{\Asd}\def\Asade{\Asd}\def\ARsade{\Asd}%
1401 \def\Aq{q}\def\ARq{\Aq}\def\Aqoph{\Aq}\def\ARqoph{\Aq}%
1402 \def\Ar{r}\def\ARr{\Ar}\def\Aresh{\Ar}\def\ARresh{\Ar}%
1403 \def\Asv{\v{s}}\def\ARsv{\Asv}\def\Ashin{\Asv}\def\ARshin{\Asv}%
1404 \def\At{t}\def\ARt{\At}\def\Atav{\At}\def\ARtav{\At}%
1405 \def\Aw{w}\def\ARw{\Aw}\def\Avav{\Aw}\def\ARvav{\Aw}%
1406 }
1407
1408 % \end{macrocode}
1409 % \end{macro}
1410 %
1411 %
1412 %
1413 %
1414 %
1415 % The end of this package.
1416 % \begin{macrocode}
1417 %</usc>
1418 % \end{macrocode}
1419 %
1420 % \section{The Type1 map file}
1421 %
1422 % Just a line.
1423 % \changes{v2.1}{2005/04/04}{Added the map file}
1424 % \begin{macrocode}
1425 %<*map>
1426 phnc10 Archaic-Phoenician <phnc10.pfb
1427 %</map>
1428 % \end{macrocode}
1429 %
1430 %
1431 %
1432 % \Finale
1433 % ^^A \PrintIndex
1434 %
1435 \endinput
1436
1437 %% \CharacterTable
1438 %% {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
1439 %% 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
1440 %% Digits \0\1\2\3\4\5\6\7\8\9
1441 %% Exclamation \! Double quote \" Hash (number) \#
1442 %% Dollar \$ Percent \% Ampersand \&
1443 %% Acute accent \' Left paren \( Right paren \)
1444 %% Asterisk \* Plus \+ Comma \,
1445 %% Minus \- Point \. Solidus \/
1446 %% Colon \: Semicolon \; Less than \<
1447 %% Equals \= Greater than \> Question mark \?
1448 %% Commercial at \@ Left bracket \[ Backslash \\
1449 %% Right bracket \] Circumflex \^ Underscore \_
1450 %% Grave accent \` Left brace \{ Vertical bar \|
1451 %% Right brace \} Tilde \~}
1452
1453