% \iffalse meta-comment % % aunclmft.dtx % % Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net % Copyright 1999--2005 Peter R. Wilson % % This work may be distributed and/or modified under the % conditions of the Latex Project Public License, either % version 1.3 of this license or (at your option) any % later version. % The latest version of the license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of % LaTeX version 2003/06/01 or later. % % This work has the LPPL maintenance status "author-maintained". % % This work consists of the files listed in the README file. % % If you do not have the docmfp package (available from CTAN in % tex-archive/macros/latex/contrib/supported), comment out the % \usepackage{docmfp} line below and uncomment the line following it. % %<*driver> \documentclass[twoside]{ltxdoc} \usepackage{docmfp} %%%%%% \providecommand{\DescribeVariable}[1]{} \newenvironment{routine}[1]{}{} \usepackage{url} \usepackage[draft=false, plainpages=false, pdfpagelabels, bookmarksnumbered, hyperindex=false ]{hyperref} \providecommand{\phantomsection}{} \OnlyDescription %% comment this out for the full glory \EnableCrossrefs \CodelineIndex \setcounter{StandardModuleDepth}{1} \makeatletter \@mparswitchfalse \makeatother \renewcommand{\MakeUppercase}[1]{#1} \pagestyle{headings} \newenvironment{addtomargins}[1]{% \begin{list}{}{% \topsep 0pt% \addtolength{\leftmargin}{#1}% \addtolength{\rightmargin}{#1}% \listparindent \parindent \itemindent \parindent \parsep \parskip}% \item[]}{\end{list}} \begin{document} \raggedbottom \DocInput{aunclmft.dtx} \end{document} % % % \fi % % \CheckSum{132} % % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath} % \DoNotIndex{\@centercr,\@cite} % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue} % \DoNotIndex{\@input,\@ixpt,\@m} % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint} % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb} % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt} % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt} % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace} % \DoNotIndex{\advance,\Alph,\alph} % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box} % \DoNotIndex{\bullet} % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption} % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass} % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist} % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup} % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter} % \DoNotIndex{\fbox} % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef} % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule} % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi} % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi} % \DoNotIndex{\input} % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark} % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright} % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment} % \DoNotIndex{\NeedsTeXFormat,\newdimen} % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number} % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@} % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip} % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions} % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright} % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font} % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman} % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength} % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space} % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase} % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt} % \DoNotIndex{\viipt,\vipt,\vskip,\vspace} % \DoNotIndex{\wd,\xiipt,\year,\z@} % % \changes{v1.0}{1999/05/22}{First public release} % \changes{v2.0}{2005/11/27}{Major rewrite} % % \def\fileversion{v1.0} \def\filedate{1999/05/22} % \def\fileversion{v2.0} \def\filedate{2005/11/27} % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment % \newcommand*{\AD}{\textsc{ad}} % \newcommand*{\thisfont}{Artificial Uncial} % % \title{\Lpack{Artificial Uncial}: MetaFont driver code\thanks{This % file has version number \fileversion, last revised % \filedate.}} % % \author{% % Peter Wilson\footnote{\texttt{herries dot press at earthlink dot net}}\\ % Herries Press } % \date{\filedate} % \maketitle % \begin{abstract} % The \Lpack{auncial} bundle provides a PostScript Type1 set of % \thisfont{} bookhands % as used % for manuscripts in the 6th to the 10th century. This is one in a series % of manuscript fonts. % % This document contains the MetaFont driver code. % \end{abstract} % \tableofcontents % \listoftables % % % % \section{Introduction} % % The \Lpack{auncial} bundle provides a PostScript Type1 version of a % Metafont~\cite{METAFONT} rendition % of the \thisfont{} manuscript book-hand that was in use between about the % sixth and tenth centuries~\AD. It is part of a project to provide fonts % covering the major manuscript hands between the first century~\AD{} and % the invention of printing. % % This document contains the MetaFont driver code. % % This manual is typeset according to the conventions of the % \LaTeX{} \textsc{docstrip} utility which enables the automatic % extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}. % The \Lpack{docmfp} package is used for documenting the Metafont portions % of the distribution~\cite{DOCMFP}. % % \section{The Metafont code} \label{sec:mf} % % % As previously noted, this work is part of a larger project to provide % fonts covering the main manuscript book-hands. As such, one of the % aims is to produce a coordinated set of fonts, especially as multiple % hands might be used in a single document. % % Noting that the hands tend to be somewhat larger than the typical 10pt % size (where the x-height is approximately 1.5mm) used for modern books, % I have also designed the fonts % at a larger than normal size, then applied some non-linear factors when reducing % them down to a 10pt size. % Further, I have used the height of the Carolingian minuscule as a % normalising factor when deciding on the absolute height of any particular % script. The x-height of the Carolingian font is made equal to the % x-height of the Computer Modern Roman (CMR) font. % % Modern fonts are effectively drawn. That is, the outline of the letter is % drawn carefully and the center is filled with ink. This is shown to good % effect in the Metafont code for the Computer Modern fonts~\cite{CM}. % In contrast, the manuscript letters were inked by single pen strokes in % a calligraphic manner. I have tried to repeat this calligraphic style % in the Metafont code. % % As much as possible I have tried to use parameter values from the % Computer Modern Roman (CMR) fonts in order to reduce possible % infelicities if the CM and manuscript fonts are used together. However, % few of the CMR parameters are applicable to the calligraphic style. % % % \StopEventually{ % \bibliographystyle{alpha} % \renewcommand{\refname}{Bibliography} % \begin{thebibliography}{GMS94} % \addcontentsline{toc}{section}{\refname} % % \bibitem[And69]{ANDERSON69} % Donald M.~Anderson. % \newblock \emph{The Art of Written Forms: The Theory and Practice of Calligraphy}. % \newblock Holt, Rinehart and Winston, 1969. % % \bibitem[Bol95]{BOLOGNA95} % Giulia Bologna. % \newblock \emph{Illuminated Manuscripts: The Book before Gutenberg}. % \newblock Crescent Books, 1995. % % \bibitem[Day95]{DAY95} % Lewis F.~Day. % \newblock \emph{Alphabets Old \& New}. % \newblock (3rd edition originally published by B.~T.~Batsford, 1910) % \newblock Senate, 1995. % % \bibitem[Dro80]{DROGIN80} % Marc Drogin. % \newblock \emph{Medieval Calligraphy: Its History and Technique}. % \newblock Allenheld, Osmun \& Co., 1980. % % \bibitem[Dru95]{DRUCKER95} % Johanna Drucker. % \newblock \emph{The Alphabetic Labyrinth}. % \newblock Thames \& Hudson, 1995. % % \bibitem[Fir93]{FIRMAGE93} % Richard A.~Firmage. % \newblock \emph{The Alphabet Abecedarium}. % \newblock David R~Goodine, 1993. % % \bibitem[Fli98]{LETTRINE} % Daniel Flipo. % \newblock \emph{The LETTRINE package}. % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}). % \newblock 1998. % % \bibitem[Har95]{HARRIS95} % David Harris. % \newblock \emph{The Art of Calligraphy}. % \newblock DK Publishing, 1995. % % \bibitem[Jen95]{BETON} % Frank Jensen. % \newblock \emph{The BETON package}. % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}). % \newblock 1995. % % \bibitem[Joh71]{JOHNSTON75} % Edward Johnston (ed. Heather Child). % \newblock \emph{Formal Penship and Other Papers}. % \newblock Penthalic, 1971. % % \bibitem[Knu87]{CM} % Donald E.~Knuth. % \newblock \emph{Computer Modern Typefaces}. % \newblock Addison-Wesley, 1987. % % \bibitem[Knu92]{METAFONT} % Donald E.~Knuth. % \newblock \emph{The METAFONTbook}. % \newblock Addison-Wesley, 1992. % % \bibitem[GMS94]{GOOSSENS94} % Michel Goossens, Frank Mittelbach, and Alexander Samarin. % \newblock \emph{The LaTeX Companion}. % \newblock Addison-Wesley Publishing Company, 1994. % % \bibitem[Tho75]{THOMAS75} % Alan G.~Thomas. % \newblock \emph{Great Books and Book Collectors}. % \newblock Weidenfield and Nichoson, 1975. % % \bibitem[Wil99]{DOCMFP} % Peter R.~Wilson. % \newblock \emph{The DOCMFP Package}. % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}). % \newblock 1999. % % \bibitem[Wil99b]{ROMANNUM} % Peter R.~Wilson. % \newblock \emph{The ROMANNUM Package}. % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}). % \newblock 1999. % % \end{thebibliography} % \PrintIndex % } % % \section{The driver file} % % The driver file sets up the font parameters and also contains % the macros used in the definition of the characters. % % \begin{macrocode} %<*mfd> % This is UNCLTITLE.MF for the Artificial Uncial font. % This file also contains special macros universally needed in the % font but either not in the cmbase.mf file or modifications of these. % % \end{macrocode} % % \begin{routine}{makebox} % This is a new version of the \Lpack{cmbase.mf} |makebox| macro. % Essentially, as we are only generating a single case font, we don't % need all the horizontals for the CMR characters. % % \begin{macrocode} %%% A new version of cmbase.mf makebox macro def makebox(text rule) = for y=0,half_height,cap_height,body_height,x_height,asc_height,-desc_depth,-body_depth: rule((l,y)t_,(r,y)t_); endfor % horizontals for x=l,r: rule((x,-body_depth)t_,(x,body_height)t_); endfor % verticals for x=u*(1+floor(1/u)) step u until r-1: rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals if charic<>0: rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction enddef; % \end{macrocode} % \end{routine} % % \begin{routine}{proofpcbb} % The macro |proofpcbb(S, xoff, yoff)| draws crosses at the corners of the % square, and at the bottom and top midpoints, where the point |zS| is at % position |(xoff,yoff)| in the square. % \begin{macrocode} %%% A macro to delineate a letter's bounding square in proof mode. %%% Point z$ is at (xoff,yoff) in the bounding square. def proofpcbb(suffix $)(expr xoff, yoff) = if proofing > 0: x$bl = x$ - xoff; y$bl = y$ - yoff; % Bottom Left Hand Corner z$br = (x$bl+side, y$bl); % BRHC z$tr = (x$bl+side, y$bl+side); % TRHC z$tl = (x$bl, y$bl+side); % TLHC z$bc = 1/2[z$bl,z$br]; z$tc = 1/2[z$tl,z$tr]; % horizontal mid points pair hc, vc; hc = (2u,0); vc = (0,2u); pickup pensquare scaled 2; for s = z$bl, z$br, z$tr, z$tl, z$bc, z$tc: draw s-hc--s+hc; draw s-vc--s+vc; endfor fi enddef; % \end{macrocode} % \end{routine} % % % % \begin{routine}{auncial_font_setup} % This macro contains the set up for the \thisfont{} fonts. % \begin{macrocode} def auncial_font_setup= % contains special stuff for auncial fonts define_pixels(side,half_height,carol_height,comma_width); define_pixels(u,dot_size,letter_size,cap_height,width_adj,serif_fit, cap_serif_fit,jut,cap_jut); define_pixels(fig_width); define_whole_pixels(letter_fit); define_whole_vertical_pixels(body_height,asc_height,cap_height,x_height, desc_depth,body_depth,fig_height, accent_ysize,accent_gap); define_corrected_pixels(o); define_blacker_pixels(thick,thin,accent_thickness); let adjust_fit = normal_adjust_fit; % \end{macrocode} % \DescribeVariable{stylus} % The pen for drawing the thinnest lines is |stylus|. % \begin{macrocode} pickup pencircle scaled thin; stylus:=savepen; % \end{macrocode} % \DescribeVariable{thickstylus} % The pen for drawing lines a bit thicker than the thinnest is |thickstylus|. % \begin{macrocode} pickup pencircle scaled (1.5thin); thickstylus:=savepen; % \end{macrocode} % \DescribeVariable{accentpen} % The pen for drawing the typical accent is |accentpen|. % \begin{macrocode} pickup pencircle xscaled 1/2thick yscaled thin rotated pangle; accentpen:=savepen; % \end{macrocode} % \DescribeVariable{quill} % The normal calligraphic pen is |quill|. % \begin{macrocode} pickup pencircle xscaled thick yscaled thin rotated pangle; quill:=savepen; numeric pcshiftx#; % x value of LHS of box wrt origin of char box define_pixels(pcshiftx); numeric sqxside#; % x size of the square numeric sqyside#; % y size of the square define_pixels(sqxside,sqyside); enddef; % end of auncial_font_setup % \end{macrocode} % \end{routine} % % % \DescribeVariable{ductus} % A boolean to control drawing the ductus (TRUE) or the full letter (FALSE). % \begin{macrocode} boolean ductus; ductus:=false; % \end{macrocode} % % \DescribeVariable{qhor} % \DescribeVariable{qvert} % The cosine and sine of the pen angle. % \begin{macrocode} numeric qhor, qvert; qhor:=cosd(pangle); qvert:=sind(pangle); % \end{macrocode} % % \DescribeVariable{pdir} % The vector corresponding to the pen angle. % \begin{macrocode} pair pdir; pdir=dir(pangle); % \end{macrocode} % % \DescribeVariable{ppdir} % The vector that is perpendicular (anticlockwise) to the pen angle. % \begin{macrocode} pair ppdir; ppdir=dir(pangle+90); % \end{macrocode} % % % \begin{routine}{draw_serif} % A macro to draw a serif. |draw_serif(1,2,f)| uses the current pen to % draw a serif of extent |jut| at |z1| to the left of the line from |z2| % to |z1|. The % radius is controlled by |f|, where $0y$$: top_serif := true; z$c=z$b shifted (-bjut*pdir); else: top_serif:=false; z$c=z$b shifted (bjut*pdir); fi % \end{macrocode} % Draw the parts, and finish off. % \begin{macrocode} if top_serif: draw z$c--z$b{pdir}..{z$$-z$}z$a; % the serif else: draw z$c--z$b{-pdir}..{z$$-z$}z$a; fi labels($a,$b,$c); enddef; % end of draw_serif % \end{macrocode} % \end{routine} % % \begin{routine}{draw_istem} % A macro to draw the shape of an i. |draw_istem(1,2,f)| draws a stem whose % top is at |z1| and bottom at |z2|. It draws with the current pen and the serifs % are of extent |jut|. There is a top left and bottom right serif. % The serif radius is controlled by |f|, with $0 % \end{macrocode} % % % \Finale % \endinput %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits \0\1\2\3\4\5\6\7\8\9 %% Exclamation \! Double quote \" Hash (number) \# %% Dollar \$ Percent \% Ampersand \& %% Acute accent \' Left paren \( Right paren \) %% Asterisk \* Plus \+ Comma \, %% Minus \- Point \. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~}