%%
%% This is file `allrunes.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% allrunes.dtx  (with options: `sty')
%% 
%% 
%% Copyright 2001-2004 Carl-Gustav Werner
%% 
%% This program is provided under the terms of the
%% LaTeX Project Public License distributed from CTAN
%% archives in directory macros/latex/base/lppl.txt.
%% 
\def\fileversion{v2.1}
\def\filedate{2004/01/06}
\ProvidesPackage{allrunes}[\filedate\space\fileversion\space allrunes package.]

\RequirePackage{ifthen}

\newcommand{\DeclareFontShapeWithSizes}[5]{%
  \DeclareFontShape{#1}{#2}{#3}{#4}{%
   <5><6><7><8><9><10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83> #5}{}}

\ProcessOptions\relax
\newcommand{\lfdefault}{l}   % light
\newcommand{\bldefault}{c}   % bold with lines
\newcommand{\mldefault}{n}   % medium with lines
\newcommand{\lldefault}{k}   % light with lines

\DeclareRobustCommand{\lfseries}{%
  \ifthenelse{\equal{\f@series}{\mddefault}}%
              {\fontseries{\lfdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\mldefault}}%
              {\fontseries{\lldefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\bfdefault}}%
              {\fontseries{\lfdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\bldefault}}%
              {\fontseries{\lldefault}\selectfont}{}%
}

\DeclareRobustCommand{\mdseries}{%
  \not@math@alphabet\mdseries\relax
  \ifthenelse{\equal{\f@series}{\lfdefault}}%
              {\fontseries{\mddefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\lldefault}}%
              {\fontseries{\mldefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\bfdefault}}%
              {\fontseries{\mddefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\bldefault}}%
              {\fontseries{\mldefault}\selectfont}{}%
}

\DeclareRobustCommand{\bfseries}{%
  \not@math@alphabet\bfseries\mathbf
  \ifthenelse{\equal{\f@series}{\lfdefault}}%
              {\fontseries{\bfdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\lldefault}}%
              {\fontseries{\bldefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\mddefault}}%
              {\fontseries{\bfdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\mldefault}}%
              {\fontseries{\bldefault}\selectfont}{}%
}

\DeclareRobustCommand{\withlines}{%
  \ifthenelse{\equal{\f@series}{\bfdefault}}%
              {\fontseries{\bldefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\mddefault}}%
              {\fontseries{\mldefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\lfdefault}}%
              {\fontseries{\lldefault}\selectfont}{}%
}

\DeclareRobustCommand{\withoutlines}{%
  \ifthenelse{\equal{\f@series}{\bldefault}}%
              {\fontseries{\bfdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\mldefault}}%
              {\fontseries{\mddefault}\selectfont}{}%
  \ifthenelse{\equal{\f@series}{\lldefault}}%
              {\fontseries{\lfdefault}\selectfont}{}%
}

\DeclareTextFontCommand{\textlf}{\lfseries}

\DeclareTextFontCommand{\textwol}{\withoutlines}
\DeclareTextFontCommand{\textwil}{\withlines}

\newcommand{\stdefault}{s}  % straight
\newcommand{\rodefault}{r}  % rounded

\newcommand{\cwdefault}{m} % curved,   low twigs
\newcommand{\swdefault}{t} % straight, low twigs
\newcommand{\rwdefault}{q} % rounded,  low twigs

\DeclareRobustCommand{\curvedtwigs}{%
  \ifthenelse{\equal{\f@shape}{\stdefault}}%
              {\fontshape{\updefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\swdefault}}%
              {\fontshape{\cwdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\rodefault}}%
              {\fontshape{\updefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\rwdefault}}%
              {\fontshape{\cwdefault}\selectfont}{}%
}

\DeclareRobustCommand{\straighttwigs}{%
  \ifthenelse{\equal{\f@shape}{\updefault}}%
              {\fontshape{\stdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\cwdefault}}%
              {\fontshape{\swdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\rodefault}}%
              {\fontshape{\stdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\rwdefault}}%
              {\fontshape{\swdefault}\selectfont}{}%
}

\DeclareRobustCommand{\roundedtwigs}{%
  \ifthenelse{\equal{\f@shape}{\updefault}}%
              {\fontshape{\rodefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\cwdefault}}%
              {\fontshape{\rwdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\stdefault}}%
              {\fontshape{\rodefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\swdefault}}%
              {\fontshape{\rwdefault}\selectfont}{}%
}

\DeclareRobustCommand{\lowtwigs}{%
  \ifthenelse{\equal{\f@shape}{\updefault}}%
              {\fontshape{\cwdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\stdefault}}%
              {\fontshape{\swdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\rodefault}}%
              {\fontshape{\rwdefault}\selectfont}{}%
}

\DeclareRobustCommand{\hightwigs}{%
  \ifthenelse{\equal{\f@shape}{\cwdefault}}%
              {\fontseries{\updefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\swdefault}}%
              {\fontseries{\stdefault}\selectfont}{}%
  \ifthenelse{\equal{\f@shape}{\rwdefault}}%
              {\fontseries{\rodefault}\selectfont}{}%
}

\DeclareTextFontCommand{\textcu}{\curvedtwigs}
\DeclareTextFontCommand{\textst}{\straighttwigs}
\DeclareTextFontCommand{\textro}{\roundedtwigs}

\DeclareTextFontCommand{\textlo}{\lowtwigs}
\DeclareTextFontCommand{\texthi}{\hightwigs}

\newcommand{\DeclareRuneSeparators}[1]{%
  \DeclareTextSymbol{\dot}{#1}{46}        % .
  \DeclareTextSymbol{\doubledot}{#1}{58}  % :
  \DeclareTextSymbol{\tripledot}{#1}{59}
  \DeclareTextSymbol{\quaddot}{#1}{60}
  \DeclareTextSymbol{\pentdot}{#1}{61}

  \DeclareTextSymbol{\eye}{#1}{46}        % .
  \DeclareTextSymbol{\doubleeye}{#1}{58}  % :
  \DeclareTextSymbol{\tripleeye}{#1}{62}
  \DeclareTextSymbol{\quadeye}{#1}{63}
  \DeclareTextSymbol{\penteye}{#1}{64}

  \DeclareTextSymbol{\bar}{#1}{33}        % !
  \DeclareTextSymbol{\doublebar}{#1}{34}
  \DeclareTextSymbol{\triplebar}{#1}{35}

  \DeclareTextSymbol{\cross}{#1}{42}      % *
  \DeclareTextSymbol{\doublecross}{#1}{37}
  \DeclareTextSymbol{\triplecross}{#1}{38}

  \DeclareTextSymbol{\plus}{#1}{43}       % +
  \DeclareTextSymbol{\doubleplus}{#1}{44}
  \DeclareTextSymbol{\tripleplus}{#1}{45}

  \DeclareTextSymbol{\star}{#1}{36}
  %\DeclareTextSymbol{\doublestar}{#1}{37}
  %\DeclareTextSymbol{\triplestar}{#1}{}

} % end of newcommand{\DeclareRuneSeparators}

\input{arc.fd}
\input{ara.fd}
\input{arn.fd}
\input{art.fd}
\input{arl.fd}
\input{arm.fd}

