Debian Codegraph @

texmf-dist/source/fonts/bookhands/huncial.dtx

raw
1 % \iffalse meta-comment
2 %
3 % huncial.dtx
4 % Copyright 1999 Peter R. Wilson
5 %
6 % This program is provided under the terms of the
7 % LaTeX Project Public License distributed from CTAN
8 % archives in directory macros/latex/base/lppl.txt.
9 %
10 % Author: Peter Wilson (CUA) (now at: [email protected])
11 %
12 % If you do not have the docmfp package (available from CTAN in
13 % tex-archive/macros/latex/contrib/supported), comment out the
14 % \usepackage{docmfp} line below and uncomment the line following it.
15 %
16 %<*driver>
17 \documentclass{ltxdoc}
18 \usepackage{docmfp}
19 %%%%%% \providecommand{\DescribeVariable}[1]{} \newenvironment{routine}[1]{}{}
20 \EnableCrossrefs
21 \CodelineIndex
22 \setcounter{StandardModuleDepth}{1}
23 \begin{document}
24 \DocInput{huncial.dtx}
25 \end{document}
26 %</driver>
27 %
28 % \fi
29 %
30 % \CheckSum{132}
31 %
32 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
33 % \DoNotIndex{\@centercr,\@cite}
34 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
35 % \DoNotIndex{\@input,\@ixpt,\@m}
36 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
37 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
38 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
39 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
40 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
41 % \DoNotIndex{\advance,\Alph,\alph}
42 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
43 % \DoNotIndex{\bullet}
44 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
45 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
46 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
47 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
48 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
49 % \DoNotIndex{\fbox}
50 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
51 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
52 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
53 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
54 % \DoNotIndex{\input}
55 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
56 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
57 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
58 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
59 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
60 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
61 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
62 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
63 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
64 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
65 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
66 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
67 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
68 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
69 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
70 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
71 % \DoNotIndex{\wd,\xiipt,\year,\z@}
72 %
73 % \changes{v1.0}{1999/05/22}{First public release}
74 % \changes{v1.0a}{2001/01/02}{Fixed missing * in fd files}
75 %
76 % ^^A \def\fileversion{v1.0}
77 % ^^A \def\filedate{1999/05/22}
78 % \def\fileversion{v1.0a}
79 % \def\filedate{2001/01/02}
80 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
81 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
82 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
83 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
84 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
85 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
86 % \newcommand*{\AD}{\textsc{ad}}
87 % \newcommand*{\thisfont}{Half Uncial}
88 %
89 % \title{The \Lpack{Half Uncial} fonts\thanks{This
90 % file has version number \fileversion, last revised
91 % \filedate.}}
92 %
93 % \author{%
94 % Peter Wilson\\
95 % Catholic University of America \\
96 % Now at \texttt{[email protected]}
97 % }
98 % \date{\filedate}
99 % \maketitle
100 % \begin{abstract}
101 % The \Lpack{huncial} and \Lpack{allhuncl} packages provide a set of
102 % Metafont \thisfont{} book-hands
103 % as used
104 % for manuscripts in the 3rd to the 9th century. This is one in a series
105 % of manuscript fonts.
106 % \end{abstract}
107 % \tableofcontents
108 % \listoftables
109 %
110 % \StopEventually{}
111 %
112 %
113 %
114 % \section{Introduction}
115 %
116 % The \Lpack{huncial} and \Lpack{allhuncl} packages provide a Metafont~\cite{METAFONT} version
117 % of the \thisfont{} manuscript book-hand that was in use between about the
118 % third and ninth centuries~\AD. It is part of a project to provide fonts
119 % covering the major manuscript hands between the first century~\AD{} and
120 % the invention of printing. The principal resources used in this project
121 % are listed in the Bibliography.
122 %
123 % This manual is typeset according to the conventions of the
124 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
125 % extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}.
126 % The \Lpack{docmfp} package is used for documenting the Metafont portions
127 % of the distribution~\cite{DOCMFP}.
128 %
129 % Section~\ref{sec:usc} describes the usage of the package.
130 % Commented code for the fonts is in Sections~\ref{sec:mf} and~\ref{sec:fd}
131 % and source code for the package is in Section~\ref{sec:code}.
132 %
133 % \subsection{Manuscript book-hands}
134 %
135 % Before the invention of printing all books were written by hand. The book-hands
136 % used by the scribes and copyists for the manuscripts changed as time
137 % went on. Table~\ref{tab:1} lists some of the common book-hands which were used
138 % between the 1st and 15th centuries. The later book-hands formed the basis of the
139 % fonts used by the early printers, which in turn form the basis of the printing
140 % fonts in use today.
141 %
142 % The manuscript book-hands were written with a broad nibbed reed or quill
143 % pen. Among the distinguishing characteristics of a hand, apart from the
144 % actual shape of the letters, are the angle of the pen (which controls the
145 % variation between thick and thin strokes) and the height of a letter compared
146 % to the width of the nib. The lower the ratio of the letter height to nib
147 % width, the more condensed is the script. The scripts also varied in their
148 % typical height.
149 %
150 % Table~\ref{tab:1} gives an `average' x-height for each
151 % script, which I obtained by measuring a sample of photographs of
152 % manuscripts written in the various hands. About a dozen examples
153 % of each book-hand were measured. This figure should not be taken too
154 % seriously.
155 %
156 % There was not a sharp division between the use of one hand and another.
157 % Many manuscripts exhibit a variety of hands in the same document. For example,
158 % the scribe writing in an Uncial hand may have used Roman Rustic letters
159 % for capitals. Usually the same pen was used for the two different scripts.
160 %
161 % Generally speaking, as a hand got older it became more embelished, and
162 % therefore took longer to write. As this happened a new hand would appear that
163 % was faster, and which would eventually make the earlier one obsolete.
164 %
165 % Many of the book-hands were single-cased; that is, they did not have an
166 % upper- and lower-case as we do nowadays in Western scripts. On the other
167 % hand, a script might be majuscule or minuscule. A \textit{majuscule} script
168 % is one, like our upper-case, where the letters are drawn between two lines
169 % and are of a uniform height with no ascenders or descenders.
170 % A \textit{minuscule} script, like our lower-case, is drawn between four lines
171 % and has ascenders and descenders.
172 %
173 % \begin{table}
174 % \centering
175 % \caption{The main manuscript book-hands} \label{tab:1}
176 % \begin{tabular}{lccccc} \hline
177 % Name & Century & x-height & Height & Pen & Normalised \\
178 % & & (mm) & (nib widths) & angle & height \\ \hline
179 % Roman Rustic & 1--6 & 5.7 & 4--6 & 45 & 1.90 \\
180 % Uncial & 3--6 & 4.1 & 4--5 & 30 & 1.37 \\
181 % Half Uncial & 3--9 & 3.2 & 3--6 & 20--30 & 1.07 \\
182 % Artificial Uncial & 6--10 & 4.2 & 3--6 & 10 & 1.40 \\
183 % Insular majuscule & 6--9 & 4.2 & 5 & 0--20 & 1.40 \\
184 % Insular minuscule & 6 onward & 4.1 & 5--6 & 45--70 & 1.37 \\
185 % Carolingian minuscule & 8--12 & 3.0 & 3--5 & 45 & 1.00 \\
186 % Early Gothic & 11--12 & 3.8 & 4--6 & 20--45 & 1.27 \\
187 % Gothic Textura & 13--15 & 3.9 & 3--5 & 30--45 & 1.30 \\
188 % Gothic Prescius & 13 onward & 3.3 & 4--5 & 45 & 1.10 \\
189 % Rotunda & 13--15 & 3.2 & 4--6 & 30 & 1.07 \\
190 % Humanist minuscule & 14 onward & 3.0 & 4--5 & 30--40 & 1.00 \\ \hline
191 % \end{tabular}
192 % \end{table}
193 %
194 % During the period under consideration arabic numerals were effectively
195 % not used. At the beginning they were unknown and even though some knew
196 % of them towards the end, the glyphs used for them are not recognisable ---
197 % to me they look somewhat like cryllic letters --- and each locality
198 % and time had its own highly individualistic rendering. The general rule
199 % when using one of these book-hands is to write all numbers using
200 % roman numerals.
201 %
202 % The Roman alphabet consisted of 23 capital letters --- the J, U and W
203 % were absent. The book-hands initially used both a `u' and a `v' interchangeably
204 % but by the 10th century the practice had become to use the `v' before a vowel
205 % and the `u' otherwise. The letter corresponding to the W sound appeared
206 % in England around the 7th century in
207 % the form of the runic \textit{wen} character and by about the 11th century
208 % the `w' chacter was generally used. The `J' is the newest letter of all, not
209 % appearing until about the mid 16th century.
210 %
211 % In the first century punctuation was virtually unknown, and typically
212 % would not even be any additional space between individual words, never
213 % mind denoting ends of sentences. Sometimes a dot at mid-height would be
214 % used as a word seperator, or to mark off the end of a paragraph. Effectively
215 % a text was a continuous stream of letters. By the time that printing was
216 % invented, though, all of our modern punctuation marks were being used.
217 %
218 % Among all these manuscript hands, the Carolingian minuscule is the
219 % most important as our modern fonts are based on its letter shapes, and it is
220 % also at this point in time where the division occured between the black letter
221 % scripts as used even today in Germany, and the lighter fonts used elesewhere.
222 % The Rotunda and Humanist minuscule hands were developed in Italy and were
223 % essentially a rediscovery of the Carolingian minusucle. Guthenberg took the
224 % Gothic scripts as the model for his types. Later printers,
225 % such as Nicholas Jenson of Venice,
226 % took the Humanist scripts as their models.
227 %
228 %
229 % \subsection{The \thisfont{} script}
230 %
231 % The \thisfont{} hand, which is a minuscule script, was in use for some seven
232 % centuries and was, in a sense, an intermediate script between the Uncial
233 % and Artificial Uncial book-hands. It was less formal than these and was
234 % also faster to write as fewer pen movements were required. It was
235 % derived from cursive hands that were not used in formal manuscripts.
236 %
237 % This is the first book-hand that shows some of the more characteristic
238 % letter shapes that we associate with the lower-case letters. For example,
239 % the `b' lettter has lost its upper bowl, and the `d' has acquired an ascender.
240 % The `f' is in an intermediate form between the modern `F' and `f'.
241 % The \thisfont{} also introduces the long `s' letter shape.
242 %
243 % Stemming from its cursive roots, ligatured letter pairs make an
244 % appearance. These typically were only
245 % used at the end of a line if it was going to be too long, and were rarely
246 % used in the middle of a line. The most common ligatures were of the
247 % form `e*', where the bar of the `e' was joined to the following letter
248 % (donoted here as *). Sometimes the e was made taller so its bar would be
249 % a convenient height for joing to an `m', say. The ampersand, `\&', also
250 % makes a first appearance as a ligatured `et' which is the Latin for `and'.
251 % This would be used anywhere in the text. I have provided the ampersand
252 % and just the `fi' ligature.
253 %
254 % Usually the
255 % lettering in a manuscript was all one size. If the scribe felt the need
256 % for `capital' letters then, using the same pen, would either write a larger
257 % \thisfont{} letter or a letter from one of the more formal book-hands.
258 % I have provided a set of `capital' letters that are only a little larger
259 % than the normal letters for use in running text.
260 % During the time the \thisfont{} script was used the alphabet only had 24
261 % letters. I have included the missing J.
262 %
263 % Arabic numerals were unknown at this time, so all numbers were written
264 % using the roman numbering system. I have provided \thisfont{} versions of
265 % the arabic digits.
266 %
267 % Punctuation was used, but not with the frequency of today.
268 % A sentence might be ended with
269 % a dot at mid-height or a paragraph ended with a colon, also at mid-height.
270 % The comma was was a small
271 % slash; the semi-colon was known, as was the single quotation
272 % mark which was represented by a raised comma.
273 %
274 %
275 % \section{The \Lpack{huncial} and \Lpack{allhuncl} packages} \label{sec:usc}
276 %
277 % The \thisfont{} font family is called |huncl|. The font is supplied in both
278 % OT1 and T1 encodings.
279 %
280 % \subsection{The \Lpack{huncial} package}
281 %
282 % This is intended for the occasions when some short pieces of text have
283 % to be written in \thisfont{} while the majority of the document is in another
284 % font. The normal baselineskips are used.
285 %
286 % \DescribeMacro{\hunclfamily}
287 % The |\hunclfamily| declaration starts typesetting with the \thisfont{} fonts.
288 % Use of the \thisfont{} font will continue until either there is another |\...family|
289 % declaration or the current group (e.g., environment) is closed.
290 %
291 % \DescribeMacro{\texthuncl}
292 % The command |\texthuncl{|\meta{text}|}| will typeset \meta{text} using the
293 % \thisfont{} fonts.
294 %
295 % \subsection{The \Lpack{allhuncl} package}
296 %
297 %
298 % This package is for when the entire document will be typeset with the
299 % \thisfont font. The baselineskips are set to those appropriate to the
300 % book-hand.
301 %
302 % This is a minimalist package. Apart from declaring \thisfont{} to be the
303 % default font and setting the baselineskips appropriately, it makes no other
304 % alterations.
305 % Vertical spacing
306 % before and after section titles and before and after lists, etc., will be
307 % too small as the \LaTeX{} design assumes a font comparable in size to
308 % normal printing fonts, and the book-hand is much taller.
309 % To capture more of the flavour of the time, all numbers
310 % should be written using roman numerals.
311 % The \Lpack{romannum} package~\cite{ROMANNUM}
312 % can be used so that \LaTeX{} will typeset the numbers that it generates,
313 % like sectioning or caption numbers, using roman numerals instead of arabic
314 % digits.
315 %
316 % \DescribeMacro{\cmrfamily}
317 % \DescribeMacro{\textcmr}
318 % \DescribeMacro{\cmssfamily}
319 % \DescribeMacro{\textcmss}
320 % \DescribeMacro{\cmttfamily}
321 % \DescribeMacro{\textcmtt}
322 % The |...family| declarations start typesetting with the Computer Modern Roman
323 % (|\cmrfamily|), the Computer Modern Sans (|\cmssfamily|), and the Computer
324 % Modern Typewriter (|\cmttfamily|) font families. The |\textcm..{|\meta{text}|}|
325 % commands will typeset \meta{text} in the corresponding Computer Modern font.
326 %
327 % The \Lpack{allhuncl} package automatically loads the \Lpack{huncial} package,
328 % so its font commands are available if necessary.
329 %
330 %
331 %
332 % \section{The Metafont code} \label{sec:mf}
333 %
334 %
335 % As previously noted, this work is part of a larger project to provide
336 % fonts covering the main manuscript book-hands. As such, one of the
337 % aims is to produce a coordinated set of fonts, especially as multiple
338 % hands might be used in a single document.
339 %
340 % Noting that the hands tend to be somewhat larger than the typical 10pt
341 % size (where the x-height is approximately 1.5mm) used for modern books,
342 % I have also designed the fonts
343 % at a larger than normal size, then applied some non-linear factors when reducing
344 % them down to a 10pt size.
345 % Further, I have used the height of the Carolingian minuscule as a
346 % normalising factor when deciding on the absolute height of any particular
347 % script. The x-height of the Carolingian font is made equal to the
348 % x-height of the Computer Modern Roman (CMR) font.
349 %
350 % Modern fonts are effectively drawn. That is, the outline of the letter is
351 % drawn carefully and the center is filled with ink. This is shown to good
352 % effect in the Metafont code for the Computer Modern fonts~\cite{CM}.
353 % In contrast, the manuscript letters were inked by single pen strokes in
354 % a calligraphic manner. I have tried to repeat this calligraphic style
355 % in the Metafont code.
356 %
357 % As much as possible I have tried to use parameter values from the
358 % Computer Modern Roman (CMR) fonts in order to reduce possible
359 % infelicities if the CM and manuscript fonts are used together. However,
360 % few of the CMR parameters are applicable to the calligraphic style.
361 %
362 %
363 % \subsection{The parameter file}
364 %
365 % We deal with the parameter files first, and start by announcing
366 % what they are for. The \thisfont{} font comes in three sizes and also as a normal
367 % and a bold font.
368 % \begin{macrocode}
369 %<*base7|base10|base17|base7b|base10b|base17b>
370 %<base7>%%% HUNCL7.MF Half Uncial at 7 point design size.
371 %<base10>%%% HUNCL10.MF Half Uncial at 10 point design size.
372 %<base17>%%% HUNCL17.MF Half Uncial at 17 point design size.
373 %<base7b>%%% HUNCLB7.MF Half Uncial Bold at 7 point design size.
374 %<base10b>%%% HUNCLB10.MF Half Uncial Bold at 10 point design size.
375 %<base17b>%%% HUNCLB17.MF Half Uncial Bold at 17 point design size.
376 %
377 % \end{macrocode}
378 % Parameters from CMR are used as much as possible. We also
379 % make sure that \Lpack{cmbase} is loaded as well as plain Metafont.
380 % \begin{macrocode}
381 if unknown cmbase: input cmbase fi
382
383 %<base7>font_identifier:="HUNCL"; font_size 7pt#;
384 %<base10>font_identifier:="HUNCL"; font_size 10pt#;
385 %<base17>font_identifier:="HUNCL"; font_size 17.28pt#;
386 %<base7b>font_identifier:="HUNCLB"; font_size 7pt#;
387 %<base10b>font_identifier:="HUNCLB"; font_size 10pt#;
388 %<base17b>font_identifier:="HUNCLB"; font_size 17.28pt#;
389
390 % \end{macrocode}
391 %
392 % \DescribeVariable{jutstretch}
393 % The CMR scaling for lowercase serifs wrt 17pt size.
394 % \begin{macrocode}
395 %<base7|base7b> jutstretch:=1.19;
396 %<base10|base10b> jutstretch:=1.152;
397 %<base17|base17b> jutstretch:=1.0;
398 % \end{macrocode}
399 %
400 % \DescribeVariable{stemstretch}
401 % The CMR scaling for lowercase stem widths wrt 17pt size.
402 % \begin{macrocode}
403 %<base7|base7b> stemstretch:=1.50;
404 %<base10|base10b> stemstretch:=1.31;
405 %<base17|base17b> stemstretch:=1.0;
406 % \end{macrocode}
407 %
408 % \DescribeVariable{caprat}
409 % The scaling for `capitals' wrt `lowercase'. This is pretty much a guess.
410 % \begin{macrocode}
411 caprat:=1.25; % ratio of capital height to minuscule height
412 % \end{macrocode}
413 %
414 % \DescribeVariable{cap_jutstretch}
415 % The CMR scaling for uppercase serifs wrt 17pt size.
416 % \begin{macrocode}
417 %<base7|base7b> cap_jutstretch:=1.3;
418 %<base10|base10b> cap_jutstretch:=1.2;
419 %<base17|base17b> cap_jutstretch:=1.0;
420 % \end{macrocode}
421 %
422 % \DescribeVariable{cap_stemstretch}
423 % The CMR scaling for uppercase stem width wrt 17pt size.
424 % \begin{macrocode}
425 %<base7|base7b> cap_stemstretch:=1.45;
426 %<base10|base10b> cap_stemstretch:=1.31;
427 %<base17|base17b> cap_stemstretch:=1.0;
428 % \end{macrocode}
429 %
430 % \DescribeVariable{bfudge}
431 % Letter width scaling for bold font wrt normal font.
432 % \begin{macrocode}
433 %<base7|base10|base17> bfudge:=1.0;
434 %<base7b|base10b|base17b> bfudge:=1.2;
435 % \end{macrocode}
436 %
437 % \DescribeVariable{szfudge}
438 % Width scaling wrt 17pt letter width.
439 % \begin{macrocode}
440 %<base7|base7b> szfudge:=1.18;
441 %<base10|base10b> szfudge:=1.0;
442 %<base17|base17b> szfudge:=1.0;
443 % \end{macrocode}
444 %
445 % \DescribeVariable{hstretch}
446 % Horizontal stretching factor wrt 17pt size letter width.
447 % \begin{macrocode}
448 hstretch:=szfudge*bfudge;
449 % \end{macrocode}
450 %
451 % \DescribeVariable{carol_height}
452 % The x-height of the Carolingian minuscule font.
453 % \begin{macrocode}
454 %<base7|base7b> carol_height#:=108.5/36pt#;
455 %<base10|base10b> carol_height#:=155/36pt#;
456 %<base17|base17b> carol_height#:=268/36pt#;
457 % \end{macrocode}
458 %
459 % \DescribeVariable{vstretch}
460 % The height of this font wrt the Carolingian font.
461 % \begin{macrocode}
462 vstretch:=1.07;
463
464 % \end{macrocode}
465 %
466 % \DescribeVariable{x_height}
467 % The x-height of lower case letters. Scaled from the Carolingian font.
468 % \begin{macrocode}
469 x_height#:=vstretch*carol_height#;
470 % \end{macrocode}
471 %
472 % \DescribeVariable{u}
473 % The unit width. The CMR values are used.
474 % \begin{macrocode}
475 %<base7> u#:=15.5/36pt#;
476 %<base10> u#:=20/36pt#;
477 %<base17> u#:=32.5/36pt#;
478 %<base7b> u#:=17.9/36pt#;
479 %<base10b> u#:=23/36pt#;
480 %<base17b> u#:=37/36pt#;
481 % \end{macrocode}
482 %
483 % \DescribeVariable{width_adj}
484 % \DescribeVariable{serif_fit}
485 % \DescribeVariable{cap_serif_fit}
486 % \DescribeVariable{letter_fit}
487 % The majority of these parameters and values are constant.
488 % They are for fine adjustements of characters. The CM values are used.
489 % \begin{macrocode}
490 width_adj#:=0pt#; % width adjustment for certain characters
491 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
492 %<base7|base7b> cap_serif_fit#:=3.5/36pt#; % extra sidebar near uppercase serifs
493 %<base10|base10b> cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs
494 %<base17|base17b> cap_serif_fit#:=8/36pt#; % extra sidebar near uppercase serifs
495 %<base7|base7b> letter_fit#:=0pt#; % extra space added to all sidebars
496 %<base10|base10b> letter_fit#:=0pt#; % extra space added to all sidebars
497 %<base17|base17b> letter_fit#:=-0.1pt#; % extra space added to all sidebars
498
499 % \end{macrocode}
500 %
501 % \DescribeVariable{cap_height}
502 % The height of capital letters.
503 % \begin{macrocode}
504 %<base7|base7b> cap_height#:=172.2/36pt#; % height of caps
505 %<base10|base10b> cap_height#:=246/36pt#; % height of caps
506 %<base17|base17b> cap_height#:=425/36pt#; % height of caps
507 % \end{macrocode}
508 %
509 % \DescribeVariable{thickfudge}
510 % The reciprocal of the font height in nib widths. Normal font height
511 % is 5 nib widths and the bold font height is 3.5 nib widths.
512 % \begin{macrocode}
513 %<base7|base10|base17> thickfudge:=1/5;
514 %<base7b|base10b|base17b> thickfudge:=1/3.5;
515 % \end{macrocode}
516 %
517 % \DescribeVariable{thinfudge}
518 % The nib sharpness.
519 % \begin{macrocode}
520 thinfudge:=1/6;
521 % \end{macrocode}
522 %
523 % \DescribeVariable{thick}
524 % The maximum nib width.
525 % That is, the width of the thickest line that can be penned.
526 % \begin{macrocode}
527 thick#:=stemstretch*thickfudge*x_height#; % max pen breadth
528 % \end{macrocode}
529 %
530 % \DescribeVariable{thin}
531 % The nib thinness.
532 % That is, the width of the thinnest line that can be penned.
533 % \begin{macrocode}
534 thin#:=thinfudge*thick#;
535 % \end{macrocode}
536 %
537 % \DescribeVariable{pangle}
538 % The pen angle (in degrees).
539 % \begin{macrocode}
540 pangle:=20; % pen angle
541 % \end{macrocode}
542 %
543 % \DescribeVariable{ascratio}
544 % The height of lower case ascenders wrt |x_height|.
545 % \begin{macrocode}
546 ascratio:=5/3;
547 % \end{macrocode}
548 %
549 % \DescribeVariable{asc_height}
550 % The height of lower case ascenders.
551 % \begin{macrocode}
552 asc_height#:=ascratio*x_height#;
553 % \end{macrocode}
554 %
555 % \DescribeVariable{descratio}
556 % The depth of lower case descenders wrt |x_height|.
557 % \begin{macrocode}
558 descratio:=2/3;
559 % \end{macrocode}
560 %
561 % \DescribeVariable{desc_depth}
562 % The depth of lower case descenders.
563 % \begin{macrocode}
564 desc_depth#:=descratio*x_height#;
565 % \end{macrocode}
566 %
567 % \DescribeVariable{fig_height}
568 % The height of numerals. Make these midway between normal and capital
569 % letters.
570 % \begin{macrocode}
571 fig_height#:=(0.5[1,caprat])*x_height#;
572 % \end{macrocode}
573 %
574 % \DescribeVariable{fig_width}
575 % The width of numerals. All numerals are the same width (roughly, an `o').
576 % \begin{macrocode}
577 fig_width#:=hstretch*(x_height#);
578 % \end{macrocode}
579 %
580 % \DescribeVariable{body_height}
581 % The height of the tallest character.
582 % \begin{macrocode}
583 body_height#:=caprat*asc_height#;
584 % \end{macrocode}
585 %
586 % \DescribeVariable{body_depth}
587 % The depth of the lowest character.
588 % \begin{macrocode}
589 body_depth#:=caprat*desc_depth#;
590 % \end{macrocode}
591 %
592 % \DescribeVariable{half_height}
593 % Half the normal letter height.
594 % \begin{macrocode}
595 half_height#:=1/2x_height#; % half the height of x height letters
596
597 % \end{macrocode}
598 %
599 % \DescribeVariable{side}
600 % We might be using a square for the character design.
601 % \begin{macrocode}
602 side#:=x_height#;
603 % \end{macrocode}
604 %
605 % \DescribeVariable{rule_thickness}
606 % Thickness of rules (in math symbols). The CMR values are used.
607 % \begin{macrocode}
608 %<base7|base7b> rule_thickness#:=.34pt#;
609 %<base10|base10b> rule_thickness#:=.4pt#;
610 %<base17|base17b> rule_thickness#:=.6pt#;
611
612 % \end{macrocode}
613 %
614 % \DescribeVariable{jutfudge}
615 % Controls the protrusion of serifs.
616 % \begin{macrocode}
617 %%%%jutfudge:= 3/4;
618 jutfudge:= 1/2;
619 % \end{macrocode}
620 %
621 % \DescribeVariable{jut}
622 % The lowercase serif protrusion.
623 % \begin{macrocode}
624 jut#:=jutstretch*jutfudge*thick#;
625 % \end{macrocode}
626 %
627 % \DescribeVariable{srad}
628 % |srad| with |0 < srad < 1| controls the serif radius.
629 % \begin{macrocode}
630 srad:=0.5;
631 % \end{macrocode}
632 %
633 % \DescribeVariable{trijut}
634 % The lowercase triangular serif protrusion.
635 % \begin{macrocode}
636 trijut#:=0.75jutstretch*thick#;
637 % \end{macrocode}
638 %
639 % \DescribeVariable{o}
640 % Amount of overshoot for curves (as in an `o'). Use CMR values.
641 % \begin{macrocode}
642 %<base7|base7b> o#:=5/36pt#;
643 %<base10|base10b> o#:=8/36pt#;
644 %<base17|base17b> o#:=10/36pt#;
645
646 % \end{macrocode}
647 %
648 % \DescribeVariable{slant}
649 % |slant| is the amount the font slopes to the right.
650 % \begin{macrocode}
651 slant:=0; % tilt ratio $(\Delta x/\Delta y)$
652
653 % \end{macrocode}
654 %
655 % \DescribeVariable{monospace}
656 % We are generating a variable-width font.
657 % \begin{macrocode}
658 monospace:=false; % should all characters have the same width?
659
660 % \end{macrocode}
661 %
662 % \DescribeVariable{dot_size}
663 % The size of (punctuation) dots.
664 % \begin{macrocode}
665 dot_size#:=5thin#; % size of dots
666 % \end{macrocode}
667 %
668 % \DescribeVariable{comma_width}
669 % The horizontal width of a comma.
670 % \begin{macrocode}
671 comma_width#:=2.5dot_size#;
672
673 % \end{macrocode}
674 %
675 % Finally, call the driver file for the font.
676 % \begin{macrocode}
677 generate huncltitle %% switch to the driver file
678
679 % \end{macrocode}
680 %
681 % The end of this code section.
682 % \begin{macrocode}
683 %</base7|base10|base17|base7b|base10b|base17b>
684 % \end{macrocode}
685 %
686 %
687 % \subsection{The driver file}
688 %
689 % The driver file sets up the font parameters and also contains
690 % the macros used in the definition of the characters.
691 %
692 % \begin{macrocode}
693 %<*mfd>
694 % This is UNCLTITLE.MF for the Half Uncial font.
695 % This makes a short font.
696 % This file also contains special macros universally needed in the
697 % font but either not in the cmbase.mf file or modifications of these.
698 %
699 % \end{macrocode}
700 %
701 % \begin{routine}{makebox}
702 % This is a new version of the \Lpack{cmbase.mf} |makebox| macro.
703 % Essentially, as we are only generating a single case font, we don't
704 % need all the horizontals for the CMR characters.
705 %
706 % \begin{macrocode}
707 % A new version of cmbase.mf makebox macro
708 def makebox(text rule) =
709 for y=0,half_height,cap_height,body_height,x_height,-desc_depth,-body_depth:
710 rule((l,y)t_,(r,y)t_); endfor % horizontals
711 for x=l,r: rule((x,-body_depth)t_,(x,body_height)t_); endfor % verticals
712 for x=u*(1+floor(1/u)) step u until r-1:
713 rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals
714 if charic<>0:
715 rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction
716 enddef;
717
718 % \end{macrocode}
719 % \end{routine}
720 %
721 % \begin{routine}{proofpcbb}
722 % The macro |proofpcbb(S, xoff, yoff)| draws crosses at the corners of the
723 % square, and at the bottom and top midpoints, where the point |zS| is at
724 % position |(xoff,yoff)| in the square.
725 % \begin{macrocode}
726
727 % A macro to delineate a letter's bounding square in proof mode.
728 % Point z$ is at (xoff,yoff) in the bounding square.
729 def proofpcbb(suffix $)(expr xoff, yoff) =
730 if proofing > 0:
731 x$bl = x$ - xoff; y$bl = y$ - yoff; % Bottom Left Hand Corner
732 z$br = (x$bl+side, y$bl); % BRHC
733 z$tr = (x$bl+side, y$bl+side); % TRHC
734 z$tl = (x$bl, y$bl+side); % TLHC
735 z$bc = 1/2[z$bl,z$br]; z$tc = 1/2[z$tl,z$tr]; % horizontal mid points
736 pair hc, vc;
737 hc = (2u,0); vc = (0,2u);
738 pickup pensquare scaled 2;
739 for s = z$bl, z$br, z$tr, z$tl, z$bc, z$tc:
740 draw s-hc--s+hc;
741 draw s-vc--s+vc;
742 endfor
743 fi
744 enddef;
745
746 % \end{macrocode}
747 % \end{routine}
748 %
749 %
750 %
751 % \begin{routine}{huncial_font_setup}
752 % This macro contains the set up for the \thisfont{} fonts.
753 % \begin{macrocode}
754
755 def huncial_font_setup= % contains special stuff for huncial fonts
756 define_pixels(side,half_height,carol_height,comma_width);
757 define_pixels(u,dot_size,letter_size,cap_height,width_adj,serif_fit,
758 cap_serif_fit,jut,cap_jut,trijut);
759 define_pixels(fig_width);
760 define_whole_pixels(letter_fit);
761 define_whole_vertical_pixels(body_height,asc_height,cap_height,x_height,
762 desc_depth,body_depth,fig_height);
763 define_corrected_pixels(o);
764 define_blacker_pixels(thick,thin);
765 let adjust_fit = normal_adjust_fit;
766 % \end{macrocode}
767 % \DescribeVariable{stylus}
768 % The pen for drawing the thinnest lines is |stylus|.
769 % \begin{macrocode}
770 pickup pencircle scaled thin;
771 stylus:=savepen;
772 % \end{macrocode}
773 % \DescribeVariable{thickstylus}
774 % The pen for drawing lines a bit thicker than the thinnest is |thickstylus|.
775 % \begin{macrocode}
776 pickup pencircle scaled (1.5thin);
777 thickstylus:=savepen;
778 % \end{macrocode}
779 % \DescribeVariable{quill}
780 % The normal calligraphic pen is |quill|.
781 % \begin{macrocode}
782 pickup pencircle xscaled thick yscaled thin rotated pangle;
783 quill:=savepen;
784 numeric pcshiftx#; % x value of LHS of box wrt origin of char box
785 define_pixels(pcshiftx);
786 numeric sqxside#; % x size of the square
787 numeric sqyside#; % y size of the square
788 define_pixels(sqxside,sqyside);
789
790 enddef; % end of huncial_font_setup
791
792 % \end{macrocode}
793 % \end{routine}
794 %
795 %
796 % \DescribeVariable{ductus}
797 % A boolean to control drawing the ductus (TRUE) or the full letter (FALSE).
798 % \begin{macrocode}
799 boolean ductus;
800 ductus:=false;
801 % \end{macrocode}
802 %
803 % \DescribeVariable{qhor}
804 % \DescribeVariable{qvert}
805 % The cosine and sine of the pen angle.
806 % \begin{macrocode}
807 numeric qhor, qvert;
808 qhor:=cosd(pangle); qvert:=sind(pangle);
809 % \end{macrocode}
810 %
811 % \DescribeVariable{pdir}
812 % The vector corresponding to the pen angle.
813 % \begin{macrocode}
814 pair pdir; pdir=dir(pangle);
815 % \end{macrocode}
816 %
817 % \DescribeVariable{ppdir}
818 % The vector that is perpendicular (anticlockwise) to the pen angle.
819 % \begin{macrocode}
820 pair ppdir; ppdir=dir(pangle+90);
821 % \end{macrocode}
822 %
823 % \begin{routine}{draw_serif}
824 % A macro to draw a serif. |draw_serif(1,2,f)| uses the current pen to
825 % draw a serif of extent |jut| at |z1| to the left of the line from |z2|
826 % to |z1|. The
827 % radius is controlled by |f|, where $0<f<1$. The `stem' from |z1| to |z2|
828 % starts at the point |z1a|.
829 % \begin{macrocode}
830
831 def draw_serif(suffix $, $$)(expr fr)=
832 numeric beta, ajut, bjut;
833 % \end{macrocode}
834 % |fr| and |beta| control the serif radius.
835 % \begin{macrocode}
836 beta=1-fr;
837 ajut=fr*jut; bjut=beta*jut;
838 % \end{macrocode}
839 % The points |$c|, |$b| and |$a| define the serif. For a top (bottom) serif
840 % the leftmost (rightmost) point is
841 % |$c| and |$a| is on the stem. |$a| is moved from |$| towards |$$| by the
842 % distance |ajut|, and the other points are calculated from this. If the stem
843 % is not vertical, then we have to rotate |$b| to match.
844 % \begin{macrocode}
845 pair vec[]; vec1=unitvector(z$$-z$);
846 vec2=ajut*vec1;
847 z$a=z$ shifted vec2;
848 z$b=z$a rotatedaround (z$,-90);
849 boolean top_serif;
850 if y$>y$$:
851 top_serif := true;
852 z$c=z$b shifted (-bjut*pdir);
853 else:
854 top_serif:=false;
855 z$c=z$b shifted (bjut*pdir);
856 fi
857 % \end{macrocode}
858 % Draw the parts, and finish off.
859 % \begin{macrocode}
860 if top_serif:
861 draw z$c--z$b{pdir}..{z$$-z$}z$a; % the serif
862 else:
863 draw z$c--z$b{-pdir}..{z$$-z$}z$a;
864 fi
865 labels($a,$b,$c);
866 enddef; % end of draw_serif
867
868 % \end{macrocode}
869 % \end{routine}
870 %
871 % \begin{routine}{draw_triserif}
872 % A macro to draw a triangular top left serif.
873 % |draw_triserif(1,tj)| draws a serif at |z1| with its leftmost x
874 % value at |x1-tj|, where it is assumed that the
875 % top point on the stem is at |z1| and the stem was drawn with |quill|.
876 % \begin{macrocode}
877
878 def draw_triserif(suffix $)(expr tj)=
879 pen oldpen; oldpen:=currentpen;
880 pickup quill;
881 x$ts1'=lft x$; y$ts1'=bot y$;
882 pickup stylus;
883 lft x$ts1=x$ts1'; bot y$ts1=y$ts1';
884 x$ts2=x$ts1-tj; z$ts2=whatever[z$,z$ts1];
885 x$ts3=x$ts1; y$ts3=y$ts2-tj;
886 pickup stylus;
887 %% filldraw z$ts1--z$ts2--z$ts3--cycle;
888 filldraw z$--z$ts2--z$ts3--cycle;
889 pickup oldpen;
890 labels($ts1,$ts2,$ts3);
891 enddef; % end of draw_triserif
892
893 % \end{macrocode}
894 % \end{routine}
895 %
896 % \begin{routine}{draw_istem}
897 % A macro to draw the shape of an i. |draw_istem(1,2,f)| draws a stem whose
898 % top is at |z1| and bottom at |z2|. It draws with the current pen and the serifs
899 % are of extent |jut|. There is a top left and bottom right serif.
900 % The serif radius is controlled by |f|, with $0<f<1$.
901 % \begin{macrocode}
902
903 def draw_istem(suffix $, $$)(expr fr)=
904 draw_serif($, $$, fr); % top serif
905 draw_serif($$, $, fr); % bottom serif
906 draw z$a--z$$a; % the stem
907 enddef; % end of draw_istem
908
909 % \end{macrocode}
910 % \end{routine}
911 %
912 % \begin{routine}{draw_tstem}
913 % A macro to draw the shape of the stem of a `t'. |draw_tstem(1,2,f)| draws a
914 % stem whose
915 % top is at |z1| and bottom at |z2| with a right serif at |z2|. The radius
916 % is controlled by |f|, with $0 < f < 1$.
917 % It draws with the current pen and the serif is of extent |jut|.
918 % \begin{macrocode}
919
920 def draw_tstem(suffix $, $$)(expr fr)=
921 draw_serif($$, $, fr); % the serif
922 draw z$--z$$a; % the stem
923 enddef; % end of draw_tstem
924
925 % \end{macrocode}
926 % \end{routine}
927 %
928 % \begin{routine}{draw_tlserif}
929 % A macro to draw a top left serif. |draw_tlserif(1,2,f)| draws a serif on top
930 % of a stem whose absolute
931 % top is at |z1| and bottom at |z2|. It draws with the current pen and the serif
932 % is of extent |jut|. It also draws the stem to the point |z2|. The serif
933 % radius is controlled by |f|, with $0<f<1$.
934 % \begin{macrocode}
935
936 def draw_tlserif(suffix $, $$)(expr fr)=
937 draw_serif($, $$, fr); % the serif
938 draw z$a--z$$; % the stem
939 enddef; % end of draw_tlserif
940
941 % \end{macrocode}
942 % \end{routine}
943 %
944 %
945 % \begin{routine}{draw_flick}
946 % A macro to draw a flick (like an eyebrow).
947 % |draw_flick(1,rise,fall,fjut)| draws a stroke starting at |z1| rising up by
948 % |rise| and falling down by |fall| wrt |z1|. The overall stroke distance is
949 % |fjut| to the right of |z1|. It is drawn with the current pen.
950 % \begin{macrocode}
951
952 def draw_flick(suffix $)(expr rise, fall, fjut)=
953 % \end{macrocode}
954 % The points |z$a| and |z$b|, together with |z$| make up three points on the
955 % ductus.
956 % \begin{macrocode}
957 rt x$b = x1+fjut; top y$b=y$-fall;
958 x$a=0.5[x$,x$b]; top y$a=y$+rise;
959 % \end{macrocode}
960 % Draw the part, and finish off.
961 % \begin{macrocode}
962 draw z$..z$a..z$b;
963 labels($a,$b);
964 enddef; % end of draw_flick
965
966 % \end{macrocode}
967 % \end{routine}
968 %
969 %
970 % \begin{routine}{draw_wave}
971 % A macro to draw a (horizontal) stroke with a flick at each end
972 % (down at the left and up at the right). |draw_wave(1,2,f)| uses the current
973 % pen to draw from |z1wl| to |z1wr|, where |x1wl=x1|, |y1wl=y1-f|, and
974 % |x1wr=x2|, |y1wr=y2+f|, with |z1| assumed to be at the left of |z2|.
975 % \begin{macrocode}
976
977 def draw_wave(suffix $,$$)(expr f)=
978 x$wl=x$; y$wl=y$-f;
979 x$wr=x$$; y$wr=y$$+f;
980 z$wc=0.5[z$wl,z$wr];
981 draw z$wl{pdir}..z$wc{right}..{pdir}z$wr;
982 labels($wl,$wc,$wr);
983 enddef; % end of draw_wave
984 % \end{macrocode}
985 % \end{routine}
986 %
987 % \begin{routine}{draw_tail}
988 % A macro to draw a tail at the bottom of a (vertical) stem.
989 % |draw_tail(1,fjut)| draws a tail at the bottom of the stem which ends at |z1|.
990 % The depth is controlled by the |desc_depth| value and the jut by |fjut|.
991 % \begin{macrocode}
992
993 def draw_tail(suffix $)(expr fj)=
994 pen oldpen; oldpen:=currentpen;
995 pickup quill;
996 x$tl' = lft x$; y$tl=bot y$;
997 pickup stylus;
998 lft x$tl=x$tl';
999 x$tb=x$tl-fj; bot y$tb=y$tl-1/2desc_depth;
1000 filldraw z${down}..{-pdir}z$tb & z$tb{pdir}..{up}z$tl--cycle;
1001 pickup oldpen;
1002 labels($tb,$tl);
1003 enddef; % end of draw_tail
1004 % \end{macrocode}
1005 % \end{routine}
1006 %
1007 % \begin{routine}{draw_triangle}
1008 % A macro to draw a downward pointing equilateral triangle.
1009 % |draw_triangle(1,sz)| draws a triangle of side length with |z1| in the middle
1010 % of the base.
1011 % \begin{macrocode}
1012
1013 def draw_triangle(suffix $)(expr sz)=
1014 pen oldpen; oldpen:=currentpen;
1015 pickup stylus;
1016 x$t1=x$-sz/2; x$t3=x$+sz/2;
1017 y$t1=y$t3=y$;
1018 x$t2=x$; y$t2=y$-0.9sz; % approx sqrt(3)/2
1019 filldraw z$t1--z$t2--z$t3--cycle;
1020 pickup oldpen;
1021 labels($t1,$t2,$t3);
1022 enddef; % end of draw_triangle
1023 % \end{macrocode}
1024 % \end{routine}
1025 %
1026 % \begin{routine}{draw_rtriangle}
1027 % A macro to draw a downward pointing right angled triangle.
1028 % |draw_triangle(1,sz)| draws a triangle of side length with |z1| at the
1029 % right (where the right angle is).
1030 % \begin{macrocode}
1031
1032 def draw_rtriangle(suffix $)(expr sz)=
1033 pen oldpen; oldpen:=currentpen;
1034 pickup stylus;
1035 x$t1=x$-sz; rt x$t3=x$;
1036 y$t1=y$t3=y$;
1037 x$t2=x$t3; y$t2=y$-sz;
1038 filldraw z$t1--z$t2--z$t3--cycle;
1039 pickup oldpen;
1040 labels($t1,$t2,$t3);
1041 enddef; % end of draw_rtriangle
1042 % \end{macrocode}
1043 % \end{routine}
1044 %
1045 % \begin{routine}{draw_rutriangle}
1046 % A macro to draw an upward pointing right angled triangle.
1047 % |draw_triangle(1,sz)| draws a triangle of side length with |z1| at the
1048 % right (where the right angle is).
1049 % \begin{macrocode}
1050
1051 def draw_rutriangle(suffix $)(expr sz)=
1052 pen oldpen; oldpen:=currentpen;
1053 pickup stylus;
1054 x$t1=x$-sz; rt x$t3=x$;
1055 y$t1=y$t3=y$;
1056 x$t2=x$t3; y$t2=y$+sz;
1057 filldraw z$t1--z$t2--z$t3--cycle;
1058 pickup oldpen;
1059 labels($t1,$t2,$t3);
1060 enddef; % end of draw_rutriangle
1061 % \end{macrocode}
1062 % \end{routine}
1063 %
1064 % \begin{routine}{draw_fork}
1065 % A macro to draw a forked line.
1066 % |draw_fork(1,2,sz)| draws a graduated line from |z1| to |z2| with a forked
1067 % end of size |sz|.
1068 % \begin{macrocode}
1069
1070 def draw_fork(suffix $, $$)(expr sz)=
1071 pen oldpen; oldpen:=currentpen;
1072 pickup quill;
1073 x$f1'=lft x$; y$f1'=bot y$;
1074 x$f3'=rt x$; y$f3'=top y$;
1075 pickup stylus;
1076 lft x$f1=x$f1'; bot y$f1=y$f1';
1077 rt x$f3=x$f3'; y$f3-y$=2*(y$-y$f1);
1078 rt x$f2=x$$-sz; bot y$f2=y$$;
1079 rt x$f4= rt x$f5=x$$;
1080 bot y$f5=y$$-sz; top y$f4=y$$+1/2sz;
1081 filldraw z$f1--z$f2--z$f3--cycle; % the line
1082 draw z$f2{right}..z$f4; % upper fork
1083 draw z$f2{right}..z$f5; % lower fork
1084 pickup oldpen;
1085 labels($f1,$f2,$f3,$f4,$f5);
1086 enddef; % end of draw_fork
1087 % \end{macrocode}
1088 % \end{routine}
1089 %
1090 % \begin{routine}{draw_urswish}
1091 % A macro to draw a line up and to the right with an under curl at the end.
1092 % |draw_urswish(1,2)| draws from |z1| towards |z2|, which is the max upper right
1093 % of a bounding box, where the curl is.
1094 % \begin{macrocode}
1095
1096 def draw_urswish(suffix $, $$)=
1097 pen oldpen; oldpen:=currentpen;
1098 pickup quill;
1099 rt x$$s1=x$$-thick; top y$$s1=y$$;
1100 rt x$$s2=x$$;
1101 %% x$$s3=x$$-thick;
1102 lft x$$s3=x$$s1;
1103 bot y$$s3=y$$-thick; y$$s2=0.5[y$$s1,y$$s3];
1104 %% draw z$---z$$s1{right}..z$$s2{down}..{-pdir}z$$s3;
1105 draw z$..z$$s1{pdir}..z$$s2{down};
1106 labels($$s1,$$s2,$$s3);
1107 enddef; % end of draw_urswish
1108 % \end{macrocode}
1109 % \end{routine}
1110 %
1111 % \begin{routine}{bowl_stem}
1112 % Calculate where a bowl should meet a stem so that the pen is moving in the
1113 % pen direction.
1114 % |bowl_stem(1,2)| calculates the point |z1i|, where |z1| is on the bowl and
1115 % there is a vertical line at |x2|.
1116 %
1117 % \begin{macrocode}
1118
1119 def bowl_stem(suffix $, $$)=
1120 x$'=0.5[x$,x$$]; y$'=y$; % the mid-point
1121 z$''=z$' shifted (thick*pdir);
1122 x$i=x$$; z$i=whatever[z$',z$''];
1123 labels($',$i);
1124 enddef; % end of bowl_stem
1125 % \end{macrocode}
1126 % \end{routine}
1127 %
1128 % \begin{routine}{draw_pdot}
1129 % A macro to draw a period dot.
1130 % |draw_pdot(1,sz)| uses |stylus| to draw a dot centered at |z1| of overall size |sz|.
1131 % \begin{macrocode}
1132
1133 def draw_pdot(suffix $)(expr sz)=
1134 % \end{macrocode}
1135 % Draw a square rotated 45 degrees.
1136 % \begin{macrocode}
1137 z$s = z$ shifted (0.5sz*left);
1138 z$t = z$ shifted (0.5sz*up);
1139 z$u = z$s shifted (sz*right);
1140 z$v = z$t shifted (sz*down);
1141 pickup stylus;
1142 filldraw z$s--z$t--z$u--z$v--cycle;
1143 labels($s,$t,$u,$v);
1144 enddef; % end of draw_pdot
1145
1146 % \end{macrocode}
1147 % \end{routine}
1148 %
1149 % \begin{routine}{draw_pcomma}
1150 % A macro to draw a period comma.
1151 % |draw_pcomma(1,t,w)| draws a comma placed at |z1| (the top), line width is |t|
1152 % and bottom of line is |w| horizontally from |z1|. The pen is |stylus|.
1153 % \begin{macrocode}
1154
1155 def draw_pcomma(suffix $)(expr sz, ar)=
1156 % \end{macrocode}
1157 % Draw a line of at |z$| of width |sz| sloping back and down at 45 degrees
1158 % for a total width of |ar|.
1159 % \begin{macrocode}
1160 z$s = z$ shifted (0.5sz*left);
1161 z$t = z$s shifted (sz*right);
1162 x$v=x$s-ar; y$v=y$s-ar;
1163 z$u = z$v shifted (sz*right);
1164 pickup stylus;
1165 filldraw z$s--z$t--z$u--z$v--cycle;
1166 %% filldraw z$s--z$t--z$u--cycle;
1167 labels($s,$t,$u,$v);
1168 enddef; % end of draw_pcomma
1169
1170 % \end{macrocode}
1171 % \end{routine}
1172 %
1173 % \begin{routine}{draw_plq}
1174 % A macro to draw a period left quote.
1175 % |draw_pcomma(1,t,w)| draws a left quote placed at |z1| (the top), line width is |t|
1176 % and bottom of line is |w| horizontally from |z1|.
1177 % \begin{macrocode}
1178
1179 def draw_plq(suffix $)(expr sz, ar)=
1180 % \end{macrocode}
1181 % Draw a line of at |z$| of width |sz| sloping forward and down at 45 degrees
1182 % for a total width of |ar|.
1183 % \begin{macrocode}
1184 z$s = z$ shifted (0.5sz*left);
1185 z$t = z$s shifted (sz*right);
1186 x$v=x$s+ar; y$v=y$s-ar;
1187 z$u = z$v shifted (sz*right);
1188 pickup stylus;
1189 filldraw z$s--z$t--z$u--z$v--cycle;
1190 %% filldraw z$s--z$t--z$v--cycle;
1191 labels($s,$t,$u,$v);
1192 enddef; % end of draw_plq
1193
1194 % \end{macrocode}
1195 % \end{routine}
1196 %
1197 %
1198 % Set the mode and font setup.
1199 % \begin{macrocode}
1200
1201 font_coding_scheme:="ASCII minuscules and punctuation";
1202 mode_setup;
1203 huncial_font_setup;
1204
1205 % \end{macrocode}
1206 %
1207 %
1208 % We generate letters, together with some punctuation and
1209 % analphabetics.
1210 % \begin{macrocode}
1211
1212 input huncll; % minuscules (lower case)
1213 input hunclu; % majuscules (capitals)
1214 input hunclpunct; % punctuation
1215 input huncllig; % the several dashes
1216 input huncldig; % arabic digits
1217
1218 % \end{macrocode}
1219 %
1220 % Finally, do the uppercase ligtable.
1221 %
1222 % \begin{macrocode}
1223
1224 font_slant slant; font_x_height x_height#;
1225 if monospace: font_normal_space 9u#; % no stretching or shrinking
1226 font_quad 18u#;
1227 font_extra_space 9u#;
1228 else: font_normal_space 6u#+2letter_fit#;
1229 font_normal_stretch 3u#; font_normal_shrink 2u#;
1230 font_quad 18u#+4letter_fit#;
1231 font_extra_space 2u#;
1232 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
1233 %% ligtable "P": "T": "Y": "A" kern kk#;
1234 %% ligtable "F": "V": "W": "A" kern if serifs: kkk# else: kk#fi,
1235 %% "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#;
1236 %% ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#,
1237 %% "V" kern k#, "Y" kern k#;
1238 %% ligtable "A": if serifs: "R": fi
1239 %% "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#,
1240 %% "L": "T" kern kk#, "Y" kern kkk#, "V" kern kk#, "W" kern kkk#;
1241 %%ligtable "I": "I" kern -k#; % Richard III
1242 fi
1243
1244 bye.
1245
1246 %</mfd>
1247 % \end{macrocode}
1248 %
1249 % \subsection{The code for normal letters}
1250 %
1251 % The following code is for the minuscule characters.
1252 %
1253 % \begin{macrocode}
1254 %<*min>
1255 % HUNCLL.MF Program file for Half Uncial minuscules
1256 %
1257
1258
1259 % \end{macrocode}
1260 %
1261 %
1262 % \begin{routine}{a}
1263 % The letter `a'.
1264 % \begin{macrocode}
1265 cmchar "HUncial letter a";
1266 beginchar("a", 2u#+hstretch*(x_height#+jut#), x_height#, 0);
1267 adjust_fit(0,0);
1268 pcshiftx := u;
1269 pickup quill;
1270 % stem
1271 rt x1=w-pcshiftx; top y1=h;
1272 x2=x1; bot y2=0;
1273 x5=x1-jut; y5=0.5[y1,y2];
1274 path p[];
1275 p1=z1{-pdir}..z5{down}..{right}z2;
1276 % bowl
1277 lft x3=pcshiftx; y3=y5;
1278 x4=x6=0.5[x3,x5]; top y4=h; bot y6=0;
1279 x2'=0.5[x2,x5];
1280 bowl_stem(6,2');
1281 rt x7=x6i; top y7=y6i;
1282 rt x8=x1; y4-y8=y7-y6;
1283 %%ductus:=true;
1284 if ductus:
1285 pickup stylus;
1286 fi
1287 draw p1; % the stem
1288 draw z8..z4{left}..z3{down}..z6{right}..{pdir}z7; % the bowl
1289 ductus:=false;
1290 penlabels(1,2,3,4,5,6,7,8,100);
1291 endchar; % end "a"
1292
1293 % \end{macrocode}
1294 % \end{routine}
1295 %
1296 % \begin{routine}{b}
1297 % The letter `b'.
1298 % \begin{macrocode}
1299 cmchar "HUncial letter b";
1300 beginchar("b", 2u#+hstretch*(x_height#+trijut#), asc_height#, 0);
1301 adjust_fit(0,0);
1302 pcshiftx := u;
1303 pickup quill;
1304 lft x1=lft x2=pcshiftx+trijut;
1305 top y1=h;
1306 % lower bowl
1307 rt x4=w-pcshiftx;
1308 x3=x5=0.5[x2,x4]; bot y3=0; top y5=h/ascratio;
1309 y2=y4=0.5[y3,y5];
1310 x11=rt x1; bowl_stem(5,11);
1311 lft x7=x5i; bot y7=y5i;
1312 %%ductus:=true;
1313 if ductus:
1314 pickup stylus;
1315 fi
1316 draw z1--z2{down}..z3{right}..z4{up}..z5{left}..{-pdir}z7;
1317 draw_triserif(1,trijut);
1318 ductus:=false;
1319 penlabels(1,2,3,4,5,6,7,8,9,100);
1320 endchar; % end "b"
1321
1322 % \end{macrocode}
1323 % \end{routine}
1324 %
1325 %
1326 % \begin{routine}{c}
1327 % The letter `c'.
1328 % \begin{macrocode}
1329 cmchar "HUncial letter c";
1330 beginchar("c", 2u#+hstretch*(x_height#), x_height#, 0);
1331 adjust_fit(0,0);
1332 pcshiftx := u;
1333 pickup quill;
1334 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
1335 x2=x4=w/2; top y2=h; bot y4=0;
1336 x3'=w-pcshiftx;
1337 bowl_stem(4,3');
1338 rt x5=x4i; top y5=y4i;
1339 x6=x5; y2-y6=y5-y4;
1340 %%ductus:=true;
1341 if ductus:
1342 pickup stylus;
1343 fi
1344 draw z5{-pdir}..{left}z4..z1..z2..z6;
1345 ductus:=false;
1346 penlabels(1,2,3,4,5,6,16,17,18,100);
1347 endchar; % end "c"
1348
1349 % \end{macrocode}
1350 % \end{routine}
1351 %
1352 % \begin{routine}{d}
1353 % The letter `d'.
1354 % \begin{macrocode}
1355 cmchar "HUncial letter d";
1356 beginchar("d", 2u#+hstretch*(x_height#+thick#+jut#), asc_height#, 0);
1357 adjust_fit(0,0);
1358 pcshiftx := u;
1359 pickup quill;
1360 rt x1=w-pcshiftx-jut; top y1=h;
1361 x2=x1; bot y2=0;
1362 x1'=lft x1; y1'=h;
1363 lft x5=pcshiftx;
1364 top y4=h/ascratio; bot y6=0;
1365 x4=x6=0.5[x5,x1']; y5=0.5[y6,y4];
1366 bowl_stem(6,1');
1367 rt x7=x6i; top y7=y6i;
1368 x8=x7; y4-y8=y7-y6;
1369 %%ductus:=true;
1370 if ductus:
1371 pickup stylus;
1372 fi
1373 draw_tstem(1,2,srad); % stem
1374 draw_triserif(1,trijut);
1375 draw z8..z4{left}..z5{down}..z6{right}..{pdir}z7; % bowl
1376 ductus:=false;
1377 penlabels(0,1,2,3,4,5,6,7,8,100);
1378 endchar; % end "d"
1379
1380 % \end{macrocode}
1381 % \end{routine}
1382 %
1383 % \begin{routine}{e}
1384 % The letter `e'.
1385 % \begin{macrocode}
1386 cmchar "HUncial letter e";
1387 beginchar("e", 2u#+hstretch*(x_height#+trijut#), x_height#, 0);
1388 adjust_fit(0,0);
1389 pcshiftx := u;
1390 pickup quill;
1391 lft x1=pcshiftx; rt x3=w-pcshiftx-trijut; y1=y3=h/2;
1392 x2=x4=w/2; top y2=h; bot y4=0;
1393 x3'=w-pcshiftx-trijut;
1394 bowl_stem(4,3');
1395 rt x5=x4i; top y5=y4i;
1396 % the bar
1397 x7=x1; y7=y1;
1398 rt x8=w-pcshiftx; top y8=2/3h;
1399 path p[];
1400 p1=z7{right}..{pdir}z8;
1401 p2=z2{right}..z3{down}..{left}z4;
1402 z6 = p1 intersectionpoint p2;
1403 %%ductus:=true;
1404 if ductus:
1405 pickup stylus;
1406 fi
1407 draw z5{-pdir}..{left}z4..z1..z2{right}..z6; % the bowl
1408 draw p1; % the bar
1409 ductus:=false;
1410 penlabels(1,2,3,4,5,6,7,8,9,100);
1411 endchar; % end "e"
1412
1413 % \end{macrocode}
1414 % \end{routine}
1415 %
1416 % \begin{routine}{f}
1417 % The letter `f'.
1418 % \begin{macrocode}
1419 cmchar "HUncial letter f";
1420 beginchar("f", 2u#+hstretch*(7/6x_height#+trijut#), (3/2x_height#), desc_depth#);
1421 adjust_fit(0,0);
1422 pcshiftx := u;
1423 pickup quill;
1424 % stem
1425 lft x1=lft x2=pcshiftx+trijut;
1426 top y1=2/3h; bot y2=-d;
1427 % bars
1428 z3=z4=z1;
1429 rt x5= rt x6=w-pcshiftx; top y5=h; y6=y4;
1430 x7=0.5[x4,x6]; y7=y6-2thin;
1431 %%ductus:=true;
1432 if ductus:
1433 pickup stylus;
1434 fi
1435 draw_tstem(1,2,srad); % stem
1436 draw_triserif(1,trijut);
1437 draw_urswish(3,5); % top bar
1438 draw z4..z7{right}..{pdir}z6; % bottom bar
1439 ductus:=false;
1440 penlabels(1,2,3,4,5,6,7,100);
1441 endchar; % end "f"
1442
1443 % \end{macrocode}
1444 % \end{routine}
1445 %
1446 % \begin{routine}{g}
1447 % The letter `g'. This came in three forms; like the `g' in the Artificial
1448 % Uncial script, like an `S' with a bar at the top, or the form I have
1449 % done here.
1450 % \begin{macrocode}
1451 cmchar "HUncial letter g";
1452 beginchar("g", 2u#+hstretch*(4/3x_height#), x_height#, desc_depth#);
1453 adjust_fit(0,0);
1454 pcshiftx := u;
1455 numeric alpha; alpha:=thin;
1456 pickup quill;
1457 % top bar
1458 lft x1=pcshiftx; top y1=h+alpha;
1459 rt x3=w-pcshiftx; top y3=h-alpha;
1460 % diagonal
1461 rt x2=3/4w; top y2=h-alpha;
1462 x4=1/4w; y4=0;
1463 % the bowl
1464 rt x6=w-pcshiftx; y6=-1/2d;
1465 x7=1/2w; bot y7=-d;
1466 lft x8=pcshiftx; top y8=-1/2d;
1467 %%ductus:=true;
1468 if ductus:
1469 pickup stylus;
1470 fi
1471 draw_wave(1,3,alpha); % top bar
1472 draw z2--z4; % diagonal
1473 draw z4{pdir}..z6{down}..z7{left}..z8; % the bowl
1474 ductus:=false;
1475 penlabels(1,2,3,4,5,6,7,8,100);
1476 endchar; % end "g"
1477
1478 % \end{macrocode}
1479 % \end{routine}
1480 %
1481 % \begin{routine}{h}
1482 % The letter `h'.
1483 % \begin{macrocode}
1484 cmchar "HUncial letter h";
1485 beginchar("h", 2u#+hstretch*(x_height#+trijut#), asc_height#, 0);
1486 adjust_fit(0,0);
1487 pcshiftx := u;
1488 pickup quill;
1489 lft x1=lft x2=pcshiftx+trijut;
1490 top y1=h; bot y2=0;
1491 % bowl
1492 rt x5=w-pcshiftx; y5=h/(2ascratio);
1493 lft x6=2/3w; bot y6=0;
1494 x4=0.5[x1,x5]; top y4=h/ascratio;
1495 x1'=rt x1;
1496 bowl_stem(4,1');
1497 lft x3=x4i; bot y3=y4i;
1498 %%ductus:=true;
1499 if ductus:
1500 pickup stylus;
1501 fi
1502 draw_tstem(1,2,srad); % stem
1503 draw_triserif(1,trijut);
1504 draw z3{pdir}..z4{right}..z5{down}..z6; % bowl
1505 ductus:=false;
1506 penlabels(1,2,3,4,5,6,100);
1507 endchar; % end "h"
1508
1509 % \end{macrocode}
1510 % \end{routine}
1511 %
1512 % \begin{routine}{i}
1513 % The letter i.
1514 % \begin{macrocode}
1515 cmchar "HUncial letter i";
1516 beginchar("i", 2u#+hstretch*(thick#+trijut#+jut#), x_height#, 0);
1517 adjust_fit(0,0);
1518 pcshiftx := u;
1519 pickup quill;
1520 lft x1=lft x2=pcshiftx+trijut;
1521 top y1=h; bot y2=0;
1522 %%ductus:=true;
1523 draw_tstem(1,2,srad);
1524 draw_triserif(1,trijut);
1525 ductus:=false;
1526 penlabels(1,2,100);
1527 endchar; % end "i"
1528
1529 % \end{macrocode}
1530 % \end{routine}
1531 %
1532 % \begin{routine}{j}
1533 % The letter `j'. This letter was not in the script, it being a later invention.
1534 % \begin{macrocode}
1535 cmchar "HUncial letter j";
1536 beginchar("j", 2u#+hstretch*(thick#+trijut#), x_height#, desc_depth#);
1537 adjust_fit(0,0);
1538 pcshiftx := u;
1539 pickup quill;
1540 lft x1=lft x2=pcshiftx+trijut;
1541 top y1=h; bot y2=-1/2d;
1542 lft x3=pcshiftx; bot y3=-d;
1543 %%ductus:=true;
1544 draw z1--z2{down}..{-pdir}z3;
1545 draw_triserif(1,trijut);
1546 ductus:=false;
1547 penlabels(1,2,3,100);
1548 endchar; % end "j"
1549
1550 % \end{macrocode}
1551 % \end{routine}
1552 %
1553 % \begin{routine}{k}
1554 % The letter `k'.
1555 % \begin{macrocode}
1556 cmchar "HUncial letter k";
1557 beginchar("k", 2u#+hstretch*(x_height#+trijut#+jut#), asc_height#, 0);
1558 adjust_fit(0,0);
1559 pcshiftx := u;
1560 pickup quill;
1561 lft x1=lft x2=pcshiftx+trijut;
1562 top y1=h; bot y2=0;
1563 % for the flick
1564 numeric rise,fall,fjut;
1565 x3=rt x1; y3=(3/4)*(h/ascratio);
1566 rise:=1/6h; fall:=-rise/2; fjut:=1/2w;
1567 % for the leg
1568 z4=z3;
1569 x5=w-pcshiftx-jut; y5=0;
1570 %%ductus:=true;
1571 if ductus:
1572 pickup stylus;
1573 fi
1574 draw_tstem(1,2,srad); % stem
1575 draw_triserif(1,trijut);
1576 draw_flick(3,rise,fall,fjut); % upper diag
1577 draw_tstem(4,5,srad); % lower diag
1578 ductus:=false;
1579 penlabels(1,2,3,4,5,100);
1580 endchar; % end "k"
1581
1582 % \end{macrocode}
1583 % \end{routine}
1584 %
1585 % \begin{routine}{l}
1586 % The letter `l'.
1587 % \begin{macrocode}
1588 cmchar "HUncial letter l";
1589 beginchar("l", 2u#+hstretch*(7/6x_height#+trijut#), asc_height#, 0);
1590 adjust_fit(0,0);
1591 pcshiftx := u;
1592 pickup quill;
1593 lft x1=lft x2=pcshiftx+trijut;
1594 top y1=h; bot y2=0;
1595 z3=z2;
1596 rt x4=w-pcshiftx; bot y4=1/10h;
1597 %%ductus:=true;
1598 draw z1--z2;
1599 draw_triserif(1,trijut); % the stem
1600 draw z3{right}..{pdir}z4; % the foot
1601 ductus:=false;
1602 penlabels(1,2,3,4,100);
1603 endchar; % end "l"
1604
1605 % \end{macrocode}
1606 % \end{routine}
1607 %
1608 % \begin{routine}{m}
1609 % The letter `m'.
1610 % \begin{macrocode}
1611 cmchar "HUncial letter m";
1612 beginchar("m", 2u#+hstretch*(5/3x_height#+trijut#), x_height#, 0);
1613 adjust_fit(0,0);
1614 pcshiftx := u;
1615 pickup quill;
1616 lft x1=pcshiftx+trijut; top y1=h;
1617 x2=x1; bot y2=0;
1618 x4=w/2; y4=2/3h;
1619 x3=0.5[x2,x4]; top y3=h;
1620 x5=x4; y5=y2;
1621 z6=z4;
1622 x7=3/4w; top y7=h;
1623 rt x8=w-pcshiftx; y8=h/2;
1624 lft x9=3/4w; y9=y2;
1625 x14=x1; y14=y4;
1626 %%ductus:=true;
1627 if ductus:
1628 pickup stylus;
1629 fi
1630 draw_tstem(1,2,srad); % left half
1631 draw_triserif(1,trijut);
1632 draw z14..z3{right}..{down}z4;
1633 draw_tstem(4,5,srad); % middle stem
1634 draw z6..z7{right}..z8{down}..{-pdir}z9; % right half
1635 ductus:=false;
1636 penlabels(1,2,3,4,5,6,7,8,9,14,100);
1637 endchar; % end "m"
1638
1639 % \end{macrocode}
1640 % \end{routine}
1641 %
1642 % \begin{routine}{n}
1643 % The letter `n'. This could be like a capital `N' or a lower-case `n'.
1644 % I have chosen to do the latter form.
1645 % \begin{macrocode}
1646 cmchar "HUncial letter n";
1647 beginchar("n", 2u#+hstretch*(x_height#+trijut#+jut#), x_height#, 0);
1648 adjust_fit(0,0);
1649 pcshiftx := u;
1650 pickup quill;
1651 % left stem
1652 lft x1=pcshiftx+trijut; top y1=h;
1653 x2=x1; bot y2=0;
1654 x1'=rt x1;
1655 % right stem
1656 rt x5=w-pcshiftx-jut; y5=h/2;
1657 x6=x5; bot y6=0;
1658 x4=0.5[x1,x5]; top y4=h;
1659 bowl_stem(4,1');
1660 lft x3=x4i; bot y3=y4i;
1661 %%ductus:=true;
1662 if ductus:
1663 pickup stylus;
1664 fi
1665 draw_tstem(1,2,srad); % left stem
1666 draw_triserif(1,trijut);
1667 draw_tstem(5,6,srad); % right stem
1668 draw z3{pdir}..z4{right}..{down}z5; % the bowl top
1669 ductus:=false;
1670 penlabels(1,2,3,4,5,6,100);
1671 endchar; % end "n"
1672
1673 % \end{macrocode}
1674 % \end{routine}
1675 %
1676 % \begin{routine}{o}
1677 % The letter `o'.
1678 % \begin{macrocode}
1679 cmchar "HUncial letter o";
1680 beginchar("o", 2u#+hstretch*(7/6x_height#), x_height#, 0);
1681 adjust_fit(0,0);
1682 pcshiftx := u;
1683 pickup quill;
1684 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
1685 x2=x4=w/2; top y2=h+o; bot y4=-o;
1686 %%ductus:=true;
1687 if ductus:
1688 pickup stylus;
1689 fi
1690 draw z1..z2..z3..z4..cycle;
1691 ductus:=false;
1692 penlabels(1,2,3,4,100);
1693 endchar; % end "o"
1694
1695 % \end{macrocode}
1696 % \end{routine}
1697 %
1698 % \begin{routine}{p}
1699 % The letter `p'.
1700 % \begin{macrocode}
1701 cmchar "HUncial letter p";
1702 beginchar("p", 2u#+hstretch*(7/6x_height#+trijut#), x_height#, desc_depth#);
1703 adjust_fit(0,0);
1704 pcshiftx := u;
1705 pickup quill;
1706 % stem
1707 lft x1=lft x2=pcshiftx+trijut;
1708 top y1=h; bot y2=-d;
1709 % bowl
1710 rt x4=w-pcshiftx;
1711 x3=x5=0.5[x2,x4]; bot y3=0; top y5=h;
1712 y4=0.5[y3,y5];
1713 x1'=rt x1;
1714 bowl_stem(5,1');
1715 lft x7=x5i; bot y7=y5i;
1716 lft x8=rt x1; bot y8=0;
1717 %%ductus:=true;
1718 if ductus:
1719 pickup stylus;
1720 fi
1721 draw_tstem(1,2,srad); % stem
1722 draw_triserif(1,trijut);
1723 draw z8{right}..z4{up}..z5{left}..{-pdir}z7; % bowl
1724 ductus:=false;
1725 penlabels(1,2,3,4,5,6,7,8,100);
1726 endchar; % end "p"
1727
1728 % \end{macrocode}
1729 % \end{routine}
1730 %
1731 % \begin{routine}{q}
1732 % The letter `q'.
1733 % \begin{macrocode}
1734 cmchar "HUncial letter q";
1735 beginchar("q", 2u#+hstretch*(7/6x_height#+jut#), x_height#, desc_depth#);
1736 adjust_fit(0,0);
1737 pcshiftx := u;
1738 pickup quill;
1739 % right stem
1740 rt x1=w-pcshiftx-jut; top y1=h;
1741 x2=x1; bot y2=-d;
1742 lft x5=pcshiftx;
1743 top y4=h; bot y6=0;
1744 x4=x6=0.5[x5,x1']; y5=0.5[y6,y4];
1745 x1'=lft x1;
1746 bowl_stem(6,1');
1747 rt x7=x6i; top y7=y6i;
1748 z8=z1;
1749 %%ductus:=true;
1750 if ductus:
1751 pickup stylus;
1752 fi
1753 draw_tstem(1,2,srad); % stem
1754 draw z8{left}..z5{down}..z6{right}..{pdir}z7; % bowl
1755 ductus:=false;
1756 penlabels(0,1,2,3,4,5,6,7,8,100);
1757 endchar; % end "q"
1758
1759 % \end{macrocode}
1760 % \end{routine}
1761 %
1762 % \begin{routine}{r}
1763 % The letter `r'.
1764 % \begin{macrocode}
1765 cmchar "HUncial letter r";
1766 beginchar("r", 2u#+hstretch*(x_height#+trijut#), x_height#, 0);
1767 adjust_fit(0,0);
1768 pcshiftx := u;
1769 pickup quill;
1770 % stem
1771 lft x1=lft x2=pcshiftx+trijut; top y1=h; bot y2=0;
1772 % bowl
1773 lft x3=rt x1; bot y3=7/8h;
1774 rt x5=w-pcshiftx; top y5=1/2h;
1775 %%ductus:=true;
1776 if ductus:
1777 pickup stylus;
1778 fi
1779 draw_tstem(1,2,srad); % stem
1780 draw_triserif(1,trijut);
1781 draw z3{pdir}..{pdir}z5; % bowl
1782 ductus:=false;
1783 penlabels(1,2,3,4,5,6,7,8,9,100);
1784 endchar; % end "r"
1785
1786 % \end{macrocode}
1787 % \end{routine}
1788 %
1789 % \begin{routine}{s}
1790 % The letter `s'. This is a `long' S.
1791 % \begin{macrocode}
1792 cmchar "HUncial letter s";
1793 beginchar("s", 2u#+hstretch*(x_height#+trijut#), 3/2x_height#, 0);
1794 adjust_fit(0,0);
1795 pcshiftx := u;
1796 pickup quill;
1797 % stem
1798 lft x1=lft x2=pcshiftx+trijut; top y1=2/3h; bot y2=0;
1799 % arm
1800 x5=w-pcshiftx; y5=h;
1801 %%ductus:=true;
1802 if ductus:
1803 pickup stylus;
1804 fi
1805 draw_tstem(1,2,srad); % stem
1806 draw_triserif(1,trijut);
1807 %%draw z1{pdir}..{right}z5; % arm
1808 draw_urswish(1,5);
1809 ductus:=false;
1810 penlabels(1,2,3,4,5,6,7,11,17,26,27,28,100);
1811 endchar; % end "s"
1812
1813 % \end{macrocode}
1814 % \end{routine}
1815 %
1816 % \begin{routine}{t}
1817 % The letter `t'.
1818 % \begin{macrocode}
1819 cmchar "HUncial letter t";
1820 beginchar("t", 2u#+hstretch*(4/3x_height#), x_height#, 0);
1821 adjust_fit(0,0);
1822 pcshiftx := u;
1823 pickup quill;
1824 % bowl
1825 lft x1=pcshiftx+1/4w; rt x3=w-pcshiftx; y1=h/3; y3=h/2;
1826 x2=x4=0.5[x1,x3]; top y2=h; bot y4=0;
1827 x6=x3;
1828 x6'=w-pcshiftx;
1829 bowl_stem(4,6');
1830 rt x5=x4i; top y5=y4i;
1831 top y6=h;
1832 % arm
1833 lft x12=pcshiftx; top y12=h;
1834 x11=0.5[x6,x12]; y11=y12-thin;
1835 %%ductus:=true;
1836 if ductus:
1837 pickup stylus;
1838 fi
1839 draw z5{-pdir}..{left}z4..z1{up}..{pdir}z6; % bowl
1840 draw z6..z11..z12; % top bar
1841 ductus:=false;
1842 penlabels(1,2,3,4,5,6,11,12,100);
1843 endchar; % end "t"
1844
1845 % \end{macrocode}
1846 % \end{routine}
1847 %
1848 % \begin{routine}{u}
1849 % The letter `u'.
1850 % \begin{macrocode}
1851 cmchar "HUncial letter u";
1852 beginchar("u", 2u#+hstretch*(x_height#+trijut#+jut#), x_height#, 0);
1853 adjust_fit(0,0);
1854 pcshiftx := u;
1855 pickup quill;
1856 % left half first
1857 lft x6=pcshiftx+trijut;
1858 top y6=h;
1859 x7=x6; y7=h/2;
1860 x8=0.5[x6,x1]; bot y8=0;
1861 % the stem
1862 rt x1=w-pcshiftx-jut; top y1=h;
1863 x2=x1; bot y2=0;
1864 % construction points for the curved part
1865 x1'=lft x1;
1866 bowl_stem(8,1');
1867 rt x9=x8i; top y9=y8i;
1868 %%ductus:=true;
1869 if ductus:
1870 pickup stylus;
1871 fi
1872 % draw the serifs, then the bowls
1873 draw_triserif(6,trijut); % left half
1874 draw z6--z7{down}..z8{right}..{pdir}z9;
1875 draw_tstem(1,2,srad); % right stem
1876 draw_triserif(1,trijut);
1877 ductus:=false;
1878 penlabels(1,2,3,4,5,6,7,8,9,11,16,100);
1879 endchar; % end "u"
1880
1881 % \end{macrocode}
1882 % \end{routine}
1883 %
1884 % \begin{routine}{v}
1885 % The letter `v'. The right half of the `w' is used for the `v' (or vice-versa
1886 % if you prefer).
1887 % \begin{macrocode}
1888 cmchar "HUncial letter v";
1889 beginchar("v", 2u#+hstretch*(x_height#+trijut#), x_height#, 0);
1890 adjust_fit(0,0);
1891 pcshiftx := u;
1892 pickup quill;
1893 % right side of W
1894 numeric midx; midx:= pcshiftx;
1895 lft x1=midx+trijut; top y1=h;
1896 x2=x1; y2=h/2;
1897 rt x4=w-pcshiftx; y4=y2;
1898 x3=0.5[x2,x4]; bot y3=0;
1899 x5=x4-trijut; y5=y1;
1900 %%ductus:=true;
1901 if ductus:
1902 pickup stylus;
1903 fi
1904 % draw the serifs, then the bowls
1905 draw_triserif(1,trijut);
1906 %%draw_triserif(5,trijut);
1907 draw z1--z2{down}..z3{right}..z4{up}..z5;
1908 ductus:=false;
1909 penlabels(1,2,3,4,5,11,100);
1910 endchar; % end "v"
1911
1912 % \end{macrocode}
1913 % \end{routine}
1914 %
1915 % \begin{routine}{w}
1916 % The letter `w'. This is a modern version as the font did not have a W.
1917 % \begin{macrocode}
1918 cmchar "HUncial letter w";
1919 beginchar("w", 2u#+hstretch*(5/3x_height#+trijut#), x_height#, 0);
1920 adjust_fit(0,0);
1921 pcshiftx := u;
1922 pickup quill;
1923 % right side first
1924 numeric midx; midx:= w/2-trijut;
1925 lft x1=midx+trijut; top y1=h;
1926 x2=x1; y2=h/2;
1927 rt x4=w-pcshiftx; y4=y2;
1928 x3=0.5[x2,x4]; bot y3=0;
1929 x5=x4-trijut; y5=y1;
1930 % left side
1931 lft x6=pcshiftx+trijut;
1932 top y6=h;
1933 %%lft x7=pcshiftx; y7=y2;
1934 x7=x6; y7=y2;
1935 x8=0.5[x7,x1]; y8=y3;
1936 % construction points
1937 x15=0.5[x8,x1]; y15=y8;
1938 z15'=z15 shifted (w*pdir);
1939 x2'=x2; y2'=y15;
1940 path p[];
1941 p1=z1--z2';
1942 p2=z15--z15';
1943 z9= p2 intersectionpoint p1;
1944 pair vec[];
1945 p3=z6..z7{down}..{right}z8;
1946 vec3 = direction 0 of p3;
1947 z16=z6 shifted vec3;
1948 %%ductus:=true;
1949 if ductus:
1950 pickup stylus;
1951 fi
1952 % draw the serifs, then the bowls
1953 draw_triserif(1,trijut); % right half
1954 draw z1--z2{down}..z3{right}..z4{up}..z5;
1955 draw_triserif(6,trijut); % left half
1956 draw z6--z7{down}..z8{right}..z9;
1957 ductus:=false;
1958 penlabels(1,2,3,4,5,6,7,8,9,11,16,100);
1959 endchar; % end "w"
1960
1961 % \end{macrocode}
1962 % \end{routine}
1963 %
1964 % \begin{routine}{x}
1965 % The letter `x'.
1966 % \begin{macrocode}
1967 cmchar "HUncial letter x";
1968 beginchar("x", 2u#+hstretch*(4/3x_height#+jut#), x_height#, desc_depth#);
1969 adjust_fit(0,0);
1970 pcshiftx := u;
1971 pickup quill;
1972 % thick diagonal
1973 lft x1=1/4w; rt x2=w-pcshiftx-jut;
1974 y1=h; y2=0;
1975 % top half of thin diagonal
1976 rt x4=w-pcshiftx; top y4=h;
1977 z3=2/3[z2,z1];
1978 % bottom half
1979 lft x6=pcshiftx; bot y6=-d;
1980 path p[];
1981 pair vec;
1982 %%ductus:=true;
1983 if ductus:
1984 pickup stylus;
1985 fi
1986 draw_istem(1,2,srad); % thick diagonal
1987 draw_urswish(3,4); % top thin diagonal
1988 p1=z3..z4s1{pdir}..z4s2{down}; % bottom thin diagonal
1989 vec= direction 0 of p1;
1990 draw z3{-vec}..{down}z6;
1991 ductus:=false;
1992 penlabels(1,2,3,4,5,6,7,8,100);
1993 endchar; % end "x"
1994
1995 % \end{macrocode}
1996 % \end{routine}
1997 %
1998 % \begin{routine}{y}
1999 % The letter `y'. This has a dot on top!
2000 % \begin{macrocode}
2001 cmchar "HUncial letter y";
2002 beginchar("y", 2u#+hstretch*(4/3x_height#), x_height#, desc_depth#);
2003 adjust_fit(0,0);
2004 pcshiftx := u;
2005 pickup quill;
2006 % left stroke
2007 lft x1=pcshiftx; top y1=h;
2008 lft x3=w/2; bot y3=-d;
2009 x2=lft x5; y2=bot y5;
2010 % right stroke
2011 x5=w/2; y5=1/3h;
2012 x4=w-pcshiftx; top y4=h;
2013 % the dot
2014 x8=w/2; y8=h+jut;
2015 if ductus:
2016 pickup stylus;
2017 fi
2018 draw z1..z2..z3; % left stroke
2019 draw_urswish(2,4); % right stroke
2020 draw_pdot(8,dot_size); % the dot
2021 ductus:=false;
2022 penlabels(1,2,3,4,5,6,7,8,9,10,100);
2023 endchar; % end "y"
2024
2025 % \end{macrocode}
2026 % \end{routine}
2027 %
2028 %
2029 % \begin{routine}{z}
2030 % The letter `z'.
2031 % \begin{macrocode}
2032 cmchar "HUncial letter z";
2033 beginchar("z", 2u#+hstretch*(5/3x_height#), x_height#, 0);
2034 adjust_fit(0,0);
2035 pcshiftx := u;
2036 numeric alpha, beta; alpha:=thin; beta:=2thin;
2037 pickup quill;
2038 % bottom stroke
2039 lft x4=pcshiftx; bot y4=0; x14=x4; y14=y4+beta;
2040 rt x6=w-pcshiftx; bot y6=-beta;
2041 % top stroke
2042 lft x1=1/5w; top y1=h+alpha;
2043 rt x3=4/5w; top y3=h; x13=x3; y13=y3-alpha;
2044 %%ductus:=true;
2045 if ductus:
2046 pickup stylus;
2047 fi
2048 draw_wave(1,13,alpha); % top stroke
2049 draw_wave(14,6,beta); % bottom stroke
2050 draw z4--z3; % diagonal
2051 ductus:=false;
2052 penlabels(1,2,3,4,5,6,100);
2053 endchar; % end "z"
2054
2055 % \end{macrocode}
2056 % \end{routine}
2057 %
2058 %
2059 % The end of this file
2060 % \begin{macrocode}
2061 %</min>
2062 % \end{macrocode}
2063 %
2064 %
2065 % \subsection{The code for capital letters}
2066 %
2067 % \thisfont{} `capitals' were drawn with the same pen as for the minuscules,
2068 % and the letters were merely larger versions of the minuscules.
2069 %
2070 % \begin{macrocode}
2071 %<*maj>
2072 % HUNCLU.MF Program file for Half Uncial `capitals'
2073 %
2074
2075 % \end{macrocode}
2076 %
2077 %
2078 % \begin{routine}{A}
2079 % The letter `A'.
2080 % \begin{macrocode}
2081 cmchar "HUncial letter A";
2082 beginchar("A", 2u#+caprat*hstretch*(x_height#+jut#), caprat*x_height#, 0);
2083 adjust_fit(0,0);
2084 pcshiftx := u;
2085 pickup quill;
2086 % stem
2087 rt x1=w-pcshiftx; top y1=h;
2088 x2=x1; bot y2=0;
2089 x5=x1-jut; y5=0.5[y1,y2];
2090 path p[];
2091 p1=z1{-pdir}..z5{down}..{right}z2;
2092 % bowl
2093 lft x3=pcshiftx; y3=y5;
2094 x4=x6=0.5[x3,x5]; top y4=h; bot y6=0;
2095 x2'=0.5[x2,x5];
2096 bowl_stem(6,2');
2097 rt x7=x6i; top y7=y6i;
2098 rt x8=x1; y4-y8=y7-y6;
2099 %%ductus:=true;
2100 if ductus:
2101 pickup stylus;
2102 fi
2103 draw p1; % the stem
2104 draw z8..z4{left}..z3{down}..z6{right}..{pdir}z7; % the bowl
2105 ductus:=false;
2106 penlabels(1,2,3,4,5,6,7,8,100);
2107 endchar; % end "A"
2108
2109 % \end{macrocode}
2110 % \end{routine}
2111 %
2112 % \begin{routine}{B}
2113 % The letter `B'.
2114 % \begin{macrocode}
2115 cmchar "HUncial letter B";
2116 beginchar("B", 2u#+caprat*hstretch*(x_height#+trijut#), caprat*asc_height#, 0);
2117 adjust_fit(0,0);
2118 pcshiftx := u;
2119 pickup quill;
2120 lft x1=lft x2=pcshiftx+trijut;
2121 top y1=h;
2122 % lower bowl
2123 rt x4=w-pcshiftx;
2124 x3=x5=0.5[x2,x4]; bot y3=0; top y5=h/ascratio;
2125 y2=y4=0.5[y3,y5];
2126 x11=rt x1; bowl_stem(5,11);
2127 lft x7=x5i; bot y7=y5i;
2128 %%ductus:=true;
2129 if ductus:
2130 pickup stylus;
2131 fi
2132 draw z1--z2{down}..z3{right}..z4{up}..z5{left}..{-pdir}z7;
2133 draw_triserif(1,trijut);
2134 ductus:=false;
2135 penlabels(1,2,3,4,5,6,7,8,9,100);
2136 endchar; % end "B"
2137
2138 % \end{macrocode}
2139 % \end{routine}
2140 %
2141 %
2142 % \begin{routine}{C}
2143 % The letter `C'.
2144 % \begin{macrocode}
2145 cmchar "HUncial letter C";
2146 beginchar("C", 2u#+caprat*hstretch*(x_height#), caprat*x_height#, 0);
2147 adjust_fit(0,0);
2148 pcshiftx := u;
2149 pickup quill;
2150 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
2151 x2=x4=w/2; top y2=h; bot y4=0;
2152 x3'=w-pcshiftx;
2153 bowl_stem(4,3');
2154 rt x5=x4i; top y5=y4i;
2155 x6=x5; y2-y6=y5-y4;
2156 %%ductus:=true;
2157 if ductus:
2158 pickup stylus;
2159 fi
2160 draw z5{-pdir}..{left}z4..z1..z2..z6;
2161 ductus:=false;
2162 penlabels(1,2,3,4,5,6,16,17,18,100);
2163 endchar; % end "C"
2164
2165 % \end{macrocode}
2166 % \end{routine}
2167 %
2168 % \begin{routine}{D}
2169 % The letter `D'.
2170 % \begin{macrocode}
2171 cmchar "HUncial letter D";
2172 beginchar("D", 2u#+caprat*hstretch*(x_height#+thick#+jut#), caprat*asc_height#, 0);
2173 adjust_fit(0,0);
2174 pcshiftx := u;
2175 pickup quill;
2176 rt x1=w-pcshiftx-jut; top y1=h;
2177 x2=x1; bot y2=0;
2178 x1'=lft x1; y1'=h;
2179 lft x5=pcshiftx;
2180 top y4=h/ascratio; bot y6=0;
2181 x4=x6=0.5[x5,x1']; y5=0.5[y6,y4];
2182 bowl_stem(6,1');
2183 rt x7=x6i; top y7=y6i;
2184 x8=x7; y4-y8=y7-y6;
2185 %%ductus:=true;
2186 if ductus:
2187 pickup stylus;
2188 fi
2189 draw_tstem(1,2,srad); % stem
2190 draw_triserif(1,trijut);
2191 draw z8..z4{left}..z5{down}..z6{right}..{pdir}z7; % bowl
2192 ductus:=false;
2193 penlabels(0,1,2,3,4,5,6,7,8,100);
2194 endchar; % end "D"
2195
2196 % \end{macrocode}
2197 % \end{routine}
2198 %
2199 % \begin{routine}{E}
2200 % The letter `E'.
2201 % \begin{macrocode}
2202 cmchar "HUncial letter E";
2203 beginchar("E", 2u#+caprat*hstretch*(x_height#+trijut#), caprat*x_height#, 0);
2204 adjust_fit(0,0);
2205 pcshiftx := u;
2206 pickup quill;
2207 lft x1=pcshiftx; rt x3=w-pcshiftx-trijut; y1=y3=h/2;
2208 x2=x4=w/2; top y2=h; bot y4=0;
2209 x3'=w-pcshiftx-trijut;
2210 bowl_stem(4,3');
2211 rt x5=x4i; top y5=y4i;
2212 % the bar
2213 x7=x1; y7=y1;
2214 rt x8=w-pcshiftx; top y8=2/3h;
2215 path p[];
2216 p1=z7{right}..{pdir}z8;
2217 p2=z2{right}..z3{down}..{left}z4;
2218 z6 = p1 intersectionpoint p2;
2219 %%ductus:=true;
2220 if ductus:
2221 pickup stylus;
2222 fi
2223 draw z5{-pdir}..{left}z4..z1..z2{right}..z6; % the bowl
2224 draw p1; % the bar
2225 ductus:=false;
2226 penlabels(1,2,3,4,5,6,7,8,9,100);
2227 endchar; % end "E"
2228
2229 % \end{macrocode}
2230 % \end{routine}
2231 %
2232 % \begin{routine}{F}
2233 % The letter `F'.
2234 % \begin{macrocode}
2235 cmchar "HUncial letter F";
2236 beginchar("F", 2u#+caprat*hstretch*(7/6x_height#+trijut#), caprat*(3/2x_height#),
2237 caprat*desc_depth#);
2238 adjust_fit(0,0);
2239 pcshiftx := u;
2240 pickup quill;
2241 % stem
2242 lft x1=lft x2=pcshiftx+trijut;
2243 top y1=2/3h; bot y2=-d;
2244 % bars
2245 z3=z4=z1;
2246 rt x5= rt x6=w-pcshiftx; top y5=h; y6=y4;
2247 x7=0.5[x4,x6]; y7=y6-2thin;
2248 %%ductus:=true;
2249 if ductus:
2250 pickup stylus;
2251 fi
2252 draw_tstem(1,2,srad); % stem
2253 draw_triserif(1,trijut);
2254 draw_urswish(3,5); % top bar
2255 draw z4..z7{right}..{pdir}z6; % bottom bar
2256 ductus:=false;
2257 penlabels(1,2,3,4,5,6,7,100);
2258 endchar; % end "F"
2259
2260 % \end{macrocode}
2261 % \end{routine}
2262 %
2263 % \begin{routine}{G}
2264 % The letter `G'.
2265 % \begin{macrocode}
2266 cmchar "HUncial letter G";
2267 beginchar("G", 2u#+caprat*hstretch*(4/3x_height#), caprat*x_height#,
2268 caprat*desc_depth#);
2269 adjust_fit(0,0);
2270 pcshiftx := u;
2271 numeric alpha; alpha:=thin;
2272 pickup quill;
2273 % top bar
2274 lft x1=pcshiftx; top y1=h+alpha;
2275 rt x3=w-pcshiftx; top y3=h-alpha;
2276 % diagonal
2277 rt x2=3/4w; top y2=h-alpha;
2278 x4=1/4w; y4=0;
2279 % the bowl
2280 rt x6=w-pcshiftx; y6=-1/2d;
2281 x7=1/2w; bot y7=-d;
2282 lft x8=pcshiftx; top y8=-1/2d;
2283 %%ductus:=true;
2284 if ductus:
2285 pickup stylus;
2286 fi
2287 draw_wave(1,3,alpha); % top bar
2288 draw z2--z4; % diagonal
2289 draw z4{pdir}..z6{down}..z7{left}..z8; % the bowl
2290 ductus:=false;
2291 penlabels(1,2,3,4,5,6,7,8,100);
2292 endchar; % end "G"
2293
2294 % \end{macrocode}
2295 % \end{routine}
2296 %
2297 % \begin{routine}{H}
2298 % The letter `H'.
2299 % \begin{macrocode}
2300 cmchar "HUncial letter H";
2301 beginchar("H", 2u#+caprat*hstretch*(x_height#+trijut#), caprat*asc_height#, 0);
2302 adjust_fit(0,0);
2303 pcshiftx := u;
2304 pickup quill;
2305 lft x1=lft x2=pcshiftx+trijut;
2306 top y1=h; bot y2=0;
2307 % bowl
2308 rt x5=w-pcshiftx; y5=h/(2ascratio);
2309 lft x6=2/3w; bot y6=0;
2310 x4=0.5[x1,x5]; top y4=h/ascratio;
2311 x1'=rt x1;
2312 bowl_stem(4,1');
2313 lft x3=x4i; bot y3=y4i;
2314 %%ductus:=true;
2315 if ductus:
2316 pickup stylus;
2317 fi
2318 draw_tstem(1,2,srad); % stem
2319 draw_triserif(1,trijut);
2320 draw z3{pdir}..z4{right}..z5{down}..z6; % bowl
2321 ductus:=false;
2322 penlabels(1,2,3,4,5,6,100);
2323 endchar; % end "H"
2324
2325 % \end{macrocode}
2326 % \end{routine}
2327 %
2328 % \begin{routine}{I}
2329 % The letter I.
2330 % \begin{macrocode}
2331 cmchar "HUncial letter I";
2332 beginchar("I", 2u#+hstretch*(thick#+trijut#+jut#), caprat*x_height#, 0);
2333 adjust_fit(0,0);
2334 pcshiftx := u;
2335 pickup quill;
2336 lft x1=lft x2=pcshiftx+trijut;
2337 top y1=h; bot y2=0;
2338 %%ductus:=true;
2339 draw_tstem(1,2,srad);
2340 draw_triserif(1,trijut);
2341 ductus:=false;
2342 penlabels(1,2,100);
2343 endchar; % end "I"
2344
2345 % \end{macrocode}
2346 % \end{routine}
2347 %
2348 % \begin{routine}{J}
2349 % The letter `J'. This letter was not in the script, it being a later invention.
2350 % \begin{macrocode}
2351 cmchar "HUncial letter J";
2352 beginchar("J", 2u#+hstretch*(thick#+trijut#), caprat*x_height#, caprat*desc_depth#);
2353 adjust_fit(0,0);
2354 pcshiftx := u;
2355 pickup quill;
2356 lft x1=lft x2=pcshiftx+trijut;
2357 top y1=h; bot y2=-1/2d;
2358 lft x3=pcshiftx; bot y3=-d;
2359 %%ductus:=true;
2360 draw z1--z2{down}..{-pdir}z3;
2361 draw_triserif(1,trijut);
2362 ductus:=false;
2363 penlabels(1,2,3,100);
2364 endchar; % end "J"
2365
2366 % \end{macrocode}
2367 % \end{routine}
2368 %
2369 % \begin{routine}{K}
2370 % The letter `K'.
2371 % \begin{macrocode}
2372 cmchar "HUncial letter K";
2373 beginchar("K", 2u#+caprat*hstretch*(x_height#+trijut#+jut#), caprat*asc_height#, 0);
2374 adjust_fit(0,0);
2375 pcshiftx := u;
2376 pickup quill;
2377 lft x1=lft x2=pcshiftx+trijut;
2378 top y1=h; bot y2=0;
2379 % for the flick
2380 numeric rise,fall,fjut;
2381 x3=rt x1; y3=(3/4)*(h/ascratio);
2382 rise:=1/6h; fall:=-rise/2; fjut:=1/2w;
2383 % for the leg
2384 z4=z3;
2385 x5=w-pcshiftx-jut; y5=0;
2386 %%ductus:=true;
2387 if ductus:
2388 pickup stylus;
2389 fi
2390 draw_tstem(1,2,srad); % stem
2391 draw_triserif(1,trijut);
2392 draw_flick(3,rise,fall,fjut); % upper diag
2393 draw_tstem(4,5,srad); % lower diag
2394 ductus:=false;
2395 penlabels(1,2,3,4,5,100);
2396 endchar; % end "K"
2397
2398 % \end{macrocode}
2399 % \end{routine}
2400 %
2401 % \begin{routine}{L}
2402 % The letter `L'.
2403 % \begin{macrocode}
2404 cmchar "HUncial letter L";
2405 beginchar("L", 2u#+caprat*hstretch*(7/6x_height#+trijut#), caprat*asc_height#, 0);
2406 adjust_fit(0,0);
2407 pcshiftx := u;
2408 pickup quill;
2409 lft x1=lft x2=pcshiftx+trijut;
2410 top y1=h; bot y2=0;
2411 z3=z2;
2412 rt x4=w-pcshiftx; bot y4=1/10h;
2413 %%ductus:=true;
2414 draw z1--z2;
2415 draw_triserif(1,trijut); % the stem
2416 draw z3{right}..{pdir}z4; % the foot
2417 ductus:=false;
2418 penlabels(1,2,3,4,100);
2419 endchar; % end "L"
2420
2421 % \end{macrocode}
2422 % \end{routine}
2423 %
2424 % \begin{routine}{M}
2425 % The letter `M'.
2426 % \begin{macrocode}
2427 cmchar "HUncial letter M";
2428 beginchar("M", 2u#+caprat*hstretch*(5/3x_height#+trijut#), caprat*x_height#, 0);
2429 adjust_fit(0,0);
2430 pcshiftx := u;
2431 pickup quill;
2432 lft x1=pcshiftx+trijut; top y1=h;
2433 x2=x1; bot y2=0;
2434 x4=w/2; y4=2/3h;
2435 x3=0.5[x2,x4]; top y3=h;
2436 x5=x4; y5=y2;
2437 z6=z4;
2438 x7=3/4w; top y7=h;
2439 rt x8=w-pcshiftx; y8=h/2;
2440 lft x9=3/4w; y9=y2;
2441 x14=x1; y14=y4;
2442 %%ductus:=true;
2443 if ductus:
2444 pickup stylus;
2445 fi
2446 draw_tstem(1,2,srad); % left half
2447 draw_triserif(1,trijut);
2448 draw z14..z3{right}..{down}z4;
2449 draw_tstem(4,5,srad); % middle stem
2450 draw z6..z7{right}..z8{down}..{-pdir}z9; % right half
2451 ductus:=false;
2452 penlabels(1,2,3,4,5,6,7,8,9,14,100);
2453 endchar; % end "M"
2454
2455 % \end{macrocode}
2456 % \end{routine}
2457 %
2458 % \begin{routine}{N}
2459 % The letter `N'.
2460 % \begin{macrocode}
2461 cmchar "HUncial letter N";
2462 beginchar("N", 2u#+caprat*hstretch*(x_height#+trijut#+jut#), caprat*x_height#, 0);
2463 adjust_fit(0,0);
2464 pcshiftx := u;
2465 pickup quill;
2466 % left stem
2467 lft x1=pcshiftx+trijut; top y1=h;
2468 x2=x1; bot y2=0;
2469 x1'=rt x1;
2470 % right stem
2471 rt x5=w-pcshiftx-jut; y5=h/2;
2472 x6=x5; bot y6=0;
2473 x4=0.5[x1,x5]; top y4=h;
2474 bowl_stem(4,1');
2475 lft x3=x4i; bot y3=y4i;
2476 %%ductus:=true;
2477 if ductus:
2478 pickup stylus;
2479 fi
2480 draw_tstem(1,2,srad); % left stem
2481 draw_triserif(1,trijut);
2482 draw_tstem(5,6,srad); % right stem
2483 draw z3{pdir}..z4{right}..{down}z5; % the bowl top
2484 ductus:=false;
2485 penlabels(1,2,3,4,5,6,100);
2486 endchar; % end "N"
2487
2488 % \end{macrocode}
2489 % \end{routine}
2490 %
2491 % \begin{routine}{O}
2492 % The letter `O'.
2493 % \begin{macrocode}
2494 cmchar "HUncial letter O";
2495 beginchar("O", 2u#+caprat*hstretch*(7/6x_height#), caprat*x_height#, 0);
2496 adjust_fit(0,0);
2497 pcshiftx := u;
2498 pickup quill;
2499 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
2500 x2=x4=w/2; top y2=h+o; bot y4=-o;
2501 %%ductus:=true;
2502 if ductus:
2503 pickup stylus;
2504 fi
2505 draw z1..z2..z3..z4..cycle;
2506 ductus:=false;
2507 penlabels(1,2,3,4,100);
2508 endchar; % end "O"
2509
2510 % \end{macrocode}
2511 % \end{routine}
2512 %
2513 % \begin{routine}{P}
2514 % The letter `P'.
2515 % \begin{macrocode}
2516 cmchar "HUncial letter P";
2517 beginchar("P", 2u#+caprat*hstretch*(7/6x_height#+trijut#), caprat*x_height#,
2518 caprat*desc_depth#);
2519 adjust_fit(0,0);
2520 pcshiftx := u;
2521 pickup quill;
2522 % stem
2523 lft x1=lft x2=pcshiftx+trijut;
2524 top y1=h; bot y2=-d;
2525 % bowl
2526 rt x4=w-pcshiftx;
2527 x3=x5=0.5[x2,x4]; bot y3=0; top y5=h;
2528 y4=0.5[y3,y5];
2529 x1'=rt x1;
2530 bowl_stem(5,1');
2531 lft x7=x5i; bot y7=y5i;
2532 lft x8=rt x1; bot y8=0;
2533 %%ductus:=true;
2534 if ductus:
2535 pickup stylus;
2536 fi
2537 draw_tstem(1,2,srad); % stem
2538 draw_triserif(1,trijut);
2539 draw z8{right}..z4{up}..z5{left}..{-pdir}z7; % bowl
2540 ductus:=false;
2541 penlabels(1,2,3,4,5,6,7,8,100);
2542 endchar; % end "P"
2543
2544 % \end{macrocode}
2545 % \end{routine}
2546 %
2547 % \begin{routine}{Q}
2548 % The letter `Q'.
2549 % \begin{macrocode}
2550 cmchar "HUncial letter Q";
2551 beginchar("Q", 2u#+caprat*hstretch*(7/6x_height#+jut#), caprat*x_height#,
2552 caprat*desc_depth#);
2553 adjust_fit(0,0);
2554 pcshiftx := u;
2555 pickup quill;
2556 % right stem
2557 rt x1=w-pcshiftx-jut; top y1=h;
2558 x2=x1; bot y2=-d;
2559 lft x5=pcshiftx;
2560 top y4=h; bot y6=0;
2561 x4=x6=0.5[x5,x1']; y5=0.5[y6,y4];
2562 x1'=lft x1;
2563 bowl_stem(6,1');
2564 rt x7=x6i; top y7=y6i;
2565 z8=z1;
2566 %%ductus:=true;
2567 if ductus:
2568 pickup stylus;
2569 fi
2570 draw_tstem(1,2,srad); % stem
2571 draw z8{left}..z5{down}..z6{right}..{pdir}z7; % bowl
2572 ductus:=false;
2573 penlabels(0,1,2,3,4,5,6,7,8,100);
2574 endchar; % end "Q"
2575
2576 % \end{macrocode}
2577 % \end{routine}
2578 %
2579 % \begin{routine}{R}
2580 % The letter `R'.
2581 % \begin{macrocode}
2582 cmchar "HUncial letter R";
2583 beginchar("R", 2u#+caprat*hstretch*(x_height#+trijut#), caprat*x_height#, 0);
2584 adjust_fit(0,0);
2585 pcshiftx := u;
2586 pickup quill;
2587 % stem
2588 lft x1=lft x2=pcshiftx+trijut; top y1=h; bot y2=0;
2589 % bowl
2590 lft x3=rt x1; bot y3=7/8h;
2591 rt x5=w-pcshiftx; top y5=1/2h;
2592 %%ductus:=true;
2593 if ductus:
2594 pickup stylus;
2595 fi
2596 draw_tstem(1,2,srad); % stem
2597 draw_triserif(1,trijut);
2598 draw z3{pdir}..{pdir}z5; % bowl
2599 ductus:=false;
2600 penlabels(1,2,3,4,5,6,7,8,9,100);
2601 endchar; % end "R"
2602
2603 % \end{macrocode}
2604 % \end{routine}
2605 %
2606 % \begin{routine}{S}
2607 % The letter `S'. This is a `long' S.
2608 % \begin{macrocode}
2609 cmchar "HUncial letter S";
2610 beginchar("S", 2u#+caprat*hstretch*(x_height#+trijut#), caprat*(3/2x_height#), 0);
2611 adjust_fit(0,0);
2612 pcshiftx := u;
2613 pickup quill;
2614 % stem
2615 lft x1=lft x2=pcshiftx+trijut; top y1=2/3h; bot y2=0;
2616 % arm
2617 x5=w-pcshiftx; y5=h;
2618 %%ductus:=true;
2619 if ductus:
2620 pickup stylus;
2621 fi
2622 draw_tstem(1,2,srad); % stem
2623 draw_triserif(1,trijut);
2624 %%draw z1{pdir}..{right}z5; % arm
2625 draw_urswish(1,5);
2626 ductus:=false;
2627 penlabels(1,2,3,4,5,6,7,11,17,26,27,28,100);
2628 endchar; % end "S"
2629
2630 % \end{macrocode}
2631 % \end{routine}
2632 %
2633 % \begin{routine}{T}
2634 % The letter `T'.
2635 % \begin{macrocode}
2636 cmchar "HUncial letter T";
2637 beginchar("T", 2u#+caprat*hstretch*(4/3x_height#), caprat*x_height#, 0);
2638 adjust_fit(0,0);
2639 pcshiftx := u;
2640 pickup quill;
2641 % bowl
2642 lft x1=pcshiftx+1/4w; rt x3=w-pcshiftx; y1=h/3; y3=h/2;
2643 x2=x4=0.5[x1,x3]; top y2=h; bot y4=0;
2644 x6=x3;
2645 x6'=w-pcshiftx;
2646 bowl_stem(4,6');
2647 rt x5=x4i; top y5=y4i;
2648 top y6=h;
2649 % arm
2650 lft x12=pcshiftx; top y12=h;
2651 x11=0.5[x6,x12]; y11=y12-thin;
2652 %%ductus:=true;
2653 if ductus:
2654 pickup stylus;
2655 fi
2656 draw z5{-pdir}..{left}z4..z1{up}..{pdir}z6; % bowl
2657 draw z6..z11..z12; % top bar
2658 ductus:=false;
2659 penlabels(1,2,3,4,5,6,11,12,100);
2660 endchar; % end "T"
2661
2662 % \end{macrocode}
2663 % \end{routine}
2664 %
2665 % \begin{routine}{U}
2666 % The letter `U'.
2667 % \begin{macrocode}
2668 cmchar "HUncial letter U";
2669 beginchar("U", 2u#+caprat*hstretch*(x_height#+trijut#+jut#), caprat*x_height#, 0);
2670 adjust_fit(0,0);
2671 pcshiftx := u;
2672 pickup quill;
2673 % left half first
2674 lft x6=pcshiftx+trijut;
2675 top y6=h;
2676 x7=x6; y7=h/2;
2677 x8=0.5[x6,x1]; bot y8=0;
2678 % the stem
2679 rt x1=w-pcshiftx-jut; top y1=h;
2680 x2=x1; bot y2=0;
2681 % construction points for the curved part
2682 x1'=lft x1;
2683 bowl_stem(8,1');
2684 rt x9=x8i; top y9=y8i;
2685 %%ductus:=true;
2686 if ductus:
2687 pickup stylus;
2688 fi
2689 % draw the serifs, then the bowls
2690 draw_triserif(6,trijut); % left half
2691 draw z6--z7{down}..z8{right}..{pdir}z9;
2692 draw_tstem(1,2,srad); % right stem
2693 draw_triserif(1,trijut);
2694 ductus:=false;
2695 penlabels(1,2,3,4,5,6,7,8,9,11,16,100);
2696 endchar; % end "U"
2697
2698 % \end{macrocode}
2699 % \end{routine}
2700 %
2701 % \begin{routine}{V}
2702 % The letter `V'. The right half of the `w' is used for the `v' (or vice-versa
2703 % if you prefer).
2704 % \begin{macrocode}
2705 cmchar "HUncial letter V";
2706 beginchar("V", 2u#+caprat*hstretch*(x_height#+trijut#), caprat*x_height#, 0);
2707 adjust_fit(0,0);
2708 pcshiftx := u;
2709 pickup quill;
2710 % right side of W
2711 numeric midx; midx:= pcshiftx;
2712 lft x1=midx+trijut; top y1=h;
2713 x2=x1; y2=h/2;
2714 rt x4=w-pcshiftx; y4=y2;
2715 x3=0.5[x2,x4]; bot y3=0;
2716 x5=x4-trijut; y5=y1;
2717 %%ductus:=true;
2718 if ductus:
2719 pickup stylus;
2720 fi
2721 % draw the serifs, then the bowls
2722 draw_triserif(1,trijut);
2723 %%draw_triserif(5,trijut);
2724 draw z1--z2{down}..z3{right}..z4{up}..z5;
2725 ductus:=false;
2726 penlabels(1,2,3,4,5,11,100);
2727 endchar; % end "V"
2728
2729 % \end{macrocode}
2730 % \end{routine}
2731 %
2732 % \begin{routine}{W}
2733 % The letter `W'. This is a modern version as the font did not have a W.
2734 % \begin{macrocode}
2735 cmchar "HUncial letter W";
2736 beginchar("W", 2u#+caprat*hstretch*(5/3x_height#+trijut#), caprat*x_height#, 0);
2737 adjust_fit(0,0);
2738 pcshiftx := u;
2739 pickup quill;
2740 % right side first
2741 numeric midx; midx:= w/2-trijut;
2742 lft x1=midx+trijut; top y1=h;
2743 x2=x1; y2=h/2;
2744 rt x4=w-pcshiftx; y4=y2;
2745 x3=0.5[x2,x4]; bot y3=0;
2746 x5=x4-trijut; y5=y1;
2747 % left side
2748 lft x6=pcshiftx+trijut;
2749 top y6=h;
2750 %%lft x7=pcshiftx; y7=y2;
2751 x7=x6; y7=y2;
2752 x8=0.5[x7,x1]; y8=y3;
2753 % construction points
2754 x15=0.5[x8,x1]; y15=y8;
2755 z15'=z15 shifted (w*pdir);
2756 x2'=x2; y2'=y15;
2757 path p[];
2758 p1=z1--z2';
2759 p2=z15--z15';
2760 z9= p2 intersectionpoint p1;
2761 pair vec[];
2762 p3=z6..z7{down}..{right}z8;
2763 vec3 = direction 0 of p3;
2764 z16=z6 shifted vec3;
2765 %%ductus:=true;
2766 if ductus:
2767 pickup stylus;
2768 fi
2769 % draw the serifs, then the bowls
2770 draw_triserif(1,trijut); % right half
2771 draw z1--z2{down}..z3{right}..z4{up}..z5;
2772 draw_triserif(6,trijut); % left half
2773 draw z6--z7{down}..z8{right}..z9;
2774 ductus:=false;
2775 penlabels(1,2,3,4,5,6,7,8,9,11,16,100);
2776 endchar; % end "W"
2777
2778 % \end{macrocode}
2779 % \end{routine}
2780 %
2781 % \begin{routine}{X}
2782 % The letter `X'.
2783 % \begin{macrocode}
2784 cmchar "HUncial letter X";
2785 beginchar("X", 2u#+caprat*hstretch*(4/3x_height#+jut#), caprat*x_height#,
2786 caprat*desc_depth#);
2787 adjust_fit(0,0);
2788 pcshiftx := u;
2789 pickup quill;
2790 % thick diagonal
2791 lft x1=1/4w; rt x2=w-pcshiftx-jut;
2792 y1=h; y2=0;
2793 % top half of thin diagonal
2794 rt x4=w-pcshiftx; top y4=h;
2795 z3=2/3[z2,z1];
2796 % bottom half
2797 lft x6=pcshiftx; bot y6=-d;
2798 path p[];
2799 pair vec;
2800 %%ductus:=true;
2801 if ductus:
2802 pickup stylus;
2803 fi
2804 draw_istem(1,2,srad); % thick diagonal
2805 draw_urswish(3,4); % top thin diagonal
2806 p1=z3..z4s1{pdir}..z4s2{down}; % bottom thin diagonal
2807 vec= direction 0 of p1;
2808 draw z3{-vec}..{down}z6;
2809 ductus:=false;
2810 penlabels(1,2,3,4,5,6,7,8,100);
2811 endchar; % end "X"
2812
2813 % \end{macrocode}
2814 % \end{routine}
2815 %
2816 % \begin{routine}{Y}
2817 % The letter `Y'. This has a dot on top!
2818 % \begin{macrocode}
2819 cmchar "HUncial letter Y";
2820 beginchar("Y", 2u#+caprat*hstretch*(4/3x_height#), caprat*x_height#,
2821 caprat*desc_depth#);
2822 adjust_fit(0,0);
2823 pcshiftx := u;
2824 pickup quill;
2825 % left stroke
2826 lft x1=pcshiftx; top y1=h;
2827 lft x3=w/2; bot y3=-d;
2828 x2=lft x5; y2=bot y5;
2829 % right stroke
2830 x5=w/2; y5=1/3h;
2831 x4=w-pcshiftx; top y4=h;
2832 % the dot
2833 x8=w/2; y8=h+jut;
2834 if ductus:
2835 pickup stylus;
2836 fi
2837 draw z1..z2..z3; % left stroke
2838 draw_urswish(2,4); % right stroke
2839 draw_pdot(8,dot_size); % the dot
2840 ductus:=false;
2841 penlabels(1,2,3,4,5,6,7,8,9,10,100);
2842 endchar; % end "Y"
2843
2844 % \end{macrocode}
2845 % \end{routine}
2846 %
2847 %
2848 % \begin{routine}{Z}
2849 % The letter `Z'.
2850 % \begin{macrocode}
2851 cmchar "HUncial letter Z";
2852 beginchar("Z", 2u#+caprat*hstretch*(5/3x_height#), caprat*x_height#, 0);
2853 adjust_fit(0,0);
2854 pcshiftx := u;
2855 numeric alpha, beta; alpha:=thin; beta:=2thin;
2856 pickup quill;
2857 % bottom stroke
2858 lft x4=pcshiftx; bot y4=0; x14=x4; y14=y4+beta;
2859 rt x6=w-pcshiftx; bot y6=-beta;
2860 % top stroke
2861 lft x1=1/5w; top y1=h+alpha;
2862 rt x3=4/5w; top y3=h; x13=x3; y13=y3-alpha;
2863 %%ductus:=true;
2864 if ductus:
2865 pickup stylus;
2866 fi
2867 draw_wave(1,13,alpha); % top stroke
2868 draw_wave(14,6,beta); % bottom stroke
2869 draw z4--z3; % diagonal
2870 ductus:=false;
2871 penlabels(1,2,3,4,5,6,100);
2872 endchar; % end "Z"
2873
2874 % \end{macrocode}
2875 % \end{routine}
2876 %
2877 %
2878 % The end of this file
2879 % \begin{macrocode}
2880 %</maj>
2881 % \end{macrocode}
2882 %
2883 %
2884 %
2885 % \subsection{The punctuation file}
2886 %
2887 % The main punctuation marks are defined in this file.
2888 %
2889 % \begin{macrocode}
2890 %<*punct>
2891 % HUNCLPUNCT.MF This file contains punctuation marks
2892
2893 % \end{macrocode}
2894 %
2895 %
2896 % \begin{routine}{,}
2897 % The `,' character.
2898 % \begin{macrocode}
2899
2900 cmchar "Uncial Comma";
2901 beginchar(",",2u#+hstretch*(comma_width#+dot_size#),x_height#,0);
2902 adjust_fit(0,0);
2903 pcshiftx:=u;
2904 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=h/2;
2905 draw_pcomma(1,dot_size,comma_width);
2906 penlabels(1);
2907 endchar; % end of ","
2908
2909 % \end{macrocode}
2910 % \end{routine}
2911 %
2912 % \begin{routine}{.}
2913 % The `.' character.
2914 % \begin{macrocode}
2915
2916 cmchar "Uncial Period";
2917 beginchar(".",2u#+hstretch*(dot_size#),x_height#,0);
2918 pcshiftx:=u;
2919 x1=w/2; y1=h/2;
2920 draw_pdot(1,dot_size);
2921 penlabels(1);
2922 endchar; % end of "."
2923
2924 % \end{macrocode}
2925 % \end{routine}
2926 %
2927 %
2928 % \begin{routine}{:}
2929 % The `:' character.
2930 % \begin{macrocode}
2931
2932 cmchar "Uncial Colon";
2933 beginchar(":",2u#+hstretch*(dot_size#),x_height#,0);
2934 pcshiftx:=u;
2935 x1=x2=w/2; y1=2/3h; y2=1/3h;
2936 draw_pdot(1,dot_size);
2937 draw_pdot(2,dot_size);
2938 penlabels(1,2);
2939 endchar; % end ":"
2940
2941 % \end{macrocode}
2942 % \end{routine}
2943 %
2944 % \begin{routine}{;}
2945 % The `;' character.
2946 % \begin{macrocode}
2947
2948 cmchar "Uncial Semicolon";
2949 beginchar(";",2u#+hstretch*(comma_width#+dot_size#),x_height#,0);
2950 adjust_fit(0,0);
2951 pcshiftx:=u;
2952 x1=x2=w-pcshiftx-(0.5hstretch*dot_size); y1=2/3h; y2=1/3h;
2953 draw_pdot(1,dot_size);
2954 draw_pcomma(2,dot_size,comma_width);
2955 penlabels(1,2);
2956 endchar; % end of ";"
2957
2958 % \end{macrocode}
2959 % \end{routine}
2960 %
2961 % \begin{routine}{'}
2962 % The `'' character.
2963 % \begin{macrocode}
2964
2965 cmchar "Uncial Apostrophe";
2966 beginchar("'",2u#+hstretch*(comma_width#+dot_size#),4/3x_height#,0);
2967 adjust_fit(0,0);
2968 pcshiftx:=u;
2969 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=h;
2970 draw_pcomma(1,dot_size,comma_width);
2971 penlabels(1);
2972 endchar; % end of "'"
2973
2974 % \end{macrocode}
2975 % \end{routine}
2976 %
2977 % \begin{routine}{`}
2978 % The ``' character.
2979 % \begin{macrocode}
2980
2981 cmchar "Uncial Reverse apostrophe";
2982 beginchar("`",2u#+hstretch*(comma_width#+dot_size#),4/3x_height#,0);
2983 adjust_fit(0,0);
2984 pcshiftx:=u;
2985 x1=pcshiftx+(0.5hstretch*dot_size); y1=h;
2986 draw_plq(1,dot_size,comma_width);
2987 penlabels(1);
2988 endchar; % end of "`"
2989
2990 % \end{macrocode}
2991 % \end{routine}
2992 %
2993 % The end of this file.
2994 % \begin{macrocode}
2995 %</punct>
2996 % \end{macrocode}
2997 %
2998 %
2999 % \subsection{The ligatures and dashes file}
3000 %
3001 % The ligatured letters, punctuation marks and dashes are defined in this file.
3002 % \begin{macrocode}
3003 %<*lig>
3004 % HUNCLLIG.MF Uncial ligatured letters, punctation and dashes
3005
3006 % \end{macrocode}
3007 % First the ligtables.
3008 % \begin{macrocode}
3009
3010 ligtable "`": "`"=:oct"134";
3011 ligtable "'": "'"=:oct"042"; %% , "?" kern 2u#, "!" kern 2u#;
3012
3013 ligtable "-": "-"=:oct"173";
3014 ligtable oct"173": "-"=:oct"174";
3015
3016 ligtable "f": "i"=:oct"014";
3017
3018 % \end{macrocode}
3019 %
3020 % \begin{routine}{''}
3021 % The `''' ligature.
3022 % \begin{macrocode}
3023
3024 cmchar "Uncial closing quotes";
3025 beginchar(oct"042",2u#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
3026 adjust_fit(0,0);
3027 pcshiftx:=u;
3028 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=y2=h;
3029 x2=x1-(2hstretch*dot_size);
3030 draw_pcomma(1,dot_size,comma_width); % right
3031 draw_pcomma(2,dot_size,comma_width); % left
3032 penlabels(1,2);
3033 endchar; % end of "''"
3034
3035 % \end{macrocode}
3036 % \end{routine}
3037 %
3038 % \begin{routine}{``}
3039 % The ```' ligature.
3040 % \begin{macrocode}
3041
3042 cmchar "Uncial opening quotes";
3043 beginchar(oct"134",2u#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
3044 adjust_fit(0,0);
3045 pcshiftx:=u;
3046 x1=pcshiftx+(0.5hstretch*dot_size); y1=y2=h;
3047 x2=x1+(2hstretch*dot_size);
3048 draw_plq(1,dot_size,comma_width); % left
3049 draw_plq(2,dot_size,comma_width); % right
3050 penlabels(1,2);
3051 endchar; % end of "``"
3052
3053 % \end{macrocode}
3054 % \end{routine}
3055 %
3056 % \begin{routine}{-}
3057 % The `-' character.
3058 % \begin{macrocode}
3059
3060 cmchar "Uncial hyphen";
3061 beginchar("-",u#+hstretch*(0.8x_height#),x_height#,0);
3062 adjust_fit(0,0);
3063 pcshiftx:=u/2;
3064 numeric alpha; alpha:=w/8;
3065 pickup quill;
3066 lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
3067 x11=lft x1+alpha/2; y11=top y1-0.5thin;
3068 x12=rt x2; y12=bot y1+0.5thin;
3069 draw z1--z2; % bar
3070 %%draw_triangle(11,alpha);
3071 %%draw_rutriangle(12,alpha);
3072 penlabels(1,2);
3073 endchar; % end of "-"
3074
3075 % \end{macrocode}
3076 % \end{routine}
3077 %
3078 % \begin{routine}{--}
3079 % The -- ligature.
3080 % \begin{macrocode}
3081
3082 cmchar "Uncial en dash";
3083 beginchar(oct"173",u#+hstretch*(x_height#),x_height#,0);
3084 adjust_fit(0,0);
3085 pcshiftx:=u/2;
3086 numeric alpha; alpha:=w/8;
3087 pickup quill;
3088 lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
3089 x11=lft x1+alpha/2; y11=top y1-0.5thin;
3090 x12=rt x2; y12=bot y1+0.5thin;
3091 draw z1--z2; % bar
3092 %%draw_triangle(11,alpha);
3093 %%draw_rutriangle(12,alpha);
3094 penlabels(1,2);
3095 endchar; % end of "--"
3096
3097 % \end{macrocode}
3098 % \end{routine}
3099 %
3100 % \begin{routine}{---}
3101 % The `---' ligature. The em dash is twice the width of the en dash.
3102 % \begin{macrocode}
3103
3104 cmchar "Uncial em dash";
3105 beginchar(oct"174",u#+hstretch*(2x_height#),x_height#,0);
3106 adjust_fit(0,0);
3107 pcshiftx:=u/2;
3108 numeric alpha; alpha:=w/8;
3109 pickup quill;
3110 lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
3111 x11=lft x1+alpha/2; y11=top y1-0.5thin;
3112 x12=rt x2; y12=bot y1+0.5thin;
3113 draw z1--z2; % bar
3114 %%draw_triangle(11,alpha);
3115 %%draw_rutriangle(12,alpha);
3116 penlabels(1,2);
3117 endchar; % end of "---"
3118
3119 % \end{macrocode}
3120 % \end{routine}
3121 %
3122 % \begin{routine}{fi}
3123 % The `fi' ligature.
3124 % \begin{macrocode}
3125
3126 cmchar "HUncial ligature fi";
3127 beginchar(oct"014", 2u#+hstretch*(7/6x_height#+trijut#), (3/2x_height#), desc_depth#);
3128 adjust_fit(0,0);
3129 pcshiftx := u;
3130 pickup quill;
3131 % stem
3132 lft x1=lft x2=pcshiftx+trijut;
3133 top y1=2/3h; bot y2=-d;
3134 % bars
3135 z3=z4=z1;
3136 rt x5=w-pcshiftx; top y5=h;
3137 rt x6=w-pcshiftx-jut; y6=y4;
3138 x7=x6; bot y7=0;
3139 %%ductus:=true;
3140 if ductus:
3141 pickup stylus;
3142 fi
3143 % the f part
3144 draw_tstem(1,2,srad); % stem
3145 draw_triserif(1,trijut);
3146 draw_urswish(3,5); % top bar
3147 draw z4--z6; % bottom bar
3148 % the i part
3149 draw_tstem(6,7,srad); % stem
3150 ductus:=false;
3151 penlabels(1,2,3,4,5,6,7,100);
3152 endchar; % end of "fi"
3153
3154 % \end{macrocode}
3155 % \end{routine}
3156 %
3157 % \begin{routine}{&}
3158 % The ampersand (which is really an `et' ligature).
3159 % \begin{macrocode}
3160
3161 cmchar "HUncial ampersand";
3162 beginchar("&", 2u#+hstretch*(5/3x_height#), x_height#, 0.5desc_depth#);
3163 adjust_fit(0,0);
3164 pcshiftx:=u;
3165 numeric alpha; alpha:=3/5w-u;
3166 pickup quill;
3167 % for the e part
3168 lft x1=pcshiftx; rt x3= alpha; y1=y3=h/2;
3169 x2=x4=alpha/2; top y2=h; bot y4=0;
3170 x3'=alpha;
3171 bowl_stem(4,3');
3172 rt x5=x4i; top y5=y4i;
3173 rt x6=x4i; y5-y4=y2-y6;
3174 % the bar
3175 x7=x1; y7=y1;
3176 rt x8=w-pcshiftx; y8=y7;
3177 % the t part
3178 lft x9=x5; y9=y5;
3179 x10=0.5[x9,x8]; bot y10=-d;
3180 x8'=x8;
3181 bowl_stem(10,8');
3182 x11=x10i; y11=y10i;
3183 %%ductus:=true;
3184 if ductus:
3185 pickup stylus;
3186 fi
3187 draw z5{-pdir}..{left}z4..z1..z2..z6; % the E bowl
3188 draw z7--z8; % the (top) bar
3189 draw z8{left}..z9..z10{right}..{pdir}z11; % the T bowl
3190 ductus:=false;
3191 penlabels(1,2,3,4,5,6,7,8,9,10,16,17,18,31,32,33);
3192 endchar; % end of "&"
3193
3194 % \end{macrocode}
3195 % \end{routine}
3196 %
3197 %
3198 % The end of this file.
3199 % \begin{macrocode}
3200 %</lig>
3201 % \end{macrocode}
3202 %
3203 % \subsection{The digits file}
3204 %
3205 % These are arabic digits in the style of the book-hand. They are a
3206 % modern invention.
3207 %
3208 % \begin{macrocode}
3209 %<*dig>
3210 % HUNCLDIG.MF Program file for Half Uncial digits
3211 %
3212
3213 % \end{macrocode}
3214 %
3215 %
3216 % \begin{routine}{1}
3217 % The digit `1'.
3218 % \begin{macrocode}
3219 cmchar "HUncial digit 1";
3220 beginchar("1", 2u#+fig_width#, fig_height#, 0);
3221 adjust_fit(0,0);
3222 pcshiftx := u;
3223 pickup quill;
3224 x1=x2=w/2;
3225 y1=h; bot y2=0;
3226 %%ductus:=true;
3227 draw_tstem(1,2,srad);
3228 draw_triserif(1,trijut);
3229 ductus:=false;
3230 penlabels(1,2,100);
3231 endchar; % end "1"
3232
3233 % \end{macrocode}
3234 % \end{routine}
3235 %
3236 %
3237 % \begin{routine}{2}
3238 % The digit `2'.
3239 % \begin{macrocode}
3240 cmchar "HUncial digit 2";
3241 beginchar("2", 2u#+fig_width#, fig_height#, 0);
3242 adjust_fit(0,0);
3243 pcshiftx := u;
3244 pickup quill;
3245 % stem
3246 lft x1=pcshiftx+o; top y1=h-2thin;
3247 x2=1/2w; top y2= h+o;
3248 rt x3=w-pcshiftx-o; y3=3/4h;
3249 % foot
3250 lft x5=pcshiftx; bot y5=0;
3251 rt x6=w-pcshiftx; y6=y5;
3252 %%ductus:=true;
3253 if ductus:
3254 pickup stylus;
3255 fi
3256 draw z1..z2{right}..z3{down}..{-pdir}z5; % curve
3257 draw z5--z6; % foot
3258 ductus:=false;
3259 penlabels(1,2,3,4,5,6,100);
3260 endchar; % end "2"
3261
3262 % \end{macrocode}
3263 % \end{routine}
3264 %
3265 %
3266 % \begin{routine}{3}
3267 % The digit `3'.
3268 % \begin{macrocode}
3269 cmchar "HUncial digit 3";
3270 beginchar("3", 2u#+fig_width#, fig_height#, 0);
3271 adjust_fit(0,0);
3272 pcshiftx := u;
3273 pickup quill;
3274 % x values
3275 lft x3=pcshiftx; x10=x3;
3276 rt x5=w-pcshiftx; x8=x5-3thin;
3277 x4=0.5[x3,x5];
3278 x9=0.5[x10,x8];
3279 lft x6=pcshiftx+3thin; x7=x6;
3280 % y values
3281 bot y3=thin; top y10=h-2thin;
3282 y6=0.5[y3,y10]; y7=y6;
3283 bot y4=-thin; top y9=h+thin;
3284 y5=0.5[y3,y6];
3285 y8=11/12[y7,y10];
3286 %%ductus:=true;
3287 if ductus:
3288 pickup stylus;
3289 fi
3290 draw z3..z4{right}..z5{up}...{-pdir}z6; % bottom bowl
3291 draw z7{pdir}...z8{up}..z9{left}..z10; % top bowl
3292 ductus:=false;
3293 penlabels(1,2,3,4,5,6,7,8,9,10,100);
3294 endchar; % end "3"
3295
3296 % \end{macrocode}
3297 % \end{routine}
3298 %
3299 % \begin{routine}{4}
3300 % The digit `4'.
3301 % \begin{macrocode}
3302 cmchar "HUncial digit 4";
3303 beginchar("4", 2u#+fig_width#, fig_height#, 0);
3304 adjust_fit(0,0);
3305 pcshiftx := u;
3306 pickup quill;
3307 % the stem
3308 x1=x2=w-pcshiftx-jut;
3309 y1=h; bot y2=0;
3310 % the crossbar
3311 lft x3=pcshiftx; y3=0.33h;
3312 rt x4=w-pcshiftx; y4=y3;
3313 % the diagonal
3314 lft x5=pcshiftx+jut; y5=h;
3315 x6=x5; y6=y4;
3316 %%ductus:=true;
3317 if ductus:
3318 pickup stylus;
3319 fi
3320 draw_tstem(1,2,srad); % main stem
3321 draw z3--z4; % crossbar
3322 draw z3{pdir}..{pdir}z1; % diagonal
3323 ductus:=false;
3324 penlabels(1,2,3,4,100);
3325 endchar; % end "4"
3326
3327 % \end{macrocode}
3328 % \end{routine}
3329 %
3330 %
3331 %
3332 % \begin{routine}{5}
3333 % The digit `5'.
3334 % \begin{macrocode}
3335 cmchar "HUncial digit 5";
3336 beginchar("5", 2u#+fig_width#, fig_height#, 0);
3337 adjust_fit(0,0);
3338 pcshiftx := u;
3339 pickup quill;
3340 % for the top
3341 rt x1=w-pcshiftx; top y1=h;
3342 lft x2=pcshiftx+trijut; y2=y1;
3343 % the S curve
3344 x3=x2; y3=0.5h+thin;
3345 x4=0.5[x1,x3]; y4=0.5[y3,y5];
3346 rt x5=w-pcshiftx; y5=0.3h;
3347 x6=w/2; bot y6=0;
3348 lft x7=pcshiftx+trijut; bot y7=2thin;
3349 %%x8=w-pcshiftx; y8=h-0.5thin;
3350 %%ductus:=true;
3351 if ductus:
3352 pickup stylus;
3353 fi
3354 %%draw_wave(2,1,thin); % top squiggle
3355 draw z2--z1; % top bar
3356 %%draw_rtriangle(8,3/4jut);
3357 draw z3{pdir}..z5{down}..z6{left}..z7; % curve
3358 draw z2--z3; % vertical
3359 draw_triserif(2,trijut);
3360 ductus:=false;
3361 penlabels(1,2,3,4,5,6,7,100);
3362 endchar; % end "5"
3363
3364 % \end{macrocode}
3365 % \end{routine}
3366 %
3367 % \begin{routine}{6}
3368 % The digit `6'.
3369 % \begin{macrocode}
3370 cmchar "HUncial digit 6";
3371 beginchar("6", 2u#+fig_width#, fig_height#, 0);
3372 adjust_fit(0,0);
3373 pcshiftx := u;
3374 pickup quill;
3375 rt x1=w-pcshiftx; top y1=h-2thin;
3376 x2=1/2w; top y2= h;
3377 lft x3=pcshiftx; y3=1/2h;
3378 x4=x2; bot y4=0;
3379 rt x5=w-pcshiftx; y5=1/4h;
3380 lft x6=rt x3; bot y6=y3;
3381 x8=w-pcshiftx; y8=h-0.5thin;
3382 %%ductus:=true;
3383 if ductus:
3384 pickup stylus;
3385 fi
3386 draw z1..z2{left}..z3{down}..z4{right}..z5{up}..{-pdir}z6;
3387 %%draw z1{left}..z3{down}..z4{right}..z5{up}..{-pdir}z6;
3388 %%draw_rtriangle(8,3/4jut);
3389 ductus:=false;
3390 penlabels(1,2,3,4,5,6,8,100);
3391 endchar; % end "6"
3392
3393 % \end{macrocode}
3394 % \end{routine}
3395 %
3396 %
3397 % \begin{routine}{7}
3398 % The digit `7'.
3399 % \begin{macrocode}
3400 cmchar "HUncial digit 7";
3401 beginchar("7", 2u#+fig_width#, fig_height#, 0);
3402 adjust_fit(0,0);
3403 pcshiftx := u;
3404 pickup quill;
3405 % top bar
3406 lft x1=pcshiftx;
3407 rt x2=w-pcshiftx;
3408 top y1=top y2=h;
3409 x8=pcshiftx+3/8jut; y8=h-0.5thin;
3410 % bowed leg
3411 x4=w/2; bot y4=0;
3412 x3=0.5[x2,x4]-3thin; y3=0.5[y2,y4];
3413 %%ductus:=true;
3414 if ductus:
3415 pickup stylus;
3416 fi
3417 draw z1--z2; % top bar
3418 %%draw_triangle(8,3/4jut);
3419 draw z2..z3..z4; % leg
3420 ductus:=false;
3421 penlabels(1,2,3,4,5,6,7,8,100);
3422 endchar; % end "7"
3423
3424 % \end{macrocode}
3425 % \end{routine}
3426 %
3427 % \begin{routine}{8}
3428 % The digit `8'.
3429 % \begin{macrocode}
3430 cmchar "HUncial digit 8";
3431 beginchar("8", 2u#+fig_width#, fig_height#, 0);
3432 adjust_fit(0,0);
3433 pcshiftx := u;
3434 numeric alpha; alpha:=1;
3435 pickup quill;
3436 lft x1=alpha*pcshiftx+o; rt x3=w-alpha*pcshiftx-o; y1=y3=3/4h;
3437 x2=x4=w/2; top y2=h+o; bot y4=-o;
3438 x5=x2; y5=h/2+2o;
3439 lft x11=pcshiftx; rt x13=w-pcshiftx; y11=y13=1/4h;
3440 %%ductus:=true;
3441 if ductus:
3442 pickup stylus;
3443 fi
3444 draw z1..z2..z3..z5..z11..z4..z13..z5..cycle;
3445 ductus:=false;
3446 penlabels(1,2,3,4,5,11,13,100);
3447 endchar; % end "8"
3448
3449 % \end{macrocode}
3450 % \end{routine}
3451 %
3452 % \begin{routine}{9}
3453 % The digit `9'.
3454 % \begin{macrocode}
3455 cmchar "HUncial digit 9";
3456 beginchar("9", 2u#+fig_width#, fig_height#, 0);
3457 adjust_fit(0,0);
3458 pcshiftx := u;
3459 pickup quill;
3460 lft x1=pcshiftx; bot y1=2thin;
3461 x2=1/2w; bot y2= 0;
3462 rt x3=w-pcshiftx; y3=1/2h;
3463 x4=x2; top y4=h;
3464 lft x5=pcshiftx; y5=3/4h;
3465 rt x6=lft x3; top y6=y3;
3466 %%ductus:=true;
3467 if ductus:
3468 pickup stylus;
3469 fi
3470 draw z1..z2{right}..z3{up}..z4{left}..z5{down}..{pdir}z6;
3471 ductus:=false;
3472 penlabels(1,2,3,4,5,6,100);
3473 endchar; % end "9"
3474
3475 % \end{macrocode}
3476 % \end{routine}
3477 %
3478 %
3479 % \begin{routine}{0}
3480 % The digit `0'.
3481 % \begin{macrocode}
3482 cmchar "Uncial digit 0";
3483 beginchar("0", 2u#+fig_width#, fig_height#, 0);
3484 adjust_fit(0,0);
3485 pcshiftx := u;
3486 y100 = h/2; x100 = pcshiftx+y100; % square center
3487 pickup quill;
3488 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
3489 x2=x4=w/2; top y2=h+o; bot y4=-o;
3490 %%ductus:=true;
3491 if ductus:
3492 pickup stylus;
3493 fi
3494 draw z1..z2..z3..z4..cycle;
3495 ductus:=false;
3496 proofpcbb(100, y100, y100);
3497 penlabels(1,2,3,4,100);
3498 endchar; % end "0"
3499
3500 % \end{macrocode}
3501 % \end{routine}
3502 %
3503 %
3504 %
3505 %
3506 % The end of this file.
3507 % \begin{macrocode}
3508 %</dig>
3509 % \end{macrocode}
3510 %
3511 % \section{The font definition files} \label{sec:fd}
3512 %
3513 % The font comes in normal and bold weights only.
3514 %
3515 % \begin{macrocode}
3516 %<*fdot1>
3517 \DeclareFontFamily{OT1}{huncl}{}
3518 \DeclareFontShape{OT1}{huncl}{m}{n}{ <-8.5> huncl7 <8.5-15> huncl10 <15-> huncl17 }{}
3519 \DeclareFontShape{OT1}{huncl}{m}{sl}{ <-> sub * huncl/m/n }{}
3520 \DeclareFontShape{OT1}{huncl}{m}{it}{ <-> sub * huncl/m/n }{}
3521 \DeclareFontShape{OT1}{huncl}{m}{sc}{ <-> sub * huncl/m/n }{}
3522 \DeclareFontShape{OT1}{huncl}{m}{u}{ <-> sub * huncl/m/n }{}
3523 \DeclareFontShape{OT1}{huncl}{bx}{n}{ <-8.5> hunclb7 <8.5-15> hunclb10 <15-> hunclb17 }{}
3524 \DeclareFontShape{OT1}{huncl}{bx}{it}{ <-> sub * huncl/bx/n }{}
3525 \DeclareFontShape{OT1}{huncl}{bx}{sl}{ <-> sub * huncl/bx/n }{}
3526 \DeclareFontShape{OT1}{huncl}{b}{n}{ <-> sub * huncl/bx/n }{}
3527 %</fdot1>
3528 % \end{macrocode}
3529 %
3530 %
3531 % \begin{macrocode}
3532 %<*fdt1>
3533 \DeclareFontFamily{T1}{huncl}{}
3534 \DeclareFontShape{T1}{huncl}{m}{n}{ <-8.5> huncl7 <8.5-15> huncl10 <15-> huncl17 }{}
3535 \DeclareFontShape{T1}{huncl}{m}{sl}{ <-> sub * huncl/m/n }{}
3536 \DeclareFontShape{T1}{huncl}{m}{it}{ <-> sub * huncl/m/n }{}
3537 \DeclareFontShape{T1}{huncl}{m}{sc}{ <-> sub * huncl/m/n }{}
3538 \DeclareFontShape{T1}{huncl}{m}{u}{ <-> sub * huncl/m/n }{}
3539 \DeclareFontShape{T1}{huncl}{bx}{n}{ <-8.5> hunclb7 <8.5-15> hunclb10 <15-> hunclb17 }{}
3540 \DeclareFontShape{T1}{huncl}{bx}{it}{ <-> sub * huncl/bx/n }{}
3541 \DeclareFontShape{T1}{huncl}{bx}{sl}{ <-> sub * huncl/bx/n }{}
3542 \DeclareFontShape{T1}{huncl}{b}{n}{ <-> sub * huncl/bx/n }{}
3543 %</fdt1>
3544 % \end{macrocode}
3545 %
3546 % \section{The package code} \label{sec:code}
3547 %
3548 % \subsection{The \Lpack{huncial} package}
3549 %
3550 % The \Lpack{huncial} package is for typesetting short pieces of text
3551 % in the \thisfont{} fonts.
3552 %
3553 % Announce the name and version of the package, which requires
3554 % \LaTeXe{}.
3555 % \begin{macrocode}
3556 %<*usc>
3557 \NeedsTeXFormat{LaTeX2e}
3558 \ProvidesPackage{huncial}[1999/05/22 v1.0 package for Half Uncial fonts]
3559 % \end{macrocode}
3560 %
3561 % \begin{macro}{\Tienc}
3562 % A macro for testing the value of |\encodingdefault|.
3563 % \begin{macrocode}
3564 \providecommand{\Tienc}{T1}
3565 % \end{macrocode}
3566 % \end{macro}
3567 %
3568 %
3569 % \begin{macro}{\hunclfamily}
3570 % Selects the \thisfont{} font family in the OT1 or T1 encoding.
3571 % \begin{macrocode}
3572 \ifx\Tienc\encodingdefault
3573 \newcommand{\hunclfamily}{\usefont{T1}{huncl}{m}{n}}
3574 \else
3575 \newcommand{\hunclfamily}{\usefont{OT1}{huncl}{m}{n}}
3576 \fi
3577 % \end{macrocode}
3578 % \end{macro}
3579 %
3580 % \begin{macro}{\texthuncl}
3581 % Text command for the \thisfont{} font family.
3582 % \begin{macrocode}
3583 \DeclareTextFontCommand{\texthuncl}{\hunclfamily}
3584 % \end{macrocode}
3585 % \end{macro}
3586 %
3587 % The end of this package.
3588 % \begin{macrocode}
3589 %</usc>
3590 % \end{macrocode}
3591 %
3592 % \subsection{The \Lpack{allhuncl} package}
3593 %
3594 % The \Lpack{allhuncl} package is intended for use when the entire document
3595 % will be typeset in the book-hand. This is a minimal package. Because the
3596 % book-hand should not contain arabic digits a fuller package would redefine
3597 % anything numbered in \LaTeX{} to use roman instead of arabic numbering.
3598 % Also, because of the large |\baselineskip| many other aspects of \LaTeX{}
3599 % to do with vertical positioning should also be redefined.
3600 %
3601 %
3602 % Announce the name and version of the package, which requires
3603 % \LaTeXe{}. It also uses the \Lpack{huncial} package.
3604 % \begin{macrocode}
3605 %<*uscall>
3606 \NeedsTeXFormat{LaTeX2e}
3607 \ProvidesPackage{allhuncl}[1999/05/22 v1.0 package for all Half Uncial fonts]
3608 \RequirePackage{huncial}
3609 % \end{macrocode}
3610 %
3611 % \begin{macro}{\Tienc}
3612 % A macro for testing the value of |\encodingdefault|.
3613 % \begin{macrocode}
3614 \providecommand{\Tienc}{T1}
3615 % \end{macrocode}
3616 % \end{macro}
3617 %
3618 % Redefine the default fonts to be \thisfont, which has only one family
3619 % member.
3620 % \begin{macro}{\rmdefault}
3621 % \begin{macro}{\sfdefault}
3622 % \begin{macro}{\ttdefault}
3623 % \begin{macrocode}
3624 \renewcommand{\rmdefault}{huncl}
3625 \renewcommand{\sfdefault}{huncl}
3626 \renewcommand{\ttdefault}{huncl}
3627 % \end{macrocode}
3628 % \end{macro}
3629 % \end{macro}
3630 % \end{macro}
3631 %
3632 % The `leading' in the book-hands is a function of the |x-height|, which is
3633 % normally much
3634 % greater than for the CMR fonts. I have borrowed code from Frank Jensen's
3635 % \Lpack{beton} package~\cite{BETON} to do this. The |x-height| (in points)
3636 % for the CMR
3637 % fonts is given in Table~\ref{tab:cmrx}. Note that the CMR design sizes are
3638 % 5--10, 12, and 17.28 points. The other values given are scaled from these
3639 % figures.
3640 %
3641 % \begin{table}
3642 % \centering
3643 % \caption{The x heights of the CMR and \thisfont{} fonts} \label{tab:cmrx}
3644 % \begin{tabular}{ccc} \hline
3645 % Design & CMR & \thisfont \\
3646 % Size & X Height & X Height \\ \hline
3647 % 5 & 2.14 & 2.29 \\ ^^A CMR skip = 6pt = 2.8 times
3648 % 6 & 2.58 & 2.76 \\ ^^A CMR skip = 7pt = 2.7 times
3649 % 7 & 3.00 & 3.21 \\ ^^A CMR skip = 8pt = 2.7 times
3650 % 8 & 3.44 & 3.68 \\ ^^A CMR skip = 9.5pt = 2.8 times
3651 % 9 & 3.86 & 4.13 \\ ^^A CMR skip = 11pt = 2.8 times
3652 % 10 & 4.31 & 4.61 \\ ^^A CMR skip = 12pt = 2.8 times
3653 % 11 & 4.74 & 5.08 \\ ^^A CMR skip = 13.6pt = 2.8 times
3654 % 12 & 5.17 & 5.53 \\ ^^A CMR skip = 14.5pt = 2.8 times
3655 % 14 & 6.03 & 6.45 \\ ^^A CMR skip = 18pt = 3.0 times
3656 % 17 & 7.44 & 7.96 \\ ^^A CMR skip = 22pt = 3.0 times
3657 % 20 & 8.75 & 9.36 \\ ^^A CMR skip = 25pt = 2.9 times
3658 % 25 & 10.94 & 11.71 \\ ^^A CMR skip = 30pt = 2.7 times
3659 % \hline
3660 % \end{tabular}
3661 % \end{table}
3662 %
3663 % \begin{macro}{\huncial@baselineskip@table}
3664 % A table of the normal font sizes and the corresponding baselineskip.
3665 % The distance between baselines for \thisfont{} is over twice
3666 % the |x-height|. ^^A actually 2.5 times
3667 %
3668 % \begin{macrocode}
3669 \newcommand{\huncial@baselineskip@table}{%
3670 <\@vpt>5.7%
3671 <\@vipt>6.9%
3672 <\@viipt>8.0%
3673 <\@viiipt>9.2%
3674 <\@ixpt>10.3%
3675 <\@xpt>11.5%
3676 <\@xipt>12.7%
3677 <\@xiipt>13.8%
3678 <\@xivpt>16.1%
3679 <\@xviipt>19.9%
3680 <\@xxpt>23.4%
3681 <\@xxvpt>29.3}
3682 % \end{macrocode}
3683 % \end{macro}
3684 %
3685 % \begin{macro}{\huncial@new@setfontsize}
3686 % This is a macro that replaces the |\@setfontsize| macro which is called by
3687 % the font size changing commands.
3688 % \begin{macrocode}
3689 \newcommand{\huncial@new@setfontsize}[3]{%
3690 \edef\@tempa{\def\noexpand\@tempb####1<#2}%
3691 \@tempa>##2<##3\@nil{\def\huncial@baselineskip@value{##2}}%
3692 \edef\@tempa{\noexpand\@tempb\huncial@baselineskip@table<#2}%
3693 \@tempa><\@nil
3694 \ifx\huncial@baselineskip@value\@empty
3695 \def\huncial@baselineskip@value{#3}%
3696 \fi
3697 \huncial@old@setfontsize{#1}{#2}\huncial@baselineskip@value}
3698 % \end{macrocode}
3699 % \end{macro}
3700 %
3701 % We had better give an author a means of using The Computer Modern fonts
3702 % if necessary.
3703 %
3704 % \begin{macro}{\cmrfamily}
3705 % \begin{macro}{\cmssfamily}
3706 % \begin{macro}{\cmttfamily}
3707 % These macros select the Computer Modern Roman, Sans, and Typewriter
3708 % font families in either the T1 or OT1 encodings.
3709 % \begin{macrocode}
3710 \ifx\Tienc\encodingdefault
3711 \providecommand{\cmrfamily}{\usefont{T1}{cmr}{m}{n}}
3712 \providecommand{\cmssfamily}{\usefont{T1}{cmss}{m}{n}}
3713 \providecommand{\cmttfamily}{\usefont{T1}{cmtt}{m}{n}}
3714 \else
3715 \providecommand{\cmrfamily}{\usefont{OT1}{cmr}{m}{n}}
3716 \providecommand{\cmssfamily}{\usefont{OT1}{cmss}{m}{n}}
3717 \providecommand{\cmttfamily}{\usefont{OT1}{cmtt}{m}{n}}
3718 \fi
3719 % \end{macrocode}
3720 % \end{macro}
3721 % \end{macro}
3722 % \end{macro}
3723 %
3724 % \begin{macro}{\textcmr}
3725 % Text command for the Computer Modern Roman font family.
3726 % \begin{macrocode}
3727 \DeclareTextFontCommand{\textcmr}{\cmrfamily}
3728 % \end{macrocode}
3729 % \end{macro}
3730 %
3731 % \begin{macro}{\textcmss}
3732 % Text command for the Computer Modern Sans font family.
3733 % \begin{macrocode}
3734 \DeclareTextFontCommand{\textcmss}{\cmssfamily}
3735 % \end{macrocode}
3736 % \end{macro}
3737 %
3738 % \begin{macro}{\textcmtt}
3739 % Text command for the Computer Modern Typewriter font family.
3740 % \begin{macrocode}
3741 \DeclareTextFontCommand{\textcmtt}{\cmttfamily}
3742 % \end{macrocode}
3743 % \end{macro}
3744 %
3745 %
3746 % At the start of the document, change the |\@setfontsize| macro and call
3747 % the normal font to implement the change.
3748 % \begin{macrocode}
3749 \AtBeginDocument{%
3750 \let\huncial@old@setfontsize=\@setfontsize
3751 \let\@setfontsize=\huncial@new@setfontsize}
3752 \AtBeginDocument{\normalsize}
3753 % \end{macrocode}
3754 %
3755 %
3756 % The end of this package.
3757 % \begin{macrocode}
3758 %</uscall>
3759 % \end{macrocode}
3760 %
3761 %
3762 %
3763 % \bibliographystyle{alpha}
3764 % \renewcommand{\refname}{Bibliography}
3765 % \begin{thebibliography}{GMS94}
3766 % \addcontentsline{toc}{section}{\refname}
3767 %
3768 % \bibitem[And69]{ANDERSON69}
3769 % Donald M.~Anderson.
3770 % \newblock {\em The Art of Written Forms: The Theory and Practice of Calligraphy}.
3771 % \newblock Holt, Rinehart and Winston, 1969.
3772 %
3773 % \bibitem[Bol95]{BOLOGNA95}
3774 % Giulia Bologna.
3775 % \newblock {\em Illuminated Manuscripts: The Book before Gutenberg}.
3776 % \newblock Crescent Books, 1995.
3777 %
3778 % \bibitem[Day95]{DAY95}
3779 % Lewis F.~Day.
3780 % \newblock {\em Alphabets Old \& New}.
3781 % \newblock (3rd edition originally published by B.~T.~Batsford, 1910)
3782 % \newblock Senate, 1995.
3783 %
3784 % \bibitem[Dro80]{DROGIN80}
3785 % Marc Drogin.
3786 % \newblock {\em Medieval Calligraphy: Its History and Technique}.
3787 % \newblock Allenheld, Osmun \& Co., 1980.
3788 %
3789 % \bibitem[Dru95]{DRUCKER95}
3790 % Johanna Drucker.
3791 % \newblock {\em The Alphabetic Labyrinth}.
3792 % \newblock Thames \& Hudson, 1995.
3793 %
3794 % \bibitem[Fir93]{FIRMAGE93}
3795 % Richard A.~Firmage.
3796 % \newblock {\em The Alphabet Abecedarium}.
3797 % \newblock David R~Goodine, 1993.
3798 %
3799 % \bibitem[Fli98]{LETTRINE}
3800 % Daniel Flipo.
3801 % \newblock {\em The LETTRINE package}.
3802 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
3803 % \newblock 1998.
3804 %
3805 % \bibitem[Har95]{HARRIS95}
3806 % David Harris.
3807 % \newblock {\em The Art of Calligraphy}.
3808 % \newblock DK Publishing, 1995.
3809 %
3810 % \bibitem[Jen95]{BETON}
3811 % Frank Jensen.
3812 % \newblock {\em The BETON package}.
3813 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
3814 % \newblock 1995.
3815 %
3816 % \bibitem[Joh71]{JOHNSTON75}
3817 % Edward Johnston (ed. Heather Child).
3818 % \newblock {\em Formal Penship and Other Papers}.
3819 % \newblock Penthalic, 1971.
3820 %
3821 % \bibitem[Knu87]{CM}
3822 % Donald E.~Knuth.
3823 % \newblock {\em Computer Modern Typefaces}.
3824 % \newblock Addison-Wesley, 1987.
3825 %
3826 % \bibitem[Knu92]{METAFONT}
3827 % Donald E.~Knuth.
3828 % \newblock {\em The METAFONTbook}.
3829 % \newblock Addison-Wesley, 1992.
3830 %
3831 % \bibitem[GMS94]{GOOSSENS94}
3832 % Michel Goossens, Frank Mittelbach, and Alexander Samarin.
3833 % \newblock {\em The LaTeX Companion}.
3834 % \newblock Addison-Wesley Publishing Company, 1994.
3835 %
3836 % \bibitem[Tho75]{THOMAS75}
3837 % Alan G.~Thomas.
3838 % \newblock {\em Great Books and Book Collectors}.
3839 % \newblock Weidenfield and Nichoson, 1975.
3840 %
3841 % \bibitem[Wil99]{DOCMFP}
3842 % Peter R.~Wilson.
3843 % \newblock {\em The DOCMFP Package}.
3844 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
3845 % \newblock 1999.
3846 %
3847 % \bibitem[Wil99b]{ROMANNUM}
3848 % Peter R.~Wilson.
3849 % \newblock {\em The ROMANNUM Package}.
3850 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
3851 % \newblock 1999.
3852 %
3853 % \end{thebibliography}
3854 %
3855 %
3856 % \Finale
3857 % \PrintIndex
3858 %
3859 \endinput
3860
3861 %% \CharacterTable
3862 %% {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
3863 %% 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
3864 %% Digits \0\1\2\3\4\5\6\7\8\9
3865 %% Exclamation \! Double quote \" Hash (number) \#
3866 %% Dollar \$ Percent \% Ampersand \&
3867 %% Acute accent \' Left paren \( Right paren \)
3868 %% Asterisk \* Plus \+ Comma \,
3869 %% Minus \- Point \. Solidus \/
3870 %% Colon \: Semicolon \; Less than \<
3871 %% Equals \= Greater than \> Question mark \?
3872 %% Commercial at \@ Left bracket \[ Backslash \\
3873 %% Right bracket \] Circumflex \^ Underscore \_
3874 %% Grave accent \` Left brace \{ Vertical bar \|
3875 %% Right brace \} Tilde \~}
3876
3877