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