summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/oberdiek/alphalph.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/oberdiek/alphalph.dtx')
-rw-r--r--macros/latex/contrib/oberdiek/alphalph.dtx372
1 files changed, 0 insertions, 372 deletions
diff --git a/macros/latex/contrib/oberdiek/alphalph.dtx b/macros/latex/contrib/oberdiek/alphalph.dtx
index 2f22685dec..7c70cd4825 100644
--- a/macros/latex/contrib/oberdiek/alphalph.dtx
+++ b/macros/latex/contrib/oberdiek/alphalph.dtx
@@ -66,9 +66,6 @@
% Installation:
% TDS:tex/generic/oberdiek/alphalph.sty
% TDS:doc/latex/oberdiek/alphalph.pdf
-% TDS:doc/latex/oberdiek/test/alphalph-test1.tex
-% TDS:doc/latex/oberdiek/test/alphalph-test2.tex
-% TDS:doc/latex/oberdiek/test/alphalph-test3.tex
% TDS:source/latex/oberdiek/alphalph.dtx
%
%<*ignore>
@@ -141,10 +138,6 @@ and the derived files
% \file{alphalph-test1.tex}{\from{alphalph.dtx}{test1}}%
% \file{alphalph-test2.tex}{\from{alphalph.dtx}{test2,etex}}%
% \file{alphalph-test3.tex}{\from{alphalph.dtx}{test2,noetex}}%
- \nopreamble
- \nopostamble
-% \usedir{source/latex/oberdiek/catalogue}%
-% \file{alphalph.xml}{\from{alphalph.dtx}{catalogue}}%
}
\catcode32=13\relax% active space
@@ -207,21 +200,6 @@ and the derived files
% \fi
%
%
-% \CharacterTable
-% {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
-% 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
-% Digits \0\1\2\3\4\5\6\7\8\9
-% Exclamation \! Double quote \" Hash (number) \#
-% Dollar \$ Percent \% Ampersand \&
-% Acute accent \' Left paren \( Right paren \)
-% Asterisk \* Plus \+ Comma \,
-% Minus \- Point \. Solidus \/
-% Colon \: Semicolon \; Less than \<
-% Equals \= Greater than \> Question mark \?
-% Commercial at \@ Left bracket \[ Backslash \\
-% Right bracket \] Circumflex \^ Underscore \_
-% Grave accent \` Left brace \{ Vertical bar \|
-% Right brace \} Tilde \~}
%
% \GetFileInfo{alphalph.drv}
%
@@ -1303,353 +1281,6 @@ and the derived files
%</package>
% \end{macrocode}
%
-% \section{Test}
-%
-% \subsection{Catcode checks for loading}
-%
-% \begin{macrocode}
-%<*test1>
-% \end{macrocode}
-% \begin{macrocode}
-\catcode`\{=1 %
-\catcode`\}=2 %
-\catcode`\#=6 %
-\catcode`\@=11 %
-\expandafter\ifx\csname count@\endcsname\relax
- \countdef\count@=255 %
-\fi
-\expandafter\ifx\csname @gobble\endcsname\relax
- \long\def\@gobble#1{}%
-\fi
-\expandafter\ifx\csname @firstofone\endcsname\relax
- \long\def\@firstofone#1{#1}%
-\fi
-\expandafter\ifx\csname loop\endcsname\relax
- \expandafter\@firstofone
-\else
- \expandafter\@gobble
-\fi
-{%
- \def\loop#1\repeat{%
- \def\body{#1}%
- \iterate
- }%
- \def\iterate{%
- \body
- \let\next\iterate
- \else
- \let\next\relax
- \fi
- \next
- }%
- \let\repeat=\fi
-}%
-\def\RestoreCatcodes{}
-\count@=0 %
-\loop
- \edef\RestoreCatcodes{%
- \RestoreCatcodes
- \catcode\the\count@=\the\catcode\count@\relax
- }%
-\ifnum\count@<255 %
- \advance\count@ 1 %
-\repeat
-
-\def\RangeCatcodeInvalid#1#2{%
- \count@=#1\relax
- \loop
- \catcode\count@=15 %
- \ifnum\count@<#2\relax
- \advance\count@ 1 %
- \repeat
-}
-\def\RangeCatcodeCheck#1#2#3{%
- \count@=#1\relax
- \loop
- \ifnum#3=\catcode\count@
- \else
- \errmessage{%
- Character \the\count@\space
- with wrong catcode \the\catcode\count@\space
- instead of \number#3%
- }%
- \fi
- \ifnum\count@<#2\relax
- \advance\count@ 1 %
- \repeat
-}
-\def\space{ }
-\expandafter\ifx\csname LoadCommand\endcsname\relax
- \def\LoadCommand{\input alphalph.sty\relax}%
-\fi
-\def\Test{%
- \RangeCatcodeInvalid{0}{47}%
- \RangeCatcodeInvalid{58}{64}%
- \RangeCatcodeInvalid{91}{96}%
- \RangeCatcodeInvalid{123}{255}%
- \catcode`\@=12 %
- \catcode`\\=0 %
- \catcode`\%=14 %
- \LoadCommand
- \RangeCatcodeCheck{0}{36}{15}%
- \RangeCatcodeCheck{37}{37}{14}%
- \RangeCatcodeCheck{38}{47}{15}%
- \RangeCatcodeCheck{48}{57}{12}%
- \RangeCatcodeCheck{58}{63}{15}%
- \RangeCatcodeCheck{64}{64}{12}%
- \RangeCatcodeCheck{65}{90}{11}%
- \RangeCatcodeCheck{91}{91}{15}%
- \RangeCatcodeCheck{92}{92}{0}%
- \RangeCatcodeCheck{93}{96}{15}%
- \RangeCatcodeCheck{97}{122}{11}%
- \RangeCatcodeCheck{123}{255}{15}%
- \RestoreCatcodes
-}
-\Test
-\csname @@end\endcsname
-\end
-% \end{macrocode}
-% \begin{macrocode}
-%</test1>
-% \end{macrocode}
-%
-% \section{Macro tests}
-%
-% \begin{macrocode}
-%<*test2>
-\NeedsTeXFormat{LaTeX2e}
-\nofiles
-\documentclass{article}
-%<*noetex>
-\makeatletter
-\let\saved@numexpr\numexpr
-\newcommand*{\DisableNumexpr}{%
- \let\numexpr\@undefined
-}
-\newcommand*{\RestoreNumexpr}{%
- \let\numexpr\saved@numexpr
-}
-\DisableNumexpr
-%</noetex>
-\usepackage{alphalph}[2016/05/16]
-%<noetex>\RestoreNumexpr
-\usepackage{qstest}
-\IncludeTests{*}
-\LogTests{log}{*}{*}
-
-\newcommand*{\TestCmd}[3]{%
- \setbox0=\hbox{%
-%<noetex> \DisableNumexpr
- \edef\TestString{#1{#2}}%
- \expandafter\Expect\expandafter{\TestString}{#3}%
- \edef\TestString{#1{#2} }%
- \expandafter\Expect\expandafter{\TestString}{#3 }%
- }%
- \Expect*{\the\wd0}{0.0pt}%
-}
-
-\makeatletter
-\newalphalph\LaTeXAlphAlph\@Alph{26}
-\newalphalph\LaTeXalphalph\@alph{26}
-\newalphalph\AlphWrap[wrap]\alphalph@Alph{26}
-\newalphalph\alphwrap[wrap]\alphalph@alph{26}
-\newalphalph\LaTeXAlphWrap[wrap]\@Alph{26}
-\newalphalph\LaTeXalphwrap[wrap]\@alph{26}
-\def\LastSymbol#1{%
- \ifx\\#1\\%
- \else
- \@LastSymbol#1\@nil
- \fi
-}
-\def\@LastSymbol#1#2\@nil{%
- \ifx\\#2\\%
- #1%
- \else
- \@LastSymbol#2\@nil
- \fi
-}
-\makeatother
-\newcommand*{\TestAlph}[2]{%
- \uppercase{\TestCallCmd\AlphAlph{#2}}{#1}%
- \lowercase{\TestCallCmd\alphalph{#2}}{#1}%
- \uppercase{\TestCallCmd\LaTeXAlphAlph{#2}}{#1}%
- \lowercase{\TestCallCmd\LaTeXalphalph{#2}}{#1}%
- \edef\WrapString{\LastSymbol{#2}}%
- \expandafter\TestAlphWrap\expandafter{\WrapString}{#1}%
-}
-\newcommand*{\TestAlphWrap}[2]{%
- \uppercase{\TestCallCmd\AlphWrap{#1}}{#2}%
- \lowercase{\TestCallCmd\alphwrap{#1}}{#2}%
- \uppercase{\TestCallCmd\LaTeXAlphWrap{#1}}{#2}%
- \lowercase{\TestCallCmd\LaTeXalphwrap{#1}}{#2}%
-}
-\newcommand*{\TestCallCmd}[3]{%
- \TestCmd#1{#3}{#2}%
-}
-\begin{qstest}{AlphSymbols}{alphalph, AlphAlph, symbols}
- \TestAlph{1}{a}%
- \TestAlph{2}{b}%
- \TestAlph{3}{c}%
- \TestAlph{4}{d}%
- \TestAlph{5}{e}%
- \TestAlph{6}{f}%
- \TestAlph{7}{g}%
- \TestAlph{8}{h}%
- \TestAlph{9}{i}%
- \TestAlph{10}{j}%
- \TestAlph{11}{k}%
- \TestAlph{12}{l}%
- \TestAlph{13}{m}%
- \TestAlph{14}{n}%
- \TestAlph{15}{o}%
- \TestAlph{16}{p}%
- \TestAlph{17}{q}%
- \TestAlph{18}{r}%
- \TestAlph{19}{s}%
- \TestAlph{20}{t}%
- \TestAlph{21}{u}%
- \TestAlph{22}{v}%
- \TestAlph{23}{w}%
- \TestAlph{24}{x}%
- \TestAlph{25}{y}%
- \TestAlph{26}{z}%
-\end{qstest}
-\begin{qstest}{AlphRange}{alphalph, range}
- \TestAlph{0}{}%
- \TestAlph{-1}{}%
- \TestAlph{-2147483647}{}%
- \TestAlph{27}{aa}%
- \TestAlph{28}{ab}%
- \TestAlph{52}{az}%
- \TestAlph{53}{ba}%
- \TestAlph{78}{bz}%
- \TestAlph{79}{ca}%
- \TestAlph{702}{zz}%
- \TestAlph{703}{aaa}%
- \TestAlph{2147483647}{fxshrxw}%
-\end{qstest}
-
-\makeatletter
-\newcommand*{\myvocals}[1]{%
- \ifcase#1X\or A\or E\or I\or O\or U\else Y\fi
-}
-\makeatother
-\newalphalph\vocalsvocals\myvocals{5}
-\newcommand*{\TestVocals}{%
- \TestCmd\vocalsvocals
-}
-\begin{qstest}{vocals}{vocals}
- \TestVocals{0}{}%
- \TestVocals{1}{A}%
- \TestVocals{2}{E}%
- \TestVocals{3}{I}%
- \TestVocals{4}{O}%
- \TestVocals{5}{U}%
- \TestVocals{6}{AA}%
- \TestVocals{7}{AE}%
- \TestVocals{8}{AI}%
- \TestVocals{9}{AO}%
- \TestVocals{10}{AU}%
- \TestVocals{11}{EA}%
- \TestVocals{24}{OO}%
- \TestVocals{25}{OU}%
- \TestVocals{26}{UA}%
- \TestVocals{29}{UO}%
- \TestVocals{30}{UU}%
- \TestVocals{31}{AAA}%
- \TestVocals{155}{UUU}%
- \TestVocals{156}{AAAA}%
- \TestVocals{2147483647}{AIIOOEEIOIIUOE}%
-\end{qstest}
-
-\makeatletter
-\newalphalph\AlphMult[mult]{\alphalph@Alph}{26}
-\newalphalph\alphmult[mult]{\alphalph@alph}{26}
-\newalphalph\LaTeXAlphMult[mult]{\@Alph}{26}
-\newalphalph\LaTeXalphmult[mult]{\@alph}{26}
-\makeatother
-\newcommand*{\TestMult}[2]{%
- \uppercase{\TestCallCmd\AlphMult{#2}}{#1}%
- \lowercase{\TestCallCmd\alphmult{#2}}{#1}%
- \uppercase{\TestCallCmd\LaTeXAlphMult{#2}}{#1}%
- \lowercase{\TestCallCmd\LaTeXalphmult{#2}}{#1}%
-}
-\begin{qstest}{mult}{mult}
- \TestMult{0}{}%
- \TestMult{-1}{}%
- \TestMult{-2147483647}{}%
- \TestMult{1}{a}%
- \TestMult{2}{b}%
- \TestMult{26}{z}%
- \TestMult{27}{aa}%
- \TestMult{28}{bb}%
- \TestMult{52}{zz}%
- \TestMult{53}{aaa}%
- \TestMult{54}{bbb}%
- \TestMult{259}{yyyyyyyyyy}%
- \TestMult{260}{zzzzzzzzzz}%
- \TestMult{261}{aaaaaaaaaaa}%
- \TestMult{262}{bbbbbbbbbbb}%
-\end{qstest}
-
-\def\myvocalsB#1{%
- \ifcase#1\or A\or E\or I\or O\or U\fi
-}
-\begin{qstest}{symbolnum}{symbolnum}
- \makeatletter
- \def\Test#1#2{%
- \let\TestCmd\relax
- \newalphalph\TestCmd{#1}{}%
- \Expect*{\AlPh@Number}{#2}%
- }%
- \Test\@alph{26}%
- \Test\@Alph{26}%
- \Test\@fnsymbol{9}%
- \Test\myvocalsB{5}%
- \Test\alphalph@alph{26}%
- \Test\alphalph@Alph{26}%
-\end{qstest}
-
-\begin{qstest}{list}{list}
- \makeatletter
- \def\catch#1\relax{%
- \def\FoundList{\catch#1}%
- }%
- \def\Test[#1]#2#3#4{%
- \let\testcmd\relax
- \newalphalph\testcmd[{#1}]{\catch}{#2}%
- \testcmd{#3}|\relax
- \expandafter\Expect\expandafter{\FoundList}{#4|}%
- %
- \let\SavedCatch\catch
- \def\catch{\noexpand\catch\noexpand\foo}%
- \edef\Result{#4|}%
- \@onelevel@sanitize\Result
- \let\catch\SavedCatch
- \let\testcmd\relax
- \newalphalph\testcmd[{#1}]{\catch\foo}{#2}%
- \testcmd{#3}|\relax
- \@onelevel@sanitize\FoundList
- \Expect*{\FoundList}*{\Result}%
- }%
- \Test[alph]{26}{3}{\catch{3}}%
- \Test[alph]{26}{12}{\catch{12}}%
- \Test[alph]{26}{27}{\catch{1}\catch{1}}%
- \Test[alph]{26}{78}{\catch{2}\catch{26}}%
- \Test[wrap]{26}{7}{\catch{7}}%
- \Test[wrap]{26}{14}{\catch{14}}%
- \Test[wrap]{26}{80}{\catch{2}}%
- \Test[wrap]{26}{700}{\catch{24}}%
- \Test[mult]{26}{4}{\catch{4}}%
- \Test[mult]{26}{17}{\catch{17}}%
- \Test[mult]{26}{54}{\catch{2}\catch{2}\catch{2}}%
-\end{qstest}
-
-\begin{document}
-\end{document}
-%</test2>
-% \end{macrocode}
-%
% \section{Installation}
%
% \subsection{Download}
@@ -1699,9 +1330,6 @@ and the derived files
% \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
% alphalph.sty & tex/generic/oberdiek/alphalph.sty\\
% alphalph.pdf & doc/latex/oberdiek/alphalph.pdf\\
-% test/alphalph-test1.tex & doc/latex/oberdiek/test/alphalph-test1.tex\\
-% test/alphalph-test2.tex & doc/latex/oberdiek/test/alphalph-test2.tex\\
-% test/alphalph-test3.tex & doc/latex/oberdiek/test/alphalph-test3.tex\\
% alphalph.dtx & source/latex/oberdiek/alphalph.dtx\\
% \end{tabular}^^A
% }^^A