| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% cypriot.dtx |
| 4 |
% |
| 5 |
% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net |
| 6 |
% Copyright 1999--2009 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 |
% If you do not have the docmfp package (available from CTAN in |
| 23 |
% tex-archive/macros/latex/contrib/supported), comment out the |
| 24 |
% \usepackage{docmfp} line below and uncomment the line following it. |
| 25 |
% |
| 26 |
% |
| 27 |
%<*driver> |
| 28 |
\documentclass[twoside]{ltxdoc} |
| 29 |
\usepackage{docmfp} |
| 30 |
%%%%% \providecommand{\DescribeVariable}[1]{} \newenvironment{routine}[1]{}{} |
| 31 |
\usepackage{url} |
| 32 |
\usepackage[draft=false, |
| 33 |
plainpages=false, |
| 34 |
pdfpagelabels, |
| 35 |
bookmarksnumbered, |
| 36 |
hyperindex=false |
| 37 |
]{hyperref} |
| 38 |
\providecommand{\phantomsection}{} |
| 39 |
\OnlyDescription %% comment this out for the full glory |
| 40 |
\EnableCrossrefs |
| 41 |
\CodelineIndex |
| 42 |
\setcounter{StandardModuleDepth}{1} |
| 43 |
\makeatletter |
| 44 |
\@mparswitchfalse |
| 45 |
\makeatother |
| 46 |
\renewcommand{\MakeUppercase}[1]{#1} |
| 47 |
\pagestyle{headings} |
| 48 |
\newenvironment{addtomargins}[1]{% |
| 49 |
\begin{list}{}{% |
| 50 |
\topsep 0pt% |
| 51 |
\addtolength{\leftmargin}{#1}% |
| 52 |
\addtolength{\rightmargin}{#1}% |
| 53 |
\listparindent \parindent |
| 54 |
\itemindent \parindent |
| 55 |
\parsep \parskip}% |
| 56 |
\item[]}{\end{list}} |
| 57 |
\begin{document} |
| 58 |
\raggedbottom |
| 59 |
\DocInput{cypriot.dtx} |
| 60 |
\end{document} |
| 61 |
%</driver> |
| 62 |
% |
| 63 |
% \fi |
| 64 |
% |
| 65 |
% \CheckSum{279} |
| 66 |
% |
| 67 |
% \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath} |
| 68 |
% \DoNotIndex{\@centercr,\@cite} |
| 69 |
% \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue} |
| 70 |
% \DoNotIndex{\@input,\@ixpt,\@m} |
| 71 |
% \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint} |
| 72 |
% \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb} |
| 73 |
% \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt} |
| 74 |
% \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt} |
| 75 |
% \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace} |
| 76 |
% \DoNotIndex{\advance,\Alph,\alph} |
| 77 |
% \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box} |
| 78 |
% \DoNotIndex{\bullet} |
| 79 |
% \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption} |
| 80 |
% \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass} |
| 81 |
% \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist} |
| 82 |
% \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup} |
| 83 |
% \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter} |
| 84 |
% \DoNotIndex{\fbox} |
| 85 |
% \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef} |
| 86 |
% \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule} |
| 87 |
% \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi} |
| 88 |
% \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi} |
| 89 |
% \DoNotIndex{\input} |
| 90 |
% \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark} |
| 91 |
% \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright} |
| 92 |
% \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment} |
| 93 |
% \DoNotIndex{\NeedsTeXFormat,\newdimen} |
| 94 |
% \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number} |
| 95 |
% \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@} |
| 96 |
% \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip} |
| 97 |
% \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions} |
| 98 |
% \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright} |
| 99 |
% \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font} |
| 100 |
% \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman} |
| 101 |
% \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength} |
| 102 |
% \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space} |
| 103 |
% \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase} |
| 104 |
% \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt} |
| 105 |
% \DoNotIndex{\viipt,\vipt,\vskip,\vspace} |
| 106 |
% \DoNotIndex{\wd,\xiipt,\year,\z@} |
| 107 |
% |
| 108 |
% \changes{v1.0}{1999/06/20}{First public release} |
| 109 |
% \changes{v1.1}{2005/04/17}{Contact changed, Type1 map file} |
| 110 |
% \changes{v1.1}{2005/04/17}{Merged the three metafont files into one} |
| 111 |
% \changes{v1.2}{2009/05/22}{Corrected some glyph codings} |
| 112 |
% |
| 113 |
% \def\fileversion{v1.0} \def\filedate{1999/06/20} |
| 114 |
% \def\fileversion{v1.1} \def\filedate{2005/06/13} |
| 115 |
% \def\fileversion{v1.2} \def\filedate{2009/05/22} |
| 116 |
% \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package |
| 117 |
% \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option |
| 118 |
% \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file |
| 119 |
% \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter |
| 120 |
% \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle |
| 121 |
% \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment |
| 122 |
% \newcommand{\BC}{\textsc{bc}} |
| 123 |
% \newcommand{\AD}{\textsc{ad}} |
| 124 |
% |
| 125 |
% \title{The \Lpack{Cypriot} font\thanks{This |
| 126 |
% file has version number \fileversion, last revised |
| 127 |
% \filedate.}} |
| 128 |
% |
| 129 |
% \author{% |
| 130 |
% Peter Wilson\thanks{\texttt{herries dot press at earthlink dot net}}\\ |
| 131 |
% Herries Press |
| 132 |
% } |
| 133 |
% \date{\filedate} |
| 134 |
% \maketitle |
| 135 |
% \begin{abstract} |
| 136 |
% The \Lpack{cypriot} bundle provides a rendition of the Cypriot |
| 137 |
% syllabary which was a script used in Cyprus for writing Greek. The script |
| 138 |
% was in use between about 1000 and 200~\BC. |
| 139 |
% \end{abstract} |
| 140 |
% \tableofcontents |
| 141 |
% \listoftables |
| 142 |
% |
| 143 |
% |
| 144 |
% |
| 145 |
% \section{Introduction} |
| 146 |
% |
| 147 |
% The font presented here is a rendition of the Cypriot script |
| 148 |
% that was used from about 1000 to 200~\BC, particularly on Cyprus. |
| 149 |
% It is one of a series of fonts that was initially intended |
| 150 |
% to show how the Latin alphabet has evolved from its original Phoenician form |
| 151 |
% to its present day appearance. |
| 152 |
% |
| 153 |
% This manual is typeset according to the conventions of the |
| 154 |
% \LaTeX{} \textsc{docstrip} utility which enables the automatic |
| 155 |
% extraction of the \LaTeX{} macro source files~\cite{COMPANION}. |
| 156 |
% |
| 157 |
% Section~\ref{sec:usc} describes the usage of the package. |
| 158 |
% Commented code for the fonts and source code for the package is in |
| 159 |
% later sections. |
| 160 |
% |
| 161 |
% \subsection{An alphabetic tree} |
| 162 |
% |
| 163 |
% Scholars are reasonably agreed that all the world's alphabets are descended |
| 164 |
% from a Semitic alphabet invented about 1600~\BC{} in the Middle |
| 165 |
% East~\cite{DRUCKER95}. The word `Semitic' refers |
| 166 |
% to the family of languages used in the geographical area from |
| 167 |
% Sinai in the south, up the Mediterranean coast to Asia Minor in the north and |
| 168 |
% west to the valley of the Euphrates. |
| 169 |
% |
| 170 |
% The Phoenician alphabet was stable by about 1100~\BC{} and the script was |
| 171 |
% written right to left. In earlier times the writing direction was variable, |
| 172 |
% and so were |
| 173 |
% the shapes and orientation of the characters. The alphabet consisted of |
| 174 |
% 22 letters and they were named after things. For example, their first two |
| 175 |
% letters were called \textit{aleph} (ox), and \textit{beth} (house). |
| 176 |
% The Phoenician script had |
| 177 |
% only one case --- unlike our modern fonts which have both upper- and |
| 178 |
% lower-cases. In modern day terms the Phoenician abecedary was: \\ |
| 179 |
% A B G D E Y Z H $\Theta$ I K L M N X O P ts Q R S T \\ |
| 180 |
% where the `Y' (\textit{vau}) character was sometimes written as `F' and |
| 181 |
% `ts' stands for the \textit{tsade} character. |
| 182 |
% |
| 183 |
% The Greek alphabet is one of the descendants of the Phoenician alphabet; |
| 184 |
% another was Aramaic which is the ancestor of the Arabic, Persian and Indian |
| 185 |
% scripts. |
| 186 |
% Initially Greek was written right to left but around the 6th C~\BC{} became |
| 187 |
% \textit{boustrophedron}, meaning that the lines |
| 188 |
% alternated in direction. At about 500~\BC{} the writing direction stabilised |
| 189 |
% as left to |
| 190 |
% right. The Greeks modified the Phoenician alphabet to match the vocalisation |
| 191 |
% of their language. They kept the Phoenician names of the letters, suitably |
| 192 |
% `greekified', so \textit{aleph} became the familar \textit{alpha} and |
| 193 |
% \textit{beth} became \textit{beta}. At this |
| 194 |
% point the names of the letters had no meaning. Their were several variants |
| 195 |
% of the Greek character glyphs until they were finally fixed in Athens in |
| 196 |
% 403~\BC. |
| 197 |
% The Greeks did not develop a lower-case |
| 198 |
% script until about 600--700~\AD. |
| 199 |
% |
| 200 |
% The Etruscans based their alphabet on the Greek one, and again modified it. |
| 201 |
% However, the Etruscans wrote right to left, so their borrowed characters are |
| 202 |
% mirror images of the original Greek ones. Like the Phoenicians, the Etruscan |
| 203 |
% script consisted of only one case; they died out before ever needing a |
| 204 |
% lower-case script. The Etruscan script was used up until the first century |
| 205 |
% \AD, even though the Etruscans themselves had dissapeared by that time. |
| 206 |
% |
| 207 |
% |
| 208 |
% In turn, the Romans based their alphabet on the Etruscan one, but as they |
| 209 |
% wrote left to right, the characters were again mirrored (although the early |
| 210 |
% Roman inscriptions are boustrophedron). |
| 211 |
% |
| 212 |
% As the English alphabet is descended from the Roman alphabet |
| 213 |
% it has a pedigree of some three and a half thousand years. |
| 214 |
% |
| 215 |
% \section{The \Lpack{cypriot} package} \label{sec:usc} |
| 216 |
% |
| 217 |
% The Cypriot script was used in Cyprus for almost a thousand years, |
| 218 |
% from about 1000--200~\BC. |
| 219 |
% |
| 220 |
% Cypriot is a syllabary, where there is a sign for each |
| 221 |
% syllable. There are 55 signs in the Cypriot syllabary. |
| 222 |
% The script was used for record keeping, not for literary purposes. |
| 223 |
% It was used in Cyprus until about the third century \BC, although by |
| 224 |
% this time few could read or write it. At this late date its use was |
| 225 |
% principally for recording |
| 226 |
% inscriptions on votive offerings and public works, and in many cases |
| 227 |
% the Cypriot script was accompanied by a Greek alphabetic version of |
| 228 |
% the same text. These bilinguals were a great aid in deciphering the |
| 229 |
% script, a task that was completed in the 1870's. |
| 230 |
% |
| 231 |
% Apart from the specialised literature, the story of the Cypriot script |
| 232 |
% can be found in~\cite{CHADWICK87} and~\cite{GORDON87}, among others. |
| 233 |
% |
| 234 |
% Cypriot was used to write Greek centuries before the Greek alphabet |
| 235 |
% was invented. Perhaps surprisingly, Cypriot has no other relationship |
| 236 |
% to the Greek alphabet except that they can both be used to write the |
| 237 |
% same language. There is, however, a relationship between the Cypriot syllabary |
| 238 |
% and the earlier Linear~B syllabary, which was principally used in Crete, as |
| 239 |
% some of the signs are the same. |
| 240 |
% |
| 241 |
% The font presented here is based on the signs illustrated by |
| 242 |
% Chadwick~\cite{CHADWICK87}, and consists of 55 signs.\footnote{I am grateful |
| 243 |
% to J\"{u}rgen Kraus (\texttt{[email protected]}) for reviewing |
| 244 |
% my interpretation of the symbols.} |
| 245 |
% |
| 246 |
% |
| 247 |
% |
| 248 |
% \DescribeMacro{\cyprfamily} |
| 249 |
% This command selects the Cypriot font family. |
| 250 |
% The family name is |cypr|. |
| 251 |
% |
| 252 |
% \DescribeMacro{\textcypr} |
| 253 |
% The command |\textcypr{|\meta{text}|}| typesets \meta{text} in the |
| 254 |
% Cypriot font. |
| 255 |
% |
| 256 |
% The commands (and their ASCII equivalents) for the 55 signs |
| 257 |
% are given in Table~\ref{tab:basic}; you can use either the command or |
| 258 |
% its ASCII keyboard equivalent. There are 5 signs for the 5 vowels and |
| 259 |
% the remaining 50 signs are two-character syllables. |
| 260 |
% The apparently odd mapping to the ASCII characters is so that a |
| 261 |
% companion Linear~B font~\cite{LINEARB} can use the same ASCII characters |
| 262 |
% for the syllables that are common to both scripts. |
| 263 |
% \changes{v1.2}{2009/05/22}{Added \cs{Cxa} and \cs{Cxe} to encoding table} |
| 264 |
% \begin{table} |
| 265 |
% \centering |
| 266 |
% \caption{Commands and encoding for the signs}\label{tab:basic} |
| 267 |
% \begin{tabular}{cccccc} \hline |
| 268 |
% & a & e & i & o & u \\ \hline |
| 269 |
% & |\Ca| a & |\Ce| e & |\Ci| i & |\Co| o & |\Cu| u \\ |
| 270 |
% g & |\Cga| g & & & & \\ |
| 271 |
% j & |\Cja| j & & & |\Cjo| b & \\ |
| 272 |
% k & |\Cka| k & |\Cke| K & |\Cki| c & |\Cko| h & |\Cku| v \\ |
| 273 |
% l & |\Cla| l & |\Cle| L & |\Cli| d & |\Clo| f & |\Clu| q \\ |
| 274 |
% m & |\Cma| m & |\Cme| M & |\Cmi| y & |\Cmo| A & |\Cmu| B \\ |
| 275 |
% n & |\Cna| n & |\Cne| N & |\Cni| C & |\Cno| E & |\Cnu| F \\ |
| 276 |
% p & |\Cpa| p & |\Cpe| P & |\Cpi| G & |\Cpo| H & |\Cpu| I \\ |
| 277 |
% r & |\Cra| r & |\Cre| R & |\Cri| O & |\Cro| U & |\Cru| V \\ |
| 278 |
% s & |\Csa| s & |\Cse| S & |\Csi| Y & |\Cso| 1 & |\Csu| 2 \\ |
| 279 |
% t & |\Cta| t & |\Cte| T & |\Cti| 3 & |\Cto| 4 & |\Ctu| 5 \\ |
| 280 |
% w & |\Cwa| w & |\Cwe| W & |\Cwi| 6 & |\Cwo| 7 & \\ |
| 281 |
% x & |\Cxa| x & |\Cxe| X & & & \\ |
| 282 |
% z & & & & |\Czo| 9 & \\ |
| 283 |
% \hline |
| 284 |
% \end{tabular} |
| 285 |
% \end{table} |
| 286 |
% |
| 287 |
% There appears to be some flexibility in the interpretation of three |
| 288 |
% of the signs, namely the \textit{ga}, \textit{ja} and \textit{jo}. Some |
| 289 |
% write these as \textit{za}, \textit{ya} and \textit{yo}, respectively. |
| 290 |
% I have provided the commands |\Cza|, |\Cya| and |\Cyo|, in addition to |
| 291 |
% those listed in Table~\ref{tab:basic}, for those who prefer the alternate |
| 292 |
% interpretation. These typeset the same sign as the corresponding |
| 293 |
% |\Cga|, |\Cja| and |
| 294 |
% |\Cjo| commands, the difference between the interpretations only being |
| 295 |
% manifest within transliterated text. |
| 296 |
% |
| 297 |
% The Cypriot script includes a word divider, which is a short vertical |
| 298 |
% line. In this font, there are three synonomous dividers which are produced |
| 299 |
% by the ASCII keyboard characters |: , /| (i.e., colon or comma or slash). |
| 300 |
% Using any of these when typesetting the script produce the same word divider |
| 301 |
% sign. |
| 302 |
% |
| 303 |
% \DescribeMacro{\translitcypr} |
| 304 |
% The command |\translitcypr{|\meta{char-commands}|}|, where \meta{char-commands} |
| 305 |
% are the Cypriot character commands, will typeset a transliteration of the |
| 306 |
% signs. For example,\\ |
| 307 |
% |\translitcypr{\Cti\Cme:\Cto/\Cre\Cti\Cre}| will generate \\ |
| 308 |
% \textit{ti-me-:to-/re-ti-re-} \\ |
| 309 |
% Note that in the transliterated form the word dividers |
| 310 |
% (|:| and |/| in this example) are printed as themselves. This is because |
| 311 |
% only the character commands are modified while any other text is printed as is. |
| 312 |
% It is a feature of the command that all transliterated commands have a trailing |
| 313 |
% |-| sign. |
| 314 |
% |
| 315 |
% \DescribeMacro{\translitcyprfont} |
| 316 |
% The transliterated Cypriot is typeset with the font declarations specified by |
| 317 |
% |\translitcyprfont|, which defaults to |\itshape| thus printing the |
| 318 |
% transliteration in an italic font. The font can be changed by redefining |
| 319 |
% the command. For example, if you wanted to use a bold sans font you |
| 320 |
% would do: \\ |
| 321 |
% |\renewcommand{\translitcyprfont}{\sffamily\bfseries}| |
| 322 |
% |
| 323 |
% |
| 324 |
% \section{The font definition files} \label{sec:fd} |
| 325 |
% |
| 326 |
% \begin{macrocode} |
| 327 |
%<*fdot1> |
| 328 |
\ProvidesFile{ot1cypr.fd}[1999/06/20 v1.0 Cypriot font definitions] |
| 329 |
\DeclareFontFamily{OT1}{cypr}{} |
| 330 |
\DeclareFontShape{OT1}{cypr}{m}{n}{ <-> cypr10 }{} |
| 331 |
\DeclareFontShape{OT1}{cypr}{bx}{n}{ <-> sub cypr/m/n }{} |
| 332 |
\DeclareFontShape{OT1}{cypr}{b}{n}{ <-> sub cypr/m/n }{} |
| 333 |
\DeclareFontShape{OT1}{cypr}{m}{sl}{ <-> sub cypr/m/n }{} |
| 334 |
\DeclareFontShape{OT1}{cypr}{m}{it}{ <-> sub cypr/m/n }{} |
| 335 |
%</fdot1> |
| 336 |
% \end{macrocode} |
| 337 |
% |
| 338 |
% |
| 339 |
% \begin{macrocode} |
| 340 |
%<*fdt1> |
| 341 |
\ProvidesFile{t1cypr.fd}[1999/06/20 v1.0 Cypriot font definitions] |
| 342 |
\DeclareFontFamily{T1}{cypr}{} |
| 343 |
\DeclareFontShape{T1}{cypr}{m}{n}{ <-> cypr10 }{} |
| 344 |
\DeclareFontShape{T1}{cypr}{bx}{n}{ <-> sub cypr/m/n }{} |
| 345 |
\DeclareFontShape{T1}{cypr}{b}{n}{ <-> sub cypr/m/n }{} |
| 346 |
\DeclareFontShape{T1}{cypr}{m}{sl}{ <-> sub cypr/m/n }{} |
| 347 |
\DeclareFontShape{T1}{cypr}{m}{it}{ <-> sub cypr/m/n }{} |
| 348 |
%</fdt1> |
| 349 |
% \end{macrocode} |
| 350 |
% |
| 351 |
% \section{The \Lpack{cypriot} package code} \label{sec:code} |
| 352 |
% |
| 353 |
% Announce the name and version of the package, which requires |
| 354 |
% \LaTeXe{}. |
| 355 |
% \begin{macrocode} |
| 356 |
%<*usc> |
| 357 |
\NeedsTeXFormat{LaTeX2e} |
| 358 |
\ProvidesPackage{cypriot}[2009/05/22 v1.2 package for Cypriot font] |
| 359 |
% \end{macrocode} |
| 360 |
% |
| 361 |
% We need to check the encoding default for the document. |
| 362 |
% \begin{macro}{\Tienc} |
| 363 |
% \begin{macrocode} |
| 364 |
\providecommand{\Tienc}{T1} |
| 365 |
% \end{macrocode} |
| 366 |
% \end{macro} |
| 367 |
% |
| 368 |
% |
| 369 |
% \begin{macro}{\cyprfamily} |
| 370 |
% Selects the Cypriot font family in the T1 encoding if this |
| 371 |
% is the document's default encoding, otherwise make it the OT1 encoding. |
| 372 |
% \begin{macrocode} |
| 373 |
\ifx\Tienc\encodingdefault |
| 374 |
\newcommand{\cyprfamily}{\usefont{T1}{cypr}{m}{n}} |
| 375 |
\else |
| 376 |
\newcommand{\cyprfamily}{\usefont{OT1}{cypr}{m}{n}} |
| 377 |
\fi |
| 378 |
% \end{macrocode} |
| 379 |
% \end{macro} |
| 380 |
% |
| 381 |
% \begin{macro}{\textcypr} |
| 382 |
% Text command for the Cypriot font family. |
| 383 |
% \begin{macrocode} |
| 384 |
\DeclareTextFontCommand{\textcypr}{\cyprfamily} |
| 385 |
% \end{macrocode} |
| 386 |
% \end{macro} |
| 387 |
% |
| 388 |
% The commands for the basic signs. |
| 389 |
% \begin{macro}{\Ca} |
| 390 |
% \begin{macro}{\Ce} |
| 391 |
% \begin{macro}{\Ci} |
| 392 |
% \begin{macro}{\Co} |
| 393 |
% \begin{macro}{\Cu} |
| 394 |
% The 5 vowels. |
| 395 |
% \begin{macrocode} |
| 396 |
\chardef\Ca=`a |
| 397 |
\chardef\Ce=`e |
| 398 |
\chardef\Ci=`i |
| 399 |
\chardef\Co=`o |
| 400 |
\chardef\Cu=`u |
| 401 |
% \end{macrocode} |
| 402 |
% \end{macro} |
| 403 |
% \end{macro} |
| 404 |
% \end{macro} |
| 405 |
% \end{macro} |
| 406 |
% \end{macro} |
| 407 |
% |
| 408 |
% \begin{macro}{\Cga} |
| 409 |
% The 1 G syllables. |
| 410 |
% \begin{macrocode} |
| 411 |
\chardef\Cga=`g |
| 412 |
% \end{macrocode} |
| 413 |
% \end{macro} |
| 414 |
% |
| 415 |
% \begin{macro}{\Cja} |
| 416 |
% \begin{macro}{\Cjo} |
| 417 |
% The 2 J syllables. |
| 418 |
% \begin{macrocode} |
| 419 |
\chardef\Cja=`j |
| 420 |
\chardef\Cjo=`b |
| 421 |
% \end{macrocode} |
| 422 |
% \end{macro} |
| 423 |
% \end{macro} |
| 424 |
% |
| 425 |
% |
| 426 |
% \begin{macro}{\Cka} |
| 427 |
% \begin{macro}{\Cke} |
| 428 |
% \begin{macro}{\Cki} |
| 429 |
% \begin{macro}{\Cko} |
| 430 |
% \begin{macro}{\Cku} |
| 431 |
% The 5 K syllables. |
| 432 |
% \begin{macrocode} |
| 433 |
\chardef\Cka=`k |
| 434 |
\chardef\Cke=`K |
| 435 |
\chardef\Cki=`c |
| 436 |
\chardef\Cko=`h |
| 437 |
\chardef\Cku=`v |
| 438 |
% \end{macrocode} |
| 439 |
% \end{macro} |
| 440 |
% \end{macro} |
| 441 |
% \end{macro} |
| 442 |
% \end{macro} |
| 443 |
% \end{macro} |
| 444 |
% |
| 445 |
% \begin{macro}{\Cla} |
| 446 |
% \begin{macro}{\Cle} |
| 447 |
% \begin{macro}{\Cli} |
| 448 |
% \begin{macro}{\Clo} |
| 449 |
% \begin{macro}{\Clu} |
| 450 |
% The 5 L syllables. |
| 451 |
% \begin{macrocode} |
| 452 |
\chardef\Cla=`l |
| 453 |
\chardef\Cle=`L |
| 454 |
\chardef\Cli=`d |
| 455 |
\chardef\Clo=`f |
| 456 |
\chardef\Clu=`q |
| 457 |
% \end{macrocode} |
| 458 |
% \end{macro} |
| 459 |
% \end{macro} |
| 460 |
% \end{macro} |
| 461 |
% \end{macro} |
| 462 |
% \end{macro} |
| 463 |
% |
| 464 |
% |
| 465 |
% \begin{macro}{\Cma} |
| 466 |
% \begin{macro}{\Cme} |
| 467 |
% \begin{macro}{\Cmi} |
| 468 |
% \begin{macro}{\Cmo} |
| 469 |
% \begin{macro}{\Cmu} |
| 470 |
% The 5 M syllables. |
| 471 |
% \begin{macrocode} |
| 472 |
\chardef\Cma=`m |
| 473 |
\chardef\Cme=`M |
| 474 |
\chardef\Cmi=`y |
| 475 |
\chardef\Cmo=`A |
| 476 |
\chardef\Cmu=`B |
| 477 |
% \end{macrocode} |
| 478 |
% \end{macro} |
| 479 |
% \end{macro} |
| 480 |
% \end{macro} |
| 481 |
% \end{macro} |
| 482 |
% \end{macro} |
| 483 |
% |
| 484 |
% |
| 485 |
% \begin{macro}{\Cna} |
| 486 |
% \begin{macro}{\Cne} |
| 487 |
% \begin{macro}{\Cni} |
| 488 |
% \begin{macro}{\Cno} |
| 489 |
% \begin{macro}{\Cnu} |
| 490 |
% The 5 N syllables. |
| 491 |
% \begin{macrocode} |
| 492 |
\chardef\Cna=`n |
| 493 |
\chardef\Cne=`N |
| 494 |
\chardef\Cni=`C |
| 495 |
\chardef\Cno=`E |
| 496 |
\chardef\Cnu=`F |
| 497 |
% \end{macrocode} |
| 498 |
% \end{macro} |
| 499 |
% \end{macro} |
| 500 |
% \end{macro} |
| 501 |
% \end{macro} |
| 502 |
% \end{macro} |
| 503 |
% |
| 504 |
% \begin{macro}{\Cpa} |
| 505 |
% \begin{macro}{\Cpe} |
| 506 |
% \begin{macro}{\Cpi} |
| 507 |
% \begin{macro}{\Cpo} |
| 508 |
% \begin{macro}{\Cpu} |
| 509 |
% The 5 P syllables. |
| 510 |
% \begin{macrocode} |
| 511 |
\chardef\Cpa=`p |
| 512 |
\chardef\Cpe=`P |
| 513 |
\chardef\Cpi=`G |
| 514 |
\chardef\Cpo=`H |
| 515 |
\chardef\Cpu=`I |
| 516 |
% \end{macrocode} |
| 517 |
% \end{macro} |
| 518 |
% \end{macro} |
| 519 |
% \end{macro} |
| 520 |
% \end{macro} |
| 521 |
% \end{macro} |
| 522 |
% |
| 523 |
% |
| 524 |
% \begin{macro}{\Cra} |
| 525 |
% \begin{macro}{\Cre} |
| 526 |
% \begin{macro}{\Cri} |
| 527 |
% \begin{macro}{\Cro} |
| 528 |
% \begin{macro}{\Cru} |
| 529 |
% The 5 R syllables. |
| 530 |
% \begin{macrocode} |
| 531 |
\chardef\Cra=`r |
| 532 |
\chardef\Cre=`R |
| 533 |
\chardef\Cri=`O |
| 534 |
\chardef\Cro=`U |
| 535 |
\chardef\Cru=`V |
| 536 |
% \end{macrocode} |
| 537 |
% \end{macro} |
| 538 |
% \end{macro} |
| 539 |
% \end{macro} |
| 540 |
% \end{macro} |
| 541 |
% \end{macro} |
| 542 |
% |
| 543 |
% \begin{macro}{\Csa} |
| 544 |
% \begin{macro}{\Cse} |
| 545 |
% \begin{macro}{\Csi} |
| 546 |
% \begin{macro}{\Cso} |
| 547 |
% \begin{macro}{\Csu} |
| 548 |
% The 5 S syllables. |
| 549 |
% \begin{macrocode}% |
| 550 |
\chardef\Csa=`s |
| 551 |
\chardef\Cse=`S |
| 552 |
\chardef\Csi=`Y |
| 553 |
\chardef\Cso=`1 |
| 554 |
\chardef\Csu=`2 |
| 555 |
% \end{macrocode} |
| 556 |
% \end{macro} |
| 557 |
% \end{macro} |
| 558 |
% \end{macro} |
| 559 |
% \end{macro} |
| 560 |
% \end{macro} |
| 561 |
% |
| 562 |
% \begin{macro}{\Cta} |
| 563 |
% \begin{macro}{\Cte} |
| 564 |
% \begin{macro}{\Cti} |
| 565 |
% \begin{macro}{\Cto} |
| 566 |
% \begin{macro}{\Ctu} |
| 567 |
% The 5 T syllables. |
| 568 |
% \begin{macrocode} |
| 569 |
\chardef\Cta=`t |
| 570 |
\chardef\Cte=`T |
| 571 |
\chardef\Cti=`3 |
| 572 |
\chardef\Cto=`4 |
| 573 |
\chardef\Ctu=`5 |
| 574 |
% \end{macrocode} |
| 575 |
% \end{macro} |
| 576 |
% \end{macro} |
| 577 |
% \end{macro} |
| 578 |
% \end{macro} |
| 579 |
% \end{macro} |
| 580 |
% |
| 581 |
% \begin{macro}{\Cwa} |
| 582 |
% \begin{macro}{\Cwe} |
| 583 |
% \begin{macro}{\Cwi} |
| 584 |
% \begin{macro}{\Cwo} |
| 585 |
% The 4 W syllables. |
| 586 |
% \begin{macrocode} |
| 587 |
\chardef\Cwa=`w |
| 588 |
\chardef\Cwe=`W |
| 589 |
\chardef\Cwi=`6 |
| 590 |
\chardef\Cwo=`7 |
| 591 |
% \end{macrocode} |
| 592 |
% \end{macro} |
| 593 |
% \end{macro} |
| 594 |
% \end{macro} |
| 595 |
% \end{macro} |
| 596 |
% |
| 597 |
% \begin{macro}{\Cxa} |
| 598 |
% \begin{macro}{\Cxe} |
| 599 |
% The 2 X syllables. |
| 600 |
% \changes{v1.2}{2009/05/22}{There are only 2, not 3, X syllables} |
| 601 |
% \begin{macrocode} |
| 602 |
\chardef\Cxa=`x |
| 603 |
\chardef\Cxe=`X |
| 604 |
% \end{macrocode} |
| 605 |
% \end{macro} |
| 606 |
% \end{macro} |
| 607 |
% |
| 608 |
% \begin{macro}{\Czo} |
| 609 |
% The 1 Z syllables. |
| 610 |
% \begin{macrocode} |
| 611 |
\chardef\Czo=`9 |
| 612 |
% \end{macrocode} |
| 613 |
% \end{macro} |
| 614 |
% |
| 615 |
% \begin{macro}{\Cza} |
| 616 |
% \begin{macro}{\Cya} |
| 617 |
% \begin{macro}{\Cya} |
| 618 |
% The 3 arguable syllables. |
| 619 |
% \begin{macrocode} |
| 620 |
\chardef\Cza=`g |
| 621 |
\chardef\Cya=`j |
| 622 |
\chardef\Cyo=`b |
| 623 |
% \end{macrocode} |
| 624 |
% \end{macro} |
| 625 |
% \end{macro} |
| 626 |
% \end{macro} |
| 627 |
% |
| 628 |
% |
| 629 |
% \begin{macro}{\translitcyprfont} |
| 630 |
% \begin{macro}{\translitcypr} |
| 631 |
% |\translitcypr{|\meta{char-commands}|}| transliterates Cypriot character |
| 632 |
% commands into distinguished syllables; these are typeset using the |
| 633 |
% |\translitcyprfont| font specification. |
| 634 |
% \begin{macrocode} |
| 635 |
\newcommand{\translitcyprfont}{\itshape} |
| 636 |
\newcommand{\translitcypr}[1]{{% |
| 637 |
\@translitC\translitcyprfont #1}} |
| 638 |
% \end{macrocode} |
| 639 |
% \end{macro} |
| 640 |
% \end{macro} |
| 641 |
% |
| 642 |
% \begin{macro}{\@translitC} |
| 643 |
% This macro redefines all the character producing commands for use |
| 644 |
% in |\translitcypr|. |
| 645 |
% |
| 646 |
% Start with the 5 vowels. We have to make sure that there are no extraneous |
| 647 |
% spaces within the command. |
| 648 |
% \begin{macrocode} |
| 649 |
\newcommand{\@translitC}{% |
| 650 |
\def\Ca{a-}\def\Ce{e-}\def\Ci{i-}\def\Co{o-}\def\Cu{u-}% |
| 651 |
% \end{macrocode} |
| 652 |
% |
| 653 |
% The 1 G syllables. |
| 654 |
% \begin{macrocode} |
| 655 |
\def\Cga{ga-}% |
| 656 |
% \end{macrocode} |
| 657 |
% |
| 658 |
% The 2 J syllables. |
| 659 |
% \begin{macrocode} |
| 660 |
\def\Cja{ja-}\def\Cjo{jo-}% |
| 661 |
% \end{macrocode} |
| 662 |
% |
| 663 |
% The 5 K syllables. |
| 664 |
% \begin{macrocode} |
| 665 |
\def\Cka{ka-}\def\Cke{ke-}\def\Cki{ki-}\def\Cko{ko-}\def\Cku{ku-}% |
| 666 |
% \end{macrocode} |
| 667 |
% |
| 668 |
% The 5 L syllables. |
| 669 |
% \begin{macrocode} |
| 670 |
\def\Cda{da-}\def\Cde{de-}\def\Cdi{di-}\def\Cdo{do-}\def\Cdu{du-}% |
| 671 |
% \end{macrocode} |
| 672 |
% |
| 673 |
% The 5 M syllables. |
| 674 |
% \begin{macrocode} |
| 675 |
\def\Cma{ma-}\def\Cme{me-}\def\Cmi{mi-}\def\Cmo{mo-}\def\Cmu{mu-}% |
| 676 |
% \end{macrocode} |
| 677 |
% |
| 678 |
% The 5 N syllables. |
| 679 |
% \begin{macrocode} |
| 680 |
\def\Cna{na-}\def\Cne{ne-}\def\Cni{ni-}\def\Cno{no-}\def\Cnu{nu-}% |
| 681 |
% \end{macrocode} |
| 682 |
% |
| 683 |
% The 5 P syllables. |
| 684 |
% \begin{macrocode} |
| 685 |
\def\Cpa{pa-}\def\Cpe{pe-}\def\Cpi{pi-}\def\Cpo{po-}\def\Cpu{pu-}% |
| 686 |
% \end{macrocode} |
| 687 |
% |
| 688 |
% |
| 689 |
% The 5 R syllables. |
| 690 |
% \begin{macrocode} |
| 691 |
\def\Cra{ra-}\def\Cre{re-}\def\Cri{ri-}\def\Cro{ro-}\def\Cru{ru-}% |
| 692 |
% \end{macrocode} |
| 693 |
% |
| 694 |
% The 5 S syllables. |
| 695 |
% \begin{macrocode} |
| 696 |
\def\Csa{sa-}\def\Cse{se-}\def\Csi{si-}\def\Cso{so-}\def\Csu{su-}% |
| 697 |
% \end{macrocode} |
| 698 |
% |
| 699 |
% The 5 T syllables. |
| 700 |
% \begin{macrocode} |
| 701 |
\def\Cta{ta-}\def\Cte{te-}\def\Cti{ti-}\def\Cto{to-}\def\Ctu{tu-}% |
| 702 |
% \end{macrocode} |
| 703 |
% |
| 704 |
% The 4 W syllables. |
| 705 |
% \begin{macrocode} |
| 706 |
\def\Cwa{wa-}\def\Cwe{we-}\def\Cwi{wi-}\def\Cwo{wo-}% |
| 707 |
% \end{macrocode} |
| 708 |
% |
| 709 |
% The 2 X syllables. |
| 710 |
% \changes{v1.2}{2009/05/22}{There is no \cs{Cxo} syllable} |
| 711 |
% \begin{macrocode} |
| 712 |
\def\Cxa{xa-}\def\Cxe{xe-}% |
| 713 |
% \end{macrocode} |
| 714 |
% |
| 715 |
% The 1 Z syllables. |
| 716 |
% \begin{macrocode} |
| 717 |
\def\Czo{zo-}% |
| 718 |
% \end{macrocode} |
| 719 |
% |
| 720 |
% The 3 arguable syllables |
| 721 |
% \begin{macrocode} |
| 722 |
\def\Cza{za-}\def\Cya{ya-}\def\Cyo{yo-}% |
| 723 |
% \end{macrocode} |
| 724 |
% |
| 725 |
% Close the macro definition. |
| 726 |
% \begin{macrocode} |
| 727 |
} % end of \@translitC |
| 728 |
% \end{macrocode} |
| 729 |
% \end{macro} |
| 730 |
% |
| 731 |
% |
| 732 |
% The end of this package. |
| 733 |
% \begin{macrocode} |
| 734 |
%</usc> |
| 735 |
% \end{macrocode} |
| 736 |
% |
| 737 |
% \section{The map file} |
| 738 |
% |
| 739 |
% This is pretty short. |
| 740 |
% \changes{v1.1}{2005/04/17}{Added the map file} |
| 741 |
% \begin{macrocode} |
| 742 |
%<*map> |
| 743 |
cypr10 Archaic-Cypriot <cypr10.pfb |
| 744 |
%</map> |
| 745 |
% \end{macrocode} |
| 746 |
% |
| 747 |
% |
| 748 |
% \StopEventually{ |
| 749 |
% \bibliographystyle{alpha} |
| 750 |
% \begin{thebibliography}{GMS94} |
| 751 |
% |
| 752 |
% \bibitem[Cha87]{CHADWICK87} |
| 753 |
% John Chadwick. |
| 754 |
% \newblock \emph{Linear B and Related Scripts}. |
| 755 |
% \newblock University of California Press/British Museum, 1987. |
| 756 |
% (ISBN 0-520-06019-9) |
| 757 |
% |
| 758 |
% \bibitem[Dru95]{DRUCKER95} |
| 759 |
% Johanna Drucker. |
| 760 |
% \newblock \emph{The Alphabetic Labyrinth}. |
| 761 |
% \newblock Thames and Hudson, 1995. |
| 762 |
% |
| 763 |
% \bibitem[Fir93]{FIRMAGE93} |
| 764 |
% Richard A.~Firmage. |
| 765 |
% \newblock \emph{The Alphabet Abecedarium}. |
| 766 |
% \newblock David R.~Goodine, 1993. |
| 767 |
% |
| 768 |
% \bibitem[MG04]{COMPANION} |
| 769 |
% Frank Mittelbach and Michel Goossens. |
| 770 |
% \newblock \emph{The LaTeX Companion}. |
| 771 |
% \newblock Addison-Wesley Publishing Company, second edition, 2004. |
| 772 |
% |
| 773 |
% \bibitem[Gor87]{GORDON87} |
| 774 |
% Cyrus H.~Gordon. |
| 775 |
% \newblock \emph{Forgotten Scripts}. |
| 776 |
% \newblock Dorset Press, (Revised and enlarged edition) 1987. |
| 777 |
% |
| 778 |
% \bibitem[Wil99]{LINEARB} |
| 779 |
% Peter R.~Wilson. |
| 780 |
% \newblock \emph{The Linear~B Package}. |
| 781 |
% \newblock 1999. (Available from CTAN in \texttt{fonts/archaic}). |
| 782 |
% |
| 783 |
% \end{thebibliography} |
| 784 |
% \PrintIndex |
| 785 |
% } |
| 786 |
% |
| 787 |
% |
| 788 |
% |
| 789 |
% |
| 790 |
% \section{The Metafont code} \label{sec:mf} |
| 791 |
% |
| 792 |
% \subsection{The parameters} |
| 793 |
% |
| 794 |
% We deal with the parameters first, and start by announcing |
| 795 |
% what it is for. |
| 796 |
% \changes{v1.1}{2005/04/17}{Merged all the metafont files into one.} |
| 797 |
% \begin{macrocode} |
| 798 |
%<*up> |
| 799 |
%%% CYPR10.MF Cypriot Bronze Age script 10 point design size. |
| 800 |
|
| 801 |
% \end{macrocode} |
| 802 |
% Specify the font size. |
| 803 |
% \begin{macrocode} |
| 804 |
|
| 805 |
font_identifier:="Cypriot"; font_size 10pt#; |
| 806 |
|
| 807 |
% \end{macrocode} |
| 808 |
% |
| 809 |
% |
| 810 |
% \DescribeVariable{penfudge} |
| 811 |
% Increase (decrease) this to get bolder (lighter) characters. |
| 812 |
% \begin{macrocode} |
| 813 |
penfudge:=1.0; |
| 814 |
% \end{macrocode} |
| 815 |
% |
| 816 |
% |
| 817 |
% \DescribeVariable{heightfudge} |
| 818 |
% Increase (decrease) this to get taller (shorter) characters. |
| 819 |
% \begin{macrocode} |
| 820 |
heightfudge:=1.0; |
| 821 |
% \end{macrocode} |
| 822 |
% |
| 823 |
% |
| 824 |
% Define the very simple font values. |
| 825 |
% \DescribeVariable{u} |
| 826 |
% The unit width. |
| 827 |
% \begin{macrocode} |
| 828 |
u#:=.2pt#; % unit width |
| 829 |
% \end{macrocode} |
| 830 |
% |
| 831 |
% \DescribeVariable{ht} |
| 832 |
% The height of the characters. Computer Modern cap height is approximately |
| 833 |
% |6.8pt|. |
| 834 |
% \begin{macrocode} |
| 835 |
ht#:=heightfudge*10pt#; % height of characters (CM cap-height is approx 6.8pt) |
| 836 |
% \end{macrocode} |
| 837 |
% |
| 838 |
% \DescribeVariable{s} |
| 839 |
% Extra space at the left and right of a character. |
| 840 |
% \begin{macrocode} |
| 841 |
s#:=1.5pt#; % width correction (right and left) |
| 842 |
% \end{macrocode} |
| 843 |
% |
| 844 |
% \DescribeVariable{o} |
| 845 |
% Overshoot correction. |
| 846 |
% \begin{macrocode} |
| 847 |
o#:=1/20pt#; % overshoot |
| 848 |
% \end{macrocode} |
| 849 |
% |
| 850 |
% \DescribeVariable{px} |
| 851 |
% The horizontal width of the pen. |
| 852 |
% \begin{macrocode} |
| 853 |
px#:=penfudge*0.7pt#; % horizontal width of pen |
| 854 |
% \end{macrocode} |
| 855 |
% |
| 856 |
% \DescribeVariable{font-normal-space} |
| 857 |
% The width of a blank space. |
| 858 |
% \begin{macrocode} |
| 859 |
font_normal_space:=7pt#; % width of a blank space |
| 860 |
% \end{macrocode} |
| 861 |
% |
| 862 |
% \DescribeVariable{font-normal-shrink} |
| 863 |
% Possible width correction for a blank space. |
| 864 |
% \begin{macrocode} |
| 865 |
font_normal_shrink:=.9pt#; % width correction for blank space |
| 866 |
% \end{macrocode} |
| 867 |
% |
| 868 |
% \DescribeVariable{font-x-height} |
| 869 |
% Just for completness, the height of |1ex|. |
| 870 |
% \begin{macrocode} |
| 871 |
font_x_height:=4.5pt#; % height of one ex |
| 872 |
% \end{macrocode} |
| 873 |
% |
| 874 |
% \DescribeVariable{font-quad} |
| 875 |
% The width of |1em|. |
| 876 |
% \begin{macrocode} |
| 877 |
font_quad:=10pt#; % an em |
| 878 |
|
| 879 |
% \end{macrocode} |
| 880 |
% |
| 881 |
% Now move on to the `driver' data for the font. |
| 882 |
% |
| 883 |
% \subsection{The driver data} |
| 884 |
% |
| 885 |
% Switch into Metafont mode |
| 886 |
% |
| 887 |
% \begin{macrocode} |
| 888 |
font_coding_scheme:="Cypriot glyphs"; |
| 889 |
mode_setup; |
| 890 |
|
| 891 |
% \end{macrocode} |
| 892 |
% |
| 893 |
% \DescribeVariable{ho} |
| 894 |
% \DescribeVariable{leftloc} |
| 895 |
% \DescribeVariable{py} |
| 896 |
% Perform additional setup. |
| 897 |
% \begin{macrocode} |
| 898 |
ho#:=o#; % horizontal overshoot |
| 899 |
leftloc#:=s#; % leftmost xcoord of character |
| 900 |
py#:=.9px#; % vertical thickness of the pen |
| 901 |
|
| 902 |
define_pixels(s,u); |
| 903 |
define_blacker_pixels(px,py); |
| 904 |
define_good_x_pixels(leftloc); |
| 905 |
define_corrected_pixels(o); % turn on overshoot correction |
| 906 |
define_horizontal_corrected_pixels(ho); |
| 907 |
|
| 908 |
% \end{macrocode} |
| 909 |
% |
| 910 |
% |
| 911 |
% \DescribeVariable{midloc} |
| 912 |
% \DescribeVariable{rightloc} |
| 913 |
% Variables for the middle xcoord and rightmost xcoord of a character. |
| 914 |
% \begin{macrocode} |
| 915 |
numeric midloc, rightloc; |
| 916 |
% \end{macrocode} |
| 917 |
% |
| 918 |
% |
| 919 |
% \DescribeVariable{tiny} |
| 920 |
% \DescribeVariable{small} |
| 921 |
% \DescribeVariable{medium} |
| 922 |
% \DescribeVariable{large} |
| 923 |
% \DescribeVariable{huge} |
| 924 |
% Some lengths. |
| 925 |
% \begin{macrocode} |
| 926 |
tiny#:=px#; |
| 927 |
small#:=2px#; |
| 928 |
medium#:=3px#; |
| 929 |
large#:=4px#; |
| 930 |
huge#:=5px#; |
| 931 |
define_pixels(tiny,small,medium,large,huge); |
| 932 |
% \end{macrocode} |
| 933 |
% |
| 934 |
% \DescribeVariable{NE} |
| 935 |
% \DescribeVariable{NW} |
| 936 |
% \DescribeVariable{SW} |
| 937 |
% \DescribeVariable{SE} |
| 938 |
% Shorthand for direction vectors corresponding to the designated compass point. |
| 939 |
% \begin{macrocode} |
| 940 |
pair NE,NW,SW,SE; |
| 941 |
NE:=(1,1); |
| 942 |
NW:=(-1,1); |
| 943 |
SW:=(-1,-1); |
| 944 |
SE:=(1,-1); |
| 945 |
% \end{macrocode} |
| 946 |
% |
| 947 |
% |
| 948 |
% \DescribeVariable{stylus} |
| 949 |
% Define the pen. |
| 950 |
% \begin{macrocode} |
| 951 |
pickup pencircle xscaled px yscaled py; |
| 952 |
stylus:=savepen; |
| 953 |
|
| 954 |
% \end{macrocode} |
| 955 |
% |
| 956 |
% |
| 957 |
% \begin{routine}{draw_hdash} |
| 958 |
% |draw_hdash(1,len)| draws a horizontal line, length |len|, with its |
| 959 |
% midpoint at |z1|. |
| 960 |
% \begin{macrocode} |
| 961 |
def draw_hdash(suffix $)(expr len)= |
| 962 |
x$l=x$-len/2; x$r=x$+len/2; y$l=y$r=y$; |
| 963 |
draw z$l--z$r; |
| 964 |
enddef; |
| 965 |
|
| 966 |
% \end{macrocode} |
| 967 |
% \end{routine} |
| 968 |
% |
| 969 |
% \begin{routine}{draw_vdash} |
| 970 |
% |draw_vdash(1,len)| draws a vertical line, length |len|, with its |
| 971 |
% midpoint at |z1|. |
| 972 |
% \begin{macrocode} |
| 973 |
def draw_vdash(suffix $)(expr len)= |
| 974 |
x$t=x$b=x$; y$t=y$+len/2; y$b=y$-len/2; |
| 975 |
draw z$t--z$b; |
| 976 |
enddef; |
| 977 |
|
| 978 |
% \end{macrocode} |
| 979 |
% \end{routine} |
| 980 |
% |
| 981 |
% \begin{routine}{beginglyph} |
| 982 |
% A macro to save some typing of beginchar arguments. |
| 983 |
% \begin{macrocode} |
| 984 |
def beginglyph(expr code, unit_width) = |
| 985 |
beginchar(code, unit_width*ht#+2s#, ht#, 0); |
| 986 |
midloc:=1/2w; rightloc:=(w-s); |
| 987 |
pickup stylus enddef; |
| 988 |
|
| 989 |
% \end{macrocode} |
| 990 |
% \end{routine} |
| 991 |
% |
| 992 |
% \begin{routine}{cmchar} |
| 993 |
% |cmchar| should precede each character |
| 994 |
% \begin{macrocode} |
| 995 |
let cmchar=\; |
| 996 |
|
| 997 |
% \end{macrocode} |
| 998 |
% \end{routine} |
| 999 |
% |
| 1000 |
% |
| 1001 |
% \subsection{The glyph code} |
| 1002 |
% |
| 1003 |
% The following code generates the glyphs for the Cypriot font. |
| 1004 |
% \begin{macrocode} |
| 1005 |
%%%% Glyph code for the Cypriot font. |
| 1006 |
|
| 1007 |
% \end{macrocode} |
| 1008 |
% |
| 1009 |
% \subsubsection{The glyphs} |
| 1010 |
% |
| 1011 |
% There are 55 glyphs. These are composed of the five vowels |
| 1012 |
% (a e i o u), and 50 syllables. First I define the vowels, |
| 1013 |
% then the remaining characters in syllable order |
| 1014 |
% (e.g. \ldots nu, pa, pe, pi, po, pu, qa \ldots). The glyphs |
| 1015 |
% are encoded as roman upper and lower case characters and the digits. |
| 1016 |
% |
| 1017 |
% The somewhat peculiar mapping to the alphanumerics is so that a |
| 1018 |
% companion Linear B syllabary can use an identical encoding for the |
| 1019 |
% syllables that are common between Linear B and Cypriot. |
| 1020 |
% |
| 1021 |
% The vowels are mapped to their lowercase ASCII equivalents. |
| 1022 |
% A syllable "xa" is mapped to ASCII x and "xe" is mapped to X. |
| 1023 |
% Otherwise, the mapping appears random, although there is an |
| 1024 |
% underlying methodology. |
| 1025 |
% |
| 1026 |
% \begin{routine}{a} |
| 1027 |
% The sign \textit{a}. Like an asterisk. |
| 1028 |
% \begin{macrocode} |
| 1029 |
cmchar "Cypriot sign a"; |
| 1030 |
beginglyph("a",1.0); |
| 1031 |
x1=x6=leftloc; y1=0; y6=h; % left points |
| 1032 |
x3=x4=midloc; y3=0; y4=h; z0=0.5[z3,z4]; % middle points |
| 1033 |
x5=x2=rightloc; y5=0; y2=h; % right points |
| 1034 |
draw z1--z2; % bl to tr diagonal |
| 1035 |
draw z3--z4; % vertical |
| 1036 |
draw z5--z6; % br to tl diagonal |
| 1037 |
labels(0,1,2,3,4,5,6,7,8); |
| 1038 |
endchar; |
| 1039 |
|
| 1040 |
% \end{macrocode} |
| 1041 |
% \end{routine} |
| 1042 |
% |
| 1043 |
% \begin{routine}{e} |
| 1044 |
% The sign \textit{e}. Like the `a' but with an extra horizontal half stroke. |
| 1045 |
% crossbar. |
| 1046 |
% \begin{macrocode} |
| 1047 |
cmchar "Cypriot sign e"; |
| 1048 |
beginglyph("e",1.0); |
| 1049 |
x1=x6=leftloc; y1=0; y6=h; % left points |
| 1050 |
x3=x4=midloc; y3=0; y4=h; z0=0.5[z3,z4]; % middle points |
| 1051 |
x5=x2=rightloc; y5=0; y2=h; % right points |
| 1052 |
x7=x2; y7=y0; |
| 1053 |
draw z1--z2; % bl to tr diagonal |
| 1054 |
draw z3--z4; % vertical |
| 1055 |
draw z5--z6; % br to tl diagonal |
| 1056 |
draw z0--z7; % short horizontal |
| 1057 |
labels(0,1,2,3,4,5,6,7,8); |
| 1058 |
endchar; |
| 1059 |
|
| 1060 |
% \end{macrocode} |
| 1061 |
% \end{routine} |
| 1062 |
% |
| 1063 |
% \begin{routine}{i} |
| 1064 |
% The sign \textit{i}. Like the `a' but short vertical. |
| 1065 |
% \begin{macrocode} |
| 1066 |
cmchar "Cypriot sign i"; |
| 1067 |
beginglyph("i",1.0); |
| 1068 |
x1=x6=leftloc; y1=0; y6=h; % left points |
| 1069 |
x3=x4=midloc; y3=0; y4=h; z0=0.5[z3,z4]; % middle points |
| 1070 |
x5=x2=rightloc; y5=0; y2=h; % right points |
| 1071 |
draw z1--z2; % bl to tr diagonal |
| 1072 |
draw z0--z4; % vertical |
| 1073 |
draw z5--z6; % br to tl diagonal |
| 1074 |
labels(0,1,2,3,4,5,6,7,8); |
| 1075 |
endchar; |
| 1076 |
|
| 1077 |
% \end{macrocode} |
| 1078 |
% \end{routine} |
| 1079 |
% |
| 1080 |
% \begin{routine}{o} |
| 1081 |
% The sign \textit{o}. Corporal's stripes on a horizontal base. |
| 1082 |
% \begin{macrocode} |
| 1083 |
cmchar "Cypriot sign o"; |
| 1084 |
beginglyph("o",1.0); |
| 1085 |
x1=x6=leftloc; y1=0; y6=h; % left points |
| 1086 |
x3=x4=midloc; y3=0; y4=h; z0=0.5[z3,z4]; % middle points |
| 1087 |
x5=x2=rightloc; y5=0; y2=h; % right points |
| 1088 |
x7=x1; x8=x5; y7=y8=y0; |
| 1089 |
draw z6--z0--z2; % top stripe |
| 1090 |
draw z7--z3--z8; % bottom stripe |
| 1091 |
draw z1--z5; % base |
| 1092 |
labels(0,1,2,3,4,5,6,7,8); |
| 1093 |
endchar; |
| 1094 |
|
| 1095 |
% \end{macrocode} |
| 1096 |
% \end{routine} |
| 1097 |
% |
| 1098 |
% \begin{routine}{u} |
| 1099 |
% The sign \textit{u}. A Y with the top arms bent. |
| 1100 |
% \begin{macrocode} |
| 1101 |
cmchar "Cypriot sign u"; |
| 1102 |
beginglyph("u",1.0); |
| 1103 |
numeric alpha, wid; alpha:=1/6; |
| 1104 |
wid:=(rightloc-leftloc); |
| 1105 |
x1=x2=midloc; y1=0; y2=h*(1-2alpha); % stem |
| 1106 |
x3=leftloc; x6=rightloc; % arms |
| 1107 |
y4=y5=h; |
| 1108 |
y3=y6=0.5[y2,y4]; |
| 1109 |
x4=alpha[x3,x6]; x5=alpha[x6,x3]; |
| 1110 |
draw z1--z2; % stem |
| 1111 |
draw z3--z4--z2--z5--z6; % arms |
| 1112 |
labels(1,2,3,4,5,6,7,8); |
| 1113 |
endchar; |
| 1114 |
|
| 1115 |
% \end{macrocode} |
| 1116 |
% \end{routine} |
| 1117 |
% |
| 1118 |
% \begin{routine}{ga} |
| 1119 |
% The sign \textit{ga}. Like |> <| with two dashes. |
| 1120 |
% \begin{macrocode} |
| 1121 |
cmchar "Cypriot sign ga"; |
| 1122 |
beginglyph("g",1.0); |
| 1123 |
numeric alpha, wid; alpha:=1/6; |
| 1124 |
wid:=(rightloc-leftloc); |
| 1125 |
numeric beta; beta:=small; |
| 1126 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; % minmax points |
| 1127 |
x2=midloc-beta; x5=midloc+beta; y2=y5=h/2; % chevron centers |
| 1128 |
z11'=1/3[z5,z6]; z13'=2/3[z5,z6]; % the dashes |
| 1129 |
z11=z11' shifted (tiny*NW); z13=z13' shifted (tiny*NW); |
| 1130 |
z12=z11 shifted (small*NW); z14=z13 shifted (small*NW); |
| 1131 |
draw z1--z2--z3; draw z4--z5--z6; % chevrons |
| 1132 |
draw z11--z12; draw z13--z14; % dashes |
| 1133 |
labels(1,2,3,4,5,6,7,8,11,12,13,14); |
| 1134 |
endchar; |
| 1135 |
|
| 1136 |
% \end{macrocode} |
| 1137 |
% \end{routine} |
| 1138 |
% |
| 1139 |
% |
| 1140 |
% \begin{routine}{ja} |
| 1141 |
% The sign \textit{ja}. A teardrop. (A rectangle with two interior lines.) |
| 1142 |
% \begin{macrocode} |
| 1143 |
cmchar "Cypriot sign ja"; |
| 1144 |
beginglyph("j",0.4); |
| 1145 |
x1=x3=midloc; y1=0; y3=h; |
| 1146 |
x2=leftloc; x4=rightloc; y2=y4=0.75[y1,y3]; |
| 1147 |
draw z1..z2{up}..{right}z3; % left half |
| 1148 |
draw z1..z4{up}..{left}z3; % right half |
| 1149 |
labels(1,2,3,4); |
| 1150 |
endchar; |
| 1151 |
|
| 1152 |
% \end{macrocode} |
| 1153 |
% \end{routine} |
| 1154 |
% |
| 1155 |
% \begin{routine}{jo} |
| 1156 |
% The sign \textit{jo}. A W with a line under the bottom right point. |
| 1157 |
% \begin{macrocode} |
| 1158 |
cmchar "Cypriot sign jo"; |
| 1159 |
beginglyph("b",1.0); |
| 1160 |
x1=leftloc; x3=midloc; x5=rightloc; % the W |
| 1161 |
x2=1/2[x1,x3]; x4=1/2[x5,x3]; y2=y4=0; |
| 1162 |
y1=y3=y5=0.5h; |
| 1163 |
x6=0.2[x3,x4]; x7=0.2[x5,x4]; y6=y7=0; % horizontal |
| 1164 |
draw z1--z2--z3--z4--z5; % the W |
| 1165 |
draw z6--z7; % horizontal |
| 1166 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 1167 |
|
| 1168 |
% \end{macrocode} |
| 1169 |
% \end{routine} |
| 1170 |
% |
| 1171 |
% |
| 1172 |
% \begin{routine}{ka} |
| 1173 |
% The sign \textit{ka}. Upward arrow on a base. |
| 1174 |
% \begin{macrocode} |
| 1175 |
cmchar "Cypriot sign ka"; |
| 1176 |
beginglyph("k",0.6); |
| 1177 |
x1=leftloc; x2=rightloc; y1=y2=0; % base |
| 1178 |
x3=x4=midloc; y3=0; y4=h; % stem |
| 1179 |
x5=leftloc; x6=rightloc; y5=y6=0.7h; % arrowhead |
| 1180 |
draw z1--z2; % base |
| 1181 |
draw z3--z4; % stem |
| 1182 |
draw z5--z4--z6; % arrowhead |
| 1183 |
labels(1,2,3,4,5,6); endchar; |
| 1184 |
|
| 1185 |
% \end{macrocode} |
| 1186 |
% \end{routine} |
| 1187 |
% |
| 1188 |
% |
| 1189 |
% \begin{routine}{ke} |
| 1190 |
% The sign \textit{ke}. An E rotated 135 degrees with bottom arm and upright |
| 1191 |
% extended. |
| 1192 |
% \begin{macrocode} |
| 1193 |
cmchar "Cypriot sign ke"; |
| 1194 |
beginglyph("K",1.0); |
| 1195 |
numeric alpha, beta; alpha=medium; |
| 1196 |
x0ll=leftloc+alpha; x0lr=rightloc; y0ll=y0lr=alpha; % E box |
| 1197 |
x0ul=x0ll; x0ur=x0lr; y0ul=y0ur=h; |
| 1198 |
%%zll=(xll,yll); zur=(xur,yur); |
| 1199 |
z1=z0ll shifted (alpha*right); |
| 1200 |
z4=z0ll shifted (alpha*up); |
| 1201 |
z1-z3=whatever*(z0ll-z0ur); % lines parallel to box diagonal |
| 1202 |
z4-z5=whatever*(z0ll-z0ur); |
| 1203 |
x3=x0lr; y6=h; |
| 1204 |
z2=0.5[z1,z3]; z5=0.5[z4,z6]; % center of parallel lines |
| 1205 |
z7-z1=whatever*(z1-z3); y7=0; % upright extension |
| 1206 |
z8-z1=whatever*(z1-z4); y8=0; % arm extension |
| 1207 |
draw z1--z3; % E upright |
| 1208 |
draw z1--z4; draw z2--z5; draw z3--z6; % E arms |
| 1209 |
draw z1--z7; draw z1--z8; % extensions |
| 1210 |
labels(0ll,0lr,0ul,0ur,1,2,3,4,5,6,7,8); endchar; |
| 1211 |
|
| 1212 |
% \end{macrocode} |
| 1213 |
% \end{routine} |
| 1214 |
% |
| 1215 |
% \begin{routine}{ki} |
| 1216 |
% The sign \textit{ki}. Like a Y with bent arms. (J\"{u}rgen Kraus |
| 1217 |
% adds a top bar to the Y). |
| 1218 |
% \begin{macrocode} |
| 1219 |
cmchar "Cypriot sign ki"; |
| 1220 |
beginglyph("c",1.0); |
| 1221 |
numeric alpha, wid; alpha:=1/6; |
| 1222 |
numeric beta; beta:=0.25; |
| 1223 |
wid:=(rightloc-leftloc); |
| 1224 |
x1=x2=midloc; y1=0; y2=h*(1-2alpha); % stem |
| 1225 |
x3=leftloc; x6=rightloc; % arms |
| 1226 |
y4=y5=h; |
| 1227 |
y3=y6=0.5[y2,y4]; |
| 1228 |
x4=alpha[x3,x6]; x5=alpha[x6,x3]; |
| 1229 |
x14=x4; x15=x5; y14=y15=0; % base |
| 1230 |
z16=beta[z4,z5]; z17=beta[z5,z4]; % top bar |
| 1231 |
draw z1--z2; % stem |
| 1232 |
draw z3--z4--z2--z5--z6; % arms |
| 1233 |
draw z14--z15; % base |
| 1234 |
draw z16--z17; % top bar |
| 1235 |
labels(1,2,3,4,5,6,7,8,14,15,16,17); |
| 1236 |
endchar; |
| 1237 |
|
| 1238 |
% \end{macrocode} |
| 1239 |
% \end{routine} |
| 1240 |
% |
| 1241 |
% \begin{routine}{ko} |
| 1242 |
% The sign \textit{ko}. |
| 1243 |
% \begin{macrocode} |
| 1244 |
cmchar "Cypriot sign ko"; |
| 1245 |
beginglyph("h",0.8); |
| 1246 |
numeric beta; beta:=0.2; |
| 1247 |
x1=leftloc; x4=rightloc; y1=y4=0; % bottom points |
| 1248 |
x2=beta[x1,x4]; x3=beta[x4,x1]; y2=y3=h; % top points |
| 1249 |
draw z1--z2--z3--z4; |
| 1250 |
labels(1,2,3,4); endchar; |
| 1251 |
|
| 1252 |
% \end{macrocode} |
| 1253 |
% \end{routine} |
| 1254 |
% |
| 1255 |
% \begin{routine}{ku} |
| 1256 |
% The sign \textit{ku}. |
| 1257 |
% \begin{macrocode} |
| 1258 |
cmchar "Cypriot sign ku"; |
| 1259 |
beginglyph("v",0.8); |
| 1260 |
numeric beta; beta:=small; |
| 1261 |
x1=x6=leftloc; y6=h; y1=0.4h; % left points |
| 1262 |
x3=x4=midloc; y3=0; % center points |
| 1263 |
x5=x2=rightloc; y5=y1; y2=y6; % right points |
| 1264 |
z0=whatever[z1,z2]=whatever[z5,z6]; |
| 1265 |
y4=y0+beta; |
| 1266 |
z4-z8=whatever*(z0-z2); y8=h; |
| 1267 |
z4-z7=whatever*(z0-z6); y7=h; |
| 1268 |
draw z3--z0; % stem |
| 1269 |
draw z1--z2; draw z5--z6; % the X |
| 1270 |
draw z7--z4--z8; % upper angle |
| 1271 |
labels(0,1,2,3,4,5,6,7,8); endchar; |
| 1272 |
|
| 1273 |
% \end{macrocode} |
| 1274 |
% \end{routine} |
| 1275 |
% |
| 1276 |
% \begin{routine}{la} |
| 1277 |
% The sign \textit{la}. Like a V on a base. |
| 1278 |
% \begin{macrocode} |
| 1279 |
cmchar "Cypriot sign la"; |
| 1280 |
beginglyph("l",0.8); |
| 1281 |
numeric beta; beta:=medium; |
| 1282 |
x1=leftloc; x2=rightloc-beta; y1=y2=0; % base |
| 1283 |
x3=x1; x4=0.5[x1,x2]; x5=x2; x6=rightloc; % V |
| 1284 |
y3=y5=h; y4=y1; y6=y5-beta; |
| 1285 |
draw z1--z2; % base |
| 1286 |
draw z3--z4--z5--z6; % V |
| 1287 |
labels(1,2,3,4,5,6); endchar; |
| 1288 |
|
| 1289 |
% \end{macrocode} |
| 1290 |
% \end{routine} |
| 1291 |
% |
| 1292 |
% |
| 1293 |
% \begin{routine}{le} |
| 1294 |
% The sign \textit{le}. Like an 8. |
| 1295 |
% \begin{macrocode} |
| 1296 |
cmchar "Cypriot sign le"; |
| 1297 |
beginglyph("L",0.6); |
| 1298 |
x1=x2=leftloc; y1=1/4h; y2=3/4h; % left points |
| 1299 |
x3=x4=midloc; y3=0; y4=h; % middle points |
| 1300 |
x5=x6=rightloc; y5=y1; y6=y2; % right points |
| 1301 |
draw z3..z1..z6..z4..z2..z5..cycle; % the 8 |
| 1302 |
labels(1,2,3,4,5,6); endchar; |
| 1303 |
|
| 1304 |
% \end{macrocode} |
| 1305 |
% \end{routine} |
| 1306 |
% |
| 1307 |
% |
| 1308 |
% \begin{routine}{li} |
| 1309 |
% The sign \textit{li}. Like a $\leq$ symbol. |
| 1310 |
% \begin{macrocode} |
| 1311 |
cmchar "Cypriot sign li"; |
| 1312 |
beginglyph("d",0.6); |
| 1313 |
numeric beta; beta:=medium; |
| 1314 |
x1=leftloc; x2=rightloc; y1=y2=beta; % base |
| 1315 |
x3=x5=x2; x4=x1; y3=y4=x1+beta; y5=h-beta; |
| 1316 |
draw z1--z2; % base |
| 1317 |
draw z3--z4--z5; % < symbol |
| 1318 |
labels(1,2,3,4,5); endchar; |
| 1319 |
|
| 1320 |
% \end{macrocode} |
| 1321 |
% \end{routine} |
| 1322 |
% |
| 1323 |
% |
| 1324 |
% \begin{routine}{lo} |
| 1325 |
% The sign \textit{lo}. A cross. |
| 1326 |
% \begin{macrocode} |
| 1327 |
cmchar "Cypriot sign lo"; |
| 1328 |
beginglyph("f",0.5); |
| 1329 |
x0=midloc; y0=h/2; |
| 1330 |
x1=leftloc; x2=rightloc; y1=y2=y0; % horizontal |
| 1331 |
x3=x4=x0; y3-y0=x2-x0; y0-y4=x2-x0; % vertical |
| 1332 |
draw z1--z2; draw z3--z4; |
| 1333 |
labels(1,2,3,4); endchar; |
| 1334 |
|
| 1335 |
% \end{macrocode} |
| 1336 |
% \end{routine} |
| 1337 |
% |
| 1338 |
% |
| 1339 |
% \begin{routine}{lu} |
| 1340 |
% The sign \textit{lu}. Like a dome over a U. |
| 1341 |
% \begin{macrocode} |
| 1342 |
cmchar "Cypriot sign lu"; |
| 1343 |
beginglyph("q",0.8); |
| 1344 |
numeric radb, rads; |
| 1345 |
x1=leftloc; x2=rightloc; y1=y2=0; % dome base points |
| 1346 |
radb:=0.5(x2-x1); |
| 1347 |
x3=x1; x4=x2; y3=y4=h-radb; % dome mid points |
| 1348 |
x5=midloc; y5=h; % dome top point |
| 1349 |
rads:=1/2radb; |
| 1350 |
x15=x5; y15=y1; % U bottom point |
| 1351 |
x13=x15-rads; x14=x15+rads; y13=y14=y15+rads; % U mid points |
| 1352 |
x11=x13; x12=x14; y11=y12=y13+2rads; % U top points |
| 1353 |
draw z1---z3..z5..z4---z2; % the Dome |
| 1354 |
draw z11---z13..z15..z14---z12; % the U |
| 1355 |
labels(1,2,3,4,5,11,12,13,14,15); endchar; |
| 1356 |
|
| 1357 |
% \end{macrocode} |
| 1358 |
% \end{routine} |
| 1359 |
% |
| 1360 |
% |
| 1361 |
% \begin{routine}{ma} |
| 1362 |
% The sign \textit{ma}. Like |> <| with an upside down |^| at the top. |
| 1363 |
% \begin{macrocode} |
| 1364 |
cmchar "Cypriot sign ma"; |
| 1365 |
beginglyph("m",0.8); |
| 1366 |
numeric beta; beta:=small; |
| 1367 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; % minmax points |
| 1368 |
x2=midloc-beta; x5=midloc+beta; y2=y5=h/2; |
| 1369 |
x8=midloc; y8=y5+beta; |
| 1370 |
z7-z8=whatever*(z3-z2); z9-z8=whatever*(z6-z5); y7=y9=h; |
| 1371 |
draw z1--z2--z3; % left angle |
| 1372 |
draw z4--z5--z6; % right angle |
| 1373 |
draw z7--z8--z9; % top angle |
| 1374 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1375 |
|
| 1376 |
% \end{macrocode} |
| 1377 |
% \end{routine} |
| 1378 |
% |
| 1379 |
% \begin{routine}{me} |
| 1380 |
% The sign \textit{me}. An X with an i at the bottom. |
| 1381 |
% \begin{macrocode} |
| 1382 |
cmchar "Cypriot sign me"; |
| 1383 |
beginglyph("M",0.8); |
| 1384 |
numeric beta; beta:=tiny; %% beta:=small; |
| 1385 |
x0=midloc; y0=h/2; |
| 1386 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; % minmax points |
| 1387 |
x11=x12=midloc; x13=x11+beta; x14=x13+beta; |
| 1388 |
y12=beta; y13=0; y14=beta/2; y11=0.5[y12,y0]; |
| 1389 |
draw z1--z6; draw z4--z3; % the X |
| 1390 |
draw z11--z12{down}..z13{right}..z14; % the i |
| 1391 |
labels(1,2,3,4,5,6,7,8,9,11,12,13,14); endchar; |
| 1392 |
|
| 1393 |
% \end{macrocode} |
| 1394 |
% \end{routine} |
| 1395 |
% |
| 1396 |
% \begin{routine}{mi} |
| 1397 |
% The sign \textit{mi}. A bit like a V with arms on a base. |
| 1398 |
% \begin{macrocode} |
| 1399 |
cmchar "Cypriot sign mi"; |
| 1400 |
beginglyph("y",0.8); |
| 1401 |
numeric beta; beta:=small; |
| 1402 |
x0=midloc; y0=h/2; |
| 1403 |
x1=leftloc; x5=rightloc; % V points |
| 1404 |
x2=0.15[x1,x5]; x3=0.5[x1,x5]; x4=0.15[x5,x1]; |
| 1405 |
y2=y4=h; y3=0; y1=y5=y2-(x2-x1); |
| 1406 |
x6=0.25[x1,x5]; x7=0.25[x5,x1]; y6=y7=y3; % base points |
| 1407 |
draw z1--z2--z3--z4--z5; % V |
| 1408 |
draw z6--z7; % base |
| 1409 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1410 |
|
| 1411 |
% \end{macrocode} |
| 1412 |
% \end{routine} |
| 1413 |
% |
| 1414 |
% \begin{routine}{mo} |
| 1415 |
% The sign \textit{mo}. An ellipse split by a vertical line. |
| 1416 |
% \begin{macrocode} |
| 1417 |
cmchar "Cypriot sign mo"; |
| 1418 |
beginglyph("A",0.8); |
| 1419 |
numeric beta; beta:=0.2h; |
| 1420 |
x0=midloc; y0=h/2; |
| 1421 |
x1=leftloc; x2=x4=midloc; x3=rightloc; |
| 1422 |
y1=y3=y0; y2=h-beta; y4=beta; |
| 1423 |
draw z1..z2..z3..z4..cycle; % ellipse |
| 1424 |
draw z2--z4; % vertical line |
| 1425 |
labels(1,2,3,4); endchar; |
| 1426 |
|
| 1427 |
% \end{macrocode} |
| 1428 |
% \end{routine} |
| 1429 |
% |
| 1430 |
% \begin{routine}{mu} |
| 1431 |
% The sign \textit{mu}. An X with vertical dashes at either side. |
| 1432 |
% \begin{macrocode} |
| 1433 |
cmchar "Cypriot sign mu"; |
| 1434 |
beginglyph("B",0.8); |
| 1435 |
numeric beta; beta:=0.2; |
| 1436 |
numeric gamma; |
| 1437 |
x0=midloc; y0=h/2; |
| 1438 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; % minmax points |
| 1439 |
x11=beta[x1,x0]; x12=beta[x4,x0]; % for dashes |
| 1440 |
y11=y12=y0; |
| 1441 |
z10'=beta[z1,z0]; z30'=beta[z3,z0]; |
| 1442 |
gamma:=0.5(y30'-y10'); |
| 1443 |
draw z1--z6; draw z4--z3; % the X |
| 1444 |
draw_vdash(11,gamma); draw_vdash(12,gamma); |
| 1445 |
labels(1,2,3,4,5,6,7,8,9,11,12); endchar; |
| 1446 |
|
| 1447 |
% \end{macrocode} |
| 1448 |
% \end{routine} |
| 1449 |
% |
| 1450 |
% \begin{routine}{na} |
| 1451 |
% The sign \textit{na}. A T, but with 2 crossbars. |
| 1452 |
% \begin{macrocode} |
| 1453 |
cmchar "Cypriot sign na"; |
| 1454 |
beginglyph("n",0.4); |
| 1455 |
numeric beta; beta:=0.1h; |
| 1456 |
x1=leftloc; x2=rightloc; y1=y2=h; |
| 1457 |
x3=leftloc; x4=rightloc; y3=y4=y1-beta; |
| 1458 |
x5=x6=midloc; y5=0; y6=y3; |
| 1459 |
draw z1--z2; draw z3--z4; % bars |
| 1460 |
draw z5--z6; % stem |
| 1461 |
labels(1,2,3,4,5,6); endchar; |
| 1462 |
|
| 1463 |
% \end{macrocode} |
| 1464 |
% \end{routine} |
| 1465 |
% |
| 1466 |
% \begin{routine}{ne} |
| 1467 |
% The sign \textit{ne}. A lightning flash between two dashes. |
| 1468 |
% \begin{macrocode} |
| 1469 |
cmchar "Cypriot sign ne"; |
| 1470 |
beginglyph("N",0.6); |
| 1471 |
numeric beta; |
| 1472 |
beta:=0.1*(rightloc-leftloc); |
| 1473 |
x0=midloc; y0=h/2; |
| 1474 |
x1=x0+beta; x4=x0-beta; y1=h; y4=0; % lightning top and bottom |
| 1475 |
x2=x0-beta; x3=x0+beta; % lightning middle points |
| 1476 |
y2=y0+0.5beta; y3=y0-0.5beta; |
| 1477 |
x11=x12=leftloc; y11=0.2h; y12=0.8h; % left dash |
| 1478 |
x13=x14=rightloc; y13=y11; y14=y12; % right dash |
| 1479 |
draw z11--z12; draw z13--z14; % dashes |
| 1480 |
draw z1--z2--z3--z4; % lightning |
| 1481 |
labels(1,2,3,4,11,12,13,14); endchar; |
| 1482 |
|
| 1483 |
% \end{macrocode} |
| 1484 |
% \end{routine} |
| 1485 |
% |
| 1486 |
% \begin{routine}{ni} |
| 1487 |
% The sign \textit{ni}. An E rotated 135 degrees on a base. |
| 1488 |
% \begin{macrocode} |
| 1489 |
cmchar "Cypriot sign ni"; |
| 1490 |
beginglyph("C",1.0); |
| 1491 |
numeric alpha, beta; alpha=medium; |
| 1492 |
x0ll=leftloc; x0lr=rightloc; y0ll=y0lr=0; % E box |
| 1493 |
x0ul=x0ll; x0ur=x0lr; y0ul=y0ur=h; |
| 1494 |
%%zll=(xll,yll); zur=(xur,yur); |
| 1495 |
z1=z0ll shifted (alpha*right); |
| 1496 |
z4=z0ll shifted (alpha*up); |
| 1497 |
z1-z3=whatever*(z0ll-z0ur); % lines parallel to box diagonal |
| 1498 |
z4-z5=whatever*(z0ll-z0ur); |
| 1499 |
x3=x0lr; y6=h; |
| 1500 |
z2=0.5[z1,z3]; z5=0.5[z4,z6]; % center of parallel lines |
| 1501 |
z7=z0ll; x8=0.5[x2,x3]; y8=0; % base |
| 1502 |
draw z1--z3; % E upright |
| 1503 |
draw z1--z4; draw z2--z5; draw z3--z6; % E arms |
| 1504 |
draw z7--z8; % base |
| 1505 |
labels(0ll,0lr,0ul,0ur,1,2,3,4,5,6,7,8); endchar; |
| 1506 |
|
| 1507 |
% \end{macrocode} |
| 1508 |
% \end{routine} |
| 1509 |
% |
| 1510 |
% \begin{routine}{no} |
| 1511 |
% The sign \textit{no}. |
| 1512 |
% \begin{macrocode} |
| 1513 |
cmchar "Cypriot sign no"; |
| 1514 |
beginglyph("E",1.0); |
| 1515 |
numeric alpha, beta; |
| 1516 |
alpha=medium; %% alpha=0.5medium; |
| 1517 |
x0ll=leftloc; x0lr=rightloc; y0ll=y0lr=0; % E box |
| 1518 |
x0ul=x0ll; x0ur=x0lr; y0ul=y0ur=h; |
| 1519 |
z1=z0ll shifted (alpha*right); |
| 1520 |
z4=z0ll shifted (alpha*up); |
| 1521 |
z1-z3'=whatever*(z0ll-z0ur); % lines parallel to box diagonal |
| 1522 |
z4-z6'=whatever*(z0ll-z0ur); |
| 1523 |
x3'=x0lr; y6'=h; |
| 1524 |
x11=x0ur; y11=y0ur-2alpha; % the top ends |
| 1525 |
x12=x0ur-2alpha; y12=y0ur; |
| 1526 |
z3=whatever[z1,z3']=whatever[z11,z12]; |
| 1527 |
z6=whatever[z4,z6']=whatever[z11,z12]; |
| 1528 |
draw z1--z3--z11; |
| 1529 |
draw z4--z6--z12; |
| 1530 |
labels(0ll,0lr,0ul,0ur,1,2,3,3',4,5,6,6',11,12); endchar; |
| 1531 |
|
| 1532 |
% \end{macrocode} |
| 1533 |
% \end{routine} |
| 1534 |
% |
| 1535 |
% \begin{routine}{nu} |
| 1536 |
% The sign \textit{nu}. Like |>| with dashes at the right. |
| 1537 |
% \begin{macrocode} |
| 1538 |
cmchar "Cypriot sign nu"; |
| 1539 |
beginglyph("F",0.4); |
| 1540 |
numeric beta; beta:=small; |
| 1541 |
numeric gamma; gamma:=1/4h; % dash length |
| 1542 |
x1=x3=leftloc; y1=0; y3=h; % left points |
| 1543 |
x4=x6=rightloc; y4=1/4h; y6=3/4h; % dash points |
| 1544 |
x2=x4-beta; y2=h/2; % point of the < |
| 1545 |
draw z1--z2--z3; % left angle |
| 1546 |
draw_vdash(4,gamma); draw_vdash(6,gamma); % dashes |
| 1547 |
labels(1,2,3,4,5,6); endchar; |
| 1548 |
|
| 1549 |
% \end{macrocode} |
| 1550 |
% \end{routine} |
| 1551 |
% |
| 1552 |
% \begin{routine}{pa} |
| 1553 |
% The sign \textit{pa}. Like a Lorraine cross. |
| 1554 |
% \begin{macrocode} |
| 1555 |
cmchar "Cypriot sign pa"; |
| 1556 |
beginglyph("p",0.4); |
| 1557 |
x1=x2=midloc; y1=0; y2=h; % stem |
| 1558 |
x3=x5=leftloc; y3=0.7h; y5=0.4h; |
| 1559 |
x4=x6=rightloc; y4=y3; y6=y5; |
| 1560 |
draw z1--z2; % stem |
| 1561 |
draw z3--z4; draw z5--z6; % cross bars |
| 1562 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1563 |
|
| 1564 |
% \end{macrocode} |
| 1565 |
% \end{routine} |
| 1566 |
% |
| 1567 |
% \begin{routine}{pe} |
| 1568 |
% The sign \textit{pe}. A lightning flash. |
| 1569 |
% \begin{macrocode} |
| 1570 |
cmchar "Cypriot sign pe"; |
| 1571 |
beginglyph("P",0.3); |
| 1572 |
numeric beta; |
| 1573 |
beta:=0.5*(rightloc-leftloc); |
| 1574 |
x0=midloc; y0=h/2; |
| 1575 |
x1=x0+beta; x4=x0-beta; y1=h; y4=0; % lightning top and bottom |
| 1576 |
x2=x0-beta; x3=x0+beta; % lightning middle points |
| 1577 |
y2=y0+0.5beta; y3=y0-0.5beta; |
| 1578 |
draw z1--z2--z3--z4; % lightning |
| 1579 |
labels(1,2,3,4,11,12,13,14); endchar; |
| 1580 |
|
| 1581 |
% \end{macrocode} |
| 1582 |
% \end{routine} |
| 1583 |
% |
| 1584 |
% \begin{routine}{pi} |
| 1585 |
% The sign \textit{pi}. Corporal's stripes. |
| 1586 |
% \begin{macrocode} |
| 1587 |
cmchar "Cypriot sign pi"; |
| 1588 |
beginglyph("G",1.0); |
| 1589 |
x1=x6=leftloc; y1=0; y6=h; % left points |
| 1590 |
x3=x4=midloc; y3=0; y4=h; z0=0.5[z3,z4]; % middle points |
| 1591 |
x5=x2=rightloc; y5=0; y2=h; % right points |
| 1592 |
x7=x1; x8=x5; y7=y8=y0; |
| 1593 |
draw z6--z0--z2; % top stripe |
| 1594 |
draw z7--z3--z8; % bottom stripe |
| 1595 |
labels(0,1,2,3,4,5,6,7,8); |
| 1596 |
endchar; |
| 1597 |
|
| 1598 |
% \end{macrocode} |
| 1599 |
% \end{routine} |
| 1600 |
% |
| 1601 |
% \begin{routine}{po} |
| 1602 |
% The sign \textit{po}. A bit like a sickle. |
| 1603 |
% \begin{macrocode} |
| 1604 |
cmchar "Cypriot sign po"; |
| 1605 |
beginglyph("H",1.0); |
| 1606 |
numeric rad; |
| 1607 |
x0=midloc; y0=h/2; |
| 1608 |
x1=leftloc; y1=0; |
| 1609 |
x5=rightloc; rad:=0.2(x5-x1); y5=h-rad; |
| 1610 |
x4=x5-rad; y4=h; |
| 1611 |
x3=x4-rad; y3=y5; |
| 1612 |
x2=x4; y2=y3-rad; |
| 1613 |
draw z1--z2; |
| 1614 |
draw z2..z3{up}..z4{right}..{down}z5; |
| 1615 |
labels(1,2,3,4,5); endchar; |
| 1616 |
|
| 1617 |
% \end{macrocode} |
| 1618 |
% \end{routine} |
| 1619 |
% |
| 1620 |
% \begin{routine}{pu} |
| 1621 |
% The sign \textit{pu}. A bit like |<!>| on a base. |
| 1622 |
% \begin{macrocode} |
| 1623 |
cmchar "Cypriot sign pu"; |
| 1624 |
beginglyph("I",1.0); |
| 1625 |
x0=midloc; y0=h/2; |
| 1626 |
x1=x0; y1=0; x2=leftloc; y2=2/3h; % left angle |
| 1627 |
x3=0.5[x2,x0]; y3=h; |
| 1628 |
z4=z1; x5=rightloc; y5=y2; % right angle |
| 1629 |
x6=0.5[x5,x0]; y6=y3; |
| 1630 |
z7=z0; % vertical dash |
| 1631 |
x8=leftloc; x9=rightloc; y8=y9=0; % base |
| 1632 |
draw z1--z2--z3; draw z4--z5--z6; % angles |
| 1633 |
draw z4--z7; % dash |
| 1634 |
draw z8--z9; % base |
| 1635 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1636 |
|
| 1637 |
% \end{macrocode} |
| 1638 |
% \end{routine} |
| 1639 |
% |
| 1640 |
% |
| 1641 |
% \begin{routine}{ra} |
| 1642 |
% The sign \textit{ra}. A dome on a base. |
| 1643 |
% \begin{macrocode} |
| 1644 |
cmchar "Cypriot sign ra"; |
| 1645 |
beginglyph("r",0.6); |
| 1646 |
numeric rad, beta; |
| 1647 |
x1=leftloc; x2=rightloc; y1=y2=0; % base |
| 1648 |
z3=0.2[z1,z2]; z4=0.2[z2,z1]; % dome |
| 1649 |
rad:= 0.5*(x4-x3); |
| 1650 |
x7=midloc; y7=h; |
| 1651 |
x5=x3; x6=x4; y5=y6=y7-rad; |
| 1652 |
beta:=1.5; % for tension |
| 1653 |
draw z1--z2; % base |
| 1654 |
%%draw z3--z5..z7..z6--z4; % dome |
| 1655 |
draw z3{up}..tension beta..z7..tension beta..{down}z4; % curve |
| 1656 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1657 |
|
| 1658 |
% \end{macrocode} |
| 1659 |
% \end{routine} |
| 1660 |
% |
| 1661 |
% \begin{routine}{re} |
| 1662 |
% The sign \textit{re}. Two verticals with a roof. |
| 1663 |
% \begin{macrocode} |
| 1664 |
cmchar "Cypriot sign re"; |
| 1665 |
beginglyph("R",0.8); |
| 1666 |
numeric beta; beta:=small; |
| 1667 |
x1=leftloc; x2=midloc; x3=rightloc; y2=h; y1=y3=2/3h; % roof |
| 1668 |
x4=x5=2/3[x1,x2]; x6=x7=2/3[x3,x2]; y4=y6=0; |
| 1669 |
y5=y7=2/3[y1,y2] - beta; |
| 1670 |
draw z1--z2--z3; % roof |
| 1671 |
draw z4--z5; draw z6--z7; % supports |
| 1672 |
labels(1,2,3,4,5,6,7); endchar; |
| 1673 |
|
| 1674 |
% \end{macrocode} |
| 1675 |
% \end{routine} |
| 1676 |
% |
| 1677 |
% \begin{routine}{ri} |
| 1678 |
% The sign \textit{ri}. Like an E rotated 135 degrees. |
| 1679 |
% \begin{macrocode} |
| 1680 |
cmchar "Cypriot sign ri"; |
| 1681 |
beginglyph("O",1.0); |
| 1682 |
numeric alpha, beta; alpha=medium; |
| 1683 |
x0ll=leftloc; x0lr=rightloc; y0ll=y0lr=0; % E box |
| 1684 |
x0ul=x0ll; x0ur=x0lr; y0ul=y0ur=h; |
| 1685 |
%%zll=(xll,yll); zur=(xur,yur); |
| 1686 |
z1=z0ll shifted (alpha*right); |
| 1687 |
z4=z0ll shifted (alpha*up); |
| 1688 |
z1-z3=whatever*(z0ll-z0ur); % lines parallel to box diagonal |
| 1689 |
z4-z5=whatever*(z0ll-z0ur); |
| 1690 |
x3=x0lr; y6=h; |
| 1691 |
z2=0.5[z1,z3]; z5=0.5[z4,z6]; % center of parallel lines |
| 1692 |
draw z1--z3; % E upright |
| 1693 |
draw z1--z4; draw z2--z5; draw z3--z6; % E arms |
| 1694 |
labels(0ll,0lr,0ul,0ur,1,2,3,4,5,6); endchar; |
| 1695 |
|
| 1696 |
% \end{macrocode} |
| 1697 |
% \end{routine} |
| 1698 |
% |
| 1699 |
% \begin{routine}{ro} |
| 1700 |
% The sign \textit{ro}. Like $\alpha$ rotated 90 degrees. |
| 1701 |
% \begin{macrocode} |
| 1702 |
cmchar "Cypriot sign ro"; |
| 1703 |
beginglyph("U",0.6); |
| 1704 |
numeric rad, beta; |
| 1705 |
x0=midloc; y0=h/2; |
| 1706 |
x1=leftloc; x2=rightloc; y1=y2=0; % base points |
| 1707 |
rad:=0.25*(x2-x1); |
| 1708 |
x3=x0-rad; x4=x0+rad; y3=y4=h-rad; |
| 1709 |
x5=x0; y5=h; |
| 1710 |
beta:=1.5; % tension |
| 1711 |
draw z1..tension beta..z4{up}..z5{left}..z3{down}..tension beta..z2; |
| 1712 |
labels(1,2,3,4,5); endchar; |
| 1713 |
|
| 1714 |
% \end{macrocode} |
| 1715 |
% \end{routine} |
| 1716 |
% |
| 1717 |
% \begin{routine}{ru} |
| 1718 |
% The sign \textit{ru}. Like |)\(|, but the slash is short. |
| 1719 |
% \begin{macrocode} |
| 1720 |
cmchar "Cypriot sign ru"; |
| 1721 |
beginglyph("V",0.6); |
| 1722 |
numeric beta; beta:=small; |
| 1723 |
x0=midloc; y0=h/2; |
| 1724 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; % the parens |
| 1725 |
y2=y5=y0; x2=x1+beta; x5=x4-beta; |
| 1726 |
z7=3/4[z1,z4]; x8=x0; y8=(x4-x7); % dash |
| 1727 |
draw z1...z2{up}...z3; % left half |
| 1728 |
draw z4...z5{up}...z6; % right half |
| 1729 |
draw z7--z8; % dash |
| 1730 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 1731 |
|
| 1732 |
% \end{macrocode} |
| 1733 |
% \end{routine} |
| 1734 |
% |
| 1735 |
% \begin{routine}{sa} |
| 1736 |
% The sign \textit{sa}. Like a V. |
| 1737 |
% \begin{macrocode} |
| 1738 |
cmchar "Cypriot sign sa"; |
| 1739 |
beginglyph("s",0.6); |
| 1740 |
x1=leftloc; x2=midloc; x3=rightloc; |
| 1741 |
y1=y3=h; y2=0; |
| 1742 |
draw z1--z2--z3; |
| 1743 |
labels(1,2,3); endchar; |
| 1744 |
|
| 1745 |
% \end{macrocode} |
| 1746 |
% \end{routine} |
| 1747 |
% |
| 1748 |
% \begin{routine}{se} |
| 1749 |
% The sign \textit{se}. |
| 1750 |
% \begin{macrocode} |
| 1751 |
cmchar "Cypriot sign se"; |
| 1752 |
beginglyph("S",0.6); |
| 1753 |
x1=x3=x2=leftloc; y1=0; y2=h; y3=2/3[y1,y2]; |
| 1754 |
x4=x5=midloc; x6=x7=rightloc; |
| 1755 |
y4=y6=y3; y5=y7=y2; |
| 1756 |
draw z1--z2; % upright |
| 1757 |
draw z3--z6; % horizontal |
| 1758 |
draw z4--z5; draw z6--z7; % short uprights |
| 1759 |
labels(1,2,3,4,5,6,7); endchar; |
| 1760 |
|
| 1761 |
% \end{macrocode} |
| 1762 |
% \end{routine} |
| 1763 |
% |
| 1764 |
% \begin{routine}{si} |
| 1765 |
% The sign \textit{si}. A roof over an L over a base. |
| 1766 |
% \begin{macrocode} |
| 1767 |
cmchar "Cypriot sign si"; |
| 1768 |
beginglyph("Y",0.6); |
| 1769 |
x1=leftloc; x2=midloc; x3=rightloc; y1=y3=2/3h; y2=h; % roof |
| 1770 |
x4=leftloc; x5=rightloc; y4=y5=0; % base |
| 1771 |
x6=x7=midloc; x8=rightloc; y7=y8=1/4h; % stem |
| 1772 |
y6=0.5[y1,y2]; |
| 1773 |
draw z1--z2--z3; % roof |
| 1774 |
draw z4--z5; % base |
| 1775 |
draw z6--z7--z8; % stem |
| 1776 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 1777 |
|
| 1778 |
% \end{macrocode} |
| 1779 |
% \end{routine} |
| 1780 |
% |
| 1781 |
% \begin{routine}{so} |
| 1782 |
% The sign \textit{so}. Corporal's stripes over two bases. |
| 1783 |
% \begin{macrocode} |
| 1784 |
cmchar "Cypriot sign so"; |
| 1785 |
beginglyph("1",1.0); |
| 1786 |
x1=x2=x3=x4=leftloc; x5=x6=midloc; x7=x8=x9=x10=rightloc; |
| 1787 |
y1=y7=0; y4=y10=h; |
| 1788 |
y2=y5=y8=0.2h; |
| 1789 |
y3=y9=0.5[y2,y4]; |
| 1790 |
y6-y5=y4-y3; |
| 1791 |
draw z1--z7; % lower base |
| 1792 |
draw z2--z8; % upper base |
| 1793 |
draw z3--z5--z9; % lower stripe |
| 1794 |
draw z4--z6--z10; % upper stripe |
| 1795 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1796 |
|
| 1797 |
% \end{macrocode} |
| 1798 |
% \end{routine} |
| 1799 |
% |
| 1800 |
% \begin{routine}{su} |
| 1801 |
% The sign \textit{su}. Like an upside down |)Y|. |
| 1802 |
% \begin{macrocode} |
| 1803 |
cmchar "Cypriot sign su"; |
| 1804 |
beginglyph("2",1.0); |
| 1805 |
numeric beta; beta:=small; |
| 1806 |
x0=midloc; y0=h/2; |
| 1807 |
x1=x3=leftloc; y1=0; y3=h; x2=x1+beta; y2=h/2; % the parens |
| 1808 |
x4=x2; x5=rightloc; y4=y5=y1; % bottom of Y |
| 1809 |
x6=x7=0.5[x4,x5]; y6=1/3h; y7=y3; % stem of Y |
| 1810 |
x9=0.5[x6,x5]; y9=0.5[y6,y7]; % horizontal right |
| 1811 |
x8'=leftloc; y8'=y9; |
| 1812 |
path p; |
| 1813 |
p=z1..z2..z3; |
| 1814 |
z8 = (z9--z8') intersectionpoint p; |
| 1815 |
draw p; % paren |
| 1816 |
draw z4--z6--z5; draw z6--z7; % Y |
| 1817 |
draw z9--z8; % horizontal |
| 1818 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1819 |
|
| 1820 |
% \end{macrocode} |
| 1821 |
% \end{routine} |
| 1822 |
% |
| 1823 |
% \begin{routine}{ta} |
| 1824 |
% The sign \textit{ta}. |
| 1825 |
% \begin{macrocode} |
| 1826 |
cmchar "Cypriot sign ta"; |
| 1827 |
beginglyph("t",0.4); |
| 1828 |
x1=x2=leftloc; y1=0; y2=h; % left vertical |
| 1829 |
z3=0.5[z1,z2]; % horizontal |
| 1830 |
x4=rightloc; y4=y3; |
| 1831 |
draw z1--z2; draw z3--z4; |
| 1832 |
labels(1,2,3,4); |
| 1833 |
endchar; |
| 1834 |
|
| 1835 |
% \end{macrocode} |
| 1836 |
% \end{routine} |
| 1837 |
% |
| 1838 |
% \begin{routine}{te} |
| 1839 |
% The sign \textit{te}. A downward arrow on a base. |
| 1840 |
% \begin{macrocode} |
| 1841 |
cmchar "Cypriot sign te"; |
| 1842 |
beginglyph("T",0.6); |
| 1843 |
x1=leftloc; x2=midloc; x3=rightloc; y1=y3=1/3h; y2=0; % arrowhead |
| 1844 |
x4=leftloc; x5=rightloc; y4=y5=0; % base |
| 1845 |
x6=midloc; y6=h; % stem |
| 1846 |
draw z1--z2--z3; % arrowhead |
| 1847 |
draw z4--z5; % base |
| 1848 |
draw z6--z2; % stem |
| 1849 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 1850 |
|
| 1851 |
% \end{macrocode} |
| 1852 |
% \end{routine} |
| 1853 |
% |
| 1854 |
% \begin{routine}{ti} |
| 1855 |
% The sign \textit{ti}. An upward arrow. |
| 1856 |
% \begin{macrocode} |
| 1857 |
cmchar "Cypriot sign ti"; |
| 1858 |
beginglyph("3",0.6); |
| 1859 |
x1=leftloc; x2=midloc; x3=rightloc; y1=y3=2/3h; y2=h; % roof |
| 1860 |
x4=midloc; y4=0; % stem |
| 1861 |
draw z1--z2--z3; % roof |
| 1862 |
draw z4--z2; % stem |
| 1863 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 1864 |
|
| 1865 |
% \end{macrocode} |
| 1866 |
% \end{routine} |
| 1867 |
% |
| 1868 |
% \begin{routine}{to} |
| 1869 |
% The sign \textit{to}. Like an F. |
| 1870 |
% \begin{macrocode} |
| 1871 |
cmchar "Cypriot sign to"; |
| 1872 |
beginglyph("4",0.6); |
| 1873 |
numeric alpha; alpha:=0.25; |
| 1874 |
x1=leftloc; x2=rightloc; y1=y2=h; % top bar |
| 1875 |
x3=x4=alpha[x1,x2]; y3=0; y4=y1; % stem |
| 1876 |
z5=2/3[z3,z4]; x6=x2; y6=y5; % short arm |
| 1877 |
draw z1--z2; % top |
| 1878 |
draw z3--z4; % stem |
| 1879 |
draw z5--z6; % short |
| 1880 |
labels(1,2,3,4,5,6); endchar; |
| 1881 |
|
| 1882 |
% \end{macrocode} |
| 1883 |
% \end{routine} |
| 1884 |
% |
| 1885 |
% \begin{routine}{tu} |
| 1886 |
% The sign \textit{tu}. Like an slanted F with dashes under lower arm. |
| 1887 |
% \begin{macrocode} |
| 1888 |
cmchar "Cypriot sign tu"; |
| 1889 |
beginglyph("5",0.6); |
| 1890 |
numeric alpha, beta; alpha:=0.2; % slant |
| 1891 |
x3=leftloc; x2=rightloc; y3=0; y2=h; % minmax points |
| 1892 |
x1=alpha[x3,x2]; y1=y2; % top bar |
| 1893 |
x7-x3=x2-x1; y7=0; |
| 1894 |
z5=2/3[z3,z1]; z6=2/3[z7,z2]; % short arm |
| 1895 |
%%z8=0.7[z3,z7]; |
| 1896 |
z8=z7 shifted (small*left); |
| 1897 |
beta=0.5*(y6-y3); % dash size |
| 1898 |
z9=z7 shifted (beta*up); |
| 1899 |
z10=z8 shifted (beta*up); |
| 1900 |
draw z1--z2; % top |
| 1901 |
draw z3--z1; % stem |
| 1902 |
draw z5--z6; % short |
| 1903 |
draw z7--z9; draw z8--z10; % dashes |
| 1904 |
labels(1,2,3,4,5,6,8,9,10); endchar; |
| 1905 |
|
| 1906 |
% \end{macrocode} |
| 1907 |
% \end{routine} |
| 1908 |
% |
| 1909 |
% \begin{routine}{wa} |
| 1910 |
% The sign \textit{wa}. Like |> <| with a |^| at the bottom. |
| 1911 |
% \begin{macrocode} |
| 1912 |
cmchar "Cypriot sign wa"; |
| 1913 |
beginglyph("w",0.8); |
| 1914 |
numeric beta; beta:=small; |
| 1915 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; % minmax points |
| 1916 |
x2=midloc-beta; x5=midloc+beta; y2=y5=h/2; |
| 1917 |
x8=midloc; y8=y5-beta; |
| 1918 |
z7-z8=whatever*(z1-z2); z9-z8=whatever*(z4-z5); y7=y9=0; |
| 1919 |
draw z1--z2--z3; % left angle |
| 1920 |
draw z4--z5--z6; % right angle |
| 1921 |
draw z7--z8--z9; % bottom angle |
| 1922 |
labels(1,2,3,4,5,6,7,8,9); endchar; |
| 1923 |
|
| 1924 |
% \end{macrocode} |
| 1925 |
% \end{routine} |
| 1926 |
% |
| 1927 |
% \begin{routine}{we} |
| 1928 |
% The sign \textit{we}. A capital I. |
| 1929 |
% \begin{macrocode} |
| 1930 |
cmchar "Cypriot sign we"; |
| 1931 |
beginglyph("W",0.4); |
| 1932 |
x1=x2=midloc; y1=0; y2=h; |
| 1933 |
x3=x4=leftloc; x5=x6=rightloc; |
| 1934 |
y3=y5=0; y4=y6=h; |
| 1935 |
draw z1--z2; % stem |
| 1936 |
draw z3--z5; draw z4--z6; |
| 1937 |
labels(1,2,3,4,5,6); endchar; |
| 1938 |
|
| 1939 |
% \end{macrocode} |
| 1940 |
% \end{routine} |
| 1941 |
% |
| 1942 |
% \begin{routine}{wi} |
| 1943 |
% The sign \textit{wi}. Like |>`<|. |
| 1944 |
% \begin{macrocode} |
| 1945 |
cmchar "Cypriot sign wi"; |
| 1946 |
beginglyph("6",0.8); |
| 1947 |
numeric beta; beta:=small; |
| 1948 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; % minmax points |
| 1949 |
x2=midloc-beta; x5=midloc+beta; y2=y5=h/2; |
| 1950 |
x8=midloc; y8=y5+beta; |
| 1951 |
%%z7-z8=whatever*(z1-z2); z9-z8=whatever*(z4-z5); y7=y9=0; |
| 1952 |
x9=x8; y9=h; |
| 1953 |
draw z1--z2--z3; % left angle |
| 1954 |
draw z4--z5--z6; % right angle |
| 1955 |
draw z8--z9; % top line |
| 1956 |
labels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 1957 |
|
| 1958 |
% \end{macrocode} |
| 1959 |
% \end{routine} |
| 1960 |
% |
| 1961 |
% \begin{routine}{wo} |
| 1962 |
% The sign \textit{wo}. Like a left turn arrow. |
| 1963 |
% \begin{macrocode} |
| 1964 |
cmchar "Cypriot sign wo"; |
| 1965 |
beginglyph("7",0.6); |
| 1966 |
numeric rad; |
| 1967 |
x1=leftloc; x2=midloc; x3=rightloc; y1=y3=2/3h; y2=h; % head |
| 1968 |
x4=x1; x5=0.5[x4,x2]; y4=y5=0; % bottom points |
| 1969 |
rad:=(x2-x5); |
| 1970 |
x6=x2; y6=y5+rad; |
| 1971 |
draw z1--z2--z3; % arrow head |
| 1972 |
draw z4--z5..z6--z2; % stem |
| 1973 |
labels(1,2,3,4,5,6,7,8); endchar; |
| 1974 |
|
| 1975 |
% \end{macrocode} |
| 1976 |
% \end{routine} |
| 1977 |
% |
| 1978 |
% \begin{routine}{xa} |
| 1979 |
% The sign \textit{xa}. Like |)(|. |
| 1980 |
% \begin{macrocode} |
| 1981 |
cmchar "Cypriot sign xa"; |
| 1982 |
beginglyph("x",0.6); |
| 1983 |
numeric beta; beta:=small; |
| 1984 |
x0=midloc; y0=h/2; |
| 1985 |
x1=x3=leftloc; x4=x6=rightloc; y1=y4=0; y3=y6=h; |
| 1986 |
y2=y5=y0; x2=x1+beta; x5=x4-beta; |
| 1987 |
draw z1...z2{up}...z3; % left half |
| 1988 |
draw z4...z5{up}...z6; % right half |
| 1989 |
labels(0,1,2,3,4,5,6); endchar; |
| 1990 |
|
| 1991 |
% \end{macrocode} |
| 1992 |
% \end{routine} |
| 1993 |
% |
| 1994 |
% \begin{routine}{xe} |
| 1995 |
% The sign \textit{xe}. Like |(-!|. |
| 1996 |
% \begin{macrocode} |
| 1997 |
cmchar "Cypriot sign xe"; |
| 1998 |
beginglyph("X",0.6); |
| 1999 |
numeric beta; beta:=small; |
| 2000 |
x0=midloc; y0=h/2; |
| 2001 |
x2=leftloc; x1=x3=x2+beta; y1=0; y2=y0; y3=h; % the parenthesis |
| 2002 |
x4=x1+beta; y4=y5=y0; |
| 2003 |
x5=x6=x7=rightloc; y6=beta; y7=h-beta; |
| 2004 |
draw z1...z2{up}...z3; % the paren |
| 2005 |
draw z4--z5; draw z6--z7; % righr half |
| 2006 |
labels(0,1,2,3,4,5,6); endchar; |
| 2007 |
|
| 2008 |
% \end{macrocode} |
| 2009 |
% \end{routine} |
| 2010 |
% |
| 2011 |
% |
| 2012 |
% \begin{routine}{zo} |
| 2013 |
% The sign \textit{zo}. Two lightning flashes. |
| 2014 |
% \begin{macrocode} |
| 2015 |
cmchar "Cypriot sign zo"; |
| 2016 |
beginglyph("9",0.6); |
| 2017 |
%%beginglyph("P",0.3); |
| 2018 |
numeric beta; |
| 2019 |
beta:=0.25*(rightloc-leftloc); |
| 2020 |
xl=leftloc; xr=rightloc; |
| 2021 |
x0=0.25[xl,xr]; y0=h/2; % left flash |
| 2022 |
%%x0=midloc; y0=h/2; |
| 2023 |
x1=x0+beta; x4=x0-beta; y1=h; y4=0; % lightning top and bottom |
| 2024 |
x2=x0-beta; x3=x0+beta; % lightning middle points |
| 2025 |
y2=y0+0.5beta; y3=y0-0.5beta; |
| 2026 |
x0'=0.75[xl,xr]; y0'=y0; % right flash |
| 2027 |
x11=x0'+beta; x14=x0'-beta; y11=h; y14=0; % lightning top and bottom |
| 2028 |
x12=x0'-beta; x13=x0'+beta; % lightning middle points |
| 2029 |
y12=y0'+0.5beta; y13=y0'-0.5beta; |
| 2030 |
draw z1--z2--z3--z4; % left flash |
| 2031 |
draw z11--z12--z13--z14; % right flash |
| 2032 |
labels(0,0',1,2,3,4,11,12,13,14); endchar; |
| 2033 |
|
| 2034 |
% \end{macrocode} |
| 2035 |
% \end{routine} |
| 2036 |
% |
| 2037 |
% \subsubsection{The word divider} |
| 2038 |
% |
| 2039 |
% There is a word divider. |
| 2040 |
% Hyphenation was, of course, unknown but it might be useful to |
| 2041 |
% leave the normal character position for the hyphen (i.e., octal 055) |
| 2042 |
% empty allowing, perhaps, \TeX{} to perform hyphenation but without |
| 2043 |
% marking it. |
| 2044 |
% |
| 2045 |
% \begin{routine}{,} |
| 2046 |
% A word divider coded as a comma. It is a short vertical line above the |
| 2047 |
% text baseline. |
| 2048 |
% \begin{macrocode} |
| 2049 |
cmchar "Cypriot word divider (1)"; |
| 2050 |
beginglyph(",",0.1); |
| 2051 |
x1=x2=midloc; y1=0.2h; y2=0.4h; |
| 2052 |
draw z1--z2; |
| 2053 |
labels(1,2); endchar; |
| 2054 |
|
| 2055 |
% \end{macrocode} |
| 2056 |
% \end{routine} |
| 2057 |
% |
| 2058 |
% \begin{routine}{:} |
| 2059 |
% A word divider coded as a colon. It is a short vertical line above the |
| 2060 |
% text baseline. |
| 2061 |
% \begin{macrocode} |
| 2062 |
cmchar "Cypriot word divider (2)"; |
| 2063 |
beginglyph(":",0.1); |
| 2064 |
x1=x2=midloc; y1=0.2h; y2=0.4h; |
| 2065 |
draw z1--z2; |
| 2066 |
labels(1,2); endchar; |
| 2067 |
|
| 2068 |
% \end{macrocode} |
| 2069 |
% \end{routine} |
| 2070 |
% |
| 2071 |
% \begin{routine}{/} |
| 2072 |
% A word divider coded as a forward slash. It is a short vertical line above the |
| 2073 |
% text baseline. |
| 2074 |
% \begin{macrocode} |
| 2075 |
cmchar "Cypriot word divider (3)"; |
| 2076 |
beginglyph("/",0.1); |
| 2077 |
x1=x2=midloc; y1=0.2h; y2=0.4h; |
| 2078 |
draw z1--z2; |
| 2079 |
labels(1,2); endchar; |
| 2080 |
|
| 2081 |
% \end{macrocode} |
| 2082 |
% \end{routine} |
| 2083 |
% |
| 2084 |
% |
| 2085 |
% The end of this file |
| 2086 |
% \begin{macrocode} |
| 2087 |
end |
| 2088 |
|
| 2089 |
%</up> |
| 2090 |
% \end{macrocode} |
| 2091 |
% |
| 2092 |
% |
| 2093 |
% |
| 2094 |
% \Finale |
| 2095 |
% |
| 2096 |
\endinput |
| 2097 |
|
| 2098 |
%% \CharacterTable |
| 2099 |
%% {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 |
| 2100 |
%% 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 |
| 2101 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 2102 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 2103 |
%% Dollar \$ Percent \% Ampersand \& |
| 2104 |
%% Acute accent \' Left paren \( Right paren \) |
| 2105 |
%% Asterisk \* Plus \+ Comma \, |
| 2106 |
%% Minus \- Point \. Solidus \/ |
| 2107 |
%% Colon \: Semicolon \; Less than \< |
| 2108 |
%% Equals \= Greater than \> Question mark \? |
| 2109 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 2110 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 2111 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 2112 |
%% Right brace \} Tilde \~} |
| 2113 |
|
| 2114 |
|