Debian Codegraph @

texmf-dist/source/fonts/archaic/viking.dtx

raw
1 % \iffalse meta-comment
2 %
3 % viking.dtx
4 % Copyright Uwe Zimmermann
5 % based on runic.dtx by Peter R. Wilson (c)1999
6 %
7 % This program is provided under the terms of the
8 % LaTeX Project Public License distributed from CTAN
9 % archives in directory macros/latex/base/lppl.txt.
10 %
11 % Author: Uwe Zimmermann, [email protected]
12 %
13 %
14 %<*driver>
15 \documentclass{ltxdoc}
16 \EnableCrossrefs
17 \CodelineIndex
18 \setcounter{StandardModuleDepth}{1}
19 \begin{document}
20 \DocInput{viking.dtx}
21 \end{document}
22 %</driver>
23 %
24 % \fi
25 %
26 % \CheckSum{21}
27 %
28 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
29 % \DoNotIndex{\@centercr,\@cite}
30 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
31 % \DoNotIndex{\@input,\@ixpt,\@m}
32 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
33 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
34 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
35 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
36 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
37 % \DoNotIndex{\advance,\Alph,\alph}
38 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
39 % \DoNotIndex{\bullet}
40 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
41 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
42 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
43 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
44 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
45 % \DoNotIndex{\fbox}
46 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
47 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
48 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
49 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
50 % \DoNotIndex{\input}
51 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
52 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
53 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
54 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
55 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
56 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
57 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
58 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
59 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
60 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
61 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
62 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
63 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
64 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
65 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
66 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
67 % \DoNotIndex{\wd,\xiipt,\year,\z@}
68 %
69 % \changes{v1.0}{2003/08/12}{First public release}
70 %
71 % \def\fileversion{v1.0}
72 % \def\filedate{2003/08/12}
73 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
74 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
75 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
76 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
77 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
78 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
79 % \newcommand{\BC}{\textsc{bc}}
80 % \newcommand{\AD}{\textsc{ad}}
81 %
82 % \title{The \Lpack{Viking} fonts\thanks{This
83 % file has version number \fileversion, last revised
84 % \filedate.}}
85 %
86 % \author{%
87 % Uwe Zimmermann\\
88 % Sciencetronics \\
89 % {\tt [email protected]}
90 % }
91 % \date{\filedate}
92 % \maketitle
93 % \begin{abstract}
94 % The \Lpack{viking} package provides two sets of Runic letters in
95 % the form used by the Scandinavian vikings around 1000~\AD. It is a
96 % ``modernized'' set of 16 characters some of which are assigned several
97 % pronunciations.
98 % \end{abstract}
99 % \tableofcontents
100 %
101 % \StopEventually{}
102 %
103 %
104 %
105 % \section{Introduction}
106 %
107 % This package is based on the \Lpack{runic} package by Peter Wilson,
108 % but was modified to represent the Runic alphabet as it was used by the
109 % Scandinavian vikings. The original 24 letter \textit{Futhark} had
110 % at that time been simplified to a 16 letter alphabet, which existed
111 % in two forms: one form with shorter and one form with longer branches.
112 %
113 % This package accommodates both sets of runic characters in the place
114 % of the upper and lower case latin characters, respectively.
115 %
116 % This manual is typeset according to the conventions of the
117 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
118 % extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}.
119 %
120 % Section~\ref{sec:usc} describes the usage of the package.
121 % Commented code for the fonts is in Sections~\ref{sec:mf} and~\ref{sec:fd}
122 % and source code for the package is in Section~\ref{sec:code}.
123 %
124 % \section{The \Lpack{runic} package} \label{sec:usc}
125 %
126 % The font in this package represents the later runic alphabet used
127 % by the Scandinavian vikings from about 700~\AD\ until about 1200~\AD\
128 % when the runes were replaced by both the medieval runic alphabet and the
129 % roman (latin) alphabet. Originally this runic alphabet was developed
130 % from the older versions with 24 letters, represented in the Lpack{runic}
131 % package by Peter Wilson. The shape of the runes had been simplified and the
132 % number was reduced from 24 to 16 characters.
133 %
134 % The font presented here is based on information from Enoksen~\cite{ENOKSEN98},
135 % Jansson~\cite{JANSSON84}, Brink~\cite{BRINK83} and
136 % Gustavson~\cite{GUSTAVSON91}.
137 %
138 % Many of the Runic characters
139 % have a direct correspondence with the modern Latin alphabet.
140 % The \textit{S} rune is allowed in a second mirrored form,
141 % which was mapped as \textit{Z}. The \textit{yR} rune changed
142 % their pronunciation towards \textit{Y} during the viking ages,
143 % which allowed me to map it at this character position. Unlike
144 % Wilson I chose to avoid a command for the \textit{thurs} (\textit{thorn})
145 % rune and placed it as the letter \textit{D} instead. Since it
146 % also represents the sound \textit{dh} this does not appear unreasonable
147 % and eases the writing of texts and the reading of the source code.
148 %
149 % The uppercase letters will produce the long-armed form of the
150 % runes, while the lowercase letters correspond to the somewhat
151 % shorter alternative form (Swedish: \textit{kortkvist runor}).
152 %
153 % The letter sequence
154 % for the viking futhark abecedary mapping is:\\
155 % |F U D O R K H N I A S T B M L Y : .| \\
156 % with the two punctuation marks |:| and |.| commonly found
157 % in runic inscriptions.
158 %
159 %
160 % \DescribeMacro{\futfamily}
161 % This command selects the Runic font family. The family name is |vik|.
162 %
163 % \DescribeMacro{\textfut}
164 % The command |\textfut{|\meta{text}|}| typesets \meta{text} in the
165 % Runic font.
166 %
167 %
168 % \section{The Metafont code} \label{sec:mf}
169 %
170 % \subsection{The parameter file}
171 %
172 % We deal with the parameter file first, and start by announcing
173 % what it is for.
174 % \begin{macrocode}
175 %<*up>
176 %%% VIK10.MF Computer Runic font 10 point design size.
177
178 % \end{macrocode}
179 % Specify the font size.
180 % \begin{macrocode}
181
182 font_identifier:="Viking"; font_size 10pt#;
183
184 % \end{macrocode}
185 %
186 %
187 % \begin{macro}{u}
188 % \begin{macro}{ht}
189 % \begin{macro}{s}
190 % \begin{macro}{o}
191 % \begin{macro}{px}
192 % \begin{macro}{font-normal-space}
193 % \begin{macro}{font-normal-shrink}
194 % \begin{macro}{font-x-height}
195 % \begin{macro}{font-quad}
196 % Define the very simple font parameters.
197 % \begin{macrocode}
198 u#:=.2pt#; % unit width
199 ht#:=7pt#; % height of characters (CM cap-height is approx 6.8pt)
200 s#:=1.5pt#; % width correction (right and left)
201 o#:=1/20pt#; % overshoot
202 px#:=.7pt#; % horizontal width of pen
203 font_normal_space:=7pt#; % width of a blank space
204 font_normal_shrink:=.9pt#; % width correction for blank space
205 font_x_height:=4.5pt#; % height of one ex
206 font_quad:=10pt#; % an em
207
208 % \end{macrocode}
209 % \end{macro}
210 % \end{macro}
211 % \end{macro}
212 % \end{macro}
213 % \end{macro}
214 % \end{macro}
215 % \end{macro}
216 % \end{macro}
217 % \end{macro}
218 %
219 % Finally, call the driver file for the Runic font.
220 % \begin{macrocode}
221 input viktitle %% switch to the driver file---Runic title
222
223 end
224
225 %</up>
226 % \end{macrocode}
227 %
228 %
229 % \subsection{The driver file}
230 %
231 % Announce the file and switch into Metafont mode
232 %
233 % \begin{macrocode}
234 %<*mfd>
235 % This is VIKTITLE.MF. It makes the short Runic font.
236
237 font_coding_scheme:="Runic glyphs";
238 mode_setup;
239
240 % \end{macrocode}
241 %
242 % \begin{macro}{ho}
243 % \begin{macro}{leftloc}
244 % \begin{macro}{py}
245 % Perform additional setup.
246 % \begin{macrocode}
247 ho#:=o#; % horizontal overshoot
248 leftloc#:=s#; % leftmost xcoord of character
249 py#:=.9px#; % vertical thickness of the pen
250
251 define_pixels(s,u);
252 define_blacker_pixels(px,py);
253 define_good_x_pixels(leftloc);
254 define_corrected_pixels(o); % turn on overshoot correction
255 define_horizontal_corrected_pixels(ho);
256
257 % \end{macrocode}
258 % \end{macro}
259 % \end{macro}
260 % \end{macro}
261 %
262 % \begin{macro}{midloc}
263 % \begin{macro}{rightloc}
264 % Variables for the middle xcoord and rightmost xcoord of a character.
265 % \begin{macrocode}
266 numeric midloc, rightloc;
267 % \end{macrocode}
268 % \end{macro}
269 % \end{macro}
270 %
271 % \begin{macro}{stylus}
272 % Define the pen.
273 % \begin{macrocode}
274 pickup pencircle xscaled px yscaled py;
275 stylus:=savepen;
276
277 % \end{macrocode}
278 % \end{macro}
279 %
280 % \begin{macro}{stugna}
281 % Define the thicker pen for the E rune.
282 % \begin{macrocode}
283 pickup pencircle xscaled 2px yscaled 2px;
284 stugna:=savepen;
285
286 % \end{macrocode}
287 % \end{macro}
288 %
289 % \begin{macro}{beginglyph}
290 % A macro to save some typing of beginchar arguments.
291 % \begin{macrocode}
292 def beginglyph(expr code, unit_width) =
293 beginchar(code, unit_width*ht#+2s#, ht#, 0);
294 midloc:=1/2w; rightloc:=(w-s);
295 pickup stylus enddef;
296
297 % \end{macrocode}
298 % \end{macro}
299 %
300 % \begin{macro}{cmchar}
301 % |cmchar| should precede each character
302 % \begin{macrocode}
303 let cmchar=\;
304
305 % \end{macrocode}
306 % \end{macro}
307 %
308 % Finally, input the file that does all the work.
309 % \begin{macrocode}
310
311 input vikglyph; % Runic glyphs
312
313 end
314
315 %</mfd>
316 % \end{macrocode}
317 %
318 % \subsection{The glyph code}
319 %
320 % The following code generates the glyphs for the Runic font. The characters
321 % are defined in the futhark ordering.
322 %
323 % \begin{macrocode}
324 %<*maj>
325 % VIKGLYPH.MF Program file for Runic font.
326 %
327 %
328 % \end{macrocode}
329 %
330 % \begin{macro}{F}
331 % The long-armed F
332 % \begin{macrocode}
333 cmchar "Runic letter F";
334 beginglyph("F",0.6);
335 z1 = (leftloc, 0.0h);
336 z2 = (leftloc, 0.4h);
337 z3 = (leftloc, 0.7h);
338 z4 = (leftloc, 1.0h);
339 z5 = (midloc, 1.0h);
340 z6 = (rightloc, 1.0h);
341 draw z1--z4;
342 draw z2--z6;
343 draw z3--z5;
344 labels(1,2,3,4,5,6);
345 endchar;
346 % \end{macrocode}
347 % \end{macro}
348 %
349 % \begin{macro}{U}
350 % The long-armed U
351 % \begin{macrocode}
352 cmchar "Runic letter U";
353 beginglyph("U",0.6);
354 z1 = (leftloc, 0.0h);
355 z2 = (leftloc, 1.0h);
356 z3 = (0.75rightloc, 0.65h);
357 z4 = (rightloc, 0.0h);
358 draw z1--z2--z3--z4;
359 labels(1,2,3,4);
360 endchar;
361 % \end{macrocode}
362 % \end{macro}
363 %
364 % \begin{macro}{D}
365 % The long-armed TH
366 % \begin{macrocode}
367 cmchar "Runic letter TH";
368 beginglyph("D",0.4);
369 z1 = (leftloc, 0.0h);
370 z2 = (leftloc, 0.2h);
371 z3 = (leftloc, 0.8h);
372 z4 = (leftloc, 1.0h);
373 z5 = (rightloc, 0.5h);
374 draw z1--z4;
375 draw z2--z5;
376 draw z3--z5;
377 labels(1,2,3,4,5);
378 endchar;
379 % \end{macrocode}
380 % \end{macro}
381 %
382 % \begin{macro}{O}
383 % The long-armed O
384 % \begin{macrocode}
385 cmchar "Runic letter O";
386 beginglyph("O",0.4);
387 z1 = (leftloc, 0.0h);
388 z2 = (leftloc, 0.4h);
389 z3 = (leftloc, 0.7h);
390 z4 = (leftloc, 1.0h);
391 z5 = (rightloc, 0.5h);
392 z6 = (rightloc, 0.2h);
393 draw z1--z4;
394 draw z2--z6;
395 draw z3--z5;
396 labels(1,2,3,4,5,6);
397 endchar;
398 % \end{macrocode}
399 % \end{macro}
400 %
401 % \begin{macro}{R}
402 % The long-armed R
403 % \begin{macrocode}
404 cmchar "Runic letter R";
405 beginglyph("R",0.6);
406 z1 = (leftloc, 0.0h);
407 z2 = (leftloc, 1.0h);
408 z3 = (0.7(leftloc+rightloc), 0.75h);
409 z4 = (0.3(leftloc+rightloc), 0.5h);
410 z5 = (rightloc, 0.0h);
411 draw z1--z2--z3--z4--z5;
412 labels(1,2,3,4,5);
413 endchar;
414 % \end{macrocode}
415 % \end{macro}
416 %
417 % \begin{macro}{K}
418 % The long-armed K
419 % \begin{macrocode}
420 cmchar "Runic letter K";
421 beginglyph("K",0.4);
422 z1 = (leftloc, 0.0h);
423 z2 = (leftloc, 0.5h);
424 z3 = (leftloc, 1.0h);
425 z4 = (rightloc, 1.0h);
426 draw z1--z3;
427 draw z2--z4;
428 labels(1,2,3,4);
429 endchar;
430 % \end{macrocode}
431 % \end{macro}
432 %
433 % \begin{macro}{G}
434 % The long-armed G
435 % \begin{macrocode}
436 cmchar "Runic letter G";
437 beginglyph("G",0.4);
438 z1 = (leftloc, 0.0h);
439 z2 = (leftloc, 0.5h);
440 z3 = (leftloc, 1.0h);
441 z4 = (rightloc, 1.0h);
442 z5 = (midloc, 0.95h);
443 draw z1--z3;
444 draw z2--z4;
445 draw z5;
446 labels(1,2,3,4,5);
447 endchar;
448 % \end{macrocode}
449 % \end{macro}
450 %
451 % \begin{macro}{H}
452 % The long-armed H
453 % \begin{macrocode}
454 cmchar "Runic letter H";
455 beginglyph("H",0.4);
456 z1 = (midloc, 0.0h);
457 z2 = (midloc, 1.0h);
458 z3 = (leftloc, 0.3h);
459 z4 = (leftloc, 0.7h);
460 z5 = (rightloc, 0.7h);
461 z6 = (rightloc, 0.3h);
462 draw z1--z2;
463 draw z3--z5;
464 draw z4--z6;
465 labels(1,2,3,4,5,6);
466 endchar;
467 % \end{macrocode}
468 % \end{macro}
469 %
470 % \begin{macro}{N}
471 % The long-armed N
472 % \begin{macrocode}
473 cmchar "Runic letter N";
474 beginglyph("N",0.4);
475 z1 = (midloc, 0.0h);
476 z2 = (midloc, 1.0h);
477 z4 = (leftloc, 0.7h);
478 z6 = (rightloc, 0.3h);
479 draw z1--z2;
480 draw z4--z6;
481 labels(1,2,4,6);
482 endchar;
483 % \end{macrocode}
484 % \end{macro}
485 %
486 % \begin{macro}{I}
487 % The long-armed I
488 % \begin{macrocode}
489 cmchar "Runic letter I";
490 beginglyph("I",0.4);
491 z1 = (midloc, 0.0h);
492 z2 = (midloc, 1.0h);
493 draw z1--z2;
494 labels(1,2);
495 endchar;
496 % \end{macrocode}
497 % \end{macro}
498 %
499 % \begin{macro}{E}
500 % The long-armed E
501 % \begin{macrocode}
502 cmchar "Runic letter E";
503 beginglyph("E",0.4);
504 z1 = (midloc, 0.0h);
505 z2 = (midloc, 1.0h);
506 z3 = (midloc, 0.5h);
507 draw z1--z2;
508 pickup stugna
509 draw z3;
510 labels(1,2,3);
511 endchar;
512 % \end{macrocode}
513 % \end{macro}
514 %
515 % \begin{macro}{A}
516 % The long-armed A
517 % \begin{macrocode}
518 cmchar "Runic letter A";
519 beginglyph("A",0.4);
520 z1 = (midloc, 0.0h);
521 z2 = (midloc, 1.0h);
522 z4 = (leftloc, 0.3h);
523 z6 = (rightloc, 0.7h);
524 draw z1--z2;
525 draw z4--z6;
526 labels(1,2,4,6);
527 endchar;
528 % \end{macrocode}
529 % \end{macro}
530 %
531 % \begin{macro}{S}
532 % The long-armed S
533 % \begin{macrocode}
534 cmchar "Runic letter S";
535 beginglyph("S",0.4);
536 z1 = (rightloc, 0.0h);
537 z2 = (rightloc, 0.7h);
538 z3 = (leftloc, 0.3h);
539 z4 = (leftloc, 1.0h);
540 draw z1--z2--z3--z4;
541 labels(1,2,3,4);
542 endchar;
543 % \end{macrocode}
544 % \end{macro}
545 %
546 % \begin{macro}{Z}
547 % The long-armed mirrored S
548 % \begin{macrocode}
549 cmchar "Runic letter Z";
550 beginglyph("Z",0.4);
551 z1 = (leftloc, 0.0h);
552 z2 = (leftloc, 0.7h);
553 z3 = (rightloc, 0.3h);
554 z4 = (rightloc, 1.0h);
555 draw z1--z2--z3--z4;
556 labels(1,2,3,4);
557 endchar;
558 % \end{macrocode}
559 % \end{macro}
560 %
561 % \begin{macro}{T}
562 % The long-armed T
563 % \begin{macrocode}
564 cmchar "Runic letter T";
565 beginglyph("T",0.4);
566 z1 = (midloc, 0.0h);
567 z2 = (midloc, 1.0h);
568 z3 = (leftloc, 0.8h);
569 z4 = (rightloc, 0.8h);
570 draw z1--z2;
571 draw z2--z3;
572 draw z2--z4;
573 labels(1,2,3,4);
574 endchar;
575 % \end{macrocode}
576 % \end{macro}
577 %
578 % \begin{macro}{B}
579 % The long-armed B
580 % \begin{macrocode}
581 cmchar "Runic letter B";
582 beginglyph("B",0.4);
583 z1 = (leftloc, 0.0h);
584 z2 = (leftloc, 0.5h);
585 z3 = (leftloc, 1.0h);
586 z4 = (rightloc, 0.75h);
587 z5 = (rightloc, 0.25h);
588 draw z1--z3;
589 draw z3--z4--z2;
590 draw z2--z5--z1;
591 labels(1,2,3,4,5);
592 endchar;
593 % \end{macrocode}
594 % \end{macro}
595 %
596 % \begin{macro}{M}
597 % The long-armed M
598 % \begin{macrocode}
599 cmchar "Runic letter M";
600 beginglyph("M",0.6);
601 z1 = (midloc, 0.0h);
602 z2 = (midloc, 0.7h);
603 z3 = (midloc, 1.0h);
604 z4 = (leftloc, 1.0h);
605 z5 = (rightloc, 1.0h);
606 draw z1--z3;
607 draw z2--z4;
608 draw z2--z5;
609 labels(1,2,3,4,5);
610 endchar;
611 % \end{macrocode}
612 % \end{macro}
613 %
614 % \begin{macro}{L}
615 % The long-armed L
616 % \begin{macrocode}
617 cmchar "Runic letter L";
618 beginglyph("L",0.4);
619 z1 = (leftloc, 0.0h);
620 z2 = (leftloc, 1.0h);
621 z3 = (rightloc, 0.8h);
622 draw z1--z2--z3;
623 labels(1,2,3);
624 endchar;
625 % \end{macrocode}
626 % \end{macro}
627 %
628 % \begin{macro}{Y}
629 % The long-armed Y
630 % \begin{macrocode}
631 cmchar "Runic letter Y";
632 beginglyph("Y",0.6);
633 z1 = (midloc, 0.0h);
634 z2 = (midloc, 0.3h);
635 z3 = (midloc, 1.0h);
636 z4 = (leftloc, 0.0h);
637 z5 = (rightloc, 0.0h);
638 draw z1--z3;
639 draw z2--z4;
640 draw z2--z5;
641 labels(1,2,3,4,5);
642 endchar;
643 % \end{macrocode}
644 % \end{macro}
645 %
646 % \begin{macro}{:}
647 % The punctuation :
648 % \begin{macrocode}
649 cmchar "Runic letter :";
650 beginglyph(":",0.2);
651 z3 = (leftloc, 0.4h);
652 z4 = (leftloc, 0.6h);
653 z5 = (rightloc, 0.6h);
654 z6 = (rightloc, 0.4h);
655 draw z3--z5;
656 draw z4--z6;
657 labels(3,4,5,6);
658 endchar;
659 % \end{macrocode}
660 % \end{macro}
661 %
662 % \begin{macro}{.}
663 % The punctuation .
664 % \begin{macrocode}
665 cmchar "Runic letter .";
666 beginglyph(".",0.2);
667 z3 = (midloc, 0.5h);
668 draw z3;
669 labels(3);
670 endchar;
671 % \end{macrocode}
672 % \end{macro}
673 %
674 % \begin{macro}{f}
675 % The short-armed F
676 % \begin{macrocode}
677 cmchar "Runic letter F";
678 beginglyph("f",0.3);
679 z1 = (leftloc, 0.0h);
680 z2 = (leftloc, 0.5h);
681 z3 = (leftloc, 0.75h);
682 z4 = (leftloc, 1.0h);
683 z5 = (rightloc, 1.0h);
684 z6 = (rightloc, 0.75h);
685 draw z1--z4;
686 draw z2--z6;
687 draw z3--z5;
688 labels(1,2,3,4,5,6);
689 endchar;
690 % \end{macrocode}
691 % \end{macro}
692 %
693 % \begin{macro}{u}
694 % The short-armed U
695 % \begin{macrocode}
696 cmchar "Runic letter U";
697 beginglyph("u",0.3);
698 z1 = (leftloc, 0.0h);
699 z2 = (leftloc, 1.0h);
700 z4 = (rightloc, 0.0h);
701 draw z1--z2--z4;
702 labels(1,2,4);
703 endchar;
704 % \end{macrocode}
705 % \end{macro}
706 %
707 % \begin{macro}{d}
708 % The short-armed TH
709 % \begin{macrocode}
710 cmchar "Runic letter TH";
711 beginglyph("d",0.3);
712 z1 = (leftloc, 0.0h);
713 z2 = (leftloc, 0.2h);
714 z3 = (leftloc, 0.8h);
715 z4 = (leftloc, 1.0h);
716 z5 = (rightloc, 0.5h);
717 draw z1--z4;
718 draw z2--z5;
719 draw z3--z5;
720 labels(1,2,3,4,5);
721 endchar;
722 % \end{macrocode}
723 % \end{macro}
724 %
725 % \begin{macro}{o}
726 % The short-armed O
727 % \begin{macrocode}
728 cmchar "Runic letter O";
729 beginglyph("o",0.3);
730 z1 = (leftloc, 0.0h);
731 z2 = (leftloc, 0.4h);
732 z3 = (leftloc, 0.7h);
733 z4 = (leftloc, 1.0h);
734 z5 = (rightloc, 0.5h);
735 z6 = (rightloc, 0.2h);
736 draw z1--z4;
737 draw z2--z6;
738 draw z3--z5;
739 labels(1,2,3,4,5,6);
740 endchar;
741 % \end{macrocode}
742 % \end{macro}
743 %
744 % \begin{macro}{r}
745 % The short-armed R
746 % \begin{macrocode}
747 cmchar "Runic letter R";
748 beginglyph("r",0.3);
749 z1 = (leftloc, 0.0h);
750 z2 = (leftloc, 1.0h);
751 z3 = (0.7(leftloc+rightloc), 0.75h);
752 z4 = (0.3(leftloc+rightloc), 0.5h);
753 z5 = (rightloc, 0.0h);
754 draw z1--z2--z3--z4--z5;
755 labels(1,2,3,4,5);
756 endchar;
757 % \end{macrocode}
758 % \end{macro}
759 %
760 % \begin{macro}{k}
761 % The short-armed K
762 % \begin{macrocode}
763 cmchar "Runic letter K";
764 beginglyph("k",0.3);
765 z1 = (leftloc, 0.0h);
766 z2 = (leftloc, 0.5h);
767 z3 = (leftloc, 1.0h);
768 z4 = (rightloc, 1.0h);
769 draw z1--z3;
770 draw z2--z4;
771 labels(1,2,3,4);
772 endchar;
773 % \end{macrocode}
774 % \end{macro}
775 %
776 % \begin{macro}{h}
777 % The short-armed H
778 % \begin{macrocode}
779 cmchar "Runic letter H";
780 beginglyph("h",0.2);
781 z1 = (midloc, 0.0h);
782 z2 = (midloc, 1.0h);
783 z3 = (leftloc, 0.5h);
784 z5 = (rightloc, 0.5h);
785 draw z1--z2;
786 draw z3--z5;
787 labels(1,2,3,5);
788 endchar;
789 % \end{macrocode}
790 % \end{macro}
791 %
792 % \begin{macro}{n}
793 % The short-armed N
794 % \begin{macrocode}
795 cmchar "Runic letter N";
796 beginglyph("n",0.3);
797 z1 = (leftloc, 0.0h);
798 z2 = (leftloc, 1.0h);
799 z4 = (leftloc, 0.6h);
800 z6 = (rightloc, 0.3h);
801 draw z1--z2;
802 draw z4--z6;
803 labels(1,2,4,6);
804 endchar;
805 % \end{macrocode}
806 % \end{macro}
807 %
808 % \begin{macro}{i}
809 % The short-armed I
810 % \begin{macrocode}
811 cmchar "Runic letter I";
812 beginglyph("i",0.2);
813 z1 = (midloc, 0.0h);
814 z2 = (midloc, 1.0h);
815 draw z1--z2;
816 labels(1,2);
817 endchar;
818 % \end{macrocode}
819 % \end{macro}
820 %
821 % \begin{macro}{a}
822 % The short-armed A
823 % \begin{macrocode}
824 cmchar "Runic letter A";
825 beginglyph("a",0.3);
826 z1 = (leftloc, 0.0h);
827 z2 = (leftloc, 1.0h);
828 z4 = (leftloc, 0.4h);
829 z6 = (rightloc, 0.7h);
830 draw z1--z2;
831 draw z4--z6;
832 labels(1,2,4,6);
833 endchar;
834 % \end{macrocode}
835 % \end{macro}
836 %
837 % \begin{macro}{s}
838 % The short-armed S
839 % \begin{macrocode}
840 cmchar "Runic letter S";
841 beginglyph("s",0.2);
842 z1 = (midloc, 0.5h);
843 z2 = (midloc, 1.0h);
844 draw z1--z2;
845 labels(1,2);
846 endchar;
847 % \end{macrocode}
848 % \end{macro}
849 %
850 % \begin{macro}{t}
851 % The short-armed T
852 % \begin{macrocode}
853 cmchar "Runic letter T";
854 beginglyph("t",0.3);
855 z1 = (rightloc, 0.0h);
856 z2 = (rightloc, 1.0h);
857 z3 = (leftloc, 0.8h);
858 draw z1--z2;
859 draw z2--z3;
860 labels(1,2,3);
861 endchar;
862 % \end{macrocode}
863 % \end{macro}
864 %
865 % \begin{macro}{b}
866 % The short-armed B
867 % \begin{macrocode}
868 cmchar "Runic letter B";
869 beginglyph("b",0.3);
870 z1 = (leftloc, 0.0h);
871 z2 = (leftloc, 0.3h);
872 z3 = (leftloc, 0.6h);
873 z4 = (leftloc, 1.0h);
874 z5 = (rightloc, 0.8h);
875 z6 = (rightloc, 0.5h);
876 draw z1--z4;
877 draw z2--z6;
878 draw z3--z5;
879 labels(1,2,3,4,5,6);
880 endchar;
881 % \end{macrocode}
882 % \end{macro}
883 %
884 % \begin{macro}{m}
885 % The short-armed M
886 % \begin{macrocode}
887 cmchar "Runic letter M";
888 beginglyph("m",0.3);
889 z1 = (midloc, 0.0h);
890 z2 = (midloc, 1.0h);
891 z3 = (leftloc, 1.0h);
892 z4 = (rightloc, 1.0h);
893 draw z1--z2;
894 draw z3--z4;
895 labels(1,2,3,4);
896 endchar;
897 % \end{macrocode}
898 % \end{macro}
899 %
900 % \begin{macro}{l}
901 % The short-armed L
902 % \begin{macrocode}
903 cmchar "Runic letter L";
904 beginglyph("l",0.3);
905 z1 = (leftloc, 0.0h);
906 z2 = (leftloc, 1.0h);
907 z3 = (rightloc, 0.8h);
908 draw z1--z2--z3;
909 labels(1,2,3);
910 endchar;
911 % \end{macrocode}
912 % \end{macro}
913 %
914 % \begin{macro}{y}
915 % The short-armed Y
916 % \begin{macrocode}
917 cmchar "Runic letter Y";
918 beginglyph("y",0.2);
919 z1 = (midloc, 0.0h);
920 z2 = (midloc, 0.5h);
921 draw z1--z2;
922 labels(1,2);
923 endchar;
924 %</maj>
925 % \end{macrocode}
926 % \end{macro}
927 %
928 % \section{The font definition files} \label{sec:fd}
929 %
930 % \begin{macrocode}
931 %<*fdot1>
932 \DeclareFontFamily{OT1}{vik}{}
933 \DeclareFontShape{OT1}{vik}{m}{n}{ <-> vik10 }{}
934 \DeclareFontShape{OT1}{vik}{bx}{n}{ <-> sub vik/m/n }{}
935 \DeclareFontShape{OT1}{vik}{b}{n}{ <-> sub vik/m/n }{}
936 \DeclareFontShape{OT1}{vik}{m}{sl}{ <-> sub vik/m/n }{}
937 \DeclareFontShape{OT1}{vik}{m}{it}{ <-> sub vik/m/n }{}
938 %</fdot1>
939 % \end{macrocode}
940 %
941 %
942 % \begin{macrocode}
943 %<*fdt1>
944 \DeclareFontFamily{T1}{vik}{}
945 \DeclareFontShape{T1}{vik}{m}{n}{ <-> vik10 }{}
946 \DeclareFontShape{T1}{vik}{bx}{n}{ <-> sub vik/m/n }{}
947 \DeclareFontShape{T1}{vik}{b}{n}{ <-> sub vik/m/n }{}
948 \DeclareFontShape{T1}{vik}{m}{sl}{ <-> sub vik/m/n }{}
949 \DeclareFontShape{T1}{vik}{m}{it}{ <-> sub vik/m/n }{}
950 %</fdt1>
951 % \end{macrocode}
952 %
953 % \section{The \Lpack{viking} package code} \label{sec:code}
954 %
955 % Announce the name and version of the package, which requires
956 % \LaTeXe{}.
957 % \begin{macrocode}
958 %<*usc>
959 \NeedsTeXFormat{LaTeX2e}
960 \ProvidesPackage{viking}[2003/08/12 v1.0 package for Runic fonts]
961 % \end{macrocode}
962 %
963 %
964 % \begin{macro}{\vikfamily}
965 % Selects the futharc (Runic) font family in the OT1 encoding.
966 % \begin{macrocode}
967 \newcommand{\vikfamily}{\usefont{OT1}{vik}{m}{n}}
968 % \end{macrocode}
969 % \end{macro}
970 %
971 % \begin{macro}{\textvik}
972 % Text command for the viking (Runic) font family.
973 % \begin{macrocode}
974 \DeclareTextFontCommand{\textvik}{\vikfamily}
975 % \end{macrocode}
976 % \end{macro}
977 %
978 % The end of this package.
979 % \begin{macrocode}
980 %</usc>
981 % \end{macrocode}
982 %
983 %
984 % \bibliographystyle{alpha}
985 %
986 % \begin{thebibliography}{GMS94}
987 %
988 % \bibitem[Eno98]{ENOKSEN98}
989 % Lars Magnus Enoksen.
990 % \newblock {\em Runor}.
991 % \newblock Historiska Media, 1998.
992 % \newblock ISBN 91-89442-55-5
993 %
994 % \bibitem[Bri83]{BRINK83}
995 % Thorgunn Sn{\ae}dal Brink.
996 % \newblock {\em Runstenar och runinskrifter i Sigtuna kommun}.
997 % \newblock Bohusl{\"a}ningens Boktryckeri, 1983.
998 % \newblock ISSN 0280-8439
999 %
1000 % \bibitem[Jan84]{JANSSON84}
1001 % Sven B.\ F.\ Jansson.
1002 % \newblock {\em Runinskrifter i Sverige}.
1003 % \newblock Almqvist \& Wiksell, 1984.
1004 % \newblock ISBN 91-20-07030-6
1005 %
1006 % \bibitem[Gus91]{GUSTAVSON91}
1007 % Helmer Gustavson.
1008 % \newblock {\em Runstenar i Vallentuna}.
1009 % \newblock CEWE, 1991.
1010 % \newblock ISBN 91-971070-6-9
1011 %
1012 % \bibitem[GMS94]{GOOSSENS94}
1013 % Michel Goossens, Frank Mittelbach, and Alexander Samarin.
1014 % \newblock {\em The LaTeX Companion}.
1015 % \newblock Addison-Wesley Publishing Company, 1994.
1016 % \newblock ISBN 0-201-54199-8
1017 %
1018 %
1019 % \end{thebibliography}
1020 %
1021 %
1022 % \Finale
1023 % \PrintIndex
1024 %
1025 \endinput
1026
1027 %% \CharacterTable
1028 %% {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
1029 %% 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
1030 %% Digits \0\1\2\3\4\5\6\7\8\9
1031 %% Exclamation \! Double quote \" Hash (number) \#
1032 %% Dollar \$ Percent \% Ampersand \&
1033 %% Acute accent \' Left paren \( Right paren \)
1034 %% Asterisk \* Plus \+ Comma \,
1035 %% Minus \- Point \. Solidus \/
1036 %% Colon \: Semicolon \; Less than \<
1037 %% Equals \= Greater than \> Question mark \?
1038 %% Commercial at \@ Left bracket \[ Backslash \\
1039 %% Right bracket \] Circumflex \^ Underscore \_
1040 %% Grave accent \` Left brace \{ Vertical bar \|
1041 %% Right brace \} Tilde \~}