Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %
3 % sarabian.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{url}
24 \usepackage[draft=false,
25 plainpages=false,
26 pdfpagelabels,
27 bookmarksnumbered,
28 hyperindex=false
29 ]{hyperref}
30 \providecommand{\phantomsection}{}
31 \OnlyDescription %% comment this out for the full glory
32 \EnableCrossrefs
33 \CodelineIndex
34 \setcounter{StandardModuleDepth}{1}
35 \makeatletter
36 \@mparswitchfalse
37 \DeclareTextCommand{\SAunder}{OT1}[1]%
38 {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}%
39 \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}}
40 \makeatother
41 \renewcommand{\MakeUppercase}[1]{#1}
42 \pagestyle{headings}
43 \newenvironment{addtomargins}[1]{%
44 \begin{list}{}{%
45 \topsep 0pt%
46 \addtolength{\leftmargin}{#1}%
47 \addtolength{\rightmargin}{#1}%
48 \listparindent \parindent
49 \itemindent \parindent
50 \parsep \parskip}%
51 \item[]}{\end{list}}
52 \begin{document}
53 \raggedbottom
54 \DocInput{sarabian.dtx}
55 \end{document}
56 %</driver>
57 %
58 % \fi
59 %
60 % \CheckSum{177}
61 %
62 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
63 % \DoNotIndex{\@centercr,\@cite}
64 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
65 % \DoNotIndex{\@input,\@ixpt,\@m}
66 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
67 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
68 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
69 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
70 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
71 % \DoNotIndex{\advance,\Alph,\alph}
72 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
73 % \DoNotIndex{\bullet}
74 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
75 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
76 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
77 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
78 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
79 % \DoNotIndex{\fbox}
80 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
81 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
82 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
83 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
84 % \DoNotIndex{\input}
85 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
86 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
87 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
88 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
89 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
90 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
91 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
92 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
93 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
94 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
95 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
96 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
97 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
98 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
99 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
100 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
101 % \DoNotIndex{\wd,\xiipt,\year,\z@}
102 %
103 % \changes{v1.0}{2000/09/30}{First public release}
104 % \changes{v1.1}{2005/11/12}{Added map file}
105 %
106 % \def\fileversion{v1.0}
107 % \def\filedate{2000/09/30}
108 % \def\fileversion{v1.1}
109 % \def\filedate{2005/11/12}
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}{South Arabian}
119 %
120 % \title{The \Lpack{South Arabian} 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{sarabian} package provides a set of fonts, created by
132 % Alan Stanier, and LaTeX files for typesetting the
133 % \thisfont{} alphabet which was used around 600~\BC{} in some of the
134 % ancient kingdoms of Southern Arabia.
135 % \end{abstract}
136 % \tableofcontents
137 %
138 %
139 %
140 % \section{Introduction}
141 %
142 % The Phoenician alphabet and characters is a direct ancestor of our modern day
143 % Latin alphabet and fonts.
144 % The font presented here is one of a series of fonts intended to show how
145 % the modern Latin alphabet has evolved from its original Phoenician form
146 % to its present day appearance.
147 %
148 % This manual is typeset according to the conventions of the
149 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
150 % extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}.
151 %
152 % Section~\ref{sec:usc} describes the usage of the package.
153 % Commented code for the fonts is in Sections~\ref{sec:mf} and~\ref{sec:fd}
154 % and source code for the package is in Section~\ref{sec:code}.
155 %
156 % \subsection{An alphabetic tree}
157 %
158 % Scholars are reasonably agreed that all the world's alphabets are descended
159 % from a Semitic alphabet invented about 1600~\BC{} in the Middle
160 % East~\cite{DRUCKER95}. The word `Semitic' refers
161 % to the family of languages used in the geographical area from
162 % Sinai in the south, up the Mediterranean coast to Asia Minor in the north and
163 % west to the valley of the Euphrates.
164 %
165 % The Phoenician alphabet was stable by about 1100~\BC{} and the script was
166 % written right to left. In earlier times the writing direction was variable,
167 % and so were
168 % the shapes and orientation of the characters. The alphabet consisted of
169 % 22 letters and they were named after things. For example, their first two
170 % letters were called \textit{aleph} (ox), and \textit{beth} (house).
171 % The Phoenician script had
172 % only one case --- unlike our modern fonts which have both upper- and
173 % lower-cases. In modern terms the Phoenician abecedary was: \\
174 % A B G D E Y Z H $\Theta$ I K L M N X O P ts Q R S T \\
175 % where the `Y' (\textit{vau}) character was sometimes written as `F', and
176 % `ts' stands for the \textit{tsade} character.
177 %
178 % The Greek alphabet is one of the descendants of the Phoenician alphabet;
179 % another was Aramaic which is the ancestor of the Arabic, Persian and Indian
180 % scripts.
181 % Initially Greek was written right to left but around the 6th C~\BC{} became
182 % \textit{boustrophedron}, meaning that the lines
183 % alternated in direction. At about 500~\BC{} the writing direction stabilised
184 % as left to
185 % right. The Greeks modified the Phoenician alphabet to match the vocalisation
186 % of their language. They kept the Phoenician names of the letters, suitably
187 % `greekified', so \textit{aleph} became the familar \textit{alpha} and
188 % \textit{beth} became \textit{beta}. At this
189 % point the names of the letters had no meaning. Their were several variants
190 % of the Greek character glyphs until they were finally fixed in Athens in
191 % 403~\BC.
192 % The Greeks did not develop a lower-case
193 % script until about 600--700~\AD.
194 %
195 % The Etruscans based their alphabet on the Greek one, and again modified it.
196 % However, the Etruscans wrote right to left, so their borrowed characters are
197 % mirror images of the original Greek ones. Like the Phoenicians, the Etruscan
198 % script consisted of only one case; they died out before ever needing a
199 % lower-case script. The Etruscan script was used up until the first century
200 % \AD, even though the Etruscans themselves had dissapeared by that time.
201 %
202 %
203 % In turn, the Romans based their alphabet on the Etruscan one, but as they
204 % wrote left to right, the characters were again mirrored (although the early
205 % Roman inscriptions are boustrophedron).
206 %
207 % As the English alphabet is descended from the Roman alphabet
208 % it has a pedigree of some three and a half thousand years.
209 %
210 % \section{The \Lpack{sarabian} package} \label{sec:usc}
211 %
212 % The \thisfont{} alphabet provided by this package is a descendent
213 % of the Proto-Siniatic or Proto-Canaanite scripts~\cite{HEALEY90}.
214 % It was used for about 1000 years, from roughly 600~\BC, in Southern
215 % Arabia.
216 %
217 % The alphabet consisted of 29 letters, but the ordering has no
218 % relationship to either the Semitic alphabets nor our modern day one.
219 % Table~\ref{tab} lists, in \thisfont{} alphabetic order, the transliterated
220 % values of the script. Note that there are many consonontal sounds
221 % represented that we no longer use. These are the letters with diacritics.
222 %
223 % \begin{table}
224 % \centering
225 % \caption{The \thisfont{} alphabet}\label{tab}
226 % \begin{tabular}{ccl} \hline
227 % Value & ASCII & Command \\ \hline
228 % \textit{h} & h & |\SAh| \\
229 % \textit{l} & l & |\SAl| \\
230 % \textit{\d{h}} & H & |\SAhd| \\
231 % \textit{m} & m & |\SAm| \\
232 % \textit{q} & q & |\SAq| \\
233 % \textit{w} & w & |\SAw| \\
234 % \textit{\v{s}} & S & |\SAsv| \\
235 % \textit{r} & r & |\SAr| \\
236 % \textit{b} & b & |\SAb| \\
237 % \textit{t} & t & |\SAt| \\
238 % \textit{s} & s & |\SAs| \\
239 % \textit{k} & k & |\SAk| \\
240 % \textit{n} & n & |\SAn| \\
241 % \textit{\SAunder{h}}& I & |\SAhu| \\
242 % \textit{\'{s}} & X & |\SAsa| \\
243 % \textit{f} & f & |\SAf| \\
244 % \textit{'} & ' a & |\SArq| |\SAa| \\
245 % \textit{`} & ` o & |\SAlq| |\SAo| \\
246 % \textit{\d{d}} & B & |\SAdd| \\
247 % \textit{g} & g & |\SAg| \\
248 % \textit{d} & d & |\SAd| \\
249 % \textit{\'{g}} & G & |\SAga| \\
250 % \textit{\d{t}} & T & |\SA|td \\
251 % \textit{z} & z & |\SAz| \\
252 % \textit{\b{d}} & D & |\SAdb| \\
253 % \textit{y} & y & |\SAy| \\
254 % \textit{\b{t}} & J & |\SAtb| \\
255 % \textit{\d{s}} & x & |\SAsd| \\
256 % \textit{\d{z}} & Z & |\SAzd| \\
257 % \hline
258 % \end{tabular}
259 % \end{table}
260 %
261 % The font provided was developed originally by Alan Stanier of
262 % Essex University. I have made very minor alterations to make it
263 % easier to use with the LaTeX font selection system.
264 %
265 %
266 % \DescribeMacro{\sarabfamily}
267 % This command selects the \thisfont{} font family. The family name is |sarab|.
268 %
269 % \DescribeMacro{\textsarab}
270 % The command |\textsarab{|\meta{text}|}| typesets \meta{text} in the
271 % \thisfont{} font.
272 %
273 % I have provided two means of accessing the \thisfont{} glyphs:
274 % (a) by ASCII characters, and (b) via commands. These are shown
275 % in Table~\ref{tab}.
276 %
277 % \DescribeMacro{\translitsarab}
278 % The command |\translitsarab{|\meta{commands}|}| will typeset the transliteration
279 % of the \thisfont{} character commands (those in the third column of
280 % Table~\ref{tab}).
281 %
282 % \DescribeMacro{\translitsarabfont}
283 % The font used for the transliteration is defined by this macro,
284 % which is initialised to an italic font (i.e., |\itshape|).
285 %
286 % \StopEventually{
287 % \bibliographystyle{alpha}
288 % \begin{thebibliography}{GMS94}
289 %
290 % \bibitem[Dav97]{DAVIES97}
291 % W. V. Davies.
292 % \newblock \emph{Reading the Past: Egyptian Hieroglyphs}.
293 % \newblock University of California Press/British Museum, 1997.
294 % \newblock (ISBN 0-520-06287-6)
295 %
296 % \bibitem[Dru95]{DRUCKER95}
297 % Johanna Drucker.
298 % \newblock \emph{The Alphabetic Labyrinth}.
299 % \newblock Thames and Hudson, 1995.
300 %
301 % \bibitem[Fir93]{FIRMAGE93}
302 % Richard A.~Firmage.
303 % \newblock \emph{The Alphabet Abecedarium}.
304 % \newblock David R.~Goodine, 1993.
305 %
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 % \PrintIndex
320 % }
321 %
322 %
323 % \section{The Metafont code} \label{sec:mf}
324 %
325 % The code is all in a single file. It is principally Alan Stanier's code, except
326 % that I have made a few slight modifications to make it easier to use with
327 % the automatic font generation usually employed by modern LaTeX systems.
328 %
329 % Start off by naming the file and including Stanier's comments.
330 %
331 % \begin{macrocode}
332 %<*up>
333 %%% SARAB10.MF South Arabian font 10 point design size.
334
335 %%% This font was designed by Alan M Stanier ( [email protected] ),
336 %%% at Essex University Computer Service, Colchester, Essex CO4 3EA. England.
337 %%%
338 %%% If you make significant additions or improvements to the font,
339 %%% please email me an updated version
340 %%%
341 %%% This font was used for several languages in Southern Arabia in the
342 %%% second millenium BC
343 %%%
344
345 % \end{macrocode}
346 %
347 % The next part of the original file looked like this:
348 % \begin{verbatim}
349 % mg:=1.0; % CHANGE THIS TO GET DIFFERENT SIZES OF FONT (font size = 10*mg pt)
350 %
351 % mode_setup;
352 % xpensize#:=mg*0.8pt;
353 % ypensize#:=mg*0.2pt;
354 % height#:=mg*10pt#;
355 % width#:=mg*7pt#;
356 % narrow#:=mg*5.3pt#;
357 % \end{verbatim}
358 % but this didn't seem to appeal to MetaFont very much, so I replaced it with:
359 % \begin{macrocode}
360 mode_setup;
361 font_identifier:="sarabian";
362 font_size:= 10pt#; % nominally, a 10pt font
363 font_normal_space:=7pt#; % width of a blank space
364 font_normal_shrink:=.9pt#; % width correction for blank space
365 font_x_height:=4.5pt#; % height of one ex
366 font_quad:=10pt#; % an em
367
368 numeric pmg; pmg:=0.8; % a scale factor
369
370 xpensize#:=pmg*0.8pt;
371 ypensize#:=pmg*0.2pt;
372 height#:=pmg*10pt#;
373 width#:=pmg*7pt#;
374 narrow#:=pmg*5.3pt#;
375
376 mg#:= pmg*0.3pt#;
377 define_pixels(mg);
378
379 numeric cscale; % scale factor for original circles
380 cscale# := mg#;
381 define_pixels(cscale);
382 let cmchar=\;
383
384 % \end{macrocode}
385 % Now continue with the original code.
386 % \begin{macrocode}
387
388 define_pixels(height,width,narrow);
389 def getpen = pickup pencircle xscaled xpensize# yscaled ypensize# rotated 30 enddef;
390
391 % \end{macrocode}
392 % That finishes the simple set up. The rest of the code is for creating
393 % the character glyphs. It is Stanier's code, except that where he had a
394 % statement like: \\
395 % |draw fullcircle scaled 10 shifted(...);| \\
396 % I modifed it to: \\
397 % |draw fullcircle scaled(10cscale) shifted(...);| \\
398 % I also put a |cmchar "comment";| before each glyph code.
399
400 % Note that the
401 % encoding I use is not the same as Stanier's but does match the encoding
402 % I use for my other archaic fonts.
403 %
404 % \begin{macro}{h}
405 % The \thisfont{} letter \textit{h}.
406 % \begin{macrocode}
407
408 cmchar "letter h";
409 beginchar("h",width#,height#,0);
410 getpen;
411 draw (0,mg*30){down} .. (mg*7.5,mg*15){right} .. (mg*15,mg*30){up};
412 draw (mg*7.5,mg*15) -- (mg*7.5,0);
413 endchar;
414
415 % \end{macrocode}
416 % \end{macro}
417 %
418 % \begin{macro}{l}
419 % The \thisfont{} letter \textit{l}.
420 % \begin{macrocode}
421
422 cmchar "letter l";
423 beginchar("l",width#,height#,0);
424 getpen;
425 draw (0,mg*15) -- (mg*15,mg*30) -- (mg*15,0);
426 endchar;
427
428 % \end{macrocode}
429 % \end{macro}
430 %
431 % \begin{macro}{H}
432 % The \thisfont{} letter \textit{\d{h}}.
433 % \begin{macrocode}
434
435 cmchar "letter h sub dot (coded as H)";
436 beginchar("H",width#,height#,0);
437 getpen;
438 draw (0,mg*30){down} .. (mg*7.5,mg*15){right} .. (mg*15,mg*30){up};
439 draw (mg*7.5,mg*30) -- (mg*7.5,0);
440 endchar;
441
442 % \end{macrocode}
443 % \end{macro}
444 %
445 % \begin{macro}{m}
446 % The \thisfont{} letter \textit{m}.
447 % \begin{macrocode}
448
449 cmchar "letter m";
450 beginchar("m",width#,height#,0);
451 getpen;
452 draw (mg*15,mg*30) -- (mg*15,0) -- (0,mg*7.5) -- (mg*15,mg*15) --
453 (0,mg*22.5) -- (mg*15,mg*30);
454 endchar;
455
456 % \end{macrocode}
457 % \end{macro}
458 %
459 % \begin{macro}{q}
460 % The \thisfont{} letter \textit{q}.
461 % \begin{macrocode}
462
463 cmchar "letter q";
464 beginchar("q",narrow#,height#,0);
465 getpen;
466 draw fullcircle scaled (10cscale) shifted(mg*5,mg*15);
467 draw (mg*5,mg*20) -- (mg*5,mg*30);
468 draw (mg*5,mg*10) -- (mg*5,0);
469 endchar;
470
471 % \end{macrocode}
472 % \end{macro}
473 %
474 % \begin{macro}{w}
475 % The \thisfont{} letter \textit{w}.
476 % \begin{macrocode}
477
478 cmchar "letter w";
479 beginchar("w",width#,height#,0);
480 getpen;
481 draw fullcircle scaled (15cscale) shifted(mg*7.5,mg*15);
482 draw (mg*7.5,mg*7.5) -- (mg*7.5,mg*22.5);
483 endchar;
484
485 % \end{macrocode}
486 % \end{macro}
487 %
488 % \begin{macro}{S}
489 % The \thisfont{} letter \textit{\v{s}}.
490 % \begin{macrocode}
491
492 cmchar "letter s sup v (coded as S)";
493 beginchar("S",width#,height#,0);
494 getpen;
495 draw (0,0) -- (0,mg*15) -- (mg*15,mg*15) -- (mg*15,0);
496 draw (mg*7.5,mg*15) -- (mg*7.5,mg*30);
497 endchar;
498
499 % \end{macrocode}
500 % \end{macro}
501 %
502 % \begin{macro}{r}
503 % The \thisfont{} letter \textit{r}.
504 % \begin{macrocode}
505
506 cmchar "letter r";
507 beginchar("r",width#,height#,0);
508 getpen;
509 draw (0,mg*30){right} .. (mg*15,mg*15){down} .. (0,0){left};
510 endchar;
511
512 % \end{macrocode}
513 % \end{macro}
514 %
515 % \begin{macro}{b}
516 % The \thisfont{} letter \textit{b}.
517 % \begin{macrocode}
518
519 cmchar "letter b";
520 beginchar("b",width#,height#,0);
521 getpen;
522 draw (0,0) -- (0,mg*30) -- (mg*15,mg*30) -- (mg*15,0);
523 endchar;
524
525 % \end{macrocode}
526 % \end{macro}
527 %
528 % \begin{macro}{t}
529 % The \thisfont{} letter \textit{t}.
530 % \begin{macrocode}
531
532 cmchar "letter t";
533 beginchar("t",width#,height#,0);
534 getpen;
535 draw (0,0) -- (mg*15,mg*30);
536 draw (0,mg*30) -- (mg*15,0);
537 endchar;
538
539 % \end{macrocode}
540 % \end{macro}
541 %
542 % \begin{macro}{s}
543 % The \thisfont{} letter \textit{s}.
544 % \begin{macrocode}
545
546 cmchar "letter s";
547 beginchar("s",width#,height#,0);
548 getpen;
549 draw (0,0) -- (mg*15,mg*15) -- (0,mg*30);
550 draw (mg*15,0) -- (0,mg*15) -- (mg*15,mg*30);
551 endchar;
552
553 % \end{macrocode}
554 % \end{macro}
555 %
556 % \begin{macro}{k}
557 % The \thisfont{} letter \textit{k}.
558 % \begin{macrocode}
559
560 cmchar "letter k";
561 beginchar("k",width#,height#,0);
562 getpen;
563 draw (0,0) -- (0,mg*15) -- (mg*15,mg*15) -- (mg*15,0);
564 draw (0,mg*15) -- (mg*7.5,mg*30);
565 endchar;
566
567 % \end{macrocode}
568 % \end{macro}
569 %
570 % \begin{macro}{n}
571 % The \thisfont{} letter \textit{n}.
572 % \begin{macrocode}
573
574 cmchar "letter n";
575 beginchar("n",width#,height#,0);
576 getpen;
577 draw (0,mg*30) -- (0,mg*15) -- (mg*15,mg*15) -- (mg*15,0);
578 endchar;
579
580 % \end{macrocode}
581 % \end{macro}
582 %
583 % \begin{macro}{I}
584 % The \thisfont{} letter \textit{$h_u$}.
585 % \begin{macrocode}
586
587 cmchar "letter h sub u (coded as H)";
588 %%beginchar("1",width#,height#,0);
589 beginchar("I",width#,height#,0);
590 getpen;
591 draw (0,mg*30){down} .. (mg*7.5,mg*15){right} .. (mg*15,mg*30){up};
592 draw (mg*7.5,mg*15) -- (mg*7.5,mg*7.5) -- (mg*15,mg*7.5) -- (mg*15,0);
593 endchar;
594
595 % \end{macrocode}
596 % \end{macro}
597 %
598 % \begin{macro}{X}
599 % The \thisfont{} letter \textit{\'{s}}.
600 % \begin{macrocode}
601
602 cmchar "letter s acute (coded as X)";
603 %%beginchar("2",width#,height#,0);
604 beginchar("X",width#,height#,0);
605 getpen;
606 draw (0,0) -- (mg*15,mg*7.5) -- (0,mg*15) --
607 (mg*15,mg*22.5) -- (0,mg*30);
608 endchar;
609
610 % \end{macrocode}
611 % \end{macro}
612 %
613 % \begin{macro}{f}
614 % The \thisfont{} letter \textit{f}.
615 % \begin{macrocode}
616
617 cmchar "letter f";
618 beginchar("f",width#,height#,0);
619 getpen;
620 draw (0,mg*15) -- (mg*7.5,0) -- (mg*15,mg*15) -- (mg*7.5,mg*30)
621 -- (0,mg*15);
622 endchar;
623
624 % \end{macrocode}
625 % \end{macro}
626 %
627 % \begin{macro}{`}
628 % The \thisfont{} letter \textit{`} (semitic ayin).
629 % \begin{macrocode}
630
631 cmchar "letter `";
632 beginchar("`",width#,height#,0);
633 getpen;
634 draw (0,0) -- (0,mg*15) -- (mg*15,mg*15) -- (mg*15,0);
635 draw (mg*7.5,mg*15) -- (mg*7.5,mg*22.5) -- (0,mg*22.5) -- (0,mg*30);
636 endchar;
637
638 % \end{macrocode}
639 % \end{macro}
640 %
641 % \begin{macro}{o}
642 % The \thisfont{} letter \textit{`} (semitic ayin).
643 % \begin{macrocode}
644
645 cmchar "letter ` (coded as o)";
646 beginchar("o",width#,height#,0);
647 getpen;
648 draw (0,0) -- (0,mg*15) -- (mg*15,mg*15) -- (mg*15,0);
649 draw (mg*7.5,mg*15) -- (mg*7.5,mg*22.5) -- (0,mg*22.5) -- (0,mg*30);
650 endchar;
651
652 % \end{macrocode}
653 % \end{macro}
654 %
655 % \begin{macro}{'}
656 % The \thisfont{} letter \textit{'} (semitic aleph).
657 % \begin{macrocode}
658
659 cmchar "letter '";
660 beginchar("'",narrow#,height#,0);
661 getpen;
662 draw fullcircle scaled (10cscale) shifted(mg*5,mg*10);
663 endchar;
664
665 % \end{macrocode}
666 % \end{macro}
667 %
668 % \begin{macro}{a}
669 % The \thisfont{} letter \textit{'} (semitic aleph).
670 % \begin{macrocode}
671
672 cmchar "letter ' (coded as a)";
673 beginchar("a",narrow#,height#,0);
674 getpen;
675 draw fullcircle scaled (10cscale) shifted(mg*5,mg*10);
676 endchar;
677
678 % \end{macrocode}
679 % \end{macro}
680 %
681 % \begin{macro}{B}
682 % The \thisfont{} letter \textit{\d{d}}.
683 % \begin{macrocode}
684
685 cmchar "letter d sub dot (coded as B)";
686 %%beginchar("D",width#,height#,0);
687 beginchar("B",width#,height#,0);
688 getpen;
689 draw (0,0) -- (mg*15,0) -- (mg*15,mg*30) -- (0,mg*30) -- (0,0);
690 draw (0,mg*15) -- (mg*15,mg*15);
691 endchar;
692
693 % \end{macrocode}
694 % \end{macro}
695 %
696 % \begin{macro}{g}
697 % The \thisfont{} letter \textit{g}.
698 % \begin{macrocode}
699
700 cmchar "letter g";
701 beginchar("g",width#,height#,0);
702 getpen;
703 draw (0,mg*30) -- (mg*15,mg*30) -- (mg*15,0);
704 endchar;
705
706 % \end{macrocode}
707 % \end{macro}
708 %
709 % \begin{macro}{d}
710 % The \thisfont{} letter \textit{d}.
711 % \begin{macrocode}
712
713 cmchar "letter d";
714 beginchar("d",narrow#,height#,0);
715 getpen;
716 draw (0,mg*10) -- (0,mg*20) -- (mg*10,mg*15) -- (0,mg*10);
717 draw (mg*10,0) -- (mg*10,mg*30);
718 endchar;
719
720 % \end{macrocode}
721 % \end{macro}
722 %
723 % \begin{macro}{G}
724 % The \thisfont{} letter \textit{\'{g}}.
725 % \begin{macrocode}
726
727 cmchar "letter g acute (coded as G)";
728 beginchar("G",width#,height#,0);
729 getpen;
730 draw (0,mg*25) -- (mg*5,mg*30) -- (mg*15,mg*30) -- (mg*15,0);
731 draw (mg*5,0) -- (mg*5,mg*30);
732 endchar;
733
734 % \end{macrocode}
735 % \end{macro}
736 %
737 % \begin{macro}{T}
738 % The \thisfont{} letter \textit{\d{t}}.
739 % \begin{macrocode}
740
741 cmchar "letter t sub dot (coded as T)";
742 beginchar("T",width#,height#,0);
743 getpen;
744 draw (0,0) -- (mg*15,0) -- (mg*15,mg*30) -- (0,mg*30) -- (0,0);
745 draw (mg*7.5,0) -- (mg*7.5,mg*30);
746 endchar;
747
748 % \end{macrocode}
749 % \end{macro}
750 %
751 % \begin{macro}{z}
752 % The \thisfont{} letter \textit{z}.
753 % \begin{macrocode}
754
755 cmchar "letter z";
756 beginchar("z",width#,height#,0);
757 getpen;
758 draw (0,0) -- (mg*15,mg*30) -- (0,mg*30) --
759 (mg*15,0) -- (0,0);
760 endchar;
761
762 % \end{macrocode}
763 % \end{macro}
764 %
765 % \begin{macro}{D}
766 % The \thisfont{} letter \textit{\b{d}}.
767 % \begin{macrocode}
768
769 cmchar "letter d sub bar (coded as D)";
770 %%beginchar("5",width#,height#,0);
771 beginchar("D",width#,height#,0);
772 getpen;
773 draw (0,0) -- (0,mg*30);
774 draw (mg*15,0) -- (mg*15,mg*30);
775 draw (0,mg*12.5) -- (mg*15,mg*12.5);
776 draw (0,mg*17.5) -- (mg*15,mg*17.5);
777 endchar;
778
779 % \end{macrocode}
780 % \end{macro}
781 %
782 % \begin{macro}{y}
783 % The \thisfont{} letter \textit{y}.
784 % \begin{macrocode}
785
786 cmchar "letter y";
787 beginchar("y",narrow#,height#,0);
788 getpen;
789 draw fullcircle scaled (10cscale) shifted(mg*5,mg*25);
790 draw (mg*5,mg*20) -- (mg*5,0);
791 endchar;
792
793 % \end{macrocode}
794 % \end{macro}
795 %
796 % \begin{macro}{J}
797 % The \thisfont{} letter \textit{\b{t}}.
798 % \begin{macrocode}
799
800 cmchar "letter t sub bar (coded as J)";
801 %%beginchar("4",narrow#,height#,0);
802 beginchar("J",narrow#,height#,0);
803 getpen;
804 draw fullcircle scaled (10cscale) shifted(mg*5,mg*25);
805 draw (mg*5,mg*20) -- (mg*5,mg*10);
806 draw fullcircle scaled (10cscale) shifted(mg*5,mg*5);
807 endchar;
808
809 % \end{macrocode}
810 % \end{macro}
811 %
812 % \begin{macro}{x}
813 % The \thisfont{} letter \textit{\d{s}}.
814 % \begin{macrocode}
815
816 cmchar "letter s sub dot (coded as x)";
817 %%beginchar("3",narrow#,height#,0);
818 beginchar("x",narrow#,height#,0);
819 getpen;
820 draw fullcircle scaled (10cscale) shifted(mg*5,mg*25);
821 draw (mg*5,mg*20) -- (mg*5,mg*10);
822 draw (0,0){up} .. (mg*5,mg*10){right} .. (mg*10,0){down};
823 endchar;
824
825 % \end{macrocode}
826 % \end{macro}
827 %
828 % \begin{macro}{Z}
829 % The \thisfont{} letter \textit{\d{z}}.
830 % \begin{macrocode}
831
832 cmchar "letter z sub dot (coded as Z)";
833 beginchar("Z",narrow#,height#,0);
834 getpen;
835 draw fullcircle scaled (10cscale) shifted(mg*5,mg*25);
836 draw (mg*5,mg*20) -- (mg*5,0);
837 draw (mg*5,mg*10){right} .. (mg*10,0){down};
838 endchar;
839
840 % \end{macrocode}
841 % \end{macro}
842 %
843 % The end of the glyphs, and file.
844 % \begin{macrocode}
845
846 end
847
848 %</up>
849 % \end{macrocode}
850 %
851 %
852 %
853 %
854 % \section{The font definition files} \label{sec:fd}
855 %
856 % \begin{macrocode}
857 %<*fdot1>
858 \DeclareFontFamily{OT1}{sarab}{}
859 \DeclareFontShape{OT1}{sarab}{m}{n}{ <-> sarab10 }{}
860 \DeclareFontShape{OT1}{sarab}{bx}{n}{ <-> sub sarab/m/n }{}
861 \DeclareFontShape{OT1}{sarab}{b}{n}{ <-> sub sarab/m/n }{}
862 \DeclareFontShape{OT1}{sarab}{m}{sl}{ <-> sub sarab/m/n }{}
863 \DeclareFontShape{OT1}{sarab}{m}{it}{ <-> sub sarab/m/n }{}
864 %</fdot1>
865 % \end{macrocode}
866 %
867 %
868 % \begin{macrocode}
869 %<*fdt1>
870 \DeclareFontFamily{T1}{sarab}{}
871 \DeclareFontShape{T1}{sarab}{m}{n}{ <-> sarab10 }{}
872 \DeclareFontShape{T1}{sarab}{bx}{n}{ <-> sub sarab/m/n }{}
873 \DeclareFontShape{T1}{sarab}{b}{n}{ <-> sub sarab/m/n }{}
874 \DeclareFontShape{T1}{sarab}{m}{sl}{ <-> sub sarab/m/n }{}
875 \DeclareFontShape{T1}{sarab}{m}{it}{ <-> sub sarab/m/n }{}
876 %</fdt1>
877 % \end{macrocode}
878 %
879 % \section{The \Lpack{sarabian} package code} \label{sec:code}
880 %
881 % Announce the name and version of the package, which requires
882 % \LaTeXe{}.
883 % \begin{macrocode}
884 %<*usc>
885 \NeedsTeXFormat{LaTeX2e}
886 \ProvidesPackage{sarabian}[2005/11/12 v1.1 package for South Arabian fonts]
887 % \end{macrocode}
888 %
889 %
890 % \begin{macro}{\sarabfamily}
891 % Selects the font family in the T1 encoding.
892 % \changes{v1.1}{2005/11/12}{Changed default encoding from OT1 to T1}
893 % \begin{macrocode}
894 \newcommand{\sarabfamily}{\usefont{T1}{sarab}{m}{n}}
895 % \end{macrocode}
896 % \end{macro}
897 %
898 % \begin{macro}{\textsarab}
899 % Text command for the font family.
900 % \begin{macrocode}
901 \DeclareTextFontCommand{\textsarab}{\sarabfamily}
902
903 % \end{macrocode}
904 % \end{macro}
905 %
906 % The commands for the signs.
907 % \begin{macrocode}
908 \chardef\SArq=`'
909 \chardef\SAa=`a
910 \chardef\SAb=`b
911 \chardef\SAg=`g
912 \chardef\SAd=`d
913 \chardef\SAh=`h
914 \chardef\SAw=`w
915 \chardef\SAz=`z
916 \chardef\SAhd=`H
917 \chardef\SAtd=`T
918 \chardef\SAy=`y
919 \chardef\SAk=`k
920 \chardef\SAl=`l
921 \chardef\SAm=`m
922 \chardef\SAn=`n
923 \chardef\SAs=`s
924 \chardef\SAf=`f
925 \chardef\SAlq=``
926 \chardef\SAo=`o
927 \chardef\SAsd=`x
928 \chardef\SAq=`q
929 \chardef\SAr=`r
930 \chardef\SAsv=`S
931 \chardef\SAt=`t
932 \chardef\SAhu=`I
933 \chardef\SAdb=`D
934 \chardef\SAtb=`J
935 \chardef\SAga=`G
936 \chardef\SAzd=`Z
937 \chardef\SAsa=`X
938 \chardef\SAdd=`B
939
940 % \end{macrocode}
941 %
942 % \begin{macro}{translitsarab}
943 % \begin{macro}{translitsarabfont}
944 % |\translitsarab{|\meta{char-commands}|}| typesets a transliteration
945 % of the \thisfont{} character commands in the |\translisarabfont| font.
946 % \begin{macrocode}
947 \newcommand{\translitsarab}[1]{{%
948 \@translitSA\translitsarabfont #1}}
949 \newcommand{\translitsarabfont}{\itshape}
950
951 % \end{macrocode}
952 % \end{macro}
953 % \end{macro}
954 %
955 % \begin{macro}{\SAunder}
956 % We need a copmmand to put a small U shaped cup under a letter.
957 % \begin{macrocode}
958 \DeclareTextCommand{\SAunder}{OT1}[1]%
959 {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}%
960 \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}}
961
962 % \end{macrocode}
963 % \end{macro}
964 %
965 % \begin{macro}{\@translitSA}
966 % This command redefines all the character producing commands for
967 % use within |\translitsarab|. There must be no spaces in the
968 % definition.
969 % \begin{macrocode}
970 \newcommand{\@translitSA}{%
971 \def\SArq{'}%
972 \def\SAa{'}%
973 \def\SAb{b}%
974 \def\SAg{g}%
975 \def\SAd{d}%
976 \def\SAh{h}%
977 \def\SAw{w}%
978 \def\SAz{z}%
979 \def\SAhd{\d{h}}%
980 \def\SAtd{\d{t}}%
981 \def\SAy{y}%
982 \def\SAk{k}%
983 \def\SAl{l}%
984 \def\SAm{m}%
985 \def\SAn{n}%
986 \def\SAs{s}%
987 \def\SAf{f}%
988 \def\SAlq{`}%
989 \def\SAo{`}%
990 \def\SAsd{\d{s}}%
991 \def\SAq{q}%
992 \def\SAr{r}%
993 \def\SAsv{\v{s}}%
994 \def\SAt{t}
995 \def\SAhu{\SAunder{h}}%
996 \def\SAdb{\b{d}}%
997 \def\SAtb{\b{t}}%
998 \def\SAga{\'{g}}%
999 \def\SAzd{\d{z}}%
1000 \def\SAsa{\'{s}}%
1001 \def\SAdd{\d{d}}%
1002 }
1003
1004 % \end{macrocode}
1005 % \end{macro}
1006 %
1007 %
1008 %
1009 % The end of this package.
1010 % \begin{macrocode}
1011 %</usc>
1012 % \end{macrocode}
1013 %
1014 % \section{Map file}
1015 %
1016 % A very short map file.
1017 % \changes{v1.1}{2005/11/12}{Added map file}
1018 %
1019 % \begin{macrocode}
1020 %<*map>
1021 sarab10 Archaic-South-Arabian <sarab10.pfb
1022 %</map>
1023 % \end{macrocode}
1024 %
1025 %
1026 % \Finale
1027 %
1028 \endinput
1029
1030 %% \CharacterTable
1031 %% {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
1032 %% 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
1033 %% Digits \0\1\2\3\4\5\6\7\8\9
1034 %% Exclamation \! Double quote \" Hash (number) \#
1035 %% Dollar \$ Percent \% Ampersand \&
1036 %% Acute accent \' Left paren \( Right paren \)
1037 %% Asterisk \* Plus \+ Comma \,
1038 %% Minus \- Point \. Solidus \/
1039 %% Colon \: Semicolon \; Less than \<
1040 %% Equals \= Greater than \> Question mark \?
1041 %% Commercial at \@ Left bracket \[ Backslash \\
1042 %% Right bracket \] Circumflex \^ Underscore \_
1043 %% Grave accent \` Left brace \{ Vertical bar \|
1044 %% Right brace \} Tilde \~}
1045
1046