| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% protosem.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 |
%<*driver> |
| 22 |
\documentclass[twoside]{ltxdoc} |
| 23 |
\usepackage{docmfp} |
| 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 |
}% |
| 50 |
\item[]}{\end{list}} |
| 51 |
\begin{document} |
| 52 |
\raggedbottom |
| 53 |
\DocInput{protosem.dtx} |
| 54 |
\end{document} |
| 55 |
%</driver> |
| 56 |
% |
| 57 |
% \fi |
| 58 |
% |
| 59 |
% \CheckSum{389} |
| 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/03/18}{Updated details, added map file} |
| 105 |
% \changes{v1.3}{2005/07/21}{Minor fixes} |
| 106 |
% |
| 107 |
% \def\fileversion{v1.0} \def\filedate{1999/03/14} |
| 108 |
% \def\fileversion{v1.1} \def\filedate{2000/09/30} |
| 109 |
% \def\fileversion{v1.2} \def\filedate{2005/03/18} |
| 110 |
% \def\fileversion{v1.3} \def\filedate{2005/07/21} |
| 111 |
% \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package |
| 112 |
% \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option |
| 113 |
% \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file |
| 114 |
% \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter |
| 115 |
% \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle |
| 116 |
% \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment |
| 117 |
% \newcommand{\BC}{\textsc{bc}} |
| 118 |
% \newcommand{\AD}{\textsc{ad}} |
| 119 |
% \newcommand{\thisfont}{Proto-Semitic} |
| 120 |
% |
| 121 |
% \title{The \Lpack{Proto-Semitic} fonts\thanks{This |
| 122 |
% file has version number \fileversion, last revised |
| 123 |
% \filedate.}} |
| 124 |
% |
| 125 |
% \author{% |
| 126 |
% Peter Wilson\thanks{\texttt{herries dot press at earthlink dot net}}\\ |
| 127 |
% Herries Press } |
| 128 |
% \date{\filedate} |
| 129 |
% \maketitle |
| 130 |
% \begin{abstract} |
| 131 |
% The \Lpack{protosem} package provides a set of fonts for the |
| 132 |
% Proto-Semitic alphabet which was used around 1600~\BC{} in the Middle East. |
| 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{GOOSSENS94}. |
| 148 |
% |
| 149 |
% Section~\ref{sec:usc} describes the usage of the package. |
| 150 |
% Later sections, if any, contain commented code for the fonts |
| 151 |
% and source code for the package. |
| 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{protosem} package} \label{sec:usc} |
| 208 |
% |
| 209 |
% The Proto-Semitic alphabet provided by this package is probably |
| 210 |
% a precursor to the Phoenician alphabet. As far as I can make out |
| 211 |
% from Davies~\cite{DAVIES97}, Drucker~\cite{DRUCKER95} and |
| 212 |
% Healey~\cite{HEALEY90}, there may have been several proto- alphabets |
| 213 |
% being referred to as Proto-Siniatic or Proto-Canaanite for example. |
| 214 |
% I have taken what I can from the sources available to me and |
| 215 |
% produced a sort of generic Proto-Semitic font. |
| 216 |
% |
| 217 |
% The alphabet consisted of 23 letters, some of which came in two |
| 218 |
% different forms. The writing direction was normally left to right |
| 219 |
% but could also be vertical. |
| 220 |
% |
| 221 |
% \begin{table} |
| 222 |
% \begin{addtomargins}{-2in} |
| 223 |
% \centering |
| 224 |
% \caption{Names and meanings of \thisfont{} letters}\label{tab} |
| 225 |
% \begin{tabular}{cllclcl} \hline |
| 226 |
% & & & & & \multicolumn{2}{c}{Alternative} \\ |
| 227 |
% Value & Name & Meaning & ASCII & command & ASCII & Command \\ \hline |
| 228 |
% \textit{a} & alpu & ox & ' a & |\Arq| |\Aa| |\Aaleph| & A & |\AAa| |\AAaleph| \\ |
| 229 |
% \textit{b} & betu & house & b & |\Ab| |\Abeth| & B & |\AAb| |\AAbeth| \\ |
| 230 |
% \textit{g} & & throw-stick? & g & |\Ag| |\Agimel| & & \\ |
| 231 |
% \textit{d} & & fish & d & |\Ad| |\Adaleth| & D & |\AAd| |\AAdaleth| \\ |
| 232 |
% \textit{h} & & man? & e & |\Ah| |\Ahe| & E & |\AAh| |\AAhe| \\ |
| 233 |
% \textit{w} & wawwu & hook/peg & w & |\Aw| |\Avav| & & \\ |
| 234 |
% \textit{z} & & & z & |\Az| |\Azayin| & & \\ |
| 235 |
% \textit{\d{h}} & hotu & fence & h & |\Ahd| |\Aheth| & H & |\AAhd| |\AAheth| \\ |
| 236 |
% \textit{\d{t}} & & twisted flax & T & |\Atd| |\Ateth| & & \\ |
| 237 |
% \textit{y} & yadu & hand/arm & y & |\Ay| |\Ayod| & Y & |\AAy| |\AAyod| \\ |
| 238 |
% \textit{k} & kappu & palm of hand & k & |\Ak| |\Akaph| & K & |\AAk| |\AAkaph| \\ |
| 239 |
% \textit{l} & lamdu & ox goad/whip & l & |\Al| |\Alamed| & L & |\AAl| |\AAlamed| \\ |
| 240 |
% \textit{m} & mayyuma? & water & m & |\Am| |\Amem| & & \\ |
| 241 |
% \textit{n} & nahasu & snake & n & |\An| |\Anun| & & \\ |
| 242 |
% \textit{o} & enu & eye & ` o & |\Alq| |\Ao| |\Aayin| & O & |\AAo| |\AAayin| \\ |
| 243 |
% \textit{s} & & & s & |\As| |\Asamekh| & & \\ |
| 244 |
% \textit{p} & & leg/foot? & p & |\Ap| |\Ape| & P & |\AAp| |\AApe| \\ |
| 245 |
% \textit{\d{s}} & & plant? & x & |\Asd| |\Asade| & X & |\AAsd| |\AAsade| \\ |
| 246 |
% \textit{q} & & knot? & q & |\Aq| |\Aqoph| & Q & |\AAq| |\AAqoph| \\ |
| 247 |
% \textit{r} & rasu & head & r & |\Ar| |\Aresh| & R & |\AAr| |\AAresh| \\ |
| 248 |
% \textit{\v{s}} & & lotus pool? & S & |\Asv| |\Ashin| & & \\ |
| 249 |
% \textit{t} & tawwu & mark & t & |\At| |\Atav| & & \\ |
| 250 |
% ??? & & & v & |\Av| |\Ahelmet| & V & |\AAv| |\AAhelmet| \\ |
| 251 |
% \hline |
| 252 |
% \end{tabular} |
| 253 |
% \end{addtomargins} |
| 254 |
% \end{table} |
| 255 |
% |
| 256 |
% Table~\ref{tab} lists, in what I hope is the Proto-Semitic alphabetic order, the |
| 257 |
% transliterated values of the characters and, where I know it, the name and |
| 258 |
% meaning of the corresponding Proto-Semitic letter. |
| 259 |
% Several of the glyphs are obviously based on Egyptian hieroglyphs. |
| 260 |
% There seems to be general agreement that the glyphs I have coded as: \\ |
| 261 |
% |a b g d e w H T y k l m n o r S t| \\ |
| 262 |
% fall into this category. |
| 263 |
% |
| 264 |
% |
| 265 |
% \DescribeMacro{\protofamily} |
| 266 |
% This command selects the \thisfont{} font family. The family name is |proto|. |
| 267 |
% |
| 268 |
% \DescribeMacro{\textproto} |
| 269 |
% The command |\textproto{|\meta{text}|}| typesets \meta{text} in the |
| 270 |
% \thisfont{} font. |
| 271 |
% |
| 272 |
% I have provided two means of accessing the \thisfont{} glyphs: |
| 273 |
% (a) by ASCII characters, and (b) via commands. These are shown in |
| 274 |
% Table~\ref{tab}. The columns headed `Alternative' are for accessing |
| 275 |
% an alternative form of the glyph, if it exists. |
| 276 |
% |
| 277 |
% \DescribeMacro{\translitproto} |
| 278 |
% The command |\translitproto{|\meta{commands}|}| will typeset the |
| 279 |
% transliteration of the \thisfont{} character commands (those in the |
| 280 |
% fifth and seventh columns of Table~\ref{tab}). |
| 281 |
% |
| 282 |
% \DescribeMacro{\translitprotofont} |
| 283 |
% The font used for the transliteration is defined by this macro, |
| 284 |
% which is initialsed to an italic font (i.e., |\itshape|). |
| 285 |
% |
| 286 |
% \StopEventually{ |
| 287 |
% \bibliographystyle{alpha} |
| 288 |
% |
| 289 |
% \begin{thebibliography}{GMS94} |
| 290 |
% |
| 291 |
% \bibitem[Dav97]{DAVIES97} |
| 292 |
% W. V. Davies. |
| 293 |
% \newblock \emph{Reading the Past: Egyptian Hieroglyphs}. |
| 294 |
% \newblock University of California Press/British Museum, 1997. |
| 295 |
% \newblock (ISBN 0-520-06287-6) |
| 296 |
% |
| 297 |
% \bibitem[Dru95]{DRUCKER95} |
| 298 |
% Johanna Drucker. |
| 299 |
% \newblock \emph{The Alphabetic Labyrinth}. |
| 300 |
% \newblock Thames and Hudson, 1995. |
| 301 |
% |
| 302 |
% \bibitem[Fir93]{FIRMAGE93} |
| 303 |
% Richard A.~Firmage. |
| 304 |
% \newblock \emph{The Alphabet Abecedarium}. |
| 305 |
% \newblock David R.~Goodine, 1993. |
| 306 |
% |
| 307 |
% \bibitem[GMS94]{GOOSSENS94} |
| 308 |
% Michel Goossens, Frank Mittelbach, and Alexander Samarin. |
| 309 |
% \newblock \emph{The LaTeX Companion}. |
| 310 |
% \newblock Addison-Wesley Publishing Company, 1994. |
| 311 |
% |
| 312 |
% \bibitem[Hea90]{HEALEY90} |
| 313 |
% John F.~Healey. |
| 314 |
% \newblock \emph{Reading the Past: The Early Alphabet}. |
| 315 |
% \newblock University of California Press/British Museum, 1990. |
| 316 |
% \newblock (ISBN 0-520-07309-6) |
| 317 |
% |
| 318 |
% \end{thebibliography} |
| 319 |
% } |
| 320 |
% |
| 321 |
% |
| 322 |
% \section{The Metafont code} \label{sec:mf} |
| 323 |
% |
| 324 |
% \subsection{The parameter file} |
| 325 |
% |
| 326 |
% We deal with the parameter file first, and start by announcing |
| 327 |
% what it is for. |
| 328 |
% \begin{macrocode} |
| 329 |
%<*up> |
| 330 |
%%% PROTO10.MF Computer Proto-Semitic font 10 point design size. |
| 331 |
|
| 332 |
% \end{macrocode} |
| 333 |
% Specify the font size. |
| 334 |
% \begin{macrocode} |
| 335 |
|
| 336 |
font_identifier:="protosem"; font_size 10pt#; |
| 337 |
|
| 338 |
% \end{macrocode} |
| 339 |
% |
| 340 |
% |
| 341 |
% \begin{macro}{u} |
| 342 |
% \begin{macro}{ht} |
| 343 |
% \begin{macro}{s} |
| 344 |
% \begin{macro}{o} |
| 345 |
% \begin{macro}{px} |
| 346 |
% \begin{macro}{font-normal-space} |
| 347 |
% \begin{macro}{font-normal-shrink} |
| 348 |
% \begin{macro}{font-x-height} |
| 349 |
% \begin{macro}{font-quad} |
| 350 |
% Define the very simple font parameters. |
| 351 |
% \begin{macrocode} |
| 352 |
u#:=.2pt#; % unit width |
| 353 |
ht#:=7pt#; % height of characters (CM cap-height is approx 6.8pt) |
| 354 |
s#:=1.5pt#; % width correction (right and left) |
| 355 |
o#:=1/20pt#; % overshoot |
| 356 |
px#:=.6pt#; % horizontal width of pen |
| 357 |
font_normal_space:=7pt#; % width of a blank space |
| 358 |
font_normal_shrink:=.9pt#; % width correction for blank space |
| 359 |
font_x_height:=4.5pt#; % height of one ex |
| 360 |
font_quad:=10pt#; % an em |
| 361 |
|
| 362 |
% \end{macrocode} |
| 363 |
% \end{macro} |
| 364 |
% \end{macro} |
| 365 |
% \end{macro} |
| 366 |
% \end{macro} |
| 367 |
% \end{macro} |
| 368 |
% \end{macro} |
| 369 |
% \end{macro} |
| 370 |
% \end{macro} |
| 371 |
% \end{macro} |
| 372 |
% |
| 373 |
% For a full font, the driver file would normally be called here. |
| 374 |
% In this case I have embedded it. |
| 375 |
% \begin{macrocode} |
| 376 |
|
| 377 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 378 |
% end of parameters |
| 379 |
% start of driver code |
| 380 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 381 |
|
| 382 |
% \end{macrocode} |
| 383 |
% |
| 384 |
% |
| 385 |
% \subsection{The driver file} |
| 386 |
% |
| 387 |
% If there was a seperate driver file, this would be its contents. |
| 388 |
% |
| 389 |
% \begin{macrocode} |
| 390 |
|
| 391 |
font_coding_scheme:="Protosem glyphs"; |
| 392 |
mode_setup; |
| 393 |
|
| 394 |
% \end{macrocode} |
| 395 |
% |
| 396 |
% \begin{macro}{ho} |
| 397 |
% \begin{macro}{leftloc} |
| 398 |
% \begin{macro}{py} |
| 399 |
% Perform additional setup. |
| 400 |
% \begin{macrocode} |
| 401 |
ho#:=o#; % horizontal overshoot |
| 402 |
leftloc#:=s#; % leftmost xcoord of character |
| 403 |
py#:=.8px#; % vertical thickness of the pen |
| 404 |
|
| 405 |
define_pixels(s,u); |
| 406 |
define_blacker_pixels(px,py); |
| 407 |
define_good_x_pixels(leftloc); |
| 408 |
define_corrected_pixels(o); % turn on overshoot correction |
| 409 |
define_horizontal_corrected_pixels(ho); |
| 410 |
|
| 411 |
% \end{macrocode} |
| 412 |
% \end{macro} |
| 413 |
% \end{macro} |
| 414 |
% \end{macro} |
| 415 |
% |
| 416 |
% \begin{macro}{midloc} |
| 417 |
% \begin{macro}{rightloc} |
| 418 |
% Variables for the middle xcoord and rightmost xcoord of a character. |
| 419 |
% \begin{macrocode} |
| 420 |
numeric midloc, rightloc; |
| 421 |
% \end{macrocode} |
| 422 |
% \end{macro} |
| 423 |
% \end{macro} |
| 424 |
% |
| 425 |
% \begin{macro}{stylus} |
| 426 |
% Define the pen. |
| 427 |
% \begin{macrocode} |
| 428 |
pickup pencircle xscaled px yscaled py; |
| 429 |
stylus:=savepen; |
| 430 |
|
| 431 |
% \end{macrocode} |
| 432 |
% \end{macro} |
| 433 |
% |
| 434 |
% \begin{macro}{beginglyph} |
| 435 |
% A macro to save some typing of beginchar arguments. |
| 436 |
% \begin{macrocode} |
| 437 |
def beginglyph(expr code, unit_width) = |
| 438 |
beginchar(code, unit_width*ht#+2s#, ht#, 0); |
| 439 |
midloc:=1/2w; rightloc:=(w-s); |
| 440 |
pickup stylus enddef; |
| 441 |
|
| 442 |
% \end{macrocode} |
| 443 |
% \end{macro} |
| 444 |
% |
| 445 |
% \begin{macro}{cmchar} |
| 446 |
% |cmchar| should precede each character |
| 447 |
% \begin{macrocode} |
| 448 |
let cmchar=\; |
| 449 |
|
| 450 |
% \end{macrocode} |
| 451 |
% \end{macro} |
| 452 |
% |
| 453 |
% That would be the end of a driver file, except for calling the glyph code. |
| 454 |
% |
| 455 |
% |
| 456 |
% \subsection{The glyph code} |
| 457 |
% |
| 458 |
% The following code generates the glyphs for the Proto-Semitic font. |
| 459 |
% The characters |
| 460 |
% are defined in the Phoenician alphabetic ordering. |
| 461 |
% |
| 462 |
% \begin{macrocode} |
| 463 |
|
| 464 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 465 |
% end of driver code |
| 466 |
% start of glyph code |
| 467 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 468 |
% |
| 469 |
% \end{macrocode} |
| 470 |
% |
| 471 |
% \begin{macro}{'} |
| 472 |
% The Proto-Semitic letter \textit{alpu} (ox). Left profile of an oxhead. |
| 473 |
% \begin{macrocode} |
| 474 |
|
| 475 |
cmchar "Proto-Semitic letter ' (alpu)"; |
| 476 |
beginglyph("'",0.8); |
| 477 |
numeric n[]; |
| 478 |
n1 := rightloc-leftloc; % glyph width |
| 479 |
z1=(leftloc, 1/10h); % nose |
| 480 |
z5=(x1+y1,0); |
| 481 |
z3=(x1+7/8n1, 3/4h); % top of neck |
| 482 |
z4=(x3, 1/2y3); % bottom of neck |
| 483 |
z2=(1/2[x3,x1],y3); % top of forehead |
| 484 |
z6=(x1,h); z7=(rightloc,7/8[y2,y6]); % tips of horns |
| 485 |
z10=(1/4[x2,x3],2/3[y4,y3]); % eye |
| 486 |
z11=z10 shifted (px*down); |
| 487 |
draw z1--z2--z3--z4--z5--cycle; % head |
| 488 |
draw z10--z11; % eye |
| 489 |
draw z2{left}..z6{up}; % a horn |
| 490 |
draw z3..z7{up}; % other horn |
| 491 |
labels(1,2,3,4,5,6,7,10); |
| 492 |
endchar; |
| 493 |
|
| 494 |
% \end{macrocode} |
| 495 |
% \end{macro} |
| 496 |
% |
| 497 |
% \begin{macro}{a} |
| 498 |
% The Proto-Semitic letter \textit{alpu} (ox). Left profile of an oxhead. |
| 499 |
% \begin{macrocode} |
| 500 |
|
| 501 |
cmchar "Proto-Semitic letter alpu (coded as a)"; |
| 502 |
beginglyph("a",0.8); |
| 503 |
numeric n[]; |
| 504 |
n1 := rightloc-leftloc; % glyph width |
| 505 |
z1=(leftloc, 1/10h); % nose |
| 506 |
z5=(x1+y1,0); |
| 507 |
z3=(x1+7/8n1, 3/4h); % top of neck |
| 508 |
z4=(x3, 1/2y3); % bottom of neck |
| 509 |
z2=(1/2[x3,x1],y3); % top of forehead |
| 510 |
z6=(x1,h); z7=(rightloc,7/8[y2,y6]); % tips of horns |
| 511 |
z10=(1/4[x2,x3],2/3[y4,y3]); % eye |
| 512 |
z11=z10 shifted (px*down); |
| 513 |
draw z1--z2--z3--z4--z5--cycle; % head |
| 514 |
draw z10--z11; % eye |
| 515 |
draw z2{left}..z6{up}; % a horn |
| 516 |
draw z3..z7{up}; % other horn |
| 517 |
labels(1,2,3,4,5,6,7,10); |
| 518 |
endchar; |
| 519 |
|
| 520 |
% \end{macrocode} |
| 521 |
% \end{macro} |
| 522 |
% |
| 523 |
% \begin{macro}{A} |
| 524 |
% Alternate Proto-Semitic \textit{alpu} (ox). Right profile of an oxhead. |
| 525 |
% \begin{macrocode} |
| 526 |
|
| 527 |
cmchar "Alternate Proto-Semitic a"; |
| 528 |
beginglyph("A",0.8); |
| 529 |
numeric n[]; |
| 530 |
n1 := rightloc-leftloc; % glyph width |
| 531 |
z1=(rightloc, 1/10h); % nose |
| 532 |
z5=(x1-y1,0); |
| 533 |
z3=(x1-7/8n1, 3/4h); % top of neck |
| 534 |
z4=(x3, 1/2y3); % bottom of neck |
| 535 |
z2=(1/2[x3,x1],y3); % top of forehead |
| 536 |
z6=(x1,h); z7=(leftloc,7/8[y2,y6]); % tips of horns |
| 537 |
z10=(1/4[x2,x3],2/3[y4,y3]); % eye |
| 538 |
z11=z10 shifted (px*down); |
| 539 |
draw z1--z2--z3--z4--z5--cycle; % head |
| 540 |
draw z10--z11; % eye |
| 541 |
draw z2{right}..z6{up}; % a horn |
| 542 |
draw z3..z7{up}; % other horn |
| 543 |
labels(1,2,3,4,5,6,7,10); |
| 544 |
endchar; |
| 545 |
|
| 546 |
% \end{macrocode} |
| 547 |
% \end{macro} |
| 548 |
% |
| 549 |
% \begin{macro}{b} |
| 550 |
% The Proto-Semitic \textit{betu} (house). A square with an opening. |
| 551 |
% \begin{macrocode} |
| 552 |
|
| 553 |
cmchar "Proto-Semitic letter b"; |
| 554 |
beginglyph("b",0.8); |
| 555 |
z1=(leftloc, 0.2h); z3=(rightloc,0.8h); |
| 556 |
z2=(x1,y3); z4=(x3,y1); |
| 557 |
z5=1/3[z1,z4]; |
| 558 |
draw z1--z2--z3--z4--z5; |
| 559 |
labels(1,2,3,4); endchar; |
| 560 |
|
| 561 |
% \end{macrocode} |
| 562 |
% \end{macro} |
| 563 |
% |
| 564 |
% \begin{macro}{B} |
| 565 |
% An alternative Proto-Semitic \textit{betu} (house), a square with a chimney. |
| 566 |
% \begin{macrocode} |
| 567 |
|
| 568 |
cmchar "Proto-Semitic alternate b"; |
| 569 |
beginglyph("B",0.8); |
| 570 |
z1=(leftloc, 0.1h); z3=(rightloc,0.8h); |
| 571 |
z2=(x1,y3); z4=(x3,y1); |
| 572 |
z5=1/3[z2,z3]; z6=(x5,h); |
| 573 |
z7=2/3[z2,z3]; z8=(x7,y6); |
| 574 |
draw z8--z7--z3--z4--z1--z2--z5--z6; |
| 575 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 576 |
|
| 577 |
% \end{macrocode} |
| 578 |
% \end{macro} |
| 579 |
% |
| 580 |
% \begin{macro}{g} |
| 581 |
% The Proto-Semitic G. Like a broken stick or a |
| 582 |
% throw-stick |
| 583 |
% \begin{macrocode} |
| 584 |
|
| 585 |
cmchar "Proto-Semitic letter g"; |
| 586 |
beginglyph("g", 0.7); |
| 587 |
x1=leftloc; x3=rightloc; |
| 588 |
x2=3/8[x1,x3]; |
| 589 |
y1=2/3h; y2=y3=1/3h; |
| 590 |
draw z1--z2--z3; |
| 591 |
labels(1,2,3,4); endchar; |
| 592 |
|
| 593 |
% \end{macrocode} |
| 594 |
% \end{macro} |
| 595 |
% |
| 596 |
% \begin{macro}{d} |
| 597 |
% The Proto-Semitic fish, facing right. |
| 598 |
% \begin{macrocode} |
| 599 |
|
| 600 |
cmchar "Proto-Semitic letter fish (d)"; |
| 601 |
beginglyph("d",1.0); |
| 602 |
numeric alpha; |
| 603 |
alpha := 3/16h; |
| 604 |
%% body |
| 605 |
x1=x6=leftloc; x4=rightloc; x2=1/4[x1,x4]; |
| 606 |
y2=y4=1/2h; |
| 607 |
x3=x5=1/2[x2,x4]; |
| 608 |
y1=y5=y2-alpha; y6=y3=y2+alpha; |
| 609 |
%% fins |
| 610 |
z13=(x3-alpha,y3+alpha); |
| 611 |
z15=(x5-alpha,y5-alpha); |
| 612 |
draw z1..z2..z3{right}..z4; % body |
| 613 |
draw z4..z5{left}..z2..z6--z1; |
| 614 |
draw z3--z13; draw z5--z15; % fins |
| 615 |
labels(1,2,3,4,5,6,13,15); endchar; |
| 616 |
|
| 617 |
% \end{macrocode} |
| 618 |
% \end{macro} |
| 619 |
% |
| 620 |
% \begin{macro}{D} |
| 621 |
% Alternate Proto-Semitic fish, upright. |
| 622 |
% \begin{macrocode} |
| 623 |
|
| 624 |
cmchar "Alternate Proto-Semitic fish (d)"; |
| 625 |
beginglyph("D",0.6); |
| 626 |
numeric n[]; |
| 627 |
n1 := rightloc-leftloc; % glyph width |
| 628 |
numeric alpha; |
| 629 |
alpha := 3/8n1; |
| 630 |
%% body |
| 631 |
z4=(midloc,h); |
| 632 |
x1=x3=x4-alpha; x7=x5=x4+alpha; |
| 633 |
y1=y7=0; |
| 634 |
x2=1/4[x1,x7]; |
| 635 |
x6=3/4[x1,x7]; |
| 636 |
y2=y6=1/4h; |
| 637 |
y3=y5=1/2[y2,y4]; |
| 638 |
%% fins |
| 639 |
z13=(leftloc,y3-alpha); z15=(rightloc,y13); |
| 640 |
draw z1..z2{up}..z3{up}..z4; % body |
| 641 |
draw z4..z5{down}..z6{down}..z7--z1; |
| 642 |
draw z3--z13; draw z5--z15; % fins |
| 643 |
labels(1,2,3,4,5,6,7,13,15); endchar; |
| 644 |
|
| 645 |
% \end{macrocode} |
| 646 |
% \end{macro} |
| 647 |
% |
| 648 |
% \begin{macro}{E} |
| 649 |
% The Proto-Semitic h?, stick man with upraised arms. |
| 650 |
% \begin{macrocode} |
| 651 |
|
| 652 |
cmchar "Proto-Semitic letter h? (E)"; |
| 653 |
beginglyph("E",0.6); |
| 654 |
numeric alpha, beta; |
| 655 |
z1=(midloc,3/4h); |
| 656 |
alpha := 1/2(h-y1); |
| 657 |
beta := 24/16alpha; % 20/16 too small |
| 658 |
z2=(x1,1/2y1); |
| 659 |
z3=(leftloc, 1/2[y1,h]); |
| 660 |
z4=(x3,2/3[y2,y1]); |
| 661 |
z7=(rightloc,y3); |
| 662 |
z6=(x7,y4); |
| 663 |
z8=(x3,0); |
| 664 |
z9=(x7,y8); |
| 665 |
z10=(x1,h-alpha); |
| 666 |
draw z3--z4--z6--z7; % arms |
| 667 |
draw z8--z2--z9; % legs |
| 668 |
draw z1--z2; % body |
| 669 |
draw fullcircle scaled beta shifted z10; % head |
| 670 |
labels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 671 |
|
| 672 |
% \end{macrocode} |
| 673 |
% \end{macro} |
| 674 |
% |
| 675 |
% \begin{macro}{e} |
| 676 |
% An alternate Proto-Semitic h?, abstract stick man |
| 677 |
% with upraised arms. |
| 678 |
% \begin{macrocode} |
| 679 |
|
| 680 |
cmchar "Proto-Semitic alternate h? (coded as e)"; |
| 681 |
beginglyph("e",0.6); |
| 682 |
numeric alpha; |
| 683 |
z1=(midloc,h); |
| 684 |
alpha := 1/2(h-y1); |
| 685 |
z2=(x1,1/3y1); |
| 686 |
z3=(leftloc, y1); |
| 687 |
z4=(x3,2/3y1); |
| 688 |
z7=(rightloc,y3); |
| 689 |
z6=(x7,y4); |
| 690 |
z8=(x7,y2); |
| 691 |
z9=(x8,0); |
| 692 |
draw z3--z4--z6--z7; % arms |
| 693 |
draw z1--z2--z8--z9; % head, body, and leg |
| 694 |
labels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 695 |
|
| 696 |
% \end{macrocode} |
| 697 |
% \end{macro} |
| 698 |
% |
| 699 |
% \begin{macro}{z} |
| 700 |
% Proto-Semitic letter z?. Two horizontal parallel lines. |
| 701 |
% \begin{macrocode} |
| 702 |
|
| 703 |
cmchar "Proto-Semitic letter z? (z)"; |
| 704 |
beginglyph("z",0.8); |
| 705 |
numeric alpha; |
| 706 |
alpha:=0.2h; |
| 707 |
x1=x6=leftloc; x5=x10=rightloc; |
| 708 |
y1=y5=1/2h+alpha; |
| 709 |
y6=y10=1/2h-alpha; |
| 710 |
draw z1--z5; % top |
| 711 |
draw z6--z10; % bottom |
| 712 |
labels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 713 |
|
| 714 |
% \end{macrocode} |
| 715 |
% \end{macro} |
| 716 |
% |
| 717 |
% \begin{macro}{H} |
| 718 |
% The Proto-Semitic \textit{hotu} (fence?) (h sub dot?). Looks like a fence. |
| 719 |
% \begin{macrocode} |
| 720 |
|
| 721 |
cmchar "Proto-Semitic letter hotu (h sub dot?) (coded as H)"; |
| 722 |
beginglyph("H", 0.8); |
| 723 |
numeric alpha; |
| 724 |
alpha:=0.2h; |
| 725 |
x1=x6=leftloc; x5=x10=rightloc; |
| 726 |
y1=y2=y3=y4=y5=1/2h+alpha; |
| 727 |
y6=y7=y8=y9=y10=1/2h-alpha; |
| 728 |
x2=x7=1/4[x1,x5]; |
| 729 |
x4=x9=3/4[x1,x5]; |
| 730 |
x3=x8=1/2[x2,x4]; |
| 731 |
draw z1--z5; % fence top |
| 732 |
draw z6--z10; % fence bottom |
| 733 |
draw z2--z7; draw z3--z8; draw z4--z9; % stakes |
| 734 |
labels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 735 |
|
| 736 |
% \end{macrocode} |
| 737 |
% \end{macro} |
| 738 |
% |
| 739 |
% \begin{macro}{h} |
| 740 |
% An alternate Proto-Semitic \textit{hotu} (fence?). Looks like a vertical fence. |
| 741 |
% \begin{macrocode} |
| 742 |
|
| 743 |
cmchar "Alternate Proto-Semitic hotu (coded as h)"; |
| 744 |
beginglyph("h", 0.4); |
| 745 |
numeric alpha; |
| 746 |
x1=x2=x3=x4=x5=leftloc; |
| 747 |
x7=x8=x9=rightloc; |
| 748 |
y1=0; y5=h; |
| 749 |
y2=y7=1/4h; |
| 750 |
y4=y9=3/4h; |
| 751 |
y3=y8=1/2[y2,y4]; |
| 752 |
draw z1--z5; draw z7--z9; % verticals |
| 753 |
draw z2--z7; draw z3--z8; draw z4--z9; % horizontals |
| 754 |
labels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 755 |
|
| 756 |
% \end{macrocode} |
| 757 |
% \end{macro} |
| 758 |
% |
| 759 |
% |
| 760 |
% \begin{macro}{T} |
| 761 |
% The Proto-Semitic t sub dot?. Twisted flax hieroglyph. |
| 762 |
% \begin{macrocode} |
| 763 |
|
| 764 |
cmchar "Proto-Semitic letter t sub dot? (T)"; |
| 765 |
beginglyph("T",0.4); |
| 766 |
x1=x8=x3=x6=leftloc; x9=x2=x7=x4=rightloc; |
| 767 |
x5=midloc; |
| 768 |
y1=y9=0; y5=h; |
| 769 |
y8=y2=3/12h; |
| 770 |
y6=y4=10/12h; |
| 771 |
y3=y7=1/2[y8,y6]; |
| 772 |
z2'=1/2[z9,z2]; z8'=1/2[z1,z8]; |
| 773 |
draw z1{(z2'-z1)}...z2{up}..z3{up}..z4{up}..z5{left}.. |
| 774 |
z6{down}..z7{down}..z8{down}...{(z9-z8')}z9; |
| 775 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 776 |
|
| 777 |
% \end{macrocode} |
| 778 |
% \end{macro} |
| 779 |
% |
| 780 |
% \begin{macro}{y} |
| 781 |
% The Proto-Semitic \textit{yadu} (hand/arm). |
| 782 |
% \begin{macrocode} |
| 783 |
|
| 784 |
cmchar "Proto-Semitic letter y"; |
| 785 |
beginglyph("y",1.0); |
| 786 |
numeric alpha,beta;; |
| 787 |
alpha := 3/8h; |
| 788 |
beta := 1/2alpha; |
| 789 |
%% the L |
| 790 |
x1=x2=leftloc; x3=rightloc; |
| 791 |
y1=1/2h+alpha; y2=y3=1/2h-alpha; |
| 792 |
%% the TV arial |
| 793 |
z4=1/2[z2,z3]; |
| 794 |
z6=(x3,3/4[y2,y1]); |
| 795 |
z5=1/2[z4,z6]; |
| 796 |
z4l=z4 shifted (beta*dir(135)); z4r=z4 shifted (beta*dir(-45)); |
| 797 |
z5l=z5 shifted (beta*dir(135)); z5r=z5 shifted (beta*dir(-45)); |
| 798 |
z6l=z6 shifted (beta*dir(135)); z6r=z6 shifted (beta*dir(-45)); |
| 799 |
|
| 800 |
draw z1--z2--z3; |
| 801 |
draw z4--z6; |
| 802 |
draw z4l--z4r; draw z5l--z5r; draw z6l--z6r; |
| 803 |
labels(1,2,3,4,5,6); endchar; |
| 804 |
|
| 805 |
% \end{macrocode} |
| 806 |
% \end{macro} |
| 807 |
% |
| 808 |
% \begin{macro}{Y} |
| 809 |
% Alternate Proto-Semitic \textit{yadu} (hand/arm). |
| 810 |
% \begin{macrocode} |
| 811 |
|
| 812 |
cmchar "Alternate Proto-Semitic y"; |
| 813 |
beginglyph("Y",1.0); |
| 814 |
z1=(leftloc,h); z3=(rightloc,0); |
| 815 |
z2=1/2[z1,z3]; |
| 816 |
z4=(x2,y1); z5=(x3,y2); |
| 817 |
draw z1--z3; |
| 818 |
draw z4--z2--z5; |
| 819 |
labels(1,2,3,4,5,6); endchar; |
| 820 |
|
| 821 |
% \end{macrocode} |
| 822 |
% \end{macro} |
| 823 |
% |
| 824 |
% |
| 825 |
% \begin{macro}{k} |
| 826 |
% The Proto-Semitic \textit{kappu} (palm of the hand). |
| 827 |
% \begin{macrocode} |
| 828 |
|
| 829 |
cmchar "Proto-Semitic letter k"; |
| 830 |
beginglyph("k",0.8); |
| 831 |
numeric alpha; |
| 832 |
alpha:=0.8; |
| 833 |
numeric n[]; |
| 834 |
n1 := rightloc-leftloc; % glyph width |
| 835 |
n2 := 1/8n1; |
| 836 |
z1=(leftloc+n2, h); z3=(rightloc-n2, y1); |
| 837 |
z11=(leftloc, 1/4h); z13=(rightloc,y11); |
| 838 |
z2=(midloc,0); |
| 839 |
z6=(1/3[x1,x3], y1); z7=(x6, 0.2h); |
| 840 |
z8=(2/3[x1,x3], y6); z9=(x8,y7); |
| 841 |
draw z1..{down}z11..z2..{up}z13..z3; % bowl |
| 842 |
draw z6--z7; draw z8--z9; % uprights |
| 843 |
labels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; |
| 844 |
|
| 845 |
% \end{macrocode} |
| 846 |
% \end{macro} |
| 847 |
% |
| 848 |
% \begin{macro}{K} |
| 849 |
% An alternate Proto-Semitic \textit{kappu}. |
| 850 |
% \begin{macrocode} |
| 851 |
|
| 852 |
cmchar "Alternate Proto-Semitic k"; |
| 853 |
beginglyph("K",0.8); |
| 854 |
numeric alpha; |
| 855 |
alpha:=0.8; |
| 856 |
numeric n[]; |
| 857 |
n1 := rightloc-leftloc; % glyph width |
| 858 |
n2 := 1/8n1; |
| 859 |
z1=(leftloc+n2, h); z3=(rightloc-n2, y1); |
| 860 |
z11=(leftloc, 1/3h); z13=(rightloc,y11); |
| 861 |
z2=(midloc,0); |
| 862 |
z6=(x2, y1); z7=(x6, 0); |
| 863 |
z8=(2/3[x1,x3], y6); z9=(x8,y7); |
| 864 |
draw z1..{down}z11..z2..{up}z13..z3; % bowl |
| 865 |
draw z6--z7; %% draw z8--z9; % uprights |
| 866 |
labels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; |
| 867 |
|
| 868 |
% \end{macrocode} |
| 869 |
% \end{macro} |
| 870 |
% |
| 871 |
% \begin{macro}{l} |
| 872 |
% The Proto-Semitic \textit{lamdu} (ox goad). A long spiral. |
| 873 |
% \begin{macrocode} |
| 874 |
|
| 875 |
cmchar "Proto-Semitic letter l"; |
| 876 |
beginglyph("l",0.8); |
| 877 |
z1=(1/4[leftloc,rightloc], 2/3h); |
| 878 |
z3=(x1,h); |
| 879 |
z4=(leftloc,1/2[y1,y3]); |
| 880 |
z2=(1/2[leftloc,rightloc],y4); |
| 881 |
z6=(rightloc,0); |
| 882 |
z5=(1/2[x4,x3], 8/10[y6,y1]); |
| 883 |
draw z1{right}..z2{up}..z3{left}..z4{down}..z5..z6; |
| 884 |
labels(1,2,3,4,5,6); endchar; |
| 885 |
|
| 886 |
% \end{macrocode} |
| 887 |
% \end{macro} |
| 888 |
% |
| 889 |
% \begin{macro}{L} |
| 890 |
% Alternate Proto-Semitic \textit{lamdu} (ox goad). A long spiral. |
| 891 |
% \begin{macrocode} |
| 892 |
|
| 893 |
cmchar "Alternate Proto-Semitic l"; |
| 894 |
beginglyph("L",0.8); |
| 895 |
z1=(1/4[rightloc,leftloc], 2/3h); |
| 896 |
z3=(x1,h); |
| 897 |
z4=(rightloc,1/2[y1,y3]); |
| 898 |
z2=(1/2[rightloc,leftloc],y4); |
| 899 |
z6=(leftloc,0); |
| 900 |
z5=(1/2[x4,x3], 8/10[y6,y1]); |
| 901 |
draw z1{left}..z2{up}..z3{right}..z4{down}..z5..z6; |
| 902 |
labels(1,2,3,4,5,6); endchar; |
| 903 |
|
| 904 |
% \end{macrocode} |
| 905 |
% \end{macro} |
| 906 |
% |
| 907 |
% \begin{macro}{m} |
| 908 |
% The Proto-Semitic \textit{mayyuma} (water). A jagged line. |
| 909 |
% \begin{macrocode} |
| 910 |
|
| 911 |
cmchar"Proto-Semitic letter m"; |
| 912 |
beginglyph("m",1.0); |
| 913 |
numeric alpha; |
| 914 |
alpha := 1/16h; |
| 915 |
z1=(leftloc,1/2h-alpha); |
| 916 |
z10=(rightloc,1/2h+alpha); |
| 917 |
x2=1/7[x1,x10]; |
| 918 |
x3=2/7[x1,x10]; |
| 919 |
x4=3/7[x1,x10]; |
| 920 |
x5=4/7[x1,x10]; |
| 921 |
x6=5/7[x1,x10]; |
| 922 |
x7=6/7[x1,x10]; |
| 923 |
y2=y4=y6=y10; |
| 924 |
y3=y5=y7=y1; |
| 925 |
draw z1--z2--z3--z4--z5--z6--z7--z10; |
| 926 |
labels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 927 |
|
| 928 |
% \end{macrocode} |
| 929 |
% \end{macro} |
| 930 |
% |
| 931 |
% \begin{macro}{n} |
| 932 |
% The Proto-Semitic \textit{nahasu} (snake). A wriggling cobra. |
| 933 |
% \begin{macrocode} |
| 934 |
|
| 935 |
cmchar "Proto-Semitic letter n"; |
| 936 |
beginglyph("n",1.0); |
| 937 |
numeric alpha; |
| 938 |
alpha := 3/8h; |
| 939 |
z1=(leftloc,1/2h+alpha); |
| 940 |
z3=(1/4[leftloc,rightloc],1/2h); |
| 941 |
z5=(rightloc,y3-1/2alpha); |
| 942 |
z4=(3/4[leftloc,rightloc],y3); |
| 943 |
draw z1{dir(-20)}..{down}z3--z4{right}..z5; |
| 944 |
labels(1,2,3,4,5); endchar; |
| 945 |
|
| 946 |
% \end{macrocode} |
| 947 |
% \end{macro} |
| 948 |
% |
| 949 |
% |
| 950 |
% |
| 951 |
% \begin{macro}{`} |
| 952 |
% The Proto-Semitic \textit{enu} (eye). |
| 953 |
% \begin{macrocode} |
| 954 |
|
| 955 |
cmchar "Proto-Semitic letter enu (`)"; |
| 956 |
beginglyph("`",1.0); |
| 957 |
numeric alpha; |
| 958 |
path pth[]; |
| 959 |
alpha := 3/16h; |
| 960 |
z1=(leftloc,1/2h); |
| 961 |
z3=(rightloc,y1); |
| 962 |
z2=(1/2[x1,x3],y1+alpha); |
| 963 |
z4=(x2,y1-alpha); |
| 964 |
pth1 := z1..z2..z3; |
| 965 |
pth2 := z1..z4..z3; |
| 966 |
z5 = point 0.75 of pth1; |
| 967 |
z7 = point 1.25 of pth1; |
| 968 |
z6=1/2[z1,z3]; |
| 969 |
draw pth1; draw pth2; % the eye |
| 970 |
draw z5..z6..z7; % the pupil |
| 971 |
labels(1,2,3,4,5,6,7); endchar; |
| 972 |
|
| 973 |
% \end{macrocode} |
| 974 |
% \end{macro} |
| 975 |
% |
| 976 |
% \begin{macro}{o} |
| 977 |
% The Proto-Semitic \textit{enu} (eye). |
| 978 |
% \begin{macrocode} |
| 979 |
|
| 980 |
cmchar "Proto-Semitic letter enu (coded as o)"; |
| 981 |
beginglyph("o",1.0); |
| 982 |
numeric alpha; |
| 983 |
path pth[]; |
| 984 |
alpha := 3/16h; |
| 985 |
z1=(leftloc,1/2h); |
| 986 |
z3=(rightloc,y1); |
| 987 |
z2=(1/2[x1,x3],y1+alpha); |
| 988 |
z4=(x2,y1-alpha); |
| 989 |
pth1 := z1..z2..z3; |
| 990 |
pth2 := z1..z4..z3; |
| 991 |
z5 = point 0.75 of pth1; |
| 992 |
z7 = point 1.25 of pth1; |
| 993 |
z6=1/2[z1,z3]; |
| 994 |
draw pth1; draw pth2; % the eye |
| 995 |
draw z5..z6..z7; % the pupil |
| 996 |
labels(1,2,3,4,5,6,7); endchar; |
| 997 |
|
| 998 |
% \end{macrocode} |
| 999 |
% \end{macro} |
| 1000 |
% |
| 1001 |
% \begin{macro}{O} |
| 1002 |
% An alternative Proto-Semitic \textit{enu} (eye). |
| 1003 |
% \begin{macrocode} |
| 1004 |
|
| 1005 |
cmchar "Alternative Proto-Semitic o"; |
| 1006 |
beginglyph("O",1.0); |
| 1007 |
numeric alpha; |
| 1008 |
path pth[]; |
| 1009 |
alpha := 3/16h; |
| 1010 |
z1=(leftloc,1/2h); |
| 1011 |
z3=(rightloc,y1); |
| 1012 |
z2=(1/2[x1,x3],y1+alpha); |
| 1013 |
z4=(x2,y1-alpha); |
| 1014 |
pth1 := z1..z2..z3; |
| 1015 |
pth2 := z1..z4..z3; |
| 1016 |
%z5 = point 0.75 of pth1; |
| 1017 |
%z7 = point 1.25 of pth1; |
| 1018 |
%z6=1/2[z1,z3]; |
| 1019 |
draw pth1; draw pth2; % the eye |
| 1020 |
%draw z5..z6..z7; % the pupil |
| 1021 |
labels(1,2,3,4,5,6,7); endchar; |
| 1022 |
|
| 1023 |
% \end{macrocode} |
| 1024 |
% \end{macro} |
| 1025 |
% |
| 1026 |
% \begin{macro}{s} |
| 1027 |
% The Proto-Semitic letter s?. A box with a tail. |
| 1028 |
% \begin{macrocode} |
| 1029 |
|
| 1030 |
cmchar "Proto-Semitic letter s? (s)"; |
| 1031 |
beginglyph("s", 1.0); |
| 1032 |
numeric alpha; |
| 1033 |
alpha := 0.1*(rightloc-leftloc); |
| 1034 |
z1=(leftloc+alpha, h/2); z3=(rightloc,y1); |
| 1035 |
z2=(1/2[x1,x3], h); z4=(x2,0); |
| 1036 |
z5=(leftloc,1/2[y1,y4]); |
| 1037 |
draw z1--z2--z3--z4--cycle; |
| 1038 |
draw z1--z5; |
| 1039 |
labels(1,2,3,4,5); endchar; |
| 1040 |
|
| 1041 |
% \end{macrocode} |
| 1042 |
% \end{macro} |
| 1043 |
% |
| 1044 |
% \begin{macro}{q} |
| 1045 |
% The Proto-Semitic q? figure of eight (a knot?). |
| 1046 |
% \begin{macrocode} |
| 1047 |
|
| 1048 |
cmchar "Proto-semitic letter q? figure-of-eight (q)"; |
| 1049 |
beginglyph("q", 1.0); |
| 1050 |
numeric alpha; |
| 1051 |
alpha := 3/16h; |
| 1052 |
z1=(leftloc,h/2); z6=(rightloc,y1); |
| 1053 |
%% left oval |
| 1054 |
z3=2/3[z1,z6]; |
| 1055 |
x4=x2=1/2[x1,x3]; y2=y1+alpha; y4=y1-alpha; |
| 1056 |
%% right oval |
| 1057 |
x5=x7=1/2[x3,x6]; y5=y1+3/4alpha; y7=y1-3/4alpha; |
| 1058 |
draw z1..z2..z3..z4..cycle; |
| 1059 |
draw z3..z5..z6..z7..cycle; |
| 1060 |
labels(1,2,3,4,5,6,7); endchar; |
| 1061 |
|
| 1062 |
% \end{macrocode} |
| 1063 |
% \end{macro} |
| 1064 |
% |
| 1065 |
% \begin{macro}{Q} |
| 1066 |
% An alternate Proto-Semitic figure of eight (a knot?). |
| 1067 |
% \begin{macrocode} |
| 1068 |
|
| 1069 |
cmchar "Alternate Proto-Semitic figure-of-eight (coded as Q)"; |
| 1070 |
beginglyph("Q", 0.5); |
| 1071 |
numeric alpha; |
| 1072 |
z1=(midloc,0); z6=(midloc,h); |
| 1073 |
%% bottom oval |
| 1074 |
z3=2/3[z1,z6]; |
| 1075 |
y4=y2=1/2[y1,y3]; x2=leftloc; x4=rightloc; |
| 1076 |
%% top oval |
| 1077 |
y5=y7=1/2[y3,y6]; x5=1/2[x2,x3]; x7=1/2[x3,x4]; |
| 1078 |
draw z1..z2..z3..z4..cycle; |
| 1079 |
draw z3..z5..z6..z7..cycle; |
| 1080 |
labels(1,2,3,4,5,6,7); endchar; |
| 1081 |
|
| 1082 |
% \end{macrocode} |
| 1083 |
% \end{macro} |
| 1084 |
% |
| 1085 |
% |
| 1086 |
% \begin{macro}{w} |
| 1087 |
% The Proto-Semitic \textit{wawwu} (hook/peg). Like a lamppost. |
| 1088 |
% \begin{macrocode} |
| 1089 |
|
| 1090 |
cmchar "Proto-Semitic letter w"; |
| 1091 |
beginglyph("w",0.4); |
| 1092 |
numeric alpha; |
| 1093 |
x1=leftloc; |
| 1094 |
x3=rightloc; |
| 1095 |
alpha=0.5(x3-x1); % circle radius |
| 1096 |
y2=h; |
| 1097 |
y4=y2-2alpha; |
| 1098 |
bot y5=-o; |
| 1099 |
x2=x4=x5=midloc; |
| 1100 |
y1=y3=h-alpha; |
| 1101 |
draw z1..z2..z3..z4..cycle; % the circle |
| 1102 |
draw z5--z4; % the upright |
| 1103 |
labels(1,2,3,4,5); endchar; |
| 1104 |
|
| 1105 |
% \end{macrocode} |
| 1106 |
% \end{macro} |
| 1107 |
% |
| 1108 |
% \begin{macro}{r} |
| 1109 |
% The Proto-Semitic \textit{rasu} (head). It looks like a head in left |
| 1110 |
% profile wearing a skull cap. |
| 1111 |
% \begin{macrocode} |
| 1112 |
|
| 1113 |
cmchar "Proto-Semitic letter r"; |
| 1114 |
beginglyph("r", 0.8); |
| 1115 |
numeric alpha,beta; |
| 1116 |
alpha := 1/20w; |
| 1117 |
pair vec[]; |
| 1118 |
z2=(leftloc,1/3h); % tip of nose |
| 1119 |
z9=(rightloc,0); % base of back of neck |
| 1120 |
z1=(1/3[leftloc,rightloc],0); % base of front of neck |
| 1121 |
z3=(x1,3/4h); % front of hat |
| 1122 |
z6=(1/2[x1,x9], 3/4[y1,y2]); % nape of neck |
| 1123 |
z5=(1/2[x6,x9], 1/2[y2,y3]); % back of hat |
| 1124 |
z4=(9/12[x3,x5], h); % top of head |
| 1125 |
z10'=9/16[z2,z3]; % eye |
| 1126 |
z10=(x10'+5/2alpha, y10'); |
| 1127 |
beta := angle(z5-z3); |
| 1128 |
vec1 := dir(beta); |
| 1129 |
vec2=(z3-z2); |
| 1130 |
z11=z10 shifted (alpha*vec1); |
| 1131 |
z9'=(x5,y9); |
| 1132 |
draw z1{up}..z2; % chin |
| 1133 |
draw z2--z3{vec2}..z4{right}..z5..z6..{down}z9'; % head |
| 1134 |
draw z3--z5; % hat |
| 1135 |
draw z10--z11; % eye |
| 1136 |
labels(1,2,3,4,5,6,7,8,9,9',10,11); endchar; |
| 1137 |
|
| 1138 |
% \end{macrocode} |
| 1139 |
% \end{macro} |
| 1140 |
% |
| 1141 |
% \begin{macro}{R} |
| 1142 |
% An alternate Proto-Semitic \textit{rasu} (head). It looks like a head in |
| 1143 |
% right profile. |
| 1144 |
% \begin{macrocode} |
| 1145 |
|
| 1146 |
cmchar "Alternate Proto-Semitic r (coded as R)"; |
| 1147 |
beginglyph("R", 0.8); |
| 1148 |
numeric alpha, beta; |
| 1149 |
alpha := 1/20w; |
| 1150 |
pair vec[]; |
| 1151 |
z2=(rightloc,1/3h); % tip of nose |
| 1152 |
z9=(leftloc,0); % base of back of neck |
| 1153 |
z1=(1/3[rightloc,leftloc],0); % base of front of neck |
| 1154 |
z3=(x1,3/4h); % front of hat |
| 1155 |
z6=(1/2[x1,x9], 3/4[y1,y2]); % nape of neck |
| 1156 |
z5=(1/2[x6,x9], 1/2[y2,y3]); % back of hat |
| 1157 |
z4=(9/12[x3,x5], 9/10h); % top of head |
| 1158 |
z10'=11/16[z2,z3]; % eye |
| 1159 |
z10=(x10'-5/2alpha, y10'); |
| 1160 |
beta := angle(z5-z3); |
| 1161 |
vec1 := dir(angle(z5-z3)); |
| 1162 |
vec2=(z3-z2); |
| 1163 |
z11=z10 shifted (alpha*vec1); |
| 1164 |
z9'=(x5,y9); |
| 1165 |
draw z1{up}..z2; % chin |
| 1166 |
draw z2--z3{vec2}..z4{left}..z5..z6..{down}z9'; % head |
| 1167 |
%%draw z3--z5; % hat |
| 1168 |
draw z10--z11; % eye |
| 1169 |
labels(1,2,3,4,5,6,7,8,9,9',10,11); endchar; |
| 1170 |
|
| 1171 |
% \end{macrocode} |
| 1172 |
% \end{macro} |
| 1173 |
% |
| 1174 |
% \begin{macro}{S} |
| 1175 |
% The Proto-Semitic letter s sup v. It's like a modern lowercase w. |
| 1176 |
% \begin{macrocode} |
| 1177 |
|
| 1178 |
cmchar "Proto-Semitic letter s sup v (coded as S)"; |
| 1179 |
beginglyph("S", 1.0); |
| 1180 |
z2=(leftloc,1/4h); z6=(rightloc,y2); |
| 1181 |
z3=(1/4[x2,x6], 0); z5=(3/4[x2,x6], y3); |
| 1182 |
z1=(x3,6/8h); z7=(x5,y1); |
| 1183 |
z4=(1/2[x3,x5],y2); |
| 1184 |
draw z1..z2{down}..z3{right}..{up}z4; |
| 1185 |
draw z7..z6{down}..z5{left}..{up}z4; |
| 1186 |
labels(1,2,3,4,5,6,7); endchar; |
| 1187 |
|
| 1188 |
% \end{macrocode} |
| 1189 |
% \end{macro} |
| 1190 |
% |
| 1191 |
% \begin{macro}{t} |
| 1192 |
% The Proto-Semitic \textit{tawwu} (mark). A cross. |
| 1193 |
% \begin{macrocode} |
| 1194 |
|
| 1195 |
cmchar "Proto-Semitic letter t"; |
| 1196 |
beginglyph("t", 0.8); |
| 1197 |
numeric alpha; |
| 1198 |
alpha := midloc-leftloc; |
| 1199 |
z10=(midloc,1/2h); |
| 1200 |
z1=(leftloc,y10); z2=(rightloc,y1); |
| 1201 |
z3=(x10,y10+alpha); |
| 1202 |
z4=(x3,y10-alpha); |
| 1203 |
draw z1--z2; % horizontal |
| 1204 |
draw z3--z4; % vertical |
| 1205 |
labels(1,2,3,4,10); endchar; |
| 1206 |
|
| 1207 |
|
| 1208 |
% \end{macrocode} |
| 1209 |
% \end{macro} |
| 1210 |
% |
| 1211 |
% \begin{macro}{p} |
| 1212 |
% The Proto-Semitic letter looking like a leg \& foot, p?. |
| 1213 |
% \begin{macrocode} |
| 1214 |
|
| 1215 |
cmchar "Proto-Semitic letter like a leg & foot (p)"; |
| 1216 |
beginglyph("p", 0.8); |
| 1217 |
x1=x2=leftloc; y1=17/20h; y2=3/20h; |
| 1218 |
z3=(rightloc,y2); |
| 1219 |
x6=1/4[x2,x3]; y6=y1; |
| 1220 |
x5=x6; y5 = y2 + (x6-x1); |
| 1221 |
x4=x3 -(y5-y2); y4=y5; |
| 1222 |
draw z1--z2--z3; |
| 1223 |
draw z6--z5--z4{right}..{down}z3; |
| 1224 |
labels(1,2,3,4,5,6); endchar; |
| 1225 |
|
| 1226 |
% \end{macrocode} |
| 1227 |
% \end{macro} |
| 1228 |
% |
| 1229 |
% \begin{macro}{P} |
| 1230 |
% Alternate Proto-Semitic letter looking like a leg \& foot. Looks like an |
| 1231 |
% elbow in this case. |
| 1232 |
% \begin{macrocode} |
| 1233 |
|
| 1234 |
cmchar "Alternate Proto-Semitic letter like a leg & foot (coded as P)"; |
| 1235 |
beginglyph("P", 0.8); |
| 1236 |
numeric alpha; |
| 1237 |
alpha := 2/10(rightloc-leftloc); |
| 1238 |
x1=rightloc; x2=leftloc; y1=17/20h; y2=3/20h; |
| 1239 |
z5=(x1-alpha, y1); |
| 1240 |
z6=(x2,y2+alpha); |
| 1241 |
z0=(x1,y2); z10=(x2,y1); |
| 1242 |
z3=3/20[z0,z10]; |
| 1243 |
z7=7/20[z0,z10]; |
| 1244 |
draw z1{down}..z3..{left}z2; |
| 1245 |
draw z5{down}..z7..{left}z6; |
| 1246 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 1247 |
|
| 1248 |
% \end{macrocode} |
| 1249 |
% \end{macro} |
| 1250 |
% |
| 1251 |
% \begin{macro}{x} |
| 1252 |
% The Proto-Semitic letter looking like a plant. S sub dot? |
| 1253 |
% \begin{macrocode} |
| 1254 |
|
| 1255 |
cmchar "Proto-Semitic letter like a plant, S sub dot? (coded as x)"; |
| 1256 |
beginglyph("x", 1.0); |
| 1257 |
x1=x2=midloc; |
| 1258 |
x3=leftloc; x4=rightloc; |
| 1259 |
y1=0; y2=h; |
| 1260 |
y3=y4=2/3h; |
| 1261 |
draw z1--z2; % the stem |
| 1262 |
draw z1{up}..z3; draw z1{up}..z4; % the leaves |
| 1263 |
labels(1,2,3,4); endchar; |
| 1264 |
|
| 1265 |
% \end{macrocode} |
| 1266 |
% \end{macro} |
| 1267 |
% |
| 1268 |
% \begin{macro}{X} |
| 1269 |
% Alternate Proto-Semitic letter looking like a plant. |
| 1270 |
% \begin{macrocode} |
| 1271 |
|
| 1272 |
cmchar "Alternate Proto-Semitic letter like a plant (X)"; |
| 1273 |
beginglyph("X", 0.8); |
| 1274 |
x1=x2=midloc; |
| 1275 |
x3=leftloc; x4=rightloc; |
| 1276 |
y1=0; y2=h; |
| 1277 |
z5=1/2[z1,z2]; |
| 1278 |
y3=y4=h; |
| 1279 |
draw z1--z2; % the stem |
| 1280 |
draw z5{up}..z3; draw z5{up}..z4; % the leaves |
| 1281 |
labels(1,2,3,4); endchar; |
| 1282 |
|
| 1283 |
% \end{macrocode} |
| 1284 |
% \end{macro} |
| 1285 |
% |
| 1286 |
% \begin{macro}{v} |
| 1287 |
% Proto-Semitic letter looking like a viking helmet. |
| 1288 |
% \begin{macrocode} |
| 1289 |
|
| 1290 |
cmchar "Proto-Semitic letter like a viking helmet (v)"; |
| 1291 |
beginglyph("v", 0.8); |
| 1292 |
path pth[]; |
| 1293 |
%% helmet |
| 1294 |
z1=(leftloc,0); z7=(rightloc,0); |
| 1295 |
z4=(midloc,h); |
| 1296 |
pth1 := z1{up}..{(1,2)}z4{(1,-2)}..z7{down}; |
| 1297 |
%% wings |
| 1298 |
z3 = point 0.75 of pth1; |
| 1299 |
z13=(leftloc,h); |
| 1300 |
z5 = point 1.25 of pth1; |
| 1301 |
z15=(rightloc,y13); |
| 1302 |
draw pth1; draw z7--z1; % helmet |
| 1303 |
draw z3--z13; draw z5--z15; % 2 wings |
| 1304 |
labels(1,2,3,4,5,6,7,13,15,16); endchar; |
| 1305 |
|
| 1306 |
% \end{macrocode} |
| 1307 |
% \end{macro} |
| 1308 |
% |
| 1309 |
% \begin{macro}{V} |
| 1310 |
% Alternate Proto-Semitic letter looking like a viking helmet. |
| 1311 |
% \begin{macrocode} |
| 1312 |
|
| 1313 |
cmchar "Alternate Proto-Semitic letter like a viking helmet (V)"; |
| 1314 |
beginglyph("V", 0.8); |
| 1315 |
path pth[]; |
| 1316 |
%% helmet |
| 1317 |
z1=(leftloc,0); z7=(rightloc,0); |
| 1318 |
z4=(midloc,13/16h); |
| 1319 |
y2=y6=3/4[y1,y4]; |
| 1320 |
x2=2/10[x1,x7]; x6=2/10[x7,x1]; |
| 1321 |
pth1 := z1--z2{(z2-z1)}..z4{right}..{(z7-z6)}z6--z7--cycle; |
| 1322 |
pth2 := subpath (1,3) of pth1; |
| 1323 |
%% wings |
| 1324 |
z3 = point 0.5 of pth2; |
| 1325 |
z13=(leftloc,h); |
| 1326 |
z5 = point 1.5 of pth2; |
| 1327 |
z15=(rightloc,y13); |
| 1328 |
z16'=z6 shifted (h*(2,1)); |
| 1329 |
z16=whatever[z6,z16']; x16=rightloc; |
| 1330 |
draw pth1; % helmet |
| 1331 |
draw z3--z13; draw z5--z15; draw z6--z16; % 3 wings |
| 1332 |
labels(1,2,3,4,5,6,7,13,15,16); endchar; |
| 1333 |
|
| 1334 |
% \end{macrocode} |
| 1335 |
% \end{macro} |
| 1336 |
% |
| 1337 |
% The end of the glyphs and the file |
| 1338 |
% |
| 1339 |
% \begin{macrocode} |
| 1340 |
|
| 1341 |
end |
| 1342 |
|
| 1343 |
%</up> |
| 1344 |
% \end{macrocode} |
| 1345 |
% |
| 1346 |
% |
| 1347 |
% |
| 1348 |
% \section{The font definition files} \label{sec:fd} |
| 1349 |
% |
| 1350 |
% \begin{macrocode} |
| 1351 |
%<*fdot1> |
| 1352 |
\DeclareFontFamily{OT1}{proto}{} |
| 1353 |
\DeclareFontShape{OT1}{proto}{m}{n}{ <-> proto10 }{} |
| 1354 |
\DeclareFontShape{OT1}{proto}{bx}{n}{ <-> sub proto/m/n }{} |
| 1355 |
\DeclareFontShape{OT1}{proto}{b}{n}{ <-> sub proto/m/n }{} |
| 1356 |
\DeclareFontShape{OT1}{proto}{m}{sl}{ <-> sub proto/m/n }{} |
| 1357 |
\DeclareFontShape{OT1}{proto}{m}{it}{ <-> sub proto/m/n }{} |
| 1358 |
%</fdot1> |
| 1359 |
% \end{macrocode} |
| 1360 |
% |
| 1361 |
% |
| 1362 |
% \begin{macrocode} |
| 1363 |
%<*fdt1> |
| 1364 |
\DeclareFontFamily{T1}{proto}{} |
| 1365 |
\DeclareFontShape{T1}{proto}{m}{n}{ <-> proto10 }{} |
| 1366 |
\DeclareFontShape{T1}{proto}{bx}{n}{ <-> sub proto/m/n }{} |
| 1367 |
\DeclareFontShape{T1}{proto}{b}{n}{ <-> sub proto/m/n }{} |
| 1368 |
\DeclareFontShape{T1}{proto}{m}{sl}{ <-> sub proto/m/n }{} |
| 1369 |
\DeclareFontShape{T1}{proto}{m}{it}{ <-> sub proto/m/n }{} |
| 1370 |
%</fdt1> |
| 1371 |
% \end{macrocode} |
| 1372 |
% |
| 1373 |
% \section{The \Lpack{protosem} package code} \label{sec:code} |
| 1374 |
% |
| 1375 |
% Announce the name and version of the package, which requires |
| 1376 |
% \LaTeXe{}. |
| 1377 |
% \begin{macrocode} |
| 1378 |
%<*usc> |
| 1379 |
\NeedsTeXFormat{LaTeX2e} |
| 1380 |
\ProvidesPackage{protosem}[2005/03/18 v1.2 package for Proto-Semitic fonts] |
| 1381 |
% \end{macrocode} |
| 1382 |
% |
| 1383 |
% |
| 1384 |
% \begin{macro}{\protofamily} |
| 1385 |
% Selects the font family in the T1 encoding. |
| 1386 |
% \begin{macrocode} |
| 1387 |
\newcommand{\protofamily}{\usefont{T1}{proto}{m}{n}} |
| 1388 |
% \end{macrocode} |
| 1389 |
% \end{macro} |
| 1390 |
% |
| 1391 |
% \begin{macro}{\textproto} |
| 1392 |
% Text command for the font family. |
| 1393 |
% \begin{macrocode} |
| 1394 |
\DeclareTextFontCommand{\textproto}{\protofamily} |
| 1395 |
|
| 1396 |
% \end{macrocode} |
| 1397 |
% \end{macro} |
| 1398 |
% |
| 1399 |
% The commands for the signs. |
| 1400 |
% \changes{v1.3}{2005/07/21}{Changed \cs{Amum} to \cs{Amem}} |
| 1401 |
% \begin{macrocode} |
| 1402 |
\chardef\Arq=`' |
| 1403 |
\chardef\Aa=`a \chardef\Aaleph=`a |
| 1404 |
\chardef\Ab=`b \chardef\Abeth=`b |
| 1405 |
\chardef\Ag=`g \chardef\Agimel=`g |
| 1406 |
\chardef\Ad=`d \chardef\Adaleth=`d |
| 1407 |
\chardef\Az=`z \chardef\Azayin=`z |
| 1408 |
\chardef\Ah=`e \chardef\Ahe=`e |
| 1409 |
\chardef\Aw=`w \chardef\Avav=`w |
| 1410 |
\chardef\Ahd=`H \chardef\Aheth=`H |
| 1411 |
\chardef\Atd=`T \chardef\Ateth=`T |
| 1412 |
\chardef\Ay=`y \chardef\Ayod=`y |
| 1413 |
\chardef\Ak=`k \chardef\Akaph=`k |
| 1414 |
\chardef\Al=`l \chardef\Alamed=`l |
| 1415 |
\chardef\Am=`m \chardef\Amem=`m |
| 1416 |
\chardef\An=`n \chardef\Anun=`n |
| 1417 |
\chardef\Alq=`` |
| 1418 |
\chardef\Ao=`o \chardef\Aayin=`o |
| 1419 |
\chardef\As=`s \chardef\Asamekh=`s |
| 1420 |
\chardef\Ap=`p \chardef\Ape=`p |
| 1421 |
\chardef\Asd=`x \chardef\Asade=`x |
| 1422 |
\chardef\Aq=`q \chardef\Aqoph=`q |
| 1423 |
\chardef\Ar=`r \chardef\Aresh=`r |
| 1424 |
\chardef\Asv=`S \chardef\Ashin=`S |
| 1425 |
\chardef\Av=`v \chardef\Ahelmet=`v |
| 1426 |
\chardef\At=`t \chardef\Atav=`t |
| 1427 |
|
| 1428 |
\chardef\AAa=`A \chardef\AAaleph=`A |
| 1429 |
\chardef\AAb=`B \chardef\AAbeth=`B |
| 1430 |
\chardef\AAd=`D \chardef\AAdaleth=`D |
| 1431 |
\chardef\AAh=`E \chardef\AAhe=`E |
| 1432 |
\chardef\AAhd=`h \chardef\AAheth=`h |
| 1433 |
\chardef\AAy=`Y \chardef\AAyod=`Y |
| 1434 |
\chardef\AAk=`K \chardef\AAkaph=`K |
| 1435 |
\chardef\AAl=`L \chardef\AAlamed=`L |
| 1436 |
\chardef\AAo=`O \chardef\AAayin=`O |
| 1437 |
\chardef\AAp=`P \chardef\AApe=`P |
| 1438 |
\chardef\AAsd=`X \chardef\AAsade=`X |
| 1439 |
\chardef\AAq=`Q \chardef\AAqoph=`Q |
| 1440 |
\chardef\AAr=`R \chardef\AAresh=`R |
| 1441 |
\chardef\AAv=`V \chardef\AAhelmet=`V |
| 1442 |
|
| 1443 |
% \end{macrocode} |
| 1444 |
% |
| 1445 |
% \begin{macro}{\translitproto} |
| 1446 |
% \begin{macro}{\transliprotofont} |
| 1447 |
% |\translitproto{|\meta{commands}|}| transliterates |
| 1448 |
% \meta{commands} using the |\translitproto| font. |
| 1449 |
% \begin{macrocode} |
| 1450 |
\newcommand{\translitproto}[1]{{% |
| 1451 |
\@translitPS\translitprotofont #1}} |
| 1452 |
\newcommand{\translitprotofont}{\itshape} |
| 1453 |
|
| 1454 |
% \end{macrocode} |
| 1455 |
% \end{macro} |
| 1456 |
% \end{macro} |
| 1457 |
% |
| 1458 |
% \begin{macro}{\@translitPS} |
| 1459 |
% This macro redefines all the character commands to produce |
| 1460 |
% the transliterated value instead of the glyph. There must be no |
| 1461 |
% spaces in the definition. |
| 1462 |
% \begin{macrocode} |
| 1463 |
\newcommand{\@translitPS}{% |
| 1464 |
\def\Arq{'}% |
| 1465 |
\def\Aa{'}\def\Aaleph{\Aa}\def\AAa{\Aa}\def\AAaleph{\Aa}% |
| 1466 |
\def\Ab{b}\def\Abeth{\Ab}\def\AAb{\Ab}\def\AAbeth{\Ab}% |
| 1467 |
\def\Ag{g}\def\Agimel{\Ag}% |
| 1468 |
\def\Ad{d}\def\Adaleth{\Ad}\def\AAd{\Ad}\def\AAdaleth{\Ad}% |
| 1469 |
\def\Ae{h}\def\Ahe{\Ae}\def\AAe{\Ae}\def\AAhe{\Ae}% |
| 1470 |
\def\Az{z}\def\Azayin{\Az}% |
| 1471 |
\def\Aw{w}\def\Avav{\Aw}% |
| 1472 |
\def\Ahd{\d{h}}\def\Aheth{\Ahd}\def\AAhd{\Ahd}\def\AAheth{\Ahd}% |
| 1473 |
\def\Atd{\d{t}}\def\Ateth{\Atd}% |
| 1474 |
\def\Ay{y}\def\Ayod{\Ay}\def\AAy{\Ay}\def\AAyod{\Ay}% |
| 1475 |
\def\Ak{k}\def\Akaph{\Ak}\def\AAk{\Ak}\def\AAkaph{\Ak}% |
| 1476 |
\def\Al{l}\def\Alamed{\Al}\def\AAl{\Al}\def\AAlamed{\Al}% |
| 1477 |
\def\Am{m}\def\Amem{\Am}% |
| 1478 |
\def\An{n}\def\Anun{\An}% |
| 1479 |
\def\Alq{`}% |
| 1480 |
\def\Ao{`}\def\Aayin{\Ao}\def\AAo{\Ao}\def\AAayin{\Ao}% |
| 1481 |
\def\As{s}\def\Asamekh{\As}% |
| 1482 |
\def\Ap{p}\def\Ape{\Ap}\def\AAp{\Ap}\def\AApe{\Ap}% |
| 1483 |
\def\Asd{\d{s}}\def\Asade{\Asd}\def\AAsd{\Asd}\def\AAsade{\Asd}% |
| 1484 |
\def\Aq{q}\def\Aqoph{\Aq}\def\AAq{\Aq}\def\AAqoph{\Aq}% |
| 1485 |
\def\Ar{r}\def\Aresh{\Ar}\def\AAr{\Ar}\def\AAresh{\Ar}% |
| 1486 |
\def\Asv{\v{s}}\def\Ashin{\Asv}% |
| 1487 |
\def\Av{?}\def\Ahelmet{\Av}\def\AAv{\Av}\def\AAhelmet{\Av}% |
| 1488 |
\def\At{t}\def\Atav{\At}% |
| 1489 |
} |
| 1490 |
|
| 1491 |
% \end{macrocode} |
| 1492 |
% \end{macro} |
| 1493 |
% |
| 1494 |
% |
| 1495 |
% |
| 1496 |
% The end of this package. |
| 1497 |
% \begin{macrocode} |
| 1498 |
%</usc> |
| 1499 |
% \end{macrocode} |
| 1500 |
% |
| 1501 |
% \section{The Postscript Type1 map} \label{sec:map} |
| 1502 |
% |
| 1503 |
% Just one line. |
| 1504 |
% \changes{v1.2}{2005/03/18}{Added map file} |
| 1505 |
% \begin{macrocode} |
| 1506 |
%<*map> |
| 1507 |
proto10 Archaic-ProtoSemitic <proto10.pfb |
| 1508 |
%</map> |
| 1509 |
% \end{macrocode} |
| 1510 |
% |
| 1511 |
% \Finale |
| 1512 |
% \PrintIndex |
| 1513 |
% |
| 1514 |
\endinput |
| 1515 |
|
| 1516 |
%% \CharacterTable |
| 1517 |
%% {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 |
| 1518 |
%% 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 |
| 1519 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 1520 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 1521 |
%% Dollar \$ Percent \% Ampersand \& |
| 1522 |
%% Acute accent \' Left paren \( Right paren \) |
| 1523 |
%% Asterisk \* Plus \+ Comma \, |
| 1524 |
%% Minus \- Point \. Solidus \/ |
| 1525 |
%% Colon \: Semicolon \; Less than \< |
| 1526 |
%% Equals \= Greater than \> Question mark \? |
| 1527 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 1528 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 1529 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 1530 |
%% Right brace \} Tilde \~} |
| 1531 |
|
| 1532 |
|