Debian Codegraph @

texmf-dist/source/latex/staves/staves.dtx

raw
1 %% \CharacterTable
2 %% {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
3 %% 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
4 %% Digits \0\1\2\3\4\5\6\7\8\9
5 %% Exclamation \! Double quote \" Hash (number) \#
6 %% Dollar \$ Percent \% Ampersand \&
7 %% Acute accent \' Left paren \( Right paren \)
8 %% Asterisk \* Plus \+ Comma \,
9 %% Minus \- Point \. Solidus \/
10 %% Colon \: Semicolon \; Less than \<
11 %% Equals \= Greater than \> Question mark \?
12 %% Commercial at \@ Left bracket \[ Backslash \\
13 %% Right bracket \] Circumflex \^ Underscore \_
14 %% Grave accent \` Left brace \{ Vertical bar \|
15 %% Right brace \} Tilde \~}
16 %\iffalse
17 %
18 % (c) copyright 2006 Apostolos Syropoulos
19 % This program can be redistributed and/or modified under the terms
20 % of the LaTeX Project Public License Distributed from CTAN
21 % archives in directory macros/latex/base/lppl.txt; either
22 % version 1.3b of the License, or any later version.
23 %
24 % Please report errors or suggestions for improvement to
25 %
26 % Apostolos Syropoulos ([email protected])
27 %
28 %\fi
29 % \CheckSum{292}
30 % \iffalse This is a Metacomment
31 %
32 %<linearA, >\ProvidesFile{staves.sty}
33 %
34 %<linearA, > [2006/11/06 v1.0 Package `staves.sty']
35 %
36 % \begin{macrocode}
37 %<*driver>
38 \documentclass{ltxdoc}
39 \usepackage{url}
40 \GetFileInfo{staves.drv}
41 \begin{document}
42 \DocInput{staves.dtx}
43 \end{document}
44 %</driver>
45 % \end{macrocode}
46 % \fi
47 %\StopEventually{}
48 %\title{The \textsf{staves} package}
49 %\author{Apostolos Syropoulos\\
50 % Xanthi, Greece\\
51 % \texttt{[email protected]}}
52 % \date{2006/11/06}
53 %\maketitle
54 % \begin{abstract}
55 % The \textsf{staves} package has been designed to provide an interface to the \textsf{icelandic}
56 % font, designed by the author of this package. The font contains all ``magical'' staves presented
57 % on the Web site of the Icelandic Museum of Sorcery and Witchcraft. In addition, the package
58 % provides a simple command to typeset Icelandic runes.
59 %\end{abstract}
60 %
61 % \vspace*{20pt}
62 % \fbox{\begin{minipage}{320pt}
63 %\textbf{Disclaimer} {\em Sorcery} as a cultural phenomenon is studied by ethnologists. Becuase of
64 % this, the author believes that his work should be of interest to enthnologists, in particular,
65 % and people with an interest in (digital) typography, in general. However, the author does not
66 % believe that the glyphs of the font do actually have any ``magical'' power. Also, if someone will
67 % use them to perform any kind of ``magical'' ceremony, the author cannot be hold responsible for
68 % any such action and its consequences.
69 % \end{minipage}}
70 %\vspace*{20pt}
71 %\section{Introduction}
72 %
73 % The \textsf{staves} package provides a simple interface to the
74 % \textsf{icelandic} font designed by this author. The font contain all
75 % the ``magical'' staves that are described at the Web site of the
76 % Icelandic Museum of Sorcery and Witchcraft (see
77 % \url{http://www.galdrasyning.is/index.php?option=com_content&task=category&sectionid=5&id=18&Itemid=60}
78 % for more details). In addition, the font contains all the Icelandic runes
79 % as they are presented at the same Web pages (see \url{http://www.galdrasyning.is/index.php?option=com_content&task=view&id=229&Itemid=131} for more details).
80 %
81 % The various staves can be accessed by simple commands that have the following form
82 % \begin{center}
83 % \texttt{\char`\\icelandicStave\textit{CCC}}
84 % \end{center}
85 % where \texttt{\textit{CCC}} is an uppercase roman numeral. It would be possible to
86 % give ``real'' names to these glyph access commands, but since these staves do not
87 % have a name to the best of my language, I opted to use this naming scheme.
88 %
89 %\begin{figure}
90 %\begin{center}
91 %\begin{tabular}{lc}\hline
92 % Unicode name & Access character\\ \hline
93 % \textsc{runic letter ansuz a} & a \\
94 % \textsc{runic letter berkanan beorc rjarkan b} & b \\
95 % \textsc{runic letter iwaz eoh} & c \\
96 % \textsc{runic letter d} & d \\
97 % \textsc{runic letter e} & e \\
98 % \textsc{runic letter fehu feoh fe f} & f \\
99 % \textsc{runic letter gebo gyfu g} & g \\
100 % \textsc{runic letter haglaz h} & h \\
101 % \textsc{runic letter isaz is iss i} & i \\
102 % \textsc{runic letter thurisaz thurs thorn} & j \\
103 % \textsc{runic letter kauna} & k \\
104 % \textsc{runic letter laukaz lagu logr l} & l \\
105 % \textsc{runic letter mannaz man m} & m \\
106 % \textsc{runic letter naudiz nyd naud n} & n \\
107 % \textsc{runic letter othalan ethel o} & o \\
108 % \textsc{runic letter pertho peorth p} & p \\
109 % \textsc{runic letter ingwaz} & q \\
110 % \textsc{runic letter raido rad reid r} & r \\
111 % \textsc{runic letter sigel long-branch-sol s} & s \\
112 % \textsc{runic letter tiwaz tir tyr t} & t \\
113 % \textsc{runic letter uruz ur u} & u \\
114 % \hline
115 % \end{tabular}
116 % \end{center}
117 % \caption{Runic letters supported by the \textsf{staves} package.}\label{unicode}
118 %\end{figure}
119 %
120 % The package defines the command |\runictext|, which typesets its argument using the
121 % \textsf{icelandic} font. In Table~\ref{unicode} the reader can see which runic letters
122 % are supported and to which letters they are associated to.
123 %
124 % \section{The Source Code}
125 %
126 % Since we want to have everything in a single file, we will start by announcing the
127 % \textsf{icelandic} font to \LaTeX.
128 % \begin{macrocode}
129 %<*staves>
130 \DeclareFontSubstitution{U}{icelandic}{m}{n}
131 \DeclareFontFamily{U}{icelandic}{\hyphenchar\font=-1}
132 % \end{macrocode}
133 % Now, we make sure that all font switching commands will default to the
134 % \textsf{icelandic} font:
135 % \begin{macrocode}
136 \DeclareFontShape{U}{icelandic}{m}{n}{%
137 <-> icelandic }{}
138 \DeclareFontShape{U}{icelandic}{m}{sl}{
139 <-> ssub * icelandic/m/n}{}
140 \DeclareFontShape{U}{icelandic}{m}{it}{
141 <-> ssub * icelandic/m/n}{}
142 \DeclareFontShape{U}{icelandic}{m}{sc}{
143 <-> ssub * icelandic/m/n}{}
144 \DeclareFontShape{U}{icelandic}{bx}{n}{
145 <-> ssub * icelandic/m/n}{}
146 \DeclareFontShape{U}{icelandic}{bx}{sl}{
147 <-> ssub * icelandic/m/n}{}
148 \DeclareFontShape{U}{icelandic}{bx}{it}{
149 <-> ssub * icelandic/m/n}{}
150 \DeclareFontShape{U}{icelandic}{bx}{sc}{
151 <-> ssub * icelandic/m/n}{}
152 % \end{macrocode}
153 % Also, we need to define a command that will select the \textsf{icelandic} font:
154 % \begin{macrocode}
155 \def\icelandicFamily{\fontencoding{U}\fontfamily{icelandic}\selectfont}
156 % \end{macrocode}
157 % Next, we define the command that will allow users to typeset icelandic runes:
158 % \begin{macrocode}
159 \newcommand{\runictext}[1]{{\icelandicFamily #1}}
160 % \end{macrocode}
161 % And now we are ready to define the various glyph access commands for the various
162 % ``magical'' staves.
163 % \begin{macrocode}
164 \def\staveI{{\icelandicFamily\char'0}}
165 \def\staveII{{\icelandicFamily\char'1}}
166 \def\staveIII{{\icelandicFamily\char'2}}
167 \def\staveIV{{\icelandicFamily\char'3}}
168 \def\staveV{{\icelandicFamily\char'4}}
169 \def\staveVI{{\icelandicFamily\char'5}}
170 \def\staveVII{{\icelandicFamily\char'6}}
171 \def\staveVIII{{\icelandicFamily\char'7}}
172 \def\staveIX{{\icelandicFamily\char'10}}
173 \def\staveX{{\icelandicFamily\char'11}}
174 \def\staveXI{{\icelandicFamily\char'12}}
175 \def\staveXII{{\icelandicFamily\char'13}}
176 \def\staveXIII{{\icelandicFamily\char'14}}
177 \def\staveXIV{{\icelandicFamily\char'15}}
178 \def\staveXV{{\icelandicFamily\char'16}}
179 \def\staveXVI{{\icelandicFamily\char'17}}
180 \def\staveXVII{{\icelandicFamily\char'20}}
181 \def\staveXVIII{{\icelandicFamily\char'21}}
182 \def\staveXIX{{\icelandicFamily\char'22}}
183 \def\staveXX{{\icelandicFamily\char'23}}
184 \def\staveXXI{{\icelandicFamily\char'24}}
185 \def\staveXXII{{\icelandicFamily\char'25}}
186 \def\staveXXIII{{\icelandicFamily\char'26}}
187 \def\staveXXIV{{\icelandicFamily\char'27}}
188 \def\staveXXV{{\icelandicFamily\char'30}}
189 \def\staveXXVI{{\icelandicFamily\char'31}}
190 \def\staveXXVII{{\icelandicFamily\char'32}}
191 \def\staveXXVIII{{\icelandicFamily\char'33}}
192 \def\staveXXIX{{\icelandicFamily\char'34}}
193 \def\staveXXX{{\icelandicFamily\char'35}}
194 \def\staveXXXI{{\icelandicFamily\char'36}}
195 \def\staveXXXII{{\icelandicFamily\char'37}}
196 \def\staveXXXIII{{\icelandicFamily\char'40}}
197 \def\staveXXXIV{{\icelandicFamily\char'41}}
198 \def\staveXXXV{{\icelandicFamily\char'42}}
199 \def\staveXXXVI{{\icelandicFamily\char'43}}
200 \def\staveXXXVII{{\icelandicFamily\char'44}}
201 \def\staveXXXVIII{{\icelandicFamily\char'45}}
202 \def\staveXXXIX{{\icelandicFamily\char'46}}
203 \def\staveXL{{\icelandicFamily\char'47}}
204 \def\staveXLI{{\icelandicFamily\char'50}}
205 \def\staveXLII{{\icelandicFamily\char'51}}
206 \def\staveXLIII{{\icelandicFamily\char'52}}
207 \def\staveXLIV{{\icelandicFamily\char'53}}
208 \def\staveXLV{{\icelandicFamily\char'54}}
209 \def\staveXLVI{{\icelandicFamily\char'55}}
210 \def\staveXLVII{{\icelandicFamily\char'56}}
211 \def\staveXLVIII{{\icelandicFamily\char'57}}
212 \def\staveXLIX{{\icelandicFamily\char'60}}
213 \def\staveL{{\icelandicFamily\char'61}}
214 \def\staveLI{{\icelandicFamily\char'62}}
215 \def\staveLII{{\icelandicFamily\char'63}}
216 \def\staveLIII{{\icelandicFamily\char'64}}
217 \def\staveLIV{{\icelandicFamily\char'65}}
218 \def\staveLV{{\icelandicFamily\char'66}}
219 \def\staveLVI{{\icelandicFamily\char'67}}
220 \def\staveLVII{{\icelandicFamily\char'70}}
221 \def\staveLVIII{{\icelandicFamily\char'71}}
222 \def\staveLIX{{\icelandicFamily\char'72}}
223 \def\staveLX{{\icelandicFamily\char'73}}
224 \def\staveLXI{{\icelandicFamily\char'74}}
225 \def\staveLXII{{\icelandicFamily\char'75}}
226 \def\staveLXIII{{\icelandicFamily\char'76}}
227 \def\staveLXIV{{\icelandicFamily\char'77}}
228 \def\staveLXV{{\icelandicFamily\char'100}}
229 \def\staveLXVI{{\icelandicFamily\char'101}}
230 \def\staveLXVII{{\icelandicFamily\char'102}}
231 \def\staveLXVIII{{\icelandicFamily\char'103}}
232 %</staves>
233 % \end{macrocode}
234 %
235 % \Finale
236 %\section*{Acknowledgements}
237 % I would like to thank the people of the Icelandic Museum of Sorcery and Witchcraft for their
238 % encouragement in this project. Also, I would like to thank my Icelandic friends for giving
239 % me and my son the chance to visit their beautiful country!