| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% oands.dtx |
| 4 |
% |
| 5 |
% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net |
| 6 |
% Copyright 2000--2005 Peter R. Wilson |
| 7 |
% |
| 8 |
% This work may be distributed and/or modified under the |
| 9 |
% conditions of the Latex Project Public License, either |
| 10 |
% version 1.3 of this license or (at your option) any |
| 11 |
% later version. |
| 12 |
% The latest version of the license is in |
| 13 |
% http://www.latex-project.org/lppl.txt |
| 14 |
% and version 1.3 or later is part of all distributions of |
| 15 |
% LaTeX version 2003/06/01 or later. |
| 16 |
% |
| 17 |
% This work has the LPPL maintenance status "author-maintained". |
| 18 |
% |
| 19 |
% This work consists of the files listed in the README file. |
| 20 |
% |
| 21 |
% |
| 22 |
% If you do not have the docmfp package (available from CTAN in |
| 23 |
% tex-archive/macros/latex/contrib), comment out the |
| 24 |
% \usepackage{docmfp} line below and uncomment the line following it. |
| 25 |
% |
| 26 |
%<*driver> |
| 27 |
\documentclass[twoside]{ltxdoc} |
| 28 |
\usepackage{docmfp} |
| 29 |
%%%%%% \providecommand{\DescribeVariable}[1]{} \newenvironment{routine}[1]{}{} |
| 30 |
\usepackage{url} |
| 31 |
\usepackage[draft=false, |
| 32 |
plainpages=false, |
| 33 |
pdfpagelabels, |
| 34 |
bookmarksnumbered, |
| 35 |
hyperindex=false |
| 36 |
]{hyperref} |
| 37 |
\providecommand{\phantomsection}{} |
| 38 |
\OnlyDescription %% comment this out for the full glory |
| 39 |
\EnableCrossrefs |
| 40 |
\CodelineIndex |
| 41 |
\setcounter{StandardModuleDepth}{1} |
| 42 |
\makeatletter |
| 43 |
\@mparswitchfalse |
| 44 |
\makeatother |
| 45 |
\renewcommand{\MakeUppercase}[1]{#1} |
| 46 |
\pagestyle{headings} |
| 47 |
\newenvironment{addtomargins}[1]{% |
| 48 |
\begin{list}{}{% |
| 49 |
\topsep 0pt% |
| 50 |
\addtolength{\leftmargin}{#1}% |
| 51 |
\addtolength{\rightmargin}{#1}% |
| 52 |
\listparindent \parindent |
| 53 |
\itemindent \parindent |
| 54 |
\parsep \parskip}% |
| 55 |
\item[]}{\end{list}} |
| 56 |
\begin{document} |
| 57 |
\raggedbottom |
| 58 |
\DocInput{oands.dtx} |
| 59 |
\end{document} |
| 60 |
%</driver> |
| 61 |
% |
| 62 |
% \fi |
| 63 |
% |
| 64 |
% \CheckSum{34} |
| 65 |
% |
| 66 |
% \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath} |
| 67 |
% \DoNotIndex{\@centercr,\@cite} |
| 68 |
% \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue} |
| 69 |
% \DoNotIndex{\@input,\@ixpt,\@m} |
| 70 |
% \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint} |
| 71 |
% \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb} |
| 72 |
% \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt} |
| 73 |
% \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt} |
| 74 |
% \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace} |
| 75 |
% \DoNotIndex{\advance,\Alph,\alph} |
| 76 |
% \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box} |
| 77 |
% \DoNotIndex{\bullet} |
| 78 |
% \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption} |
| 79 |
% \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass} |
| 80 |
% \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist} |
| 81 |
% \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup} |
| 82 |
% \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter} |
| 83 |
% \DoNotIndex{\fbox} |
| 84 |
% \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef} |
| 85 |
% \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule} |
| 86 |
% \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi} |
| 87 |
% \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi} |
| 88 |
% \DoNotIndex{\input} |
| 89 |
% \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark} |
| 90 |
% \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright} |
| 91 |
% \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment} |
| 92 |
% \DoNotIndex{\NeedsTeXFormat,\newdimen} |
| 93 |
% \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number} |
| 94 |
% \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@} |
| 95 |
% \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip} |
| 96 |
% \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions} |
| 97 |
% \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright} |
| 98 |
% \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font} |
| 99 |
% \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman} |
| 100 |
% \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength} |
| 101 |
% \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space} |
| 102 |
% \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase} |
| 103 |
% \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt} |
| 104 |
% \DoNotIndex{\viipt,\vipt,\vskip,\vspace} |
| 105 |
% \DoNotIndex{\wd,\xiipt,\year,\z@} |
| 106 |
% |
| 107 |
% \changes{v1.0}{2000/08/19}{First public release} |
| 108 |
% \changes{v1.1}{2005/04/02}{Minor circumstantial changes and for Postscript} |
| 109 |
% |
| 110 |
% \def\fileversion{v1.0} \def\filedate{2000/08/19} |
| 111 |
% \def\fileversion{v1.1} \def\filedate{2005/04/02} |
| 112 |
% \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package |
| 113 |
% \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option |
| 114 |
% \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file |
| 115 |
% \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter |
| 116 |
% \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle |
| 117 |
% \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment |
| 118 |
% \newcommand*{\AD}{\textsc{ad}} |
| 119 |
% \newcommand*{\thisfont}{OandS} |
| 120 |
% |
| 121 |
% \title{The \Lpack{OandS} fonts\thanks{This |
| 122 |
% file has version number \fileversion, last revised |
| 123 |
% \filedate.}} |
| 124 |
% |
| 125 |
% \author{% |
| 126 |
% Peter Wilson\thanks{\texttt{herries dot press at earthlink dot net}}\\ |
| 127 |
% Herries Press |
| 128 |
% } |
| 129 |
% \date{\filedate} |
| 130 |
% \maketitle |
| 131 |
% \begin{abstract} |
| 132 |
% The \Lpack{oands} bundle provides a set of |
| 133 |
% miscellaneous characters for use when transliterating ancient scripts. |
| 134 |
% This is one in a series for archaic scripts. |
| 135 |
% \end{abstract} |
| 136 |
% \tableofcontents |
| 137 |
% |
| 138 |
% \section{Introduction} |
| 139 |
% |
| 140 |
% The \Lpack{oands} bundle provides a Postscript Type1 version of an |
| 141 |
% original Metafont~\cite{METAFONT} design |
| 142 |
% of the \thisfont{} fonts. These are odd characters used in transliterating |
| 143 |
% archaic scripts, like Hieroglyphic, into a modern alphabet. The font is |
| 144 |
% part of a project to provide fonts showing the development of the |
| 145 |
% modern Latin alphabet from ancient times. |
| 146 |
% |
| 147 |
% This manual is typeset according to the conventions of the |
| 148 |
% \LaTeX{} \textsc{docstrip} utility which enables the automatic |
| 149 |
% extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}. |
| 150 |
% The \Lpack{docmfp} package is used for documenting the Metafont portions |
| 151 |
% of the distribution~\cite{DOCMFP}. |
| 152 |
% |
| 153 |
% Section~\ref{sec:usc} describes the usage of the package. |
| 154 |
% Commented code for the fonts and package may be in later sections. |
| 155 |
% |
| 156 |
% |
| 157 |
% \subsection{The \thisfont{} script} |
| 158 |
% |
| 159 |
% The \thisfont{} font currently consists of just two characters. One is |
| 160 |
% a `mirrored apostrophe' accessed via the single left quote character. |
| 161 |
% The other is a sign representing a glottal stop; it looks like the numeral 3 |
| 162 |
% with a flat top and is accessed via the lowercase z character. |
| 163 |
% |
| 164 |
% \section{The \Lpack{oands} package} \label{sec:usc} |
| 165 |
% |
| 166 |
% The \thisfont{} font family is called |oands|. The font is supplied |
| 167 |
% both upright and italic forms and in both |
| 168 |
% OT1 and T1 encodings. |
| 169 |
% |
| 170 |
% |
| 171 |
% \DescribeMacro{\oandsfamily} |
| 172 |
% The |\oandsfamily| declaration starts typesetting with the \thisfont{} fonts. |
| 173 |
% Use of the \thisfont{} font will continue until either there is another |\...family| |
| 174 |
% declaration or the current group (e.g., environment) is closed. |
| 175 |
% |
| 176 |
% \DescribeMacro{\textoands} |
| 177 |
% The command |\textoands{|\meta{text}|}| will typeset \meta{text} using the |
| 178 |
% \thisfont{} fonts. |
| 179 |
% |
| 180 |
% The complete font may be printed by |\textoands{` z}|. |
| 181 |
% |
| 182 |
% |
| 183 |
% \StopEventually{ |
| 184 |
% \bibliographystyle{alpha} |
| 185 |
% \renewcommand{\refname}{Bibliography} |
| 186 |
% \begin{thebibliography}{GMS94} |
| 187 |
% \addcontentsline{toc}{section}{\refname} |
| 188 |
% |
| 189 |
% \bibitem[Knu92]{METAFONT} |
| 190 |
% Donald E.~Knuth. |
| 191 |
% \newblock \emph{The METAFONTbook}. |
| 192 |
% \newblock Addison-Wesley, 1992. |
| 193 |
% |
| 194 |
% \bibitem[Knu87]{CM} |
| 195 |
% Donald E.~Knuth. |
| 196 |
% \newblock \emph{Computer Modern Typefaces}. |
| 197 |
% \newblock Addison-Wesley, 1987. |
| 198 |
% |
| 199 |
% \bibitem[GMS94]{GOOSSENS94} |
| 200 |
% Michel Goossens, Frank Mittelbach, and Alexander Samarin. |
| 201 |
% \newblock \emph{The LaTeX Companion}. |
| 202 |
% \newblock Addison-Wesley Publishing Company, 1994. |
| 203 |
% |
| 204 |
% \bibitem[Wil99]{DOCMFP} |
| 205 |
% Peter R.~Wilson. |
| 206 |
% \newblock \emph{The DOCMFP Package}. |
| 207 |
% \newblock (Available from CTAN in \texttt{macros/latex/contrib}). |
| 208 |
% \newblock 1999. |
| 209 |
% |
| 210 |
% \end{thebibliography} |
| 211 |
% |
| 212 |
% \PrintIndex |
| 213 |
% |
| 214 |
% } |
| 215 |
% |
| 216 |
% |
| 217 |
% |
| 218 |
% \section{The Metafont code} \label{sec:mf} |
| 219 |
% |
| 220 |
% |
| 221 |
% \subsection{The parameter file} |
| 222 |
% |
| 223 |
% We deal with the parameter files first, and start by announcing |
| 224 |
% what they are for. The \thisfont{} font comes in one size as a normal |
| 225 |
% and italic font. |
| 226 |
% |
| 227 |
% \begin{macrocode} |
| 228 |
%<*base10|base10i> |
| 229 |
%<base10>%%% OANDSU10.MF oands upright font at 10 point design size. |
| 230 |
%<base10i>%%% OANDSI10.MF oands italic font at 10 point design size. |
| 231 |
% |
| 232 |
% \end{macrocode} |
| 233 |
% The parameters from CMR are used~\cite{CM}. We also |
| 234 |
% make sure that \Lpack{cmbase} is loaded as well |
| 235 |
% as plain Metafont. |
| 236 |
% \begin{macrocode} |
| 237 |
if unknown cmbase: input cmbase fi |
| 238 |
|
| 239 |
% \end{macrocode} |
| 240 |
% |
| 241 |
% \begin{routine}{mirror_comma} |
| 242 |
% We need an additional routine for a `mirrored' comma. It might |
| 243 |
% just as well go here as the number of families is very limited and it |
| 244 |
% will save on a file. The code is based on Knuth's \file{cmbase.mf}. |
| 245 |
% \begin{macrocode} |
| 246 |
def mirror_comma(suffix $, @)(expr dot_size, jut, depth) = |
| 247 |
pickup fine.nib; |
| 248 |
pos$(dot_size,90); |
| 249 |
if square_dots: |
| 250 |
pos$'(dot_size,0); |
| 251 |
z$'=z$; |
| 252 |
dot($',$); % squarish dot |
| 253 |
comma_join_ := max(fine.breadth, floor .7dot_size); |
| 254 |
comma_bot_ := max(fine.breadth, floor .5dot_size); |
| 255 |
pos@0(comma_join_, 0); pos@1(comma_join_, 0); pos@2(comma_bot_, 0); |
| 256 |
y@0=y$; y@1=y$1; y@2=y@1-depth; |
| 257 |
x@0r=x@1r=x$'r; |
| 258 |
rt x@2r=good.x(x$-eps); |
| 259 |
filldraw stroke z@[email protected]@2e; % tail |
| 260 |
else: |
| 261 |
pos@1(vair,-90); pos@2(vair,0); pos@3(vair,45); |
| 262 |
z@1r=z$r; lft x@2l=hround(x$-.5dot_size-jut)-2eps; x@3=x$+.5u; |
| 263 |
y@2=1/3[y@1,y@3]; bot y@3r=vround(y$-.5dot_size-depth); |
| 264 |
y_ := ypart((z@1{left}...z@2{down}...z@3) |
| 265 |
intersectiontimes (z$r{left}..{right}z$l)); |
| 266 |
if y_ < 0: y_ :=1; fi |
| 267 |
filldraw z$l{right}..subpath (0,y_) of (z$r{left}..{right}z$l)--cycle; % dot |
| 268 |
filldraw stroke z@1e{left}...z@2e{down}...z@3e; % tail |
| 269 |
fi |
| 270 |
penlabels(@1,@2,@3); |
| 271 |
enddef; |
| 272 |
|
| 273 |
% \end{macrocode} |
| 274 |
% \end{routine} |
| 275 |
% |
| 276 |
% Now for the parameters. |
| 277 |
% \begin{macrocode} |
| 278 |
%<base10>font_identifier:="OANDSU"; font_size 10pt#; |
| 279 |
%<base10i>font_identifier:="OANDSI"; font_size 10pt#; |
| 280 |
|
| 281 |
% \end{macrocode} |
| 282 |
% |
| 283 |
% \DescribeVariable{u} |
| 284 |
% The unit width. |
| 285 |
% \begin{macrocode} |
| 286 |
%<base10> u# := 20/36pt#; % unit width |
| 287 |
%<base10i> u# := 18.4/36pt#; % unit width |
| 288 |
% \end{macrocode} |
| 289 |
% |
| 290 |
% \DescribeVariable{width_adj} |
| 291 |
% \DescribeVariable{serif_fit} |
| 292 |
% \DescribeVariable{cap_serif_fit} |
| 293 |
% \DescribeVariable{letter_fit} |
| 294 |
% The majority of these parameters and values are constant. |
| 295 |
% They are for fine adjustements of characters. |
| 296 |
% \begin{macrocode} |
| 297 |
width_adj#:=0pt#; % width adjustment for certain characters |
| 298 |
serif_fit#:=0pt#; % extra sidebar near lowercase serifs |
| 299 |
cap_serif_fit#:=3.5/36pt#; % extra sidebar near uppercase serifs |
| 300 |
%<base10> letter_fit#:=9.2/36pt#; % extra space added to all sidebars |
| 301 |
%<base10i> letter_fit#:=0pt#; % extra space added to all sidebars |
| 302 |
|
| 303 |
% \end{macrocode} |
| 304 |
% |
| 305 |
% \DescribeVariable{body_height} |
| 306 |
% \DescribeVariable{asc_height} |
| 307 |
% \DescribeVariable{cap_height} |
| 308 |
% \DescribeVariable{fig_height} |
| 309 |
% \DescribeVariable{x_height} |
| 310 |
% \DescribeVariable{math_axis} |
| 311 |
% \DescribeVariable{bar_height} |
| 312 |
% \DescribeVariable{comma_depth} |
| 313 |
% \DescribeVariable{desc_depth} |
| 314 |
% This set of parameters defines the upper and lower limits |
| 315 |
% on the characters. |
| 316 |
% \begin{macrocode} |
| 317 |
body_height# := 270/36pt#; % Height of tallest character |
| 318 |
asc_height# := 250/36pt#; % Height of lowercase ascenders |
| 319 |
cap_height# := 246/36pt#; % Height of caps |
| 320 |
fig_height# := 232/36pt#; % Height of numerals |
| 321 |
x_height# := 155/36pt#; % Height of lowercase without ascenders |
| 322 |
math_axis# := 90/36pt#; % axis of symmetry for math symbols |
| 323 |
bar_height# := 87/36pt#; % height of crossbar in lowercase e |
| 324 |
comma_depth# := 70/36pt#; % depth of comma below baseline |
| 325 |
desc_depth# := 70/36pt#; % depth of lowercase descenders |
| 326 |
|
| 327 |
% \end{macrocode} |
| 328 |
% |
| 329 |
% \DescribeVariable{crisp} |
| 330 |
% \DescribeVariable{tiny} |
| 331 |
% \DescribeVariable{fine} |
| 332 |
% \DescribeVariable{thin_join} |
| 333 |
% \DescribeVariable{hair} |
| 334 |
% \begin{macrocode} |
| 335 |
crisp# := 0pt#; % diameter of serif corners |
| 336 |
tiny# := 8/36pt#; % diameter of rounded corners |
| 337 |
fine# := 7/36pt#; % diameter of sharply rounded corners |
| 338 |
thin_join# := 7/36pt#; % width of extrafine details |
| 339 |
hair# := 9/36pt#; % lowercase hairline breadth |
| 340 |
% \end{macrocode} |
| 341 |
% |
| 342 |
% \DescribeVariable{stem} |
| 343 |
% \DescribeVariable{curve} |
| 344 |
% \DescribeVariable{ess} |
| 345 |
% \DescribeVariable{flare} |
| 346 |
% \DescribeVariable{dot_size} |
| 347 |
% \begin{macrocode} |
| 348 |
stem# := 25/36pt#; % lowercase stem breadth |
| 349 |
curve# := 30/36pt#; % lowercase curve breadth |
| 350 |
ess# := 27/36pt#; % breadth in middle of lowercase s |
| 351 |
flare# := 33/36pt#; % diameter of bulbs or breadth of terminals |
| 352 |
dot_size# := 38/36pt#; % diameter of dots |
| 353 |
% \end{macrocode} |
| 354 |
% |
| 355 |
% \DescribeVariable{cap_hair} |
| 356 |
% \DescribeVariable{cap_stem} |
| 357 |
% \DescribeVariable{cap_curve} |
| 358 |
% \DescribeVariable{cap_ess} |
| 359 |
% \DescribeVariable{rule_thickness} |
| 360 |
% \begin{macrocode} |
| 361 |
cap_hair# := 11/36pt#; % uppercase hairline breadth |
| 362 |
cap_stem# := 32/36pt#; % uppercase stem breadth |
| 363 |
cap_curve# := 37/36pt#; % uppercase curve breadth |
| 364 |
cap_ess# := 35/36pt#; % breadth in middle of uppercase S |
| 365 |
rule_thickness# := 0.4pt#; % thickness of lines in math symbols |
| 366 |
% \end{macrocode} |
| 367 |
% |
| 368 |
% \DescribeVariable{dish} |
| 369 |
% \DescribeVariable{bracket} |
| 370 |
% \DescribeVariable{jut} |
| 371 |
% \DescribeVariable{cap_jut} |
| 372 |
% \DescribeVariable{beak_jut} |
| 373 |
% \begin{macrocode} |
| 374 |
dish# := 1/36pt#; % amount erased at top or bottom of serifs |
| 375 |
bracket# := 20/36pt#; % vertical distance from serif base to tangent |
| 376 |
jut# := 28/36pt#; % protrusion of lowercase serifs |
| 377 |
cap_jut# := 37/36pt#; % protrusion of uppercase serifs |
| 378 |
beak_jut# := 10/36pt#; % horizontal protrusion of beak serifs |
| 379 |
% \end{macrocode} |
| 380 |
% |
| 381 |
% \DescribeVariable{beak} |
| 382 |
% \DescribeVariable{vair} |
| 383 |
% \DescribeVariable{notch_cut} |
| 384 |
% \DescribeVariable{bar} |
| 385 |
% \DescribeVariable{slab} |
| 386 |
% \begin{macrocode} |
| 387 |
beak# := 70/36pt#; % vertical protrusion of beak serifs |
| 388 |
vair# := 8/36pt#; % vertical diameter of hairlines |
| 389 |
notch_cut# := 10pt#; % max breadth above/below notches |
| 390 |
bar# := 11/36pt#; % lowercase bar thickness |
| 391 |
slab# := 11/36pt#; % serif and arm thickness |
| 392 |
% \end{macrocode} |
| 393 |
% |
| 394 |
% \DescribeVariable{cap_bar} |
| 395 |
% \DescribeVariable{cap_band} |
| 396 |
% \DescribeVariable{cap_notch_cut} |
| 397 |
% \DescribeVariable{serif_drop} |
| 398 |
% \DescribeVariable{stem_corr} |
| 399 |
% \begin{macrocode} |
| 400 |
cap_bar# := 11/36pt#; % uppercase bar thickness |
| 401 |
cap_band# := 11/36pt#; % uppercase thickness above/below lobes |
| 402 |
cap_notch_cut# := 10pt#; % max breadth above/below uppercase notches |
| 403 |
serif_drop# := 4/36pt#; % vertical drop of sloped serifs |
| 404 |
stem_corr# := 1/36pt#; % small refinement of stem breadth |
| 405 |
% \end{macrocode} |
| 406 |
% |
| 407 |
% \DescribeVariable{vair_corr} |
| 408 |
% \DescribeVariable{apex_corr} |
| 409 |
% \DescribeVariable{o} |
| 410 |
% \DescribeVariable{apex_o} |
| 411 |
% \DescribeVariable{slant} |
| 412 |
% \begin{macrocode} |
| 413 |
vair_corr# := 1/36pt#; % small refinement of hairline height |
| 414 |
apex_corr# := 0pt#; % extra width at diagonal junctions |
| 415 |
o# := 8/36pt#; % amount of overshoot for curves |
| 416 |
apex_o# := 8/36pt#; % amount of overshoot for diagonal junctions |
| 417 |
%<base10> slant := 0; % tilt ratio (\Delta x / \Delta y) |
| 418 |
%<base10i> slant := 0.25; % tilt ratio (\Delta x / \Delta y) |
| 419 |
% \end{macrocode} |
| 420 |
% |
| 421 |
% \DescribeVariable{fudge} |
| 422 |
% \DescribeVariable{math_spread} |
| 423 |
% \DescribeVariable{superness} |
| 424 |
% \DescribeVariable{superpull} |
| 425 |
% \DescribeVariable{beak_darkness} |
| 426 |
% \begin{macrocode} |
| 427 |
fudge := 1; % facto applied to weights of heavy characters |
| 428 |
math_spread := 0; % extra openness of math symbols |
| 429 |
superness := 1/sqrt2; % parameter for superellipses |
| 430 |
superpull := 1/6; % extra openness inside bowls |
| 431 |
beak_drakness := 11/30; % fraction of triangle inside beak serifs |
| 432 |
% \end{macrocode} |
| 433 |
% |
| 434 |
% \DescribeVariable{ligs} |
| 435 |
% \DescribeVariable{square_dots} |
| 436 |
% \DescribeVariable{hefty} |
| 437 |
% \DescribeVariable{serifs} |
| 438 |
% \DescribeVariable{monospace} |
| 439 |
% \begin{macrocode} |
| 440 |
ligs := 2; % level of ligatures to be included |
| 441 |
square_dots := false; % should dots be square? |
| 442 |
hefty := false; % should we try hard not to be overweight? |
| 443 |
serifs := true; % should serifs and bulbs be attached? |
| 444 |
monospace := false; % should all characyers have the same width? |
| 445 |
% \end{macrocode} |
| 446 |
% |
| 447 |
% \DescribeVariable{variant_g} |
| 448 |
% \DescribeVariable{low_asterisk} |
| 449 |
% \DescribeVariable{math_fitting} |
| 450 |
% \begin{macrocode} |
| 451 |
%<base10> variant_g := false; % should an italic-style g be used? |
| 452 |
%<base10i> variant_g := true; % should an italic-style g be used? |
| 453 |
low_asterisk := false; % should the asterisk be centered at the axis? |
| 454 |
math_fitting := false; % should math-mode spacing be used? |
| 455 |
|
| 456 |
% \end{macrocode} |
| 457 |
% |
| 458 |
% |
| 459 |
% Finally, call the driver file for the font. |
| 460 |
% \begin{macrocode} |
| 461 |
%<base10> generate oandsup %% switch to the driver file |
| 462 |
%<base10i> generate oandsit %% switch to the driver file |
| 463 |
|
| 464 |
% \end{macrocode} |
| 465 |
% |
| 466 |
% The end of this code section. |
| 467 |
% \begin{macrocode} |
| 468 |
%</base10|base10i> |
| 469 |
% \end{macrocode} |
| 470 |
% |
| 471 |
% |
| 472 |
% \subsection{The driver files} |
| 473 |
% |
| 474 |
% The driver file sets up the font parameters and also contains |
| 475 |
% the macros used in the definition of the characters. |
| 476 |
% |
| 477 |
% \begin{macrocode} |
| 478 |
%<*mfdu> |
| 479 |
% OANDSUP.MF setup for the upright OANDS font. |
| 480 |
|
| 481 |
% \end{macrocode} |
| 482 |
% This file is based on Knuth's \file{roman.mf}. |
| 483 |
% |
| 484 |
% \begin{macrocode} |
| 485 |
|
| 486 |
if ligs>1: font_coding_scheme:="TeX text"; |
| 487 |
else: font_coding_scheme:=if ligs=0: "TeX typewriter text" |
| 488 |
else: "TeX text without f-ligatures" |
| 489 |
fi; |
| 490 |
fi |
| 491 |
|
| 492 |
mode_setup; font_setup; |
| 493 |
|
| 494 |
input oandsym; |
| 495 |
|
| 496 |
font_slant slant; font_x_height x_height#; |
| 497 |
if monospace: font_normal_space 9u#; % no stretching or shrinking |
| 498 |
font_quad 18u#; |
| 499 |
font_extra_space 9u#; |
| 500 |
else: font_normal_space 6u#+2letter_fit#; |
| 501 |
font_normal_stretch 3u#; font_normal_shrink 2u#; |
| 502 |
font_quad 18u#+4letter_fit#; |
| 503 |
font_extra_space 2u#; |
| 504 |
k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning |
| 505 |
% \end{macrocode} |
| 506 |
% There are no ligatures at this time. |
| 507 |
% \begin{macrocode} |
| 508 |
fi |
| 509 |
|
| 510 |
bye. |
| 511 |
|
| 512 |
%</mfdu> |
| 513 |
% \end{macrocode} |
| 514 |
% |
| 515 |
% Now the italic driver file, which is based on Knuth's \file{textit.mf}. |
| 516 |
% |
| 517 |
% \begin{macrocode} |
| 518 |
%<*mfdi> |
| 519 |
% file OANDSIT.MF Italic setup for OANDS font |
| 520 |
|
| 521 |
mode_setup; font_setup; |
| 522 |
|
| 523 |
if ligs>1: font_coding_scheme:="TeX text"; |
| 524 |
else: font_coding_scheme:=if ligs=0: "TeX typewriter text" |
| 525 |
else: "TeX text without f-ligatures" |
| 526 |
fi; |
| 527 |
fi |
| 528 |
|
| 529 |
font_slant slant; font_x_height x_height#; |
| 530 |
if monospace: font_normal_space 9u#; % no stretching or shrinking |
| 531 |
font_quad 18u#; |
| 532 |
font_extra_space 9u#; |
| 533 |
letter_fit#:=letter_fit:=0; |
| 534 |
else: font_normal_space 6u#+2letter_fit#; |
| 535 |
font_normal_stretch 3u#; font_normal_shrink 2u#; |
| 536 |
font_quad 18u#+4letter_fit#; |
| 537 |
font_extra_space 2u#; fi |
| 538 |
|
| 539 |
input oandsym; |
| 540 |
|
| 541 |
if not monospace: |
| 542 |
k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning |
| 543 |
% \end{macrocode} |
| 544 |
% There are no ligatures at this time. |
| 545 |
% \begin{macrocode} |
| 546 |
fi |
| 547 |
|
| 548 |
bye. |
| 549 |
|
| 550 |
%</mfdi> |
| 551 |
% \end{macrocode} |
| 552 |
% |
| 553 |
% |
| 554 |
% \subsection{The code for the characters} |
| 555 |
% |
| 556 |
% The following code is for the characters making up the font. |
| 557 |
% |
| 558 |
% \begin{macrocode} |
| 559 |
%<*min> |
| 560 |
% OANDSYM.MF Program file for oands characters |
| 561 |
% |
| 562 |
|
| 563 |
% \end{macrocode} |
| 564 |
% |
| 565 |
% |
| 566 |
% \begin{routine}{`} |
| 567 |
% A mirrored apostrophe, based on Knuth's apostrophe from \file{punct.mf}. |
| 568 |
% \begin{macrocode} |
| 569 |
cmchar "Mirrored apostrophe"; |
| 570 |
beginchar("`",5u#,asc_height#,0); |
| 571 |
italcorr asc_height#*slant+.5dot_size#-2u#; |
| 572 |
adjust_fit(0,0); |
| 573 |
x1-.5dot_size=hround(.5w-.5dot_size); y1+.5dot_size=h; |
| 574 |
if monospace: |
| 575 |
mirror_comma(1,a,dot_size,.28u,vround 1.5comma_depth); % large one |
| 576 |
else: |
| 577 |
mirror_comma(1,a,dot_size,.25u,comma_depth); % normal one |
| 578 |
fi |
| 579 |
penlabels(1); |
| 580 |
endchar; |
| 581 |
|
| 582 |
% \end{macrocode} |
| 583 |
% \end{routine} |
| 584 |
% |
| 585 |
% \begin{routine}{z} |
| 586 |
% A representation of a glottal stop. It looks somewhat like an oldstyle |
| 587 |
% digit 3 with a flat top, or the way I handwrite a lowercase z with a tail. |
| 588 |
% It is based on a combination of 3 and 7 from Knuth's \file{olddig.mf} file. |
| 589 |
% \changes{v1.1}{2005/04/02}{Slimmed down the glottal stop} |
| 590 |
% \begin{macrocode} |
| 591 |
cmchar "The glottal stop z"; |
| 592 |
beginchar("z",9u#,x_height#,desc_depth#); |
| 593 |
italcorr .8x_height#*slant-.4u#; |
| 594 |
adjust_fit(0,0); |
| 595 |
numeric top_thickness,mid_thickness,bot_thickness; |
| 596 |
top_thickness=max(fine.breadth,vround(slab-2vair_corr)); |
| 597 |
mid_thickness=max(fine.breadth,vround 2/3vair); |
| 598 |
bot_thickness=max(fine.breadth,vround(slab-vair_corr)); |
| 599 |
pickup fine.nib; |
| 600 |
% \end{macrocode} |
| 601 |
% The lower bowl from the 3 character. |
| 602 |
% \begin{macrocode} |
| 603 |
pos5(vair,-90); |
| 604 |
pos6(mid_thickness,90); |
| 605 |
x6=x8=.5[1.5u,x7]; |
| 606 |
pos7(cap_curve,0); rt x7r=hround(w-.75u); |
| 607 |
lft x5=min(hround 3u,lft x6); |
| 608 |
pos8(bot_thickness,-90); bot y8r=-d-o; |
| 609 |
y7=.5[bot y6l,top y8l]; |
| 610 |
top y5l=vround(.54[-d,h]+.5vair); y5r=y6l; |
| 611 |
filldraw z5r--z6l--z6r--z5l---cycle; % middle tip |
| 612 |
filldraw stroke pulled_super_arc.e(6,7)(.5superpull) |
| 613 |
& pulled_super_arc.e(7,8)(.5superpull); % lower bowl |
| 614 |
if serifs: |
| 615 |
numeric bulb_diam[]; |
| 616 |
bulb_diam2=flare+cap_stem-stem; |
| 617 |
pos10(bulb_diam2,-180); |
| 618 |
pos9(cap_hair,-180); |
| 619 |
lft x10r=hround .75u; y10=max(.1[-d,h]+.5bulb_diam2,.3[-d,h]-.5bulb_diam2); |
| 620 |
bulb(8,9,10); % lower bulb |
| 621 |
else: |
| 622 |
pos9(bot_thickness,angle(-2u,-h-d)); |
| 623 |
lft x9r=hround .75u; top y9l=(vround .25[-d,h])-o; |
| 624 |
y9r:=good.y y9r-eps; x9l:=good.x x9l; |
| 625 |
filldraw stroke term.e(8,9,left,1,4); % lower terminal |
| 626 |
fi |
| 627 |
% \end{macrocode} |
| 628 |
% The top half of the 7 character. |
| 629 |
% \begin{macrocode} |
| 630 |
numeric arm_thickness, bot_width, top_shift, top_hair; |
| 631 |
%%%if hefty: arm_thickness=Vround(slab+2stem_corr); top_shift=0; |
| 632 |
%%% bot_width=hround .51[curve,cap_curve]; top_hair=.4[thin_join,bot_width]; |
| 633 |
%%%else: arm_thickness=Vround .4[stem,cap_stem]; top_shift=.5u; |
| 634 |
%%% bot_width=flare; top_hair=cap_hair; fi |
| 635 |
if hefty: arm_thickness=Vround(vair-vair_corr); top_shift=0; |
| 636 |
bot_width=hround .51[curve,cap_curve]; top_hair=.4[thin_join,bot_width]; |
| 637 |
else: arm_thickness=vair; top_shift=.5u; |
| 638 |
bot_width=flare; top_hair=cap_hair; fi |
| 639 |
if top_hair<tiny.breadth: top_hair:=tiny.breadth; fi |
| 640 |
pickup crisp.nib; |
| 641 |
pos2(arm_thickness,90); |
| 642 |
pos1(hair,180); |
| 643 |
top y2r=h; rt x2=hround(w-.75u+top_shift); |
| 644 |
lft x1r=hround(.75u+.5top_shift); y1=good.y(y2l-beak/2)-eps; |
| 645 |
arm(2,1,a,.3beak_darkness,-beak_jut); % arm and beak |
| 646 |
pos3(hair,180); y3=good.y(y2r+beak/6)+eps; z3r=whatever[z1r,z.a0]; |
| 647 |
penpos2'(2epsilon,-90); z2'=z2r; |
| 648 |
arm(2',3,b,beak_darkness,x3r-x.a0); % upward extension of beak |
| 649 |
pickup tiny.nib; |
| 650 |
pos4(top_hair,0); |
| 651 |
bot y4=max(h-arm_thickness,h-slab,bot y2l); rt x4r=crisp.rt x2; |
| 652 |
if hefty: |
| 653 |
else: |
| 654 |
erase fill rt z4r--z4r--z5r--(rt x4r,y5)--cycle; % erase excess at top |
| 655 |
filldraw stroke z4e---z5e; % stroke |
| 656 |
fi |
| 657 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); |
| 658 |
endchar; |
| 659 |
|
| 660 |
% \end{macrocode} |
| 661 |
% \end{routine} |
| 662 |
% |
| 663 |
% |
| 664 |
% The end of this file |
| 665 |
% \begin{macrocode} |
| 666 |
%</min> |
| 667 |
% \end{macrocode} |
| 668 |
% |
| 669 |
% |
| 670 |
% \section{The font definition files} \label{sec:fd} |
| 671 |
% |
| 672 |
% The font comes in normal and italic only. |
| 673 |
% |
| 674 |
% \begin{macrocode} |
| 675 |
%<*fdot1> |
| 676 |
\DeclareFontFamily{OT1}{oands}{} |
| 677 |
\DeclareFontShape{OT1}{oands}{m}{n}{ <-> oandsu10 }{} |
| 678 |
\DeclareFontShape{OT1}{oands}{bx}{n}{ <-> sub oands/m/n }{} |
| 679 |
\DeclareFontShape{OT1}{oands}{b}{n}{ <-> sub oands/m/n }{} |
| 680 |
\DeclareFontShape{OT1}{oands}{m}{it}{ <-> oandsi10 }{} |
| 681 |
\DeclareFontShape{OT1}{oands}{m}{sl}{ <-> sub oands/m/it }{} |
| 682 |
%</fdot1> |
| 683 |
% \end{macrocode} |
| 684 |
% |
| 685 |
% |
| 686 |
% \begin{macrocode} |
| 687 |
%<*fdt1> |
| 688 |
\DeclareFontFamily{T1}{oands}{} |
| 689 |
\DeclareFontShape{T1}{oands}{m}{n}{ <-> oandsu10 }{} |
| 690 |
\DeclareFontShape{T1}{oands}{bx}{n}{ <-> sub oands/m/n }{} |
| 691 |
\DeclareFontShape{T1}{oands}{b}{n}{ <-> sub oands/m/n }{} |
| 692 |
\DeclareFontShape{T1}{oands}{m}{it}{ <-> oandsi10 }{} |
| 693 |
\DeclareFontShape{T1}{oands}{m}{sl}{ <-> sub oands/m/it }{} |
| 694 |
%</fdt1> |
| 695 |
% \end{macrocode} |
| 696 |
% |
| 697 |
% \section{The package code} \label{sec:code} |
| 698 |
% |
| 699 |
% \subsection{The \Lpack{oands} package} |
| 700 |
% |
| 701 |
% The \Lpack{oands} package is for typesetting short pieces of text |
| 702 |
% in the \thisfont{} fonts. |
| 703 |
% |
| 704 |
% Announce the name and version of the package, which requires |
| 705 |
% \LaTeXe{}. |
| 706 |
% \begin{macrocode} |
| 707 |
%<*usc> |
| 708 |
\NeedsTeXFormat{LaTeX2e} |
| 709 |
\ProvidesPackage{oands}[2000/08/19 v1.0 package for OandS fonts] |
| 710 |
% \end{macrocode} |
| 711 |
% |
| 712 |
% \begin{macro}{\Tienc} |
| 713 |
% A macro for testing the value of |\encodingdefault|. |
| 714 |
% \begin{macrocode} |
| 715 |
\providecommand{\Tienc}{T1} |
| 716 |
% \end{macrocode} |
| 717 |
% \end{macro} |
| 718 |
% |
| 719 |
% |
| 720 |
% \begin{macro}{\oandsfamily} |
| 721 |
% Selects the \thisfont{} font family in the OT1 or T1 encoding. |
| 722 |
% \begin{macrocode} |
| 723 |
\ifx\Tienc\encodingdefault |
| 724 |
\newcommand{\oandsfamily}{\usefont{T1}{oands}{m}{n}} |
| 725 |
\else |
| 726 |
\newcommand{\oandsfamily}{\usefont{OT1}{oands}{m}{n}} |
| 727 |
\fi |
| 728 |
% \end{macrocode} |
| 729 |
% \end{macro} |
| 730 |
% |
| 731 |
% \begin{macro}{\textoands} |
| 732 |
% Text command for the \thisfont{} font family. |
| 733 |
% \begin{macrocode} |
| 734 |
\DeclareTextFontCommand{\textoands}{\oandsfamily} |
| 735 |
% \end{macrocode} |
| 736 |
% \end{macro} |
| 737 |
% |
| 738 |
% The end of this package. |
| 739 |
% \begin{macrocode} |
| 740 |
%</usc> |
| 741 |
% \end{macrocode} |
| 742 |
% |
| 743 |
% \section{Postscript Type1 map file} |
| 744 |
% |
| 745 |
% Just a line or two. |
| 746 |
% \changes{v1.1}{2005/04/02}{Added map file} |
| 747 |
% \begin{macrocode} |
| 748 |
%<*map> |
| 749 |
oandsu10 Archaic-OandS <oandsu10.pfb |
| 750 |
oandsi10 Archaic-OandS-Italic <oandsi10.pfb |
| 751 |
%</map> |
| 752 |
% \end{macrocode} |
| 753 |
% |
| 754 |
% |
| 755 |
% \Finale |
| 756 |
% ^^A \PrintIndex |
| 757 |
% |
| 758 |
\endinput |
| 759 |
|
| 760 |
%% \CharacterTable |
| 761 |
%% {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 |
| 762 |
%% 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 |
| 763 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 764 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 765 |
%% Dollar \$ Percent \% Ampersand \& |
| 766 |
%% Acute accent \' Left paren \( Right paren \) |
| 767 |
%% Asterisk \* Plus \+ Comma \, |
| 768 |
%% Minus \- Point \. Solidus \/ |
| 769 |
%% Colon \: Semicolon \; Less than \< |
| 770 |
%% Equals \= Greater than \> Question mark \? |
| 771 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 772 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 773 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 774 |
%% Right brace \} Tilde \~} |
| 775 |
|
| 776 |
|