| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% greeg4cbc.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 |
% |
| 22 |
%<*driver> |
| 23 |
\documentclass[twoside]{ltxdoc} |
| 24 |
\usepackage{url} |
| 25 |
\usepackage[draft=false, |
| 26 |
plainpages=false, |
| 27 |
pdfpagelabels, |
| 28 |
bookmarksnumbered, |
| 29 |
hyperindex=false |
| 30 |
]{hyperref} |
| 31 |
\providecommand{\phantomsection}{} |
| 32 |
\OnlyDescription %% comment this out for the full glory |
| 33 |
\EnableCrossrefs |
| 34 |
\CodelineIndex |
| 35 |
\setcounter{StandardModuleDepth}{1} |
| 36 |
\makeatletter |
| 37 |
\@mparswitchfalse |
| 38 |
\makeatother |
| 39 |
\renewcommand{\MakeUppercase}[1]{#1} |
| 40 |
\pagestyle{headings} |
| 41 |
\newenvironment{addtomargins}[1]{% |
| 42 |
\begin{list}{}{% |
| 43 |
\topsep 0pt% |
| 44 |
\addtolength{\leftmargin}{#1}% |
| 45 |
\addtolength{\rightmargin}{#1}% |
| 46 |
\listparindent \parindent |
| 47 |
\itemindent \parindent |
| 48 |
\parsep \parskip}% |
| 49 |
\item[]}{\end{list}} |
| 50 |
\begin{document} |
| 51 |
\raggedbottom |
| 52 |
\DocInput{greek4cbc.dtx} |
| 53 |
\end{document} |
| 54 |
%</driver> |
| 55 |
% |
| 56 |
% \fi |
| 57 |
% |
| 58 |
% \CheckSum{305} |
| 59 |
% |
| 60 |
% \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath} |
| 61 |
% \DoNotIndex{\@centercr,\@cite} |
| 62 |
% \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue} |
| 63 |
% \DoNotIndex{\@input,\@ixpt,\@m} |
| 64 |
% \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint} |
| 65 |
% \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb} |
| 66 |
% \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt} |
| 67 |
% \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt} |
| 68 |
% \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace} |
| 69 |
% \DoNotIndex{\advance,\Alph,\alph} |
| 70 |
% \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box} |
| 71 |
% \DoNotIndex{\bullet} |
| 72 |
% \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption} |
| 73 |
% \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass} |
| 74 |
% \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist} |
| 75 |
% \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup} |
| 76 |
% \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter} |
| 77 |
% \DoNotIndex{\fbox} |
| 78 |
% \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef} |
| 79 |
% \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule} |
| 80 |
% \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi} |
| 81 |
% \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi} |
| 82 |
% \DoNotIndex{\input} |
| 83 |
% \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark} |
| 84 |
% \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright} |
| 85 |
% \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment} |
| 86 |
% \DoNotIndex{\NeedsTeXFormat,\newdimen} |
| 87 |
% \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number} |
| 88 |
% \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@} |
| 89 |
% \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip} |
| 90 |
% \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions} |
| 91 |
% \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright} |
| 92 |
% \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font} |
| 93 |
% \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman} |
| 94 |
% \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength} |
| 95 |
% \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space} |
| 96 |
% \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase} |
| 97 |
% \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt} |
| 98 |
% \DoNotIndex{\viipt,\vipt,\vskip,\vspace} |
| 99 |
% \DoNotIndex{\wd,\xiipt,\year,\z@} |
| 100 |
% |
| 101 |
% \changes{v1.0}{1999/04/10}{First public release} |
| 102 |
% \changes{v1.1}{2000/10/22}{Simplified and matched with other archaics} |
| 103 |
% \changes{v1.2}{2005/04/06}{Changed contact info, plus Type1 support} |
| 104 |
% |
| 105 |
% \def\fileversion{v1.0} \def\filedate{1999/04/10} |
| 106 |
% \def\fileversion{v1.1} \def\filedate{2000/10/22} |
| 107 |
% \def\fileversion{v1.2} \def\filedate{2005/04/06} |
| 108 |
% \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package |
| 109 |
% \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option |
| 110 |
% \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file |
| 111 |
% \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter |
| 112 |
% \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle |
| 113 |
% \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment |
| 114 |
% \newcommand{\BC}{\textsc{bc}} |
| 115 |
% \newcommand{\AD}{\textsc{ad}} |
| 116 |
% \newcommand{\thisfont}{Greek} |
| 117 |
% |
| 118 |
% |
| 119 |
% \makeatletter |
| 120 |
% \newif\if@inenv |
| 121 |
% \@inenvtrue |
| 122 |
% |
| 123 |
% \def\makeuscoreletter{\catcode`\_11\relax} |
| 124 |
% \def\makehashletter{\catcode`\#11\relax} |
| 125 |
% \def\MakeMfpPrivateLetters{\makeuscoreletter\makehashletter} |
| 126 |
% |
| 127 |
% \def\environment{\@inenvtrue\begingroup |
| 128 |
% \catcode`\\12 |
| 129 |
% \MakePrivateLetters \m@cro@ \iffalse} |
| 130 |
% |
| 131 |
% \def\mfpmacro{\@inenvfalse\begingroup |
| 132 |
% \catcode`\\12 |
| 133 |
% \MakeMfpPrivateLetters \m@cro@ \iffalse} |
| 134 |
% |
| 135 |
% \let\endmfpmacro\endmacro |
| 136 |
% |
| 137 |
% \def\SpecialMainEnvIndex#1{^^A |
| 138 |
% \if@inenv^^A |
| 139 |
% \@bsphack\special@index{^^A |
| 140 |
% #1\actualchar |
| 141 |
% {\string\ttfamily\space#1} |
| 142 |
% (environment)^^A |
| 143 |
% \encapchar main}^^A |
| 144 |
% \index{environments:\levelchar{\protect\ttfamily#1}\encapchar |
| 145 |
% main}\@esphack^^A |
| 146 |
% \else^^A |
| 147 |
% \@bsphack\special@index{^^A |
| 148 |
% \string#1\actualchar |
| 149 |
% \string\verb |
| 150 |
% \quotechar*\verbatimchar |
| 151 |
% \string#1\verbatimchar |
| 152 |
% \space(mfp macro)^^A |
| 153 |
% \encapchar main}^^A |
| 154 |
% \index{mfp macros:\levelchar |
| 155 |
% \string#1\actualchar |
| 156 |
% \string\verb |
| 157 |
% \quotechar*\verbatimchar |
| 158 |
% \string#1\verbatimchar |
| 159 |
% \encapchar usage}\@esphack^^A |
| 160 |
% \fi} |
| 161 |
% |
| 162 |
% \def\DescribeMfpMacro{\leavevmode\@bsphack\begingroup\MakeMfpPrivateLetters |
| 163 |
% \Describe@Mfpm} |
| 164 |
% \def\Describe@Mfpm#1{\endgroup |
| 165 |
% \marginpar{\raggedleft\PrintDescribeEnv{#1}}^^A |
| 166 |
% \SpecialMfpmIndex{#1}\@esphack\ignorespaces} |
| 167 |
% |
| 168 |
% \def\SpecialMfpmIndex#1{^^A |
| 169 |
% \@bsphack |
| 170 |
% \index{\string#1\actualchar |
| 171 |
% \string\verb |
| 172 |
% \quotechar*\verbatimchar |
| 173 |
% \string#1\verbatimchar |
| 174 |
% \space(mfp macro) |
| 175 |
% \encapchar usage}^^A |
| 176 |
% \index{mfp macros:\levelchar |
| 177 |
% \string#1\actualchar |
| 178 |
% \string\verb |
| 179 |
% \quotechar*\verbatimchar |
| 180 |
% \string#1\verbatimchar |
| 181 |
% \encapchar usage}^^A |
| 182 |
% \@esphack} |
| 183 |
% |
| 184 |
% \def\DescribeMfpVariable{\leavevmode\@bsphack\begingroup\MakeMfpPrivateLetters |
| 185 |
% \Describe@Mfpv} |
| 186 |
% \def\Describe@Mfpv#1{\endgroup |
| 187 |
% \marginpar{\raggedleft\PrintDescribeEnv{#1}}^^A |
| 188 |
% \SpecialMfpvIndex{#1}\@esphack\ignorespaces} |
| 189 |
% |
| 190 |
% \def\SpecialMfpvIndex#1{^^A |
| 191 |
% \@bsphack |
| 192 |
% \index{\string#1\actualchar |
| 193 |
% \string\verb |
| 194 |
% \quotechar*\verbatimchar |
| 195 |
% \string#1\verbatimchar |
| 196 |
% \space(mfp variable)\encapchar usage}^^A |
| 197 |
% \index{mfp variables:\levelchar |
| 198 |
% \string#1\actualchar |
| 199 |
% \string\verb |
| 200 |
% \quotechar*\verbatimchar |
| 201 |
% \string#1\verbatimchar |
| 202 |
% \encapchar usage}^^A |
| 203 |
% \@esphack} |
| 204 |
% |
| 205 |
% \makeatother |
| 206 |
% |
| 207 |
% \title{The \Lpack{Greek4cbc} fonts\thanks{This |
| 208 |
% file has version number \fileversion, last revised |
| 209 |
% \filedate.}} |
| 210 |
% |
| 211 |
% \author{% |
| 212 |
% Peter Wilson\thanks{\texttt{herries dot press at earthlink dot net}}\\ |
| 213 |
% Herries Press |
| 214 |
% } |
| 215 |
% \date{\filedate} |
| 216 |
% \maketitle |
| 217 |
% \begin{abstract} |
| 218 |
% The \Lpack{greek4cbc} bundle provides a set of uppercase Greek |
| 219 |
% characters as |
| 220 |
% shown on a 394~\BC{} stele in Athens. |
| 221 |
% \end{abstract} |
| 222 |
% \tableofcontents |
| 223 |
% |
| 224 |
% |
| 225 |
% |
| 226 |
% \section{Introduction} |
| 227 |
% |
| 228 |
% The font presented here is meant to be typical of the Greek characters |
| 229 |
% in use about the 4th century~\BC. It is one of a series of fonts intended |
| 230 |
% to show how the Latin alphabet has evolved from its original Phoenician form |
| 231 |
% to its present day appearance. |
| 232 |
% |
| 233 |
% This manual is typeset according to the conventions of the |
| 234 |
% \LaTeX{} \textsc{docstrip} utility which enables the automatic |
| 235 |
% extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}. |
| 236 |
% |
| 237 |
% Section~\ref{sec:usc} describes the usage of the package. |
| 238 |
% Commented code for the fonts |
| 239 |
% and source code for the package may be in later sections. |
| 240 |
% |
| 241 |
% \subsection{An alphabetic tree} |
| 242 |
% |
| 243 |
% Scholars are reasonably agreed that all the world's alphabets are descended |
| 244 |
% from a Semitic alphabet invented about 1600~\BC{} in the Middle |
| 245 |
% East~\cite{DRUCKER95}. The word `Semitic' refers |
| 246 |
% to the family of languages used in the geographical area from |
| 247 |
% Sinai in the south, up the Mediterranean coast to Asia Minor in the north and |
| 248 |
% west to the valley of the Euphrates. |
| 249 |
% |
| 250 |
% The Phoenician alphabet was stable by about 1100~\BC{} and the script was |
| 251 |
% written right to left. In earlier times the writing direction was variable, |
| 252 |
% and so were |
| 253 |
% the shapes and orientation of the characters. The alphabet consisted of |
| 254 |
% 22 letters and they were named after things. For example, their first two |
| 255 |
% letters were called \textit{aleph} (ox), and \textit{beth} (house). |
| 256 |
% The Phoenician script had |
| 257 |
% only one case --- unlike our modern fonts which have both upper- and |
| 258 |
% lower-cases. In modern day terms the Phoenician abecedary was: \\ |
| 259 |
% A B G D E Y Z H $\Theta$ I K L M N X O P ts Q R S T \\ |
| 260 |
% where the `Y' (\textit{vau}) character was sometimes written as `F' and |
| 261 |
% `ts' stands for the \textit{tsade} character. |
| 262 |
% |
| 263 |
% The Greek alphabet is one of the descendants of the Phoenician alphabet; |
| 264 |
% another was Aramaic which is the ancestor of the Arabic, Persian and Indian |
| 265 |
% scripts. |
| 266 |
% Initially Greek was written right to left but around the 6th C~\BC{} became |
| 267 |
% \textit{boustrophedron}, meaning that the lines |
| 268 |
% alternated in direction. At about 500~\BC{} the writing direction stabilised |
| 269 |
% as left to |
| 270 |
% right. The Greeks modified the Phoenician alphabet to match the vocalisation |
| 271 |
% of their language. They kept the Phoenician names of the letters, suitably |
| 272 |
% `greekified', so \textit{aleph} became the familar \textit{alpha} and |
| 273 |
% \textit{beth} became \textit{beta}. At this |
| 274 |
% point the names of the letters had no meaning. Their were several variants |
| 275 |
% of the Greek character glyphs until they were finally fixed in Athens in |
| 276 |
% 403~\BC. |
| 277 |
% The Greeks did not develop a lower-case |
| 278 |
% script until about 600--700~\AD. |
| 279 |
% |
| 280 |
% The Etruscans based their alphabet on the Greek one, and again modified it. |
| 281 |
% However, the Etruscans wrote right to left, so their borrowed characters are |
| 282 |
% mirror images of the original Greek ones. Like the Phoenicians, the Etruscan |
| 283 |
% script consisted of only one case; they died out before ever needing a |
| 284 |
% lower-case script. The Etruscan script was used up until the first century |
| 285 |
% \AD, even though the Etruscans themselves had dissapeared by that time. |
| 286 |
% |
| 287 |
% |
| 288 |
% In turn, the Romans based their alphabet on the Etruscan one, but as they |
| 289 |
% wrote left to right, the characters were again mirrored (although the early |
| 290 |
% Roman inscriptions are boustrophedron). |
| 291 |
% |
| 292 |
% As the English alphabet is descended from the Roman alphabet |
| 293 |
% it has a pedigree of some three and a half thousand years. |
| 294 |
% |
| 295 |
% \section{The \Lpack{greek4cbc} package} \label{sec:usc} |
| 296 |
% |
| 297 |
% In the 6th century~\BC{} the Greek alphabet was settling down, but |
| 298 |
% there were several different glyphs used for the characters depending |
| 299 |
% both on the date and on the geographical area. The alphabet retained |
| 300 |
% the Phoenician F form of \textit{vau}, which the Greeks called |
| 301 |
% \textit{digamma}, and also used the Phoenician \textit{qoph} (from |
| 302 |
% which we get our Q). It had added the $\Psi$, $\Phi$, and $\Omega$ |
| 303 |
% characters. Thus, the abecedary consisted of 26 characters compared |
| 304 |
% with the 24 characters for modern Greek. |
| 305 |
% |
| 306 |
% In 403~\BC{} the Athenian Greeks came to an agreement on a standard |
| 307 |
% abecedary and set of glyphs. The font provided by this package comes |
| 308 |
% from an inscription on a stele in Athens dated 394~\BC, so I have |
| 309 |
% assumed that it is reasonable rendition of the 403 `standard'. I have |
| 310 |
% taken the glyphs from Lewis Day's compendium~\cite{DAY95}. The abecedary |
| 311 |
% is the modern one of 24 characters. |
| 312 |
% |
| 313 |
% Table~\ref{tab} lists, in the \thisfont{} alphabetical order, the |
| 314 |
% transliterated value of the characters and the |
| 315 |
% modern and Phoenician names (in parentheses) of the character. |
| 316 |
% |
| 317 |
% \begin{table} |
| 318 |
% \centering |
| 319 |
% \caption{The \thisfont{} script and alphabet}\label{tab} |
| 320 |
% \begin{tabular}{clcll} \hline |
| 321 |
% Value & Name & ASCII & Command & Command \\ \hline |
| 322 |
% $A$ & |
| 323 |
% alpha (aleph) & |
| 324 |
% a & |\Aalpha| & |
| 325 |
% |\ARalpha| |
| 326 |
% \\ |
| 327 |
% $B$ & |
| 328 |
% beta (beth) & |
| 329 |
% b & |\Abeta| & |
| 330 |
% |\ARbeta| |
| 331 |
% \\ |
| 332 |
% $\Gamma$ & |
| 333 |
% gamma (gimel) & |
| 334 |
% g & |\Agamma| & |
| 335 |
% |\ARgamma| |
| 336 |
% \\ |
| 337 |
% $\Delta$ & |
| 338 |
% delta (daleth) & |
| 339 |
% d & |\Adelta| & |
| 340 |
% |\ARdelta| |
| 341 |
% \\ |
| 342 |
% $E$ & |
| 343 |
% epsilon (he) & |
| 344 |
% e & |\Aepsilon| & |
| 345 |
% |\ARepsilon| |
| 346 |
% \\ |
| 347 |
% $Z$ & |
| 348 |
% zeta (zayin) & |
| 349 |
% z & |\Azeta| & |
| 350 |
% |\ARzeta| |
| 351 |
% \\ |
| 352 |
% $H$ & |
| 353 |
% eta (heth) & |
| 354 |
% h & |\Aeta| & |
| 355 |
% |\AReta| |
| 356 |
% \\ |
| 357 |
% $\Theta$ & |
| 358 |
% theta (teth) & |
| 359 |
% T & |\Atheta| & |
| 360 |
% |\ARtheta| |
| 361 |
% \\ |
| 362 |
% $I$ & |
| 363 |
% iota (yod) & |
| 364 |
% i & |\Aiota| & |
| 365 |
% |\ARiota| |
| 366 |
% \\ |
| 367 |
% $K$ & |
| 368 |
% kappa (kaph) & |
| 369 |
% k & |\Akappa| & |
| 370 |
% |\ARkappa| |
| 371 |
% \\ |
| 372 |
% $\Lambda$ & |
| 373 |
% lambda (lamed) & |
| 374 |
% l & |\Alambda| & |
| 375 |
% |\ARlambda| |
| 376 |
% \\ |
| 377 |
% $M$ & |
| 378 |
% mu (mem) & |
| 379 |
% m & |\Amu| & |
| 380 |
% |\ARmu| |
| 381 |
% \\ |
| 382 |
% $N$ & |
| 383 |
% nu (nun) & |
| 384 |
% n & |\Anu| & |
| 385 |
% |\ARnu| |
| 386 |
% \\ |
| 387 |
% $\Xi$ & |
| 388 |
% xi (samekh) & |
| 389 |
% x & |\Axi| & |
| 390 |
% |\ARxi| |
| 391 |
% \\ |
| 392 |
% $O$ & |
| 393 |
% omicron (ayin) & |
| 394 |
% o & |\Aomicron| & |
| 395 |
% |\ARomicron| |
| 396 |
% \\ |
| 397 |
% $\Pi$ & |
| 398 |
% pi (pe) & |
| 399 |
% p & |\Api| & |
| 400 |
% |\ARpi| |
| 401 |
% \\ |
| 402 |
% $R$ & |
| 403 |
% rho (resh) & |
| 404 |
% r & |\Arho| & |
| 405 |
% |\ARrho| |
| 406 |
% \\ |
| 407 |
% $\Sigma$ & |
| 408 |
% sigma (shin) & |
| 409 |
% s & |\Asigma| & |
| 410 |
% |\ARsigma| |
| 411 |
% \\ |
| 412 |
% $T$ & |
| 413 |
% tau (tav) & |
| 414 |
% t & |\Atau| & |
| 415 |
% |\ARtau| |
| 416 |
% \\ |
| 417 |
% $\Upsilon$ & |
| 418 |
% upsilon & |
| 419 |
% y & |\Aupsilon| & |
| 420 |
% |\ARupsilon| |
| 421 |
% \\ |
| 422 |
% $X$ & |
| 423 |
% chi & |
| 424 |
% X & |\Achi| & |
| 425 |
% |\ARchi| |
| 426 |
% \\ |
| 427 |
% $\Phi$ & |
| 428 |
% phi & |
| 429 |
% f & |\Aphi| & |
| 430 |
% |\ARphi| |
| 431 |
% \\ |
| 432 |
% $\Psi$ & |
| 433 |
% psi & |
| 434 |
% P & |\Apsi| & |
| 435 |
% |\ARpsi| |
| 436 |
% \\ |
| 437 |
% $\Omega$ & |
| 438 |
% omega & |
| 439 |
% O & |\Aomega| & |
| 440 |
% |\ARomega| |
| 441 |
% \\ |
| 442 |
% \hline |
| 443 |
% \end{tabular} |
| 444 |
% \end{table} |
| 445 |
% |
| 446 |
% \DescribeMacro{\givbcfamily} |
| 447 |
% This command selects the 4th century~\BC{} Greek font family. |
| 448 |
% The family name is |givbc|, standing for Greek IV century BC. |
| 449 |
% |
| 450 |
% \DescribeMacro{\textgivbc} |
| 451 |
% The command |\textgivbc{|\meta{text}|}| typesets \meta{text} in the |
| 452 |
% Greek font. |
| 453 |
% |
| 454 |
% I have provided two ways of accessing the \thisfont{} glyphs: |
| 455 |
% (a) by ASCII characters, and |
| 456 |
% (b) by commands whose names are based on the (modern) name of the |
| 457 |
% character. |
| 458 |
% These are shown in Table~\ref{tab}. |
| 459 |
% The glyphs illustrated by Day are not uniform in height but I have |
| 460 |
% provided both `smooth' and `rough' versions. The smooth versions |
| 461 |
% are accessed by either the ASCII characters or by the commands |\Axxx|, |
| 462 |
% while the rough versions are only accessible by the |\ARxxx| commands. |
| 463 |
% |
| 464 |
% \DescribeMacro{\translitgivbc} |
| 465 |
% |\translitgivbc{|\meta{commands}|}| will typeset \meta{commands} |
| 466 |
% (those in the last two columns of Table~\ref{tab}) as modern glyphs instead |
| 467 |
% of the archaic ones. |
| 468 |
% |
| 469 |
% \DescribeMacro{\translitgivbcfont} |
| 470 |
% The transliterated text is set in the |\translitgivbcfont| font, |
| 471 |
% which is initialised to a math roman form (i.e., |\mathrm|). The |
| 472 |
% transliteration need not be in math mode. |
| 473 |
% |
| 474 |
% \StopEventually{ |
| 475 |
% \bibliographystyle{alpha} |
| 476 |
% \begin{thebibliography}{GMS94} |
| 477 |
% |
| 478 |
% \bibitem[Day95]{DAY95} |
| 479 |
% Lewis F.~Day. |
| 480 |
% \newblock \emph{Alphabets Old \& New}. |
| 481 |
% \newblock Senate, 1995. |
| 482 |
% \newblock (Third edition originally published by B.~T.~Bashford, 1910) |
| 483 |
% |
| 484 |
% \bibitem[Dru95]{DRUCKER95} |
| 485 |
% Johanna Drucker. |
| 486 |
% \newblock \emph{The Alphabetic Labyrinth}. |
| 487 |
% \newblock Thames and Hudson, 1995. |
| 488 |
% |
| 489 |
% \bibitem[Fir93]{FIRMAGE93} |
| 490 |
% Richard A.~Firmage. |
| 491 |
% \newblock \emph{The Alphabet Abecedarium}. |
| 492 |
% \newblock David R.~Goodine, 1993. |
| 493 |
% |
| 494 |
% \bibitem[MG04]{MITTELBACH04} |
| 495 |
% Frank Mittelbach and Michel Goossens. |
| 496 |
% \newblock \emph{The LaTeX Companion}. |
| 497 |
% \newblock Addison-Wesley Publishing Company, second edition, 2004. |
| 498 |
% |
| 499 |
% \end{thebibliography} |
| 500 |
% \PrintIndex |
| 501 |
% } |
| 502 |
% |
| 503 |
% |
| 504 |
% \section{The Metafont code} \label{sec:mf} |
| 505 |
% |
| 506 |
% \subsection{The parameter file} |
| 507 |
% |
| 508 |
% We deal with the parameter file first, and start by announcing |
| 509 |
% what it is for. |
| 510 |
% \begin{macrocode} |
| 511 |
%<*up> |
| 512 |
%%% GIVBC10.MF Computer Greek 4 century BC font 10 point design size. |
| 513 |
|
| 514 |
% \end{macrocode} |
| 515 |
% Parameters from CMR10.MF are used as much as possible, but we |
| 516 |
% only need a few of them. We also |
| 517 |
% make sure that \Lpack{cmbase} is loaded as well as plain Metafont. |
| 518 |
% \DescribeMfpVariable{font_identifier} |
| 519 |
% \DescribeMfpVariable{font_size} |
| 520 |
% \begin{macrocode} |
| 521 |
if unknown cmbase: input cmbase fi |
| 522 |
|
| 523 |
font_identifier:="GIVBC"; font_size 10pt#; |
| 524 |
|
| 525 |
% \end{macrocode} |
| 526 |
% |
| 527 |
% |
| 528 |
% \DescribeMfpVariable{u#} |
| 529 |
% \DescribeMfpVariable{letter_fit#} |
| 530 |
% The majority of the parameters and values are the same for both |
| 531 |
% fonts. |
| 532 |
% \begin{macrocode} |
| 533 |
u#:=20/36pt#; % unit width |
| 534 |
letter_fit#:=0pt#; % extra space added to all sidebars |
| 535 |
|
| 536 |
% \end{macrocode} |
| 537 |
% |
| 538 |
% \DescribeMfpVariable{body_height#} |
| 539 |
% \DescribeMfpVariable{asc_height#} |
| 540 |
% \DescribeMfpVariable{cap_height#} |
| 541 |
% \DescribeMfpVariable{fig_height#} |
| 542 |
% \DescribeMfpVariable{x_height#} |
| 543 |
% \DescribeMfpVariable{desc_depth#} |
| 544 |
% \DescribeMfpVariable{half_height#} |
| 545 |
% \begin{macrocode} |
| 546 |
body_height#:=270/36pt#; % height of tallest characters |
| 547 |
asc_height#:=250/36pt#; % height of lowercase ascenders |
| 548 |
cap_height#:=246/36pt#; % height of caps |
| 549 |
fig_height#:=232/36pt#; % height of numerals |
| 550 |
x_height#:=155/36pt#; % height of lowercase without ascenders |
| 551 |
desc_depth#:=70/36pt#; % depth of lowercase descenders |
| 552 |
half_height#:=1/2cap_height#; % half the height of caps |
| 553 |
|
| 554 |
% \end{macrocode} |
| 555 |
% |
| 556 |
% \DescribeMfpVariable{side#} |
| 557 |
% \DescribeMfpVariable{thickfudge} |
| 558 |
% \DescribeMfpVariable{thick#} |
| 559 |
% I have used a square to help in defining the letter's geometry. |
| 560 |
% All lines have the same thickness. |
| 561 |
% \begin{macrocode} |
| 562 |
side#:=cap_height#; % Height and width of the square |
| 563 |
thickfudge:=1/9; |
| 564 |
thick#:=thickfudge*side#; % thickness of all lines in the font |
| 565 |
|
| 566 |
% \end{macrocode} |
| 567 |
% |
| 568 |
% \DescribeMfpVariable{rule_thickness#} |
| 569 |
% \begin{macrocode} |
| 570 |
rule_thickness#:=.4pt#; % thickness of lines |
| 571 |
|
| 572 |
% \end{macrocode} |
| 573 |
% |
| 574 |
% \DescribeMfpVariable{cap_stem#} |
| 575 |
% \begin{macrocode} |
| 576 |
cap_stem#:=thick#; % thickness of majuscule stems |
| 577 |
|
| 578 |
% \end{macrocode} |
| 579 |
% |
| 580 |
% \DescribeMfpVariable{o#} |
| 581 |
% \DescribeMfpVariable{apex_o#} |
| 582 |
% \DescribeMfpVariable{apex_corr#} |
| 583 |
% These deal with fine tuning of some aspects of the glyphs. |
| 584 |
% \begin{macrocode} |
| 585 |
o#:=8/36pt#; % amount of overshoot for curves |
| 586 |
apex_o#:=thin#; % amount of overshoot for diagonal junctions |
| 587 |
apex_corr#=0pt#; % fine tuning of overshoot |
| 588 |
|
| 589 |
% \end{macrocode} |
| 590 |
% |
| 591 |
% \DescribeMfpVariable{slant} |
| 592 |
% |slant| is the amount the font slopes to the right. |
| 593 |
% \begin{macrocode} |
| 594 |
slant:=0; % tilt ratio $(\Delta x/\Delta y)$ |
| 595 |
|
| 596 |
% \end{macrocode} |
| 597 |
% |
| 598 |
% \DescribeMfpVariable{serifs} |
| 599 |
% \DescribeMfpVariable{monospace} |
| 600 |
% We are generating a sans, variable-width font. |
| 601 |
% \begin{macrocode} |
| 602 |
serifs:=false; % should serifs and bulbs be attached? |
| 603 |
monospace:=false; % should all characters have the same width? |
| 604 |
|
| 605 |
% \end{macrocode} |
| 606 |
% |
| 607 |
% \DescribeMfpVariable{dot_size#} |
| 608 |
% \DescribeMfpVariable{square_dots} |
| 609 |
% These parameters are required for the punctation glyphs. |
| 610 |
% \begin{macrocode} |
| 611 |
dot_size#:=38/36pt#; % size of dots |
| 612 |
square_dots:=false; % should dots be square? |
| 613 |
|
| 614 |
% \end{macrocode} |
| 615 |
% |
| 616 |
% \DescribeMfpVariable{whole_font} |
| 617 |
% We are not generating a complete font. |
| 618 |
% \begin{macrocode} |
| 619 |
boolean whole_font; % try generating a complete font? |
| 620 |
whole_font:=false; |
| 621 |
|
| 622 |
% \end{macrocode} |
| 623 |
% |
| 624 |
% The driver file would normally be called here. |
| 625 |
% |
| 626 |
% |
| 627 |
% \subsection{The driver file} |
| 628 |
% |
| 629 |
% If there was a driver file, this would be it. To a large extent the |
| 630 |
% driver code is based on my \Lpack{cpctitle.mf} |
| 631 |
% for the Pacioli font. |
| 632 |
% |
| 633 |
% \begin{macrocode} |
| 634 |
|
| 635 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 636 |
% end of parameters |
| 637 |
% start of driver code |
| 638 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 639 |
|
| 640 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 641 |
%% MACRO SECTION %%%%%%%%%%%%%%%%%%%%%%%%%% |
| 642 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 643 |
|
| 644 |
% \end{macrocode} |
| 645 |
% |
| 646 |
% |
| 647 |
% \begin{mfpmacro}{makebox} |
| 648 |
% This is a new version of the \Lpack{cmbase.mf} |makebox| macro. |
| 649 |
% Essentially, as we are only generating an uppercase font, we don't |
| 650 |
% need all the horizontals for the lowercase characters. |
| 651 |
% |
| 652 |
% \begin{macrocode} |
| 653 |
% A new version of cmbase.mf makebox macro |
| 654 |
def makebox(text rule) = |
| 655 |
for y=0,half_height,cap_height,body_height,x_height,-desc_depth,-body_depth: |
| 656 |
rule((l,y)t_,(r,y)t_); endfor % horizontals |
| 657 |
for x=l,r: rule((x,-body_depth)t_,(x,body_height)t_); endfor % verticals |
| 658 |
for x=u*(1+floor(1/u)) step u until r-1: |
| 659 |
rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals |
| 660 |
if charic<>0: |
| 661 |
rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction |
| 662 |
enddef; |
| 663 |
|
| 664 |
% \end{macrocode} |
| 665 |
% \end{mfpmacro} |
| 666 |
% |
| 667 |
% \begin{mfpmacro}{proofpcbb} |
| 668 |
% The macro |proofpcbb(S, xoff, yoff)| draws crosses at the corners of |
| 669 |
% the square, |
| 670 |
% and at the bottom and top midpoints, where the point |zS| is at |
| 671 |
% position |(xoff,yoff)| in the square. |
| 672 |
% \begin{macrocode} |
| 673 |
|
| 674 |
% A macro to delineate the bounding square in proof mode. |
| 675 |
% Point z$ is at (xoff,yoff) in the bounding square. |
| 676 |
def proofpcbb(suffix $)(expr xoff, yoff) = |
| 677 |
if proofing > 0: |
| 678 |
x$bl = x$ - xoff; y$bl = y$ - yoff; % Bottom Left Hand Corner |
| 679 |
z$br = (x$bl+cap_height, y$bl); % BRHC |
| 680 |
z$tr = (x$bl+cap_height, y$bl+cap_height); % TRHC |
| 681 |
z$tl = (x$bl, y$bl+cap_height); % TLHC |
| 682 |
z$bc = 1/2[z$bl,z$br]; z$tc = 1/2[z$tl,z$tr]; % horizontal mid points |
| 683 |
pair hc, vc; |
| 684 |
hc = (2u,0); vc = (0,2u); |
| 685 |
pickup pensquare scaled 2; |
| 686 |
for s = z$bl, z$br, z$tr, z$tl, z$bc, z$tc: |
| 687 |
draw s-hc--s+hc; |
| 688 |
draw s-vc--s+vc; |
| 689 |
endfor |
| 690 |
fi |
| 691 |
enddef; |
| 692 |
|
| 693 |
% \end{macrocode} |
| 694 |
% \end{mfpmacro} |
| 695 |
% |
| 696 |
% \begin{mfpmacro}{cm_font_setup} |
| 697 |
% The basic font set up. |
| 698 |
% \begin{macrocode} |
| 699 |
|
| 700 |
let cm_font_setup=font_setup; % Knuth's original font_setup |
| 701 |
|
| 702 |
|
| 703 |
% \end{macrocode} |
| 704 |
% \end{mfpmacro} |
| 705 |
% |
| 706 |
% \begin{mfpmacro}{greek_font_setup} |
| 707 |
% This macro contains additional set up for the Greek font. |
| 708 |
% \begin{macrocode} |
| 709 |
|
| 710 |
def greek_font_setup= % contains special stuff for archaic Greek font |
| 711 |
define_pixels(u); |
| 712 |
define_pixels(side,thick,half_height); |
| 713 |
let adjust_fit=normal_adjust_fit; |
| 714 |
define_whole_pixels(letter_fit); |
| 715 |
define_whole_vertical_pixels(body_height,asc_height, |
| 716 |
cap_height,x_height,desc_depth); |
| 717 |
body_depth:=desc_depth+body_height-asc_height; |
| 718 |
define_pixels(dot_size); |
| 719 |
shrink_fit:=1+hround(2letter_fit#*hppp)-2letter_fit; |
| 720 |
if not string mode: |
| 721 |
if mode<=smoke: |
| 722 |
shrink_fit:=0; |
| 723 |
fi |
| 724 |
fi |
| 725 |
enddef; |
| 726 |
|
| 727 |
% \end{macrocode} |
| 728 |
% \end{mfpmacro} |
| 729 |
% |
| 730 |
% |
| 731 |
% \begin{macrocode} |
| 732 |
|
| 733 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 734 |
%% END OF MACROS %%%%%%%%%%%%%%%%%%%%%%%%%% |
| 735 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 736 |
|
| 737 |
% \end{macrocode} |
| 738 |
% |
| 739 |
% Set the mode and font setup. |
| 740 |
% \begin{macrocode} |
| 741 |
|
| 742 |
font_coding_scheme:="ASCII caps and miniscules"; |
| 743 |
|
| 744 |
mode_setup; |
| 745 |
|
| 746 |
greek_font_setup; |
| 747 |
|
| 748 |
% \end{macrocode} |
| 749 |
% |
| 750 |
% \DescribeMfpVariable{pcshiftx#} |
| 751 |
% \begin{macrocode} |
| 752 |
numeric pcshiftx#; % x value of LHS of box wrt origin of char box |
| 753 |
define_pixels(pcshiftx); |
| 754 |
|
| 755 |
% \end{macrocode} |
| 756 |
% |
| 757 |
% Do the spacings. |
| 758 |
% |
| 759 |
% \DescribeMfpVariable{font_slant} |
| 760 |
% \DescribeMfpVariable{font_x_height} |
| 761 |
% \DescribeMfpVariable{font_normal_space} |
| 762 |
% \DescribeMfpVariable{font_quad} |
| 763 |
% \DescribeMfpVariable{font_extra_space} |
| 764 |
% \begin{macrocode} |
| 765 |
|
| 766 |
font_slant slant; |
| 767 |
font_x_height x_height#; |
| 768 |
if monospace: font_normal_space 9u#; % no stretching or shrinking |
| 769 |
font_quad 18u#; |
| 770 |
font_extra_space 9u#; |
| 771 |
else: font_normal_space 6u#+2letter_fit#; |
| 772 |
font_normal_stretch 3u#; font_normal_shrink 2u#; |
| 773 |
font_quad 18u#+4letter_fit#; |
| 774 |
font_extra_space 2u#; |
| 775 |
fi |
| 776 |
|
| 777 |
% \end{macrocode} |
| 778 |
% |
| 779 |
% \subsection{The glyph code} |
| 780 |
% |
| 781 |
% The following code generates the glyphs for the \thisfont{} font. |
| 782 |
% |
| 783 |
% |
| 784 |
% \begin{macrocode} |
| 785 |
|
| 786 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 787 |
% end of driver code |
| 788 |
% start of glyph code |
| 789 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 790 |
|
| 791 |
% \end{macrocode} |
| 792 |
% |
| 793 |
% |
| 794 |
% \begin{mfpmacro}{a} |
| 795 |
% The letter \textit{alpha}. The inside of the legs are at the edges |
| 796 |
% of the square. The bar is at 1/3 the height. |
| 797 |
% \begin{macrocode} |
| 798 |
|
| 799 |
cmchar "Greek 394BC letter alpha (a)"; |
| 800 |
beginchar("a", 2u#+side#+2thick#, cap_height#, 0); |
| 801 |
adjust_fit(0,0); |
| 802 |
pcshiftx := u+thick; |
| 803 |
y100 = h/2; x100 = pcshiftx+y100; % center point |
| 804 |
numeric alpha[], hor, vert, hypot, theta; |
| 805 |
pair greek[]; |
| 806 |
hor := 0.5h; vert := h-thick; |
| 807 |
greek1 = (hor, vert); |
| 808 |
theta = 270 + angle(greek1); |
| 809 |
% for left leg |
| 810 |
penpos1(thick,theta); penpos2(thick,theta); |
| 811 |
% and for the right leg |
| 812 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 813 |
rt x1r=pcshiftx; lft x4l=x1r+side; |
| 814 |
bot y1r=bot y4l=0; |
| 815 |
top y3r= top y2l=h; |
| 816 |
x3r=x2l = 0.5[x1r,x4l]; |
| 817 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 818 |
% draw the legs |
| 819 |
filldraw z1l--z2l--z4r--z4l--z0--z1r--cycle; |
| 820 |
% now for the bar |
| 821 |
y5l=y6l=hround(1/3h); |
| 822 |
y5r-y5l=y6r-y6l=thick; |
| 823 |
penpos5(whatever, angle(z2-z1)); penpos6(whatever, angle(z3-z4)); |
| 824 |
z5=whatever[z1,z2]; z6=whatever[z3,z4]; |
| 825 |
penstroke z5e--z6e; % bar line |
| 826 |
proofpcbb(100, y100, y100); |
| 827 |
penlabels(0,1,2,3,4,5,6,100); endchar; |
| 828 |
|
| 829 |
% \end{macrocode} |
| 830 |
% \end{mfpmacro} |
| 831 |
% |
| 832 |
% \begin{mfpmacro}{b} |
| 833 |
% The letter \textit{beta}. The actual height is 6/5 the nominal height, |
| 834 |
% with the width being 2/3 the nominal height. This rendition scales it so |
| 835 |
% that the actual height is the same as the nominal height (i.e., setting |
| 836 |
% the declared width to 5/9 nominal height). |
| 837 |
% |
| 838 |
% \begin{macrocode} |
| 839 |
|
| 840 |
cmchar "Greek 394BC letter beta (b)"; |
| 841 |
beginchar("b",4u#+5/9side#, cap_height#, 0); |
| 842 |
adjust_fit(0,0); |
| 843 |
pcshiftx := 2u; |
| 844 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 845 |
% the stem |
| 846 |
penpos1(thick,0); penpos2(thick,0); |
| 847 |
y2l=0; y1l=h; x1l=x2l=pcshiftx; |
| 848 |
numeric alpha, long, short, hypot; |
| 849 |
long=(w-2pcshiftx); short=h/4; hypot=short++long; |
| 850 |
alpha := hypot/long; |
| 851 |
% prepare for the bottom bowl |
| 852 |
penpos3(alpha*thick,90); penpos4(alpha*thick,90); |
| 853 |
penpos5(alpha*thick,90); penpos6(alpha*thick,90); |
| 854 |
z3l=z2l; |
| 855 |
x4l=w-pcshiftx; y4l=0.25[y2l,y1l]; |
| 856 |
z5r=z4l; |
| 857 |
x6l=x2r; y6l=0.5[y2l,y1l]; |
| 858 |
% prepare for the top bowl |
| 859 |
penpos7(alpha*thick,90); penpos8(alpha*thick,90); |
| 860 |
penpos9(alpha*thick,90); penpos10(alpha*thick,90); |
| 861 |
z7r=z6l; |
| 862 |
x8l=x4l; y8l=0.75[y2l,y1l]; |
| 863 |
z9r=z8l; |
| 864 |
z10r=z1l; |
| 865 |
% now for the notches |
| 866 |
z11=whatever[z2r,z1r]=whatever[z3r,z4r]; % bottom bowl and stem |
| 867 |
z12=whatever[z3r,z4r]=whatever[z6l,z5l]; % bottom bowl inner |
| 868 |
z13=whatever[z5r,z6r]=whatever[z7l,z8l]; % between the bowls |
| 869 |
z14=whatever[z7r,z8r]=whatever[z9l,z10l]; % top bowl inner |
| 870 |
z15=whatever[z2r,z1r]=whatever[z9l,z10l]; % top bowl and stem |
| 871 |
% draw the outer boundary |
| 872 |
filldraw z1l--z2l--z4l--z13--z8l--cycle; |
| 873 |
% remove interior of bottom bowl |
| 874 |
unfilldraw z6l--z12--z11--cycle; |
| 875 |
% and the top bowl |
| 876 |
unfilldraw z7r--z15--z14--cycle; |
| 877 |
proofpcbb(100, y100, y100); |
| 878 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,100); |
| 879 |
endchar; |
| 880 |
|
| 881 |
% \end{macrocode} |
| 882 |
% \end{mfpmacro} |
| 883 |
% |
| 884 |
% \begin{mfpmacro}{g} |
| 885 |
% The letter \textit{gamma}. The bottom of the top arm is 2/3 side long. |
| 886 |
% \begin{macrocode} |
| 887 |
|
| 888 |
cmchar "Greek 394BC letter gamma (g)"; |
| 889 |
beginchar("g",2u#+thick#+2/3side#, cap_height#, 0); |
| 890 |
adjust_fit(0, 0); |
| 891 |
pcshiftx := u; |
| 892 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 893 |
% the stem |
| 894 |
penpos1(thick,0); penpos2(thick,0); |
| 895 |
x1l=x2l=pcshiftx; top y1l=h; bot y2l=0; |
| 896 |
filldraw stroke z1e--z2e; |
| 897 |
% the arm |
| 898 |
penpos3(thick,90); penpos4(thick,90); |
| 899 |
y3r=y4r=y1l; x3l=x1l; x4l=w-pcshiftx; |
| 900 |
filldraw stroke z3e--z4e; |
| 901 |
proofpcbb(100, y100, y100); |
| 902 |
penlabels(1,2,3,4,100); endchar; |
| 903 |
|
| 904 |
% \end{macrocode} |
| 905 |
% \end{mfpmacro} |
| 906 |
% |
| 907 |
% \begin{mfpmacro}{d} |
| 908 |
% The letter \textit{delta}. Same as \textit{alpha} except that the `bar' |
| 909 |
% is at the base. |
| 910 |
% \begin{macrocode} |
| 911 |
|
| 912 |
cmchar "Greek 394BC letter delat (d)"; |
| 913 |
beginchar("d", 2u#+side#+2thick#, cap_height#, 0); |
| 914 |
adjust_fit(0,0); |
| 915 |
pcshiftx := u+thick; |
| 916 |
y100 = h/2; x100 = pcshiftx+y100; % center point |
| 917 |
numeric alpha, hor, vert, hypot, theta; |
| 918 |
pair greek[]; |
| 919 |
hor := 0.5h; vert := h-thick; |
| 920 |
greek1 = (hor, vert); |
| 921 |
theta = 270 + angle(greek1); |
| 922 |
% for left leg |
| 923 |
penpos1(thick,theta); penpos2(thick,theta); |
| 924 |
% and for the right leg |
| 925 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 926 |
rt x1r=pcshiftx; lft x4l=x1r+side; |
| 927 |
bot y1r=bot y4l=0; |
| 928 |
top y2l= top y3r=h; |
| 929 |
x3r=x2l = 0.5[x1r,x4l]; |
| 930 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 931 |
% now for the bar |
| 932 |
penpos5(thick,90); penpos6(thick,90); |
| 933 |
bot y5l=bot y6l=0; |
| 934 |
x5l=pcshiftx; x6l=w-pcshiftx; |
| 935 |
z7=whatever[z1l,z2l]=whatever[z5l,z6l]; |
| 936 |
z8=whatever[z3r,z4r]=whatever[z5l,z6l]; |
| 937 |
z9=whatever[z1r,z2r]=whatever[z5r,z6r]; |
| 938 |
z10=whatever[z3l,z4l]=whatever[z5r,z6r]; |
| 939 |
% draw the outer |
| 940 |
filldraw z7--z2l--z8--cycle; |
| 941 |
% subtract the inner |
| 942 |
unfilldraw z9--z0--z10--cycle; |
| 943 |
proofpcbb(100, y100, y100); |
| 944 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,100); endchar; |
| 945 |
|
| 946 |
% \end{macrocode} |
| 947 |
% \end{mfpmacro} |
| 948 |
% |
| 949 |
% \begin{mfpmacro}{e} |
| 950 |
% The letter \textit{epsilon}. From LHS of square, top arm is 2/3 + thick, |
| 951 |
% middle is 2/3, and bottom is 2/3 + 2thick. |
| 952 |
% \begin{macrocode} |
| 953 |
|
| 954 |
cmchar "Greek 394BC letter epsilon (e)"; |
| 955 |
beginchar("e", 2u#+2/3side#+2thick#, cap_height#,0); |
| 956 |
adjust_fit(0,0); |
| 957 |
pcshiftx := u; |
| 958 |
y100=h/2; x100=pcshiftx+y100; % center point |
| 959 |
penpos1(thick,0); penpos2(thick,0); |
| 960 |
lft x1l=lft x2l=pcshiftx; top y1=h; bot y2=0; |
| 961 |
filldraw stroke z1e--z2e; % stem |
| 962 |
% middle arm |
| 963 |
penpos5(thick,90); penpos6(thick,90); |
| 964 |
x5=x1; y5=y6=h/2; rt x6=pcshiftx + 2/3side; |
| 965 |
filldraw stroke z5e--z6e; |
| 966 |
% top arm |
| 967 |
penpos3(thick,90); penpos4(thick,90); |
| 968 |
x3=x1; top y3r=top y4r=h; x4=x6+thick; |
| 969 |
filldraw stroke z3e--z4e; |
| 970 |
% bottom arm |
| 971 |
penpos7(thick,90); penpos8(thick,90); |
| 972 |
x7=x1; bot y7l=bot y8l=0; x8=x6+2thick; |
| 973 |
filldraw stroke z7e--z8e; |
| 974 |
proofpcbb(100, y100, y100); |
| 975 |
penlabels(1,2,3,4,5,6,7,8,100); endchar; % end of "E" |
| 976 |
|
| 977 |
% \end{macrocode} |
| 978 |
% \end{mfpmacro} |
| 979 |
% |
| 980 |
% |
| 981 |
% \begin{mfpmacro}{z} |
| 982 |
% The letter \textit{zeta}. This fills the square, except that the top |
| 983 |
% arm is only 4/5 of the side. |
| 984 |
% \begin{macrocode} |
| 985 |
|
| 986 |
cmchar "Greek 394BC letter zeta (z)"; |
| 987 |
beginchar("z", 2u#+side#, cap_height#,0); |
| 988 |
adjust_fit(0, 0); |
| 989 |
pcshiftx := u; |
| 990 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 991 |
numeric alpha, hor, vert, hypot; |
| 992 |
vert=h; hor=4/5side; hypot=vert++hor; |
| 993 |
alpha=hypot/vert; |
| 994 |
penpos1(thick,90); penpos2(thick,90); penpos3(alpha*thick, 0); |
| 995 |
penpos4(alpha*thick, 0); |
| 996 |
top y1r=h; lft x1=pcshiftx; |
| 997 |
y2=y1; rt x2=x3; |
| 998 |
rt x3r=x1+4/5side;; top y3=h; x4l=x1; bot y4=0; |
| 999 |
filldraw stroke z1e--z2e; % top bar |
| 1000 |
filldraw stroke z3e--z4e; % diagonal |
| 1001 |
% and for the bottom bar |
| 1002 |
penpos8(thick,90); penpos9(thick,90); |
| 1003 |
x8=x4; bot y8l=0; |
| 1004 |
x9=pcshiftx+side; y9=y8; |
| 1005 |
filldraw stroke z8e--z9e; |
| 1006 |
proofpcbb(100, y100, y100); |
| 1007 |
penlabels(1,2,3,4,5,6,7,8,9,100); endchar; |
| 1008 |
|
| 1009 |
% \end{macrocode} |
| 1010 |
% \end{mfpmacro} |
| 1011 |
% |
| 1012 |
% |
| 1013 |
% \begin{mfpmacro}{h} |
| 1014 |
% The letter \textit{eta}. The crossbar is centered. |
| 1015 |
% \begin{macrocode} |
| 1016 |
|
| 1017 |
cmchar "Greek 394BC letter eta (h)"; |
| 1018 |
beginchar("h", 4u#+side#, cap_height#,0); |
| 1019 |
adjust_fit(0,0); |
| 1020 |
pcshiftx := 2u; |
| 1021 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1022 |
% left stem |
| 1023 |
penpos1(thick,0); penpos2(thick,0); |
| 1024 |
lft x1l=lft x2l=pcshiftx; bot y1=0; top y2=h; |
| 1025 |
filldraw stroke z1e--z2e; |
| 1026 |
% right stem |
| 1027 |
penpos3(thick,0); penpos4(thick,0); |
| 1028 |
rt x3r= rt x4r= x1l+side; bot y3=0; top y4=h; |
| 1029 |
filldraw stroke z3e--z4e; |
| 1030 |
% crossbar |
| 1031 |
penpos5(thick,90); penpos6(thick,90); |
| 1032 |
x5=x1; x6=x3; y5=y6=h/2; |
| 1033 |
filldraw stroke z5e--z6e; |
| 1034 |
proofpcbb(100, y100, y100); |
| 1035 |
labels(1,2,3,4,5,6,100); endchar; |
| 1036 |
|
| 1037 |
% \end{macrocode} |
| 1038 |
% \end{mfpmacro} |
| 1039 |
% |
| 1040 |
% \begin{mfpmacro}{T} |
| 1041 |
% The letter \textit{theta}. Just a circle with a dot in the center. |
| 1042 |
% \begin{macrocode} |
| 1043 |
|
| 1044 |
cmchar "Greek 394BC letter theta (T)"; |
| 1045 |
beginchar("T", 2u#+side#, cap_height#, 0); |
| 1046 |
adjust_fit(0,0); |
| 1047 |
pcshiftx := u; |
| 1048 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1049 |
numeric alpha; alpha=0.75; |
| 1050 |
% outside of circle |
| 1051 |
x2r=pcshiftx; x4r=x2r+h; y2r=y4r=y100; |
| 1052 |
y1r=h; y3r=0; x1r=x3r=x100; |
| 1053 |
% inside of circle |
| 1054 |
x2l=x2r+thick; x4l=x4r-thick; y2l=y4l=y2r; |
| 1055 |
y1l=y1r-thick; y3l=y3r+thick; x1l=x3l=x1r; |
| 1056 |
filldraw z1r..z2r..z3r..z4r..cycle; |
| 1057 |
unfilldraw z1l..z2l..z3l..z4l..cycle; |
| 1058 |
% the dot |
| 1059 |
x12=x100-alpha*thick; x14=x100+alpha*thick; y12=y14=y100; |
| 1060 |
y11=y100+alpha*thick; y13=y100-alpha*thick; x11=x13=x100; |
| 1061 |
path p; |
| 1062 |
p= z11..z12..z13..z14..cycle; |
| 1063 |
filldraw p; filldraw p; |
| 1064 |
proofpcbb(100, y100, y100); |
| 1065 |
penlabels(1,2,3,4,100); endchar; |
| 1066 |
|
| 1067 |
% \end{macrocode} |
| 1068 |
% \end{mfpmacro} |
| 1069 |
% |
| 1070 |
% \begin{mfpmacro}{i} |
| 1071 |
% The letter \textit{iota}. |
| 1072 |
% \begin{macrocode} |
| 1073 |
|
| 1074 |
cmchar "Greek 394BC letter iota (i)"; |
| 1075 |
beginchar("i", 4u#+thick#, cap_height#,0); |
| 1076 |
adjust_fit(0,0); |
| 1077 |
pcshiftx := 2u; |
| 1078 |
y100 = h/2; x100 = pcshiftx + 0.5thick; % center point |
| 1079 |
penpos1(thick,0); penpos2(thick,0); |
| 1080 |
x1=x2=hround(w/2); top y1=h; bot y2=0; |
| 1081 |
filldraw stroke z1e--z2e; % vertical stem |
| 1082 |
proofpcbb(100, y100, y100); |
| 1083 |
penlabels(1, 2, 100); |
| 1084 |
endchar; |
| 1085 |
|
| 1086 |
% \end{macrocode} |
| 1087 |
% \end{mfpmacro} |
| 1088 |
% |
| 1089 |
% |
| 1090 |
% \begin{mfpmacro}{k} |
| 1091 |
% The letter \textit{kappa}. It fills 2/3 of the square. |
| 1092 |
% \begin{macrocode} |
| 1093 |
|
| 1094 |
cmchar "Greek 394BC letter kappa (k)"; |
| 1095 |
beginchar("k", 2u#+2/3side#, cap_height#,0); |
| 1096 |
adjust_fit(0,0); |
| 1097 |
pcshiftx := u; |
| 1098 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1099 |
% the stem |
| 1100 |
penpos1(thick,0); penpos2(thick,0); |
| 1101 |
lft x1l=lft x2l=pcshiftx; |
| 1102 |
top y1=h; bot y2=0; |
| 1103 |
filldraw stroke z1e--z2e; % left stem |
| 1104 |
numeric hor, vert, theta[]; |
| 1105 |
pair greek[]; |
| 1106 |
% upper arm |
| 1107 |
hor := 2/3side; vert := side/2; |
| 1108 |
greek1 = (hor,vert); |
| 1109 |
theta1=270+angle(greek1); |
| 1110 |
penpos3(thick,theta1); penpos4(thick,theta1); |
| 1111 |
x3l=x2r; y3l=side/2; |
| 1112 |
y4l=h; x4r=x1l+2/3side; |
| 1113 |
% lower arm |
| 1114 |
vert := -side/4; |
| 1115 |
greek2 = (hor,vert); |
| 1116 |
theta2=270+angle(greek2); |
| 1117 |
penpos5(thick,theta2); penpos6(thick,theta2); |
| 1118 |
z5r=z3l; |
| 1119 |
x6l=x4r; y6l=side/4; |
| 1120 |
% arm notch |
| 1121 |
z0=whatever[z3r,z4r]=whatever[z5l,z6l]; |
| 1122 |
% draw the arms |
| 1123 |
filldraw z3l--z4l--z4r--z0--z6l--z6r--cycle; |
| 1124 |
proofpcbb(100, y100, y100); |
| 1125 |
penlabels(0,1,2,3,4,5,6,100); endchar; |
| 1126 |
|
| 1127 |
% \end{macrocode} |
| 1128 |
% \end{mfpmacro} |
| 1129 |
% |
| 1130 |
% \begin{mfpmacro}{l} |
| 1131 |
% The letter \textit{lambda}. Identical to A without the crossbar. |
| 1132 |
% \begin{macrocode} |
| 1133 |
|
| 1134 |
cmchar "Greek 394BC letter lambda (l)"; |
| 1135 |
beginchar("l", 2u#+side#+2thick#, cap_height#,0); |
| 1136 |
adjust_fit(0,0); |
| 1137 |
pcshiftx := u+thick; |
| 1138 |
y100 = h/2; x100 = pcshiftx+y100; % center point |
| 1139 |
numeric alpha[], hor, vert, hypot, theta; |
| 1140 |
pair greek[]; |
| 1141 |
hor := 0.5h; vert := h-thick; |
| 1142 |
greek1 = (hor, vert); |
| 1143 |
theta = 270 + angle(greek1); |
| 1144 |
% for left leg |
| 1145 |
penpos1(thick,theta); penpos2(thick,theta); |
| 1146 |
% and for the right leg |
| 1147 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 1148 |
rt x1r=pcshiftx; lft x4l=x1r+side; |
| 1149 |
bot y1r=bot y4l=0; |
| 1150 |
top y3r= top y2l=h; |
| 1151 |
x3r=x2l = 0.5[x1r,x4l]; |
| 1152 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 1153 |
% draw the legs |
| 1154 |
filldraw z1l--z2l--z4r--z4l--z0--z1r--cycle; |
| 1155 |
proofpcbb(100, y100, y100); |
| 1156 |
penlabels(0,1,2,3,4,100); endchar; % end of "L" |
| 1157 |
|
| 1158 |
% \end{macrocode} |
| 1159 |
% \end{mfpmacro} |
| 1160 |
% |
| 1161 |
% \begin{mfpmacro}{m} |
| 1162 |
% The letter \textit{mu}. This has slightly sloping right and left legs. |
| 1163 |
% The inside base of the legs is the square side. |
| 1164 |
% \begin{macrocode} |
| 1165 |
|
| 1166 |
cmchar"Greek 394BC letter mu (m)"; |
| 1167 |
beginchar("m", 2u#+side#+2thick#, cap_height#, 0); |
| 1168 |
adjust_fit(0,0); |
| 1169 |
pcshiftx := u+thick; |
| 1170 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1171 |
numeric alpha, hor, vert, hypot, theta[]; |
| 1172 |
pair greek[]; |
| 1173 |
hor := 3thick; vert := side; |
| 1174 |
greek1 = (hor, vert); |
| 1175 |
theta1 = 270 + angle(greek1); |
| 1176 |
% left leg |
| 1177 |
penpos1(thick,theta1); penpos2(thick,theta1); |
| 1178 |
z1r=(pcshiftx,0); z2l=(pcshiftx+2thick,h); |
| 1179 |
% right leg |
| 1180 |
penpos3(thick,-theta1); penpos4(thick,-theta1); |
| 1181 |
z3l=(pcshiftx+side,0); z4r=(pcshiftx+side-2thick,h); |
| 1182 |
% stuff for the middle V, top of the notch at the square center |
| 1183 |
z0=z100; |
| 1184 |
theta2 = 270 + angle(z4r-z0); |
| 1185 |
% left of V |
| 1186 |
penpos5(thick,-theta2); penpos6(thick,-theta2); |
| 1187 |
z5r=z0; z6r=z2l; |
| 1188 |
% right of V |
| 1189 |
penpos7(thick,theta2); penpos8(thick,theta2); |
| 1190 |
z7l=z0; z8l=z4r; |
| 1191 |
% left leg notch |
| 1192 |
z9=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 1193 |
% under the V |
| 1194 |
z10=whatever[z5l,z6l]=whatever[z7r,z8r]; |
| 1195 |
% right leg notch |
| 1196 |
z11=whatever[z7r,z8r]=whatever[z3l,z4l]; |
| 1197 |
% draw it |
| 1198 |
filldraw z1l--z2l--z0--z4r--z3r--z3l--z11--z10--z9--z1r--cycle; |
| 1199 |
proofpcbb(100, y100, y100); |
| 1200 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,100); endchar; |
| 1201 |
|
| 1202 |
% \end{macrocode} |
| 1203 |
% \end{mfpmacro} |
| 1204 |
% |
| 1205 |
% \begin{mfpmacro}{n} |
| 1206 |
% The letter \textit{nu}. It fills the square (actually left and right legs |
| 1207 |
% are a bit long). |
| 1208 |
% \begin{macrocode} |
| 1209 |
|
| 1210 |
cmchar "Greek 394BC letter nu (n)"; |
| 1211 |
beginchar("n", 4u#+side#, cap_height#,0); |
| 1212 |
adjust_fit(0,0); |
| 1213 |
pcshiftx := 2u; |
| 1214 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1215 |
numeric hor, vert, theta; |
| 1216 |
pair greek[]; |
| 1217 |
hor = side-thick; vert = h; |
| 1218 |
greek1=(hor,vert); |
| 1219 |
theta=270 + angle(greek1); |
| 1220 |
% left leg |
| 1221 |
penpos1(thick,0); penpos2(thick,0); |
| 1222 |
z1l=(pcshiftx,0); z2l=(pcshiftx,h); |
| 1223 |
% right leg |
| 1224 |
penpos3(thick,0); penpos4(thick,0); |
| 1225 |
z3r=(pcshiftx+side,0); z4r=(pcshiftx+side,h); |
| 1226 |
% bar |
| 1227 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 1228 |
z5l=z3r; z6r=z2l; |
| 1229 |
% left notch |
| 1230 |
z7=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 1231 |
% right notch |
| 1232 |
z8=whatever[z5r,z6r]=whatever[z3l,z4l]; |
| 1233 |
filldraw z1l--z2l--z8--z4l--z4r--z3r--z7--z1r--cycle; |
| 1234 |
proofpcbb(100, y100, y100); |
| 1235 |
penlabels(1,2,3,4,5,6,7,8,100); endchar; |
| 1236 |
|
| 1237 |
% \end{macrocode} |
| 1238 |
% \end{mfpmacro} |
| 1239 |
% |
| 1240 |
% \begin{mfpmacro}{x} |
| 1241 |
% The letter \textit{xi}. It fills the square |
| 1242 |
% \begin{macrocode} |
| 1243 |
|
| 1244 |
cmchar "Greek 394BC letter xi (x)"; |
| 1245 |
beginchar("x", 2u#+side#, cap_height#, 0); |
| 1246 |
adjust_fit(0,0); |
| 1247 |
pcshiftx := u; |
| 1248 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1249 |
% upright |
| 1250 |
penpos1(thick,0); penpos2(thick,0); |
| 1251 |
z1=(x100,0); z2=(x100,h); |
| 1252 |
filldraw stroke z1e--z2e; |
| 1253 |
% 3 horizontal bars |
| 1254 |
penpos3(thick,90); penpos4(thick,90); |
| 1255 |
z3r=(pcshiftx,h); z4r=(pcshiftx+side,h); |
| 1256 |
filldraw stroke z3e--z4e; |
| 1257 |
penpos5(thick,90); penpos6(thick,90); |
| 1258 |
z5=(pcshiftx,h/2); z6=(pcshiftx+side,h/2); |
| 1259 |
filldraw stroke z5e--z6e; |
| 1260 |
penpos7(thick,90); penpos8(thick,90); |
| 1261 |
z7l=(pcshiftx,0); z8l=(pcshiftx+side,0); |
| 1262 |
filldraw stroke z7e--z8e; |
| 1263 |
proofpcbb(100, y100, y100); |
| 1264 |
penlabels(1,2,3,4,5,6,7,8,100); |
| 1265 |
endchar; |
| 1266 |
|
| 1267 |
% \end{macrocode} |
| 1268 |
% \end{mfpmacro} |
| 1269 |
% |
| 1270 |
% \begin{mfpmacro}{o} |
| 1271 |
% The letter \textit{omicron}. Just a circle. |
| 1272 |
% \begin{macrocode} |
| 1273 |
|
| 1274 |
cmchar "Greek 394BC letter omicron (o)"; |
| 1275 |
beginchar("o", 2u#+side#, cap_height#, 0); |
| 1276 |
adjust_fit(0,0); |
| 1277 |
pcshiftx := u; |
| 1278 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1279 |
% outside of circle |
| 1280 |
x2r=pcshiftx; x4r=x2r+h; y2r=y4r=y100; |
| 1281 |
y1r=h; y3r=0; x1r=x3r=x100; |
| 1282 |
% inside of circle |
| 1283 |
x2l=x2r+thick; x4l=x4r-thick; y2l=y4l=y2r; |
| 1284 |
y1l=y1r-thick; y3l=y3r+thick; x1l=x3l=x1r; |
| 1285 |
filldraw z1r..z2r..z3r..z4r..cycle; |
| 1286 |
unfilldraw z1l..z2l..z3l..z4l..cycle; |
| 1287 |
proofpcbb(100, y100, y100); |
| 1288 |
penlabels(1,2,3,4,100); endchar; |
| 1289 |
|
| 1290 |
% \end{macrocode} |
| 1291 |
% \end{mfpmacro} |
| 1292 |
% |
| 1293 |
% \begin{mfpmacro}{p} |
| 1294 |
% The letter \textit{pi}. This just fills the square. |
| 1295 |
% \begin{macrocode} |
| 1296 |
|
| 1297 |
cmchar "Greek 394BC letter pi (p)"; |
| 1298 |
beginchar("p", 4u#+side#, cap_height#, 0); |
| 1299 |
adjust_fit(0, 0); |
| 1300 |
pcshiftx := 2u; |
| 1301 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1302 |
% the stem |
| 1303 |
penpos1(thick,0); penpos2(thick,0); |
| 1304 |
x1l=x2l=pcshiftx; top y1l=h; bot y2l=0; |
| 1305 |
filldraw stroke z1e--z2e; |
| 1306 |
% the arm |
| 1307 |
penpos3(thick,90); penpos4(thick,90); |
| 1308 |
y3r=y4r=y1l; x3l=x1l; x4l=w-pcshiftx; |
| 1309 |
filldraw stroke z3e--z4e; |
| 1310 |
% the beak |
| 1311 |
penpos5(thick,0); penpos6(thick,0); |
| 1312 |
x5r=x6r=x4; top y5=h; bot y6=h/2; |
| 1313 |
filldraw stroke z5e--z6e; |
| 1314 |
proofpcbb(100, y100, y100); |
| 1315 |
penlabels(1,2,3,4,5,6,100); endchar; |
| 1316 |
|
| 1317 |
|
| 1318 |
% \end{macrocode} |
| 1319 |
% \end{mfpmacro} |
| 1320 |
% |
| 1321 |
% |
| 1322 |
% |
| 1323 |
% \begin{mfpmacro}{r} |
| 1324 |
% The letter \textit{rho}. The actual height is 6/5 side and width 2/3 side. |
| 1325 |
% The bowl fits into a square of 2/3 side. This is a trimmed version of the |
| 1326 |
% original. |
| 1327 |
% \begin{macrocode} |
| 1328 |
|
| 1329 |
cmchar "Greek 394BC letter rho (r)"; |
| 1330 |
beginchar("r", 2u#+5/9side#, cap_height#,0); |
| 1331 |
adjust_fit(0, 0); |
| 1332 |
pcshiftx := u; |
| 1333 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1334 |
penpos1(thick,0); penpos2(thick,0); |
| 1335 |
top lft z1l=(pcshiftx,h); bot lft z2l=(pcshiftx,0); |
| 1336 |
filldraw stroke z1e--z2e; % vertical stem |
| 1337 |
% the bowl |
| 1338 |
penpos3(thick,90); penpos4(thick,0); penpos5(thick,-90); |
| 1339 |
top y3r=top y1; x3r=x1r; |
| 1340 |
bot y5r=5/9[y1,y2]; x5=x3; |
| 1341 |
x4r=x1l+5/9side; y4=0.5[y5r,y3r]; |
| 1342 |
filldraw z3r{right}..z4r{down}..z5r{left}--z5l{right}..z4l{up}..z3l{left}--cycle; |
| 1343 |
proofpcbb(100, y100, y100); |
| 1344 |
penlabels(1,2,3,4,5,100); |
| 1345 |
endchar; |
| 1346 |
|
| 1347 |
% \end{macrocode} |
| 1348 |
% \end{mfpmacro} |
| 1349 |
% |
| 1350 |
% \begin{mfpmacro}{s} |
| 1351 |
% The letter \textit{sigma}. The width is 2/3 the square. |
| 1352 |
% \begin{macrocode} |
| 1353 |
|
| 1354 |
cmchar "Greek 394BC letter sigma (s)"; |
| 1355 |
beginchar("s", 2u#+2/3side#, cap_height#, 0); |
| 1356 |
adjust_fit(0,0); |
| 1357 |
pcshiftx := u; |
| 1358 |
y100 = h/2; x100 = pcshiftx+y100; % square center |
| 1359 |
pair greek[]; |
| 1360 |
numeric theta[]; |
| 1361 |
numeric hor, vert; |
| 1362 |
% prepare for the long arms |
| 1363 |
hor := 2/3side; vert := 1/3h; |
| 1364 |
greek1=(hor,vert); |
| 1365 |
theta1=270+angle(greek1); |
| 1366 |
penpos1(thick,-theta1); penpos2(thick,-theta1); |
| 1367 |
penpos7(thick,theta1); penpos8(thick,theta1); |
| 1368 |
% prepare for the short arms |
| 1369 |
hor := 2/3side-thick; vert := h/2 - h/3; |
| 1370 |
greek2=(hor,vert); |
| 1371 |
theta2=270-angle(greek2); |
| 1372 |
penpos3(thick,theta2); penpos4(thick,theta2); |
| 1373 |
penpos5(thick,-theta2); penpos6(thick,-theta2); |
| 1374 |
% do the points |
| 1375 |
y1l=0; x1r=pcshiftx+2/3side; |
| 1376 |
z2l=(pcshiftx,h/3); |
| 1377 |
z3l=z2l; |
| 1378 |
z4r=(pcshiftx+2/3side-thick, h/2); |
| 1379 |
z5r=z4r; |
| 1380 |
z6l=(pcshiftx,2/3h); |
| 1381 |
z7l=z6l; |
| 1382 |
y8l=h; x8r=x1r; |
| 1383 |
% bottom notch |
| 1384 |
z10=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 1385 |
% middle notch |
| 1386 |
z11=whatever[z3l,z4l]=whatever[z5l,z6l]; |
| 1387 |
% top notch |
| 1388 |
z12=whatever[z5r,z6r]=whatever[z7r,z8r]; |
| 1389 |
% draw it all |
| 1390 |
filldraw z1l--z2l--z11--z6l--z8l--z8r--z12--z4r--z10--z1r--cycle; |
| 1391 |
proofpcbb(100, y100, y100); |
| 1392 |
penlabels(1,2,3,4,5,6,7,8,10,11,12,100); endchar; |
| 1393 |
|
| 1394 |
% \end{macrocode} |
| 1395 |
% \end{mfpmacro} |
| 1396 |
% |
| 1397 |
% \begin{mfpmacro}{t} |
| 1398 |
% The letter \textit{tau}. It has a jaunty crossbar and fills the square. |
| 1399 |
% \begin{macrocode} |
| 1400 |
|
| 1401 |
cmchar "Greek 394BC letter tau (t)"; |
| 1402 |
beginchar("t",2u#+side#, cap_height#,0); |
| 1403 |
adjust_fit(0,0); |
| 1404 |
pcshiftx := u; |
| 1405 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1406 |
numeric hor, vert, theta; |
| 1407 |
numeric alpha[]; pair greek[]; |
| 1408 |
% the stem |
| 1409 |
alpha1=h-thick; |
| 1410 |
penpos1(thick,0); penpos2(thick,0); |
| 1411 |
z1=(w/2,0); z2=(w/2,alpha1); |
| 1412 |
filldraw stroke z1e--z2e; |
| 1413 |
% the crossbar (left half) |
| 1414 |
penpos3(thick,90); penpos4(thick,90); |
| 1415 |
z3r=(pcshiftx,alpha1); z4r=(w/2,alpha1); |
| 1416 |
filldraw stroke z3e--z4e; |
| 1417 |
% right half |
| 1418 |
hor := w/2; vert := h/5; |
| 1419 |
greek1=(hor,vert); |
| 1420 |
theta = 270 + angle(greek1); |
| 1421 |
penpos5(thick,theta); |
| 1422 |
y5l=h; x5r=w-pcshiftx; |
| 1423 |
filldraw z4l{right}..{greek1}z5r--z5l{-greek1}..{left}z4r--cycle; |
| 1424 |
proofpcbb(100, y100, y100); |
| 1425 |
penlabels(1,2,3,4,5,100); endchar; |
| 1426 |
|
| 1427 |
% \end{macrocode} |
| 1428 |
% \end{mfpmacro} |
| 1429 |
% |
| 1430 |
% \begin{mfpmacro}{y} |
| 1431 |
% The letter \textit{upsilon}. |
| 1432 |
% Actual size is square with sides 6/5 of normal. This is |
| 1433 |
% a scaled version. |
| 1434 |
% \begin{macrocode} |
| 1435 |
|
| 1436 |
cmchar "Greek 394BC letter upsilon (y)"; |
| 1437 |
beginchar("y", 2u#+side#, cap_height#, 0); |
| 1438 |
adjust_fit(0,0); |
| 1439 |
pcshiftx := u; |
| 1440 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 1441 |
numeric alpha, theta; |
| 1442 |
numeric hor, vert; |
| 1443 |
pair greek[]; |
| 1444 |
alpha=h/3; |
| 1445 |
hor := h; vert := 0.75h; |
| 1446 |
greek1 = (hor,vert); greek2 = (-hor, -vert); |
| 1447 |
greek3 = (-hor,vert); greek4 = (hor, -vert); |
| 1448 |
theta = 270 + angle(greek1); |
| 1449 |
% stem |
| 1450 |
penpos1(thick,0); penpos2(thick,0); |
| 1451 |
z1=(w/2,0); z2=(w/2,alpha); |
| 1452 |
% right arm |
| 1453 |
penpos3(thick,theta); |
| 1454 |
y3l=h; x3r=w-pcshiftx; |
| 1455 |
% left arm |
| 1456 |
penpos4(thick,-theta); |
| 1457 |
y4r=h; x4l=pcshiftx; |
| 1458 |
filldraw z1l--z1r--z2r{up}..{greek1}z3r--z3l{greek2}..{down}z2l--cycle; |
| 1459 |
filldraw z1l--z1r--z2r{up}..{greek3}z4r--z4l{greek4}..{down}z2l--cycle; |
| 1460 |
proofpcbb(100, y100, y100); |
| 1461 |
penlabels(0,1,2,3,4,5,6,100); endchar; % End of "U" |
| 1462 |
|
| 1463 |
% \end{macrocode} |
| 1464 |
% \end{mfpmacro} |
| 1465 |
% |
| 1466 |
% |
| 1467 |
% \begin{mfpmacro}{X} |
| 1468 |
% The letter \textit{chi}. It just fits into the square. |
| 1469 |
% \begin{macrocode} |
| 1470 |
|
| 1471 |
cmchar "Greek 394BC letter chi (X)"; |
| 1472 |
beginchar("X", 2u#+side#, cap_height#, 0); |
| 1473 |
adjust_fit(0,0); |
| 1474 |
pcshiftx := u; |
| 1475 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 1476 |
numeric theta; |
| 1477 |
theta = 270+45; |
| 1478 |
% right going leg |
| 1479 |
penpos1(thick,theta); penpos2(thick,theta); |
| 1480 |
x1l=pcshiftx; y1r=0; x2r=pcshiftx+side; y2l=h; |
| 1481 |
filldraw stroke z1e--z2e; |
| 1482 |
% left going leg |
| 1483 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 1484 |
x3l=pcshiftx; y3r=h; x4r=pcshiftx+side; y4l=0; |
| 1485 |
filldraw stroke z3e--z4e; |
| 1486 |
proofpcbb(100, y100, y100); |
| 1487 |
penlabels(1,2,3,4,100); endchar; |
| 1488 |
|
| 1489 |
% \end{macrocode} |
| 1490 |
% \end{mfpmacro} |
| 1491 |
% |
| 1492 |
% |
| 1493 |
% \begin{mfpmacro}{f} |
| 1494 |
% The letter \textit{phi}. Actual height is 6/5 of square and outer dia of circle |
| 1495 |
% is 4/5 side (i.e., 2/3 the actual height). This is a scaled version. |
| 1496 |
% \begin{macrocode} |
| 1497 |
|
| 1498 |
cmchar "Greek 394BC letter phi (f)"; |
| 1499 |
beginchar("f", 2u#+2/3side#, cap_height#,0); |
| 1500 |
adjust_fit(0, 0); |
| 1501 |
pcshiftx := u; |
| 1502 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1503 |
% the stem |
| 1504 |
penpos1(thick,0); penpos2(thick,0); |
| 1505 |
z1=(w/2,0); z2=(w/2,h); |
| 1506 |
% the circle |
| 1507 |
z0=(w/2,h/2); |
| 1508 |
numeric alpha; |
| 1509 |
alpha := 1/3h; |
| 1510 |
y3o=y3i=y5i=y5o=h/2; |
| 1511 |
x3o=x0-alpha; x3i=x3o+thick; x5o=x0+alpha; x5i=x5o-thick; |
| 1512 |
x4o=x4i=x6i=x6o=w/2; |
| 1513 |
y4o=y0+alpha; y4i=y4o-thick; y6o=y0-alpha; y6i=y6o+thick; |
| 1514 |
% unfill the inner |
| 1515 |
unfilldraw z3i..z4i..z5i..z6i..cycle; |
| 1516 |
% draw the outer |
| 1517 |
filldraw z3o..z4o..z5o..z6o..cycle; |
| 1518 |
% draw the stem (twice) |
| 1519 |
filldraw stroke z1e--z2e; filldraw stroke z1e--z2e; |
| 1520 |
proofpcbb(100, y100, y100); |
| 1521 |
penlabels(1,2,3,4,5,6,100); |
| 1522 |
endchar; |
| 1523 |
|
| 1524 |
% \end{macrocode} |
| 1525 |
% \end{mfpmacro} |
| 1526 |
% |
| 1527 |
% \begin{mfpmacro}{P} |
| 1528 |
% The letter \textit{psi}. The actual height is 6/5 square and width is square. |
| 1529 |
% This is a scaled version. |
| 1530 |
% \begin{macrocode} |
| 1531 |
|
| 1532 |
cmchar "Greek 394BC letter psi (P)"; |
| 1533 |
beginchar("P", 2u#+5/6side#, cap_height#,0); |
| 1534 |
adjust_fit(0, 0); |
| 1535 |
pcshiftx := u; |
| 1536 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1537 |
numeric alpha, beta; |
| 1538 |
numeric hor, vert, theta; |
| 1539 |
pair greek; |
| 1540 |
alpha=5/6; % scale factor |
| 1541 |
beta=1/3alpha*side+thick; % arm seperation height |
| 1542 |
% the stem |
| 1543 |
penpos1(thick,0); penpos2(thick,0); |
| 1544 |
z1=(w/2,0); z2=(w/2,h); |
| 1545 |
filldraw stroke z1e--z2e; |
| 1546 |
hor := w/2; vert := h-beta; |
| 1547 |
greek = (hor,vert); |
| 1548 |
theta=270+angle(greek); |
| 1549 |
% right arm |
| 1550 |
penpos3(thick,theta); penpos4(thick,theta); |
| 1551 |
z3l=(w/2,beta); y4l=alpha*h; x4r=w-pcshiftx; |
| 1552 |
% left arm |
| 1553 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 1554 |
z5r=z3l; x6l=pcshiftx; y6r=y4l; |
| 1555 |
% intersection points |
| 1556 |
z10=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 1557 |
z11=whatever[z1l,z2l]=whatever[z5l,z6l]; |
| 1558 |
filldraw z3l--z4l--z4r--z10--cycle; % right arm |
| 1559 |
filldraw z5r--z6r--z6l--z11--cycle; % left arm |
| 1560 |
proofpcbb(100, y100, y100); |
| 1561 |
penlabels(1,2,3,4,5,6,10,11,100); |
| 1562 |
endchar; |
| 1563 |
|
| 1564 |
% \end{macrocode} |
| 1565 |
% \end{mfpmacro} |
| 1566 |
% |
| 1567 |
% \begin{mfpmacro}{O} |
| 1568 |
% The letter \textit{omega}. Height is square, width is 4/3 square. |
| 1569 |
% \begin{macrocode} |
| 1570 |
|
| 1571 |
cmchar "Greek 394BC letter omega (O)"; |
| 1572 |
beginchar("O", 2u#+4/3side#, cap_height#,0); |
| 1573 |
adjust_fit(0, 0); |
| 1574 |
pcshiftx := u; |
| 1575 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1576 |
% bottom arms |
| 1577 |
penpos1(thick,90); penpos2(thick,90); penpos3(thick,90); penpos4(thick,90); |
| 1578 |
z1l=(pcshiftx,0); z4l=(w-pcshiftx,0); |
| 1579 |
x2l = w/2-side/4; x3l=w/2+side/4; y2l=y3l=0; |
| 1580 |
% prepare the bowl |
| 1581 |
numeric theta, hor, vert; |
| 1582 |
pair greek[]; |
| 1583 |
hor := x2r-pcshiftx; vert := h; |
| 1584 |
greek1=(hor,vert); greek2=(-hor,-vert); |
| 1585 |
greek3=(-hor,vert); greek4=(hor,-vert); |
| 1586 |
theta = 270+angle(greek1); |
| 1587 |
penpos5(thick,-theta); penpos9(thick,theta); |
| 1588 |
z5r=z2l; z9l=z3l; |
| 1589 |
penpos6(thick,0); penpos8(thick,0); |
| 1590 |
z6l=(w/2-side/2, h/2); z8r=(w/2+side/2, h/2); |
| 1591 |
penpos7(thick,90); |
| 1592 |
z7r=(w/2,h); |
| 1593 |
path p[]; |
| 1594 |
p1=z5l{greek3}..z6l{up}..{right}z7r; |
| 1595 |
p2=z7r{right}..z8r{down}..{greek2}z9r; |
| 1596 |
p3=z1r--z4r; |
| 1597 |
% notch points |
| 1598 |
z10 = p3 intersectionpoint p1; |
| 1599 |
z11 = p3 intersectionpoint p2; |
| 1600 |
% draw it |
| 1601 |
filldraw z1r--z10{greek3}..z6l{up}..z7r{right}..z8r{down}..{greek2}z11--z4r |
| 1602 |
--z4l--z3l{greek1}..z8l{up}..z7l{left}..z6r{down}..{greek4}z2l--z1l--cycle; |
| 1603 |
proofpcbb(100, y100, y100); |
| 1604 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,100); |
| 1605 |
endchar; |
| 1606 |
|
| 1607 |
% \end{macrocode} |
| 1608 |
% \end{mfpmacro} |
| 1609 |
% |
| 1610 |
% The rest of the glyphs are rough versions of some of the above. |
| 1611 |
% |
| 1612 |
% |
| 1613 |
% \begin{mfpmacro}{B} |
| 1614 |
% The letter \textit{beta}. The actual height is 6/5 the nominal height, |
| 1615 |
% with the width being 2/3 the nominal height. |
| 1616 |
% |
| 1617 |
% \begin{macrocode} |
| 1618 |
|
| 1619 |
cmchar "Greek 394BC letter beta (rough, B)"; |
| 1620 |
beginchar("B",4u#+2/3side#, cap_height#, 0); |
| 1621 |
adjust_fit(0,0); |
| 1622 |
pcshiftx := 2u; |
| 1623 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1624 |
numeric beta; |
| 1625 |
beta := side/10; % amount to extend top and bottom |
| 1626 |
% the stem |
| 1627 |
penpos1(thick,0); penpos2(thick,0); |
| 1628 |
y2l=-beta; y1l=h+beta; x1l=x2l=pcshiftx; |
| 1629 |
numeric alpha, long, short, hypot; |
| 1630 |
long=(w-2pcshiftx); short=h/4; hypot=short++long; |
| 1631 |
alpha := hypot/long; |
| 1632 |
% prepare for the bottom bowl |
| 1633 |
penpos3(alpha*thick,90); penpos4(alpha*thick,90); |
| 1634 |
penpos5(alpha*thick,90); penpos6(alpha*thick,90); |
| 1635 |
z3l=z2l; |
| 1636 |
x4l=w-pcshiftx; y4l=0.25[y2l,y1l]; |
| 1637 |
z5r=z4l; |
| 1638 |
x6l=x2r; y6l=0.5[y2l,y1l]; |
| 1639 |
% prepare for the top bowl |
| 1640 |
penpos7(alpha*thick,90); penpos8(alpha*thick,90); |
| 1641 |
penpos9(alpha*thick,90); penpos10(alpha*thick,90); |
| 1642 |
z7r=z6l; |
| 1643 |
x8l=x4l; y8l=0.75[y2l,y1l]; |
| 1644 |
z9r=z8l; |
| 1645 |
z10r=z1l; |
| 1646 |
% now for the notches |
| 1647 |
z11=whatever[z2r,z1r]=whatever[z3r,z4r]; % bottom bowl and stem |
| 1648 |
z12=whatever[z3r,z4r]=whatever[z6l,z5l]; % bottom bowl inner |
| 1649 |
z13=whatever[z5r,z6r]=whatever[z7l,z8l]; % between the bowls |
| 1650 |
z14=whatever[z7r,z8r]=whatever[z9l,z10l]; % top bowl inner |
| 1651 |
z15=whatever[z2r,z1r]=whatever[z9l,z10l]; % top bowl and stem |
| 1652 |
% draw the outer boundary |
| 1653 |
filldraw z1l--z2l--z4l--z13--z8l--cycle; |
| 1654 |
% remove interior of bottom bowl |
| 1655 |
unfilldraw z6l--z12--z11--cycle; |
| 1656 |
% and the top bowl |
| 1657 |
unfilldraw z7r--z15--z14--cycle; |
| 1658 |
proofpcbb(100, y100, y100); |
| 1659 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,100); |
| 1660 |
endchar; |
| 1661 |
|
| 1662 |
% \end{macrocode} |
| 1663 |
% \end{mfpmacro} |
| 1664 |
% |
| 1665 |
% |
| 1666 |
% \begin{mfpmacro}{M} |
| 1667 |
% The letter \textit{mu}. This has slightly sloping right and left legs. |
| 1668 |
% The inside base of the legs is the square side. Left leg extends below |
| 1669 |
% the baseline. |
| 1670 |
% \begin{macrocode} |
| 1671 |
|
| 1672 |
cmchar"Greek 394BC letter mu (rough, M)"; |
| 1673 |
beginchar("M", 2u#+side#+2thick#, cap_height#, 0); |
| 1674 |
adjust_fit(0,0); |
| 1675 |
pcshiftx := u+thick; |
| 1676 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1677 |
numeric alpha, hor, vert, hypot, theta[]; |
| 1678 |
pair greek[]; |
| 1679 |
hor := 3thick; vert := side; |
| 1680 |
greek1 = (hor, vert); |
| 1681 |
theta1 = 270 + angle(greek1); |
| 1682 |
% left leg |
| 1683 |
numeric beta; |
| 1684 |
beta := thick; % extra depth below baseline |
| 1685 |
penpos1(thick,theta1); penpos2(thick,theta1); |
| 1686 |
z1r=(pcshiftx,-beta); z2l=(pcshiftx+2thick,h); |
| 1687 |
% right leg |
| 1688 |
penpos3(thick,-theta1); penpos4(thick,-theta1); |
| 1689 |
z3l=(pcshiftx+side,0); z4r=(pcshiftx+side-2thick,h); |
| 1690 |
% stuff for the middle V, top of the notch at the square center |
| 1691 |
z0=z100; |
| 1692 |
theta2 = 270 + angle(z4r-z0); |
| 1693 |
% left of V |
| 1694 |
penpos5(thick,-theta2); penpos6(thick,-theta2); |
| 1695 |
z5r=z0; z6r=z2l; |
| 1696 |
% right of V |
| 1697 |
penpos7(thick,theta2); penpos8(thick,theta2); |
| 1698 |
z7l=z0; z8l=z4r; |
| 1699 |
% left leg notch |
| 1700 |
z9=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 1701 |
% under the V |
| 1702 |
z10=whatever[z5l,z6l]=whatever[z7r,z8r]; |
| 1703 |
% right leg notch |
| 1704 |
z11=whatever[z7r,z8r]=whatever[z3l,z4l]; |
| 1705 |
% draw it |
| 1706 |
filldraw z1l--z2l--z0--z4r--z3r--z3l--z11--z10--z9--z1r--cycle; |
| 1707 |
proofpcbb(100, y100, y100); |
| 1708 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,100); endchar; |
| 1709 |
|
| 1710 |
% \end{macrocode} |
| 1711 |
% \end{mfpmacro} |
| 1712 |
% |
| 1713 |
% \begin{mfpmacro}{N} |
| 1714 |
% The letter \textit{nu}. It fills the square (actually left and right legs |
| 1715 |
% are a bit long). |
| 1716 |
% \begin{macrocode} |
| 1717 |
|
| 1718 |
cmchar "Greek 394BC letter nu (rough, N)"; |
| 1719 |
beginchar("N", 4u#+side#, cap_height#,0); |
| 1720 |
adjust_fit(0,0); |
| 1721 |
pcshiftx := 2u; |
| 1722 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1723 |
numeric hor, vert, theta; |
| 1724 |
pair greek[]; |
| 1725 |
hor = side-thick; vert = h; |
| 1726 |
greek1=(hor,vert); |
| 1727 |
theta=270 + angle(greek1); |
| 1728 |
numeric beta; |
| 1729 |
beta := thick; % extra extensions of the legs |
| 1730 |
% left leg |
| 1731 |
penpos1(thick,0); penpos2(thick,0); |
| 1732 |
z1l=(pcshiftx,-beta); z2l=(pcshiftx,h); |
| 1733 |
% right leg |
| 1734 |
penpos3(thick,0); penpos4(thick,0); |
| 1735 |
z3r=(pcshiftx+side,0); z4r=(pcshiftx+side,h+beta); |
| 1736 |
% bar |
| 1737 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 1738 |
z5l=z3r; z6r=z2l; |
| 1739 |
% left notch |
| 1740 |
z7=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 1741 |
% right notch |
| 1742 |
z8=whatever[z5r,z6r]=whatever[z3l,z4l]; |
| 1743 |
filldraw z1l--z2l--z8--z4l--z4r--z3r--z7--z1r--cycle; |
| 1744 |
proofpcbb(100, y100, y100); |
| 1745 |
penlabels(1,2,3,4,5,6,7,8,100); endchar; |
| 1746 |
|
| 1747 |
% \end{macrocode} |
| 1748 |
% \end{mfpmacro} |
| 1749 |
% |
| 1750 |
% |
| 1751 |
% \begin{mfpmacro}{R} |
| 1752 |
% The letter \textit{rho}. The actual height is 6/5 side and width 2/3 side. |
| 1753 |
% The bowl fits into a square of 2/3 side. |
| 1754 |
% \begin{macrocode} |
| 1755 |
|
| 1756 |
cmchar "Greek 394BC letter rho (rough, R)"; |
| 1757 |
beginchar("R", 2u#+2/3side#, cap_height#,0); |
| 1758 |
adjust_fit(0, 0); |
| 1759 |
pcshiftx := u; |
| 1760 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 1761 |
numeric beta; |
| 1762 |
beta := side/10; % extra top and bottom extensions |
| 1763 |
penpos1(thick,0); penpos2(thick,0); |
| 1764 |
top lft z1l=(pcshiftx,h+beta); bot lft z2l=(pcshiftx,-beta); |
| 1765 |
filldraw stroke z1e--z2e; % vertical stem |
| 1766 |
% the bowl |
| 1767 |
penpos3(thick,90); penpos4(thick,0); penpos5(thick,-90); |
| 1768 |
top y3r=top y1; x3r=x1r; |
| 1769 |
bot y5r=5/9[y1,y2]; x5=x3; |
| 1770 |
x4r=x1l+5/9side; y4=0.5[y5r,y3r]; |
| 1771 |
filldraw z3r{right}..z4r{down}..z5r{left}--z5l{right}..z4l{up}..z3l{left}--cycle; |
| 1772 |
proofpcbb(100, y100, y100); |
| 1773 |
penlabels(1,2,3,4,5,100); |
| 1774 |
endchar; |
| 1775 |
|
| 1776 |
% \end{macrocode} |
| 1777 |
% \end{mfpmacro} |
| 1778 |
% |
| 1779 |
% \begin{mfpmacro}{Y} |
| 1780 |
% The letter \textit{upsilon}. |
| 1781 |
% Actual size is square with sides 6/5 of normal. |
| 1782 |
% \begin{macrocode} |
| 1783 |
|
| 1784 |
cmchar "Greek 394BC letter upsilon (rough, Y)"; |
| 1785 |
beginchar("Y", 2u#+6/5side#, cap_height#, 0); |
| 1786 |
adjust_fit(0,0); |
| 1787 |
pcshiftx := u; |
| 1788 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 1789 |
numeric beta; |
| 1790 |
beta := side/10; % extra at top and bottom |
| 1791 |
numeric alpha, theta; |
| 1792 |
numeric hor, vert; |
| 1793 |
pair greek[]; |
| 1794 |
alpha=h/3; |
| 1795 |
hor := h; vert := 0.75h; |
| 1796 |
greek1 = (hor,vert); greek2 = (-hor, -vert); |
| 1797 |
greek3 = (-hor,vert); greek4 = (hor, -vert); |
| 1798 |
theta = 270 + angle(greek1); |
| 1799 |
% stem |
| 1800 |
penpos1(thick,0); penpos2(thick,0); |
| 1801 |
z1=(w/2,-beta); z2=(w/2,alpha); |
| 1802 |
% right arm |
| 1803 |
penpos3(thick,theta); |
| 1804 |
y3l=h+beta; x3r=w-pcshiftx; |
| 1805 |
% left arm |
| 1806 |
penpos4(thick,-theta); |
| 1807 |
y4r=h+beta; x4l=pcshiftx; |
| 1808 |
filldraw z1l--z1r--z2r{up}..{greek1}z3r--z3l{greek2}..{down}z2l--cycle; |
| 1809 |
filldraw z1l--z1r--z2r{up}..{greek3}z4r--z4l{greek4}..{down}z2l--cycle; |
| 1810 |
proofpcbb(100, y100, y100); |
| 1811 |
penlabels(0,1,2,3,4,5,6,100); endchar; % End of "u" |
| 1812 |
|
| 1813 |
% \end{macrocode} |
| 1814 |
% \end{mfpmacro} |
| 1815 |
% |
| 1816 |
% |
| 1817 |
% |
| 1818 |
% \begin{mfpmacro}{F} |
| 1819 |
% The letter \textit{phi}. Actual height is 6/5 of square and outer dia of circle |
| 1820 |
% is 4/5 side (i.e., 2/3 the actual height). |
| 1821 |
% \begin{macrocode} |
| 1822 |
|
| 1823 |
cmchar "Greek 394BC letter phi (rough, F)"; |
| 1824 |
beginchar("F", 2u#+4/5side#, cap_height#,0); |
| 1825 |
adjust_fit(0, 0); |
| 1826 |
pcshiftx := u; |
| 1827 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1828 |
% the stem |
| 1829 |
numeric beta; |
| 1830 |
beta := side/10; % extra at top and bottom |
| 1831 |
penpos1(thick,0); penpos2(thick,0); |
| 1832 |
z1=(w/2,-beta); z2=(w/2,h+beta); |
| 1833 |
% the circle |
| 1834 |
z0=(w/2,h/2); |
| 1835 |
numeric alpha; |
| 1836 |
alpha := 2/5side; |
| 1837 |
y3o=y3i=y5i=y5o=h/2; |
| 1838 |
x3o=x0-alpha; x3i=x3o+thick; x5o=x0+alpha; x5i=x5o-thick; |
| 1839 |
x4o=x4i=x6i=x6o=w/2; |
| 1840 |
y4o=y0+alpha; y4i=y4o-thick; y6o=y0-alpha; y6i=y6o+thick; |
| 1841 |
% unfill the inner |
| 1842 |
unfilldraw z3i..z4i..z5i..z6i..cycle; |
| 1843 |
% draw the outer |
| 1844 |
filldraw z3o..z4o..z5o..z6o..cycle; |
| 1845 |
% draw the stem (twice) |
| 1846 |
filldraw stroke z1e--z2e; filldraw stroke z1e--z2e; |
| 1847 |
proofpcbb(100, y100, y100); |
| 1848 |
penlabels(1,2,3,4,5,6,100); |
| 1849 |
endchar; |
| 1850 |
|
| 1851 |
% \end{macrocode} |
| 1852 |
% \end{mfpmacro} |
| 1853 |
% |
| 1854 |
% \begin{mfpmacro}{Q} |
| 1855 |
% The letter \textit{psi}. The actual height is 6/5 square and width is square. |
| 1856 |
% \begin{macrocode} |
| 1857 |
|
| 1858 |
cmchar "Greek 394BC letter psi (rough, Q)"; |
| 1859 |
beginchar("Q", 2u#+side#, cap_height#,0); |
| 1860 |
adjust_fit(0, 0); |
| 1861 |
pcshiftx := u; |
| 1862 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 1863 |
numeric alpha, beta; |
| 1864 |
numeric hor, vert, theta; |
| 1865 |
pair greek; |
| 1866 |
alpha=1; % scale factor |
| 1867 |
beta=1/3alpha*side+thick; % arm seperation height |
| 1868 |
% the stem |
| 1869 |
numeric gamma; |
| 1870 |
gamma := side/10; % extra at top and bottom |
| 1871 |
penpos1(thick,0); penpos2(thick,0); |
| 1872 |
z1=(w/2,-gamma); z2=(w/2,h+gamma); |
| 1873 |
filldraw stroke z1e--z2e; |
| 1874 |
hor := w/2; vert := h-beta; |
| 1875 |
greek = (hor,vert); |
| 1876 |
theta=270+angle(greek); |
| 1877 |
% right arm |
| 1878 |
penpos3(thick,theta); penpos4(thick,theta); |
| 1879 |
z3l=(w/2,beta); y4l=alpha*h; x4r=w-pcshiftx; |
| 1880 |
% left arm |
| 1881 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 1882 |
z5r=z3l; x6l=pcshiftx; y6r=y4l; |
| 1883 |
% intersection points |
| 1884 |
z10=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 1885 |
z11=whatever[z1l,z2l]=whatever[z5l,z6l]; |
| 1886 |
filldraw z3l--z4l--z4r--z10--cycle; % right arm |
| 1887 |
filldraw z5r--z6r--z6l--z11--cycle; % left arm |
| 1888 |
proofpcbb(100, y100, y100); |
| 1889 |
penlabels(1,2,3,4,5,6,10,11,100); |
| 1890 |
endchar; |
| 1891 |
|
| 1892 |
% \end{macrocode} |
| 1893 |
% \end{mfpmacro} |
| 1894 |
% |
| 1895 |
% |
| 1896 |
% The end of the glyphs and the file. |
| 1897 |
% \begin{macrocode} |
| 1898 |
|
| 1899 |
end |
| 1900 |
|
| 1901 |
%</up> |
| 1902 |
% \end{macrocode} |
| 1903 |
% |
| 1904 |
% |
| 1905 |
% \section{The font definition files} \label{sec:fd} |
| 1906 |
% |
| 1907 |
% \begin{macrocode} |
| 1908 |
%<*fdot1> |
| 1909 |
\DeclareFontFamily{OT1}{givbc}{} |
| 1910 |
\DeclareFontShape{OT1}{givbc}{m}{n}{ <-> givbc10 }{} |
| 1911 |
\DeclareFontShape{OT1}{givbc}{bx}{n}{ <-> sub givbc/m/n }{} |
| 1912 |
\DeclareFontShape{OT1}{givbc}{b}{n}{ <-> sub givbc/m/n }{} |
| 1913 |
\DeclareFontShape{OT1}{givbc}{m}{sl}{ <-> sub givbc/m/n }{} |
| 1914 |
\DeclareFontShape{OT1}{givbc}{m}{it}{ <-> sub givbc/m/n }{} |
| 1915 |
%</fdot1> |
| 1916 |
% \end{macrocode} |
| 1917 |
% |
| 1918 |
% |
| 1919 |
% \begin{macrocode} |
| 1920 |
%<*fdt1> |
| 1921 |
\DeclareFontFamily{T1}{givbc}{} |
| 1922 |
\DeclareFontShape{T1}{givbc}{m}{n}{ <-> givbc10 }{} |
| 1923 |
\DeclareFontShape{T1}{givbc}{bx}{n}{ <-> sub givbc/m/n }{} |
| 1924 |
\DeclareFontShape{T1}{givbc}{b}{n}{ <-> sub givbc/m/n }{} |
| 1925 |
\DeclareFontShape{T1}{givbc}{m}{sl}{ <-> sub givbc/m/n }{} |
| 1926 |
\DeclareFontShape{T1}{givbc}{m}{it}{ <-> sub givbc/m/n }{} |
| 1927 |
%</fdt1> |
| 1928 |
% \end{macrocode} |
| 1929 |
% |
| 1930 |
% \section{The \Lpack{greek4cbc} package code} \label{sec:code} |
| 1931 |
% |
| 1932 |
% Announce the name and version of the package, which requires |
| 1933 |
% \LaTeXe{}. |
| 1934 |
% \begin{macrocode} |
| 1935 |
%<*usc> |
| 1936 |
\NeedsTeXFormat{LaTeX2e} |
| 1937 |
\ProvidesPackage{greek4cbc}[2000/10/22 v1.1 package for 4th century BC Greek fonts] |
| 1938 |
% \end{macrocode} |
| 1939 |
% |
| 1940 |
% |
| 1941 |
% \begin{macro}{\givbcfamily} |
| 1942 |
% Selects the 4th century BC Greek font family in the T1 encoding. |
| 1943 |
% \begin{macrocode} |
| 1944 |
\newcommand{\givbcfamily}{\usefont{T1}{givbc}{m}{n}} |
| 1945 |
% \end{macrocode} |
| 1946 |
% \end{macro} |
| 1947 |
% |
| 1948 |
% \begin{macro}{\textgivbc} |
| 1949 |
% Text command for the 4th century BC Greek font family. |
| 1950 |
% \begin{macrocode} |
| 1951 |
\DeclareTextFontCommand{\textgivbc}{\givbcfamily} |
| 1952 |
% \end{macrocode} |
| 1953 |
% \end{macro} |
| 1954 |
% |
| 1955 |
% The commands for the signs. |
| 1956 |
% |
| 1957 |
% \begin{macrocode} |
| 1958 |
|
| 1959 |
\chardef\Aalpha=`a |
| 1960 |
\chardef\Abeta=`b |
| 1961 |
\chardef\Agamma=`g |
| 1962 |
\chardef\Adelta=`d |
| 1963 |
\chardef\Aepsilon=`e |
| 1964 |
\chardef\Azeta=`z |
| 1965 |
\chardef\Aeta=`h |
| 1966 |
\chardef\Atheta=`T |
| 1967 |
\chardef\Aiota=`i |
| 1968 |
\chardef\Akappa=`k |
| 1969 |
\chardef\Alambda=`l |
| 1970 |
\chardef\Amu=`m |
| 1971 |
\chardef\Anu=`n |
| 1972 |
\chardef\Axi=`x |
| 1973 |
\chardef\Aomicron=`o |
| 1974 |
\chardef\Api=`p |
| 1975 |
\chardef\Arho=`r |
| 1976 |
\chardef\Asigma=`s |
| 1977 |
\chardef\Atau=`t |
| 1978 |
\chardef\Aupsilon=`y |
| 1979 |
\chardef\Achi=`X |
| 1980 |
\chardef\Aphi=`f |
| 1981 |
\chardef\Apsi=`P |
| 1982 |
\chardef\Aomega=`O |
| 1983 |
|
| 1984 |
\chardef\ARalpha=`a |
| 1985 |
\chardef\ARbeta=`B |
| 1986 |
\chardef\ARgamma=`g |
| 1987 |
\chardef\ARdelta=`d |
| 1988 |
\chardef\ARepsilon=`e |
| 1989 |
\chardef\ARzeta=`z |
| 1990 |
\chardef\AReta=`h |
| 1991 |
\chardef\ARtheta=`T |
| 1992 |
\chardef\ARiota=`i |
| 1993 |
\chardef\ARkappa=`k |
| 1994 |
\chardef\ARlambda=`l |
| 1995 |
\chardef\ARmu=`M |
| 1996 |
\chardef\ARnu=`N |
| 1997 |
\chardef\ARxi=`x |
| 1998 |
\chardef\ARomicron=`o |
| 1999 |
\chardef\ARpi=`p |
| 2000 |
\chardef\ARrho=`R |
| 2001 |
\chardef\ARsigma=`s |
| 2002 |
\chardef\ARtau=`t |
| 2003 |
\chardef\ARupsilon=`Y |
| 2004 |
\chardef\ARchi=`X |
| 2005 |
\chardef\ARphi=`F |
| 2006 |
\chardef\ARpsi=`Q |
| 2007 |
\chardef\ARomega=`O |
| 2008 |
|
| 2009 |
% \end{macrocode} |
| 2010 |
% |
| 2011 |
% \begin{macro}{\translitgvibc} |
| 2012 |
% \begin{macro}{\translitgivbcfont} |
| 2013 |
% |\translitgivbc{|\meta{commands}|}| transliterates \meta{commands} |
| 2014 |
% using the |\translitgivbcfont|. |
| 2015 |
% \begin{macrocode} |
| 2016 |
\newcommand{\translitgivbc}[1]{{% |
| 2017 |
\@translitGiv #1}} |
| 2018 |
\newcommand{\translitgivbcfont}{\mathrm} |
| 2019 |
|
| 2020 |
% \end{macrocode} |
| 2021 |
% \end{macro} |
| 2022 |
% \end{macro} |
| 2023 |
% |
| 2024 |
% \begin{macro}{\@translitGiv} |
| 2025 |
% This macro redefines all character commands to produce the transliterated |
| 2026 |
% version instead of the glyph. There must be no spaces in the definition. |
| 2027 |
% \begin{macrocode} |
| 2028 |
\newcommand{\@translitGiv}{% |
| 2029 |
\def\Aalpha{\ensuremath{\translitgivbcfont{A}}}\def\ARalpha{\Aalpha}% |
| 2030 |
\def\Abeta{\ensuremath{\translitgivbcfont{B}}}\def\ARbeta{\Abeta}% |
| 2031 |
\def\Agamma{\ensuremath{\translitgivbcfont{\Gamma}}}\def\ARgamma{\Agamma}% |
| 2032 |
\def\Adelta{\ensuremath{\translitgivbcfont{\Delta}}}\def\ARdelta{\Adelta}% |
| 2033 |
\def\Aepsilon{\ensuremath{\translitgivbcfont{E}}}\def\ARepsilon{\Aepsilon}% |
| 2034 |
\def\Azeta{\ensuremath{\translitgivbcfont{Z}}}\def\ARzeta{\Azeta}% |
| 2035 |
\def\Aeta{\ensuremath{\translitgivbcfont{H}}}\def\AReta{\Aeta}% |
| 2036 |
\def\Atheta{\ensuremath{\translitgivbcfont{\Theta}}}\def\ARtheta{\Atheta}% |
| 2037 |
\def\Aiota{\ensuremath{\translitgivbcfont{I}}}\def\ARiota{\Aiota}% |
| 2038 |
\def\Akappa{\ensuremath{\translitgivbcfont{K}}}\def\ARkappa{\Akappa}% |
| 2039 |
\def\Alambda{\ensuremath{\translitgivbcfont{\Lambda}}}\def\ARlambda{\Alambda}% |
| 2040 |
\def\Amu{\ensuremath{\translitgivbcfont{M}}}\def\ARmu{\Amu}% |
| 2041 |
\def\Anu{\ensuremath{\translitgivbcfont{N}}}\def\ARnu{\Anu}% |
| 2042 |
\def\Axi{\ensuremath{\translitgivbcfont{\Xi}}}\def\ARxi{\Axi}% |
| 2043 |
\def\Aomicron{\ensuremath{\translitgivbcfont{O}}}\def\ARomicron{\Aomicron}% |
| 2044 |
\def\Api{\ensuremath{\translitgivbcfont{\Pi}}}\def\ARpi{\Api}% |
| 2045 |
\def\Arho{\ensuremath{\translitgivbcfont{R}}}\def\ARrho{\Arho}% |
| 2046 |
\def\Asigma{\ensuremath{\translitgivbcfont{\Sigma}}}\def\ARsigma{\Asigma}% |
| 2047 |
\def\Atau{\ensuremath{\translitgivbcfont{T}}}\def\ARtau{\Atau}% |
| 2048 |
\def\Aupsilon{\ensuremath{\translitgivbcfont{\Upsilon}}}\def\ARupsilon{\Aupsilon}% |
| 2049 |
\def\Achi{\ensuremath{\translitgivbcfont{X}}}\def\ARchi{\Achi}% |
| 2050 |
\def\Aphi{\ensuremath{\translitgivbcfont{\Phi}}}\def\ARphi{\Aphi}% |
| 2051 |
\def\Apsi{\ensuremath{\translitgivbcfont{\Psi}}}\def\ARpsi{\Apsi}% |
| 2052 |
\def\Aomega{\ensuremath{\translitgivbcfont{\Omega}}}\def\ARomega{\Aomega}% |
| 2053 |
} |
| 2054 |
|
| 2055 |
% \end{macrocode} |
| 2056 |
% \end{macro} |
| 2057 |
% |
| 2058 |
% The end of this package. |
| 2059 |
% \begin{macrocode} |
| 2060 |
%</usc> |
| 2061 |
% \end{macrocode} |
| 2062 |
% |
| 2063 |
% \section{The Type1 map file} |
| 2064 |
% |
| 2065 |
% Just a line. |
| 2066 |
% \changes{v1.2}{2005/04/06}{Added map file} |
| 2067 |
% \begin{macrocode} |
| 2068 |
%<*map> |
| 2069 |
givbc10 Archaic-Greek-4th-Century-BC <givbc10.pfb |
| 2070 |
%</map> |
| 2071 |
% \end{macrocode} |
| 2072 |
% |
| 2073 |
% |
| 2074 |
% |
| 2075 |
% \Finale |
| 2076 |
% |
| 2077 |
\endinput |
| 2078 |
|
| 2079 |
%% \CharacterTable |
| 2080 |
%% {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 |
| 2081 |
%% 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 |
| 2082 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 2083 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 2084 |
%% Dollar \$ Percent \% Ampersand \& |
| 2085 |
%% Acute accent \' Left paren \( Right paren \) |
| 2086 |
%% Asterisk \* Plus \+ Comma \, |
| 2087 |
%% Minus \- Point \. Solidus \/ |
| 2088 |
%% Colon \: Semicolon \; Less than \< |
| 2089 |
%% Equals \= Greater than \> Question mark \? |
| 2090 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 2091 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 2092 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 2093 |
%% Right brace \} Tilde \~} |
| 2094 |
|
| 2095 |
|