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