| 1 |
\def\filename{eiad.dtx} |
| 2 |
\def\fileversion{1.0} |
| 3 |
\def\filedate{1996/11/13} |
| 4 |
\let\docversion=\fileversion |
| 5 |
\let\docdate=\filedate |
| 6 |
% \iffalse meta-comment |
| 7 |
% |
| 8 |
% Copyright 1996 by Uwe Muench |
| 9 |
% |
| 10 |
% For further copyright information, and conditions for modification |
| 11 |
% and distribution, see the file legal.txt of the LaTeX2e |
| 12 |
% distribution, and any other copyright notices in this file. |
| 13 |
% |
| 14 |
% This system is distributed in the hope that it will be useful, |
| 15 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 17 |
% |
| 18 |
% For error reports concerning UNCHANGED versions of this file, please |
| 19 |
% contact me (email: [email protected]) |
| 20 |
% |
| 21 |
% Please do not request updates from me directly. Primary |
| 22 |
% distribution is through the CTAN archives. |
| 23 |
% |
| 24 |
% |
| 25 |
% Permission is granted to copy this file to another file with a |
| 26 |
% clearly different name and to customize the declarations in that |
| 27 |
% copy to serve the needs of your installation, provided that you |
| 28 |
% comply with the conditions in the file legal.txt of the LaTeX2e |
| 29 |
% distribution. |
| 30 |
% |
| 31 |
% However, NO PERMISSION is granted to produce or to distribute a |
| 32 |
% modified version of this file under its original name. |
| 33 |
% |
| 34 |
% You are NOT ALLOWED to change this file. |
| 35 |
% |
| 36 |
% |
| 37 |
% |
| 38 |
% \fi |
| 39 |
% \iffalse |
| 40 |
%%% File: eiad.dtx |
| 41 |
%% Copyright (C) 1996 Uwe Muench |
| 42 |
%% all rights reserved. |
| 43 |
%<package>\NeedsTeXFormat{LaTeX2e} |
| 44 |
%<package>\ProvidesPackage{eiad}[1996/11/13 v1.0 LaTeX package eiad] |
| 45 |
%<*driver> |
| 46 |
\documentclass{ltxdoc} |
| 47 |
\usepackage{eiad} |
| 48 |
\GetFileInfo{eiad.sty} |
| 49 |
\EnableCrossrefs |
| 50 |
\RecordChanges |
| 51 |
\begin{document} |
| 52 |
\title{The \texttt{eiad} package\thanks |
| 53 |
{This file has version number \fileversion, dated \filedate.}\\ |
| 54 |
for use with \LaTeX2e} |
| 55 |
\author{Uwe M\"unch\\Schmittgasse~92\\51143 K\"oln\\ |
| 56 |
\texttt{[email protected]}} |
| 57 |
\date{\docdate} |
| 58 |
\maketitle |
| 59 |
\DocInput{eiad.dtx} |
| 60 |
\PrintChanges |
| 61 |
\end{document} |
| 62 |
%</driver> |
| 63 |
% \fi |
| 64 |
% |
| 65 |
% \CheckSum{15} |
| 66 |
%% \CharacterTable |
| 67 |
%% {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 |
| 68 |
%% 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 |
| 69 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 70 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 71 |
%% Dollar \$ Percent \% Ampersand \& |
| 72 |
%% Acute accent \' Left paren \( Right paren \) |
| 73 |
%% Asterisk \* Plus \+ Comma \, |
| 74 |
%% Minus \- Point \. Solidus \/ |
| 75 |
%% Colon \: Semicolon \; Less than \< |
| 76 |
%% Equals \= Greater than \> Question mark \? |
| 77 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 78 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 79 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 80 |
%% Right brace \} Tilde \~} |
| 81 |
% |
| 82 |
% \changes{v1.0}{1996/03/03}{First release} |
| 83 |
% |
| 84 |
% \section{Introduction} |
| 85 |
% |
| 86 |
% The font \textsf{eiad} provides a roman and a bold version of |
| 87 |
% Irish fonts for typesetting in gaelic. They are based on the |
| 88 |
% Computer Modern fonts. This font family was written by |
| 89 |
% Ivan~A.~Derzhanski and can be found on the CTAN in the directory |
| 90 |
% \texttt{tex-archive/fonts/eiad}. |
| 91 |
% This package provides means to use this font under \LaTeXe. |
| 92 |
% |
| 93 |
% |
| 94 |
% \section{Usage} |
| 95 |
% |
| 96 |
% This file can be used as a package by placing its name |
| 97 |
% in the argument of |\usepackage|. Afterwards the font family |
| 98 |
% \textsf{eiad} |
| 99 |
% is defined. This could also have been done by providing a |
| 100 |
% font definition file. |
| 101 |
% |
| 102 |
% \DescribeMacro{\eiadfamily} |
| 103 |
% The command |\eiadfamily| changes the current font family to |
| 104 |
% \texttt{eiad} and the encoding to \texttt{U} (unknown). The |
| 105 |
% \texttt{U} encoding is used |
| 106 |
% since the Irish long vowels are positioned at places where |
| 107 |
% e.\,g. the ligatures of the \texttt{OT1}-encoding (like ffl) can be found |
| 108 |
% normally (the new additional characters have to be somewhere |
| 109 |
% obviously\dots). |
| 110 |
% Usually this command should be used in a \TeX{} group only. |
| 111 |
% |
| 112 |
% \DescribeMacro{\texteiad} |
| 113 |
% The command |\texteiad| typesets its argument in the |
| 114 |
% \textsf{eiad} font. |
| 115 |
% |
| 116 |
% \DescribeMacro{\eiad} |
| 117 |
% The command |\eiad| provides the old font changing command (like |
| 118 |
% |\rm| compared to |\textrm|). A use of |\eiad| in math mode is |
| 119 |
% not possible. |
| 120 |
% |
| 121 |
% To access the new long vowels, the aspirated consonants and the |
| 122 |
% ligature `agus', I cite Ivan Derzhanski: |
| 123 |
% \begin{quote} |
| 124 |
% Within \TeX{} the accented Irish letters are accessible as ligatures, in |
| 125 |
% a manner consistent with the usage on the mailing-list |
| 126 |
% \texttt{gaelic-l}. A vowel followed by a slash yields a long |
| 127 |
% vowel; a lowercase consonant followed by `h', or |
| 128 |
% an uppercase consonant followed by either `H' or `h', yields an |
| 129 |
% aspirated consonant (the latter only works with those consonants |
| 130 |
% which actually undergo aspiration; for such things as `n' with a dot, |
| 131 |
% as found in some old texts, the standard \TeX nique (in this case |\.n|) |
| 132 |
% must be used.) The ligature `agus' is accessed as s` (`s'-backquote). |
| 133 |
% \end{quote} |
| 134 |
% So we get the following tables, first the vowels: |
| 135 |
% \begin{quote} |
| 136 |
% \begin{tabbing} |
| 137 |
% Input:\hspace{1cm}\= |a/| \= |e/| \= |i/| \= |o/| \= |u/| \\ |
| 138 |
% \textsf{eiad} font \> \texteiad{a/} \> \texteiad{e/}\> |
| 139 |
% \texteiad{i/}\> \texteiad{o/} \> \texteiad{u/} |
| 140 |
% \end{tabbing} |
| 141 |
% \end{quote} |
| 142 |
% And now the aspirated consonants and the agus ligature: |
| 143 |
% \begin{quote} |
| 144 |
% \begin{tabbing} |
| 145 |
% Input:\hspace{1cm}\= |
| 146 |
% |s`| (agus) \= |bh| \= |ch| \= |dh| \= |fh| \= |gh| |
| 147 |
% \= |mh| \= |ph| \= |sh| \= |th| \\ |
| 148 |
% \textsf{eiad} font \> \texteiad{s`} \> |
| 149 |
% \texteiad{bh} \> \texteiad{ch} \> \texteiad{dh} \> \texteiad{fh} \> |
| 150 |
% \texteiad{gh} \> \texteiad{mh} \> \texteiad{ph} \> \texteiad{sh} \> |
| 151 |
% \texteiad{th} |
| 152 |
% \end{tabbing} |
| 153 |
% \end{quote} |
| 154 |
% One could write commands which access these special characters only |
| 155 |
% during typesetting in the \textsf{eiad} font, otherwise creating a normal |
| 156 |
% vowel or consonant (instead of e.\,g.~a/ in the output). But I |
| 157 |
% don't think this is reasonable since the above transcription |
| 158 |
% seems to be common use. So it is possible to use your input text as |
| 159 |
% transcription also; a conversion to normal vowels or consonants |
| 160 |
% would be only an annoyance. Please contact me, if there is a |
| 161 |
% different transcription method, one could implement through such |
| 162 |
% macros. |
| 163 |
% |
| 164 |
% \StopEventually{} |
| 165 |
% |
| 166 |
% |
| 167 |
% \section{Implementation} |
| 168 |
% |
| 169 |
% First we declare a new font family for the \textsf{eiad} font. |
| 170 |
% \begin{macrocode} |
| 171 |
\DeclareFontFamily{OT1}{eiad}{} |
| 172 |
% \end{macrocode} |
| 173 |
% |
| 174 |
% This font is only available in the normal and the bold |
| 175 |
% series at 10 point, so we always scale silently to the desired |
| 176 |
% size. |
| 177 |
% |
| 178 |
% \begin{macrocode} |
| 179 |
\DeclareFontShape{OT1}{eiad}{m}{n}{<->s* eiad10}{} |
| 180 |
\DeclareFontShape{OT1}{eiad}{m}{bx}{<->s* eiadbf10}{} |
| 181 |
% \end{macrocode} |
| 182 |
% |
| 183 |
% Now we define the font changing commands. |
| 184 |
% |
| 185 |
% \begin{macro}{\eiadfamily} |
| 186 |
% The macro |\eiadfamily| selects the \textsf{eiad} family. |
| 187 |
% \begin{macrocode} |
| 188 |
\DeclareRobustCommand\eiadfamily{% |
| 189 |
\fontfamily{eiad}% |
| 190 |
\fontencoding{OT1}% |
| 191 |
\selectfont} |
| 192 |
% \end{macrocode} |
| 193 |
% \end{macro} |
| 194 |
% |
| 195 |
% \begin{macro}{\texteiad} |
| 196 |
% The macro |\texteiad| typesets its argument in the \textsf{eiad} font. |
| 197 |
% \begin{macrocode} |
| 198 |
\DeclareTextFontCommand\texteiad{\eiadfamily} |
| 199 |
% \end{macrocode} |
| 200 |
% \end{macro} |
| 201 |
% |
| 202 |
% \begin{macro}{\eiad} |
| 203 |
% The macro |\eiad| is the old |\texteiad| version (compare |\rm| |
| 204 |
% to |\textrm|). A use of the \textsf{eiad} font in math mode is forbidden: |
| 205 |
% In math mode the switch |\eiad| is defined as |\relax|. |
| 206 |
% \begin{macrocode} |
| 207 |
\DeclareOldFontCommand{\eiad}{\eiadfamily}{% |
| 208 |
\relax}% Switch for math mode |
| 209 |
% \end{macrocode} |
| 210 |
% \end{macro} |
| 211 |
% |
| 212 |
% \Finale |
| 213 |
% |
| 214 |
\endinput |