summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/iflang.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/iflang.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/iflang.dtx91
1 files changed, 77 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/iflang.dtx b/Master/texmf-dist/source/latex/oberdiek/iflang.dtx
index 198e19160f7..14d6677ad83 100644
--- a/Master/texmf-dist/source/latex/oberdiek/iflang.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/iflang.dtx
@@ -73,12 +73,13 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: iflang 2007/09/09 v1.4 Language checks (HO)}
+\Msg{* Package: iflang 2007/11/11 v1.5 Language checks (HO)}
\Msg{************************************************************************}
\keepsilent
\askforoverwritefalse
+\let\MetaPrefix\relax
\preamble
This is a generated file.
@@ -104,6 +105,7 @@ and the derived files
iflang-test4.tex, iflang-test5.tex.
\endpreamble
+\let\MetaPrefix\DoubleperCent
\generate{%
\file{iflang.ins}{\from{iflang.dtx}{install}}%
@@ -126,6 +128,10 @@ and the derived files
\Msg{*}
\Msg{* iflang.sty}
\Msg{*}
+\Msg{* And install the following script file:}
+\Msg{*}
+\Msg{* }
+\Msg{*}
\Msg{* To produce the documentation run the file `iflang.drv'}
\Msg{* through LaTeX.}
\Msg{*}
@@ -141,16 +147,16 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{iflang.drv}%
- [2007/09/09 v1.4 Language checks (HO)]%
+ [2007/11/11 v1.5 Language checks (HO)]%
\documentclass{ltxdoc}
-\usepackage{holtxdoc}[2007/10/21]
+\usepackage{holtxdoc}[2007/11/11]
\begin{document}
\DocInput{iflang.dtx}%
\end{document}
%</driver>
% \fi
%
-% \CheckSum{727}
+% \CheckSum{820}
%
% \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
@@ -171,7 +177,7 @@ and the derived files
% \GetFileInfo{iflang.drv}
%
% \title{The \xpackage{iflang} package}
-% \date{2007/09/09 v1.4}
+% \date{2007/11/11 v1.5}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -283,6 +289,9 @@ and the derived files
\fi
\fi
\else
+ \catcode35 6 % #
+ \catcode123 1 % {
+ \catcode125 2 % }
\expandafter\ifx\csname PackageInfo\endcsname\relax
\def\x#1#2{%
\immediate\write-1{Package #1 Info: #2.}%
@@ -299,6 +308,7 @@ and the derived files
% Package identification:
% \begin{macrocode}
\begingroup
+ \catcode35 6 % #
\catcode40 12 % (
\catcode41 12 % )
\catcode44 12 % ,
@@ -307,6 +317,8 @@ and the derived files
\catcode47 12 % /
\catcode58 12 % :
\catcode64 11 % @
+ \catcode123 1 % {
+ \catcode125 2 % }
\expandafter\ifx\csname ProvidesPackage\endcsname\relax
\def\x#1#2#3[#4]{\endgroup
\immediate\write-1{Package: #3 #4}%
@@ -322,14 +334,26 @@ and the derived files
\fi
\expandafter\x\csname ver@iflang.sty\endcsname
\ProvidesPackage{iflang}%
- [2007/09/09 v1.4 Language checks (HO)]
+ [2007/11/11 v1.5 Language checks (HO)]
% \end{macrocode}
%
% \begin{macrocode}
-\expandafter\edef\csname IfLang@AtEnd\endcsname{%
- \catcode64 \the\catcode64\relax
-}
+\begingroup
+ \catcode123 1 % {
+ \catcode125 2 % }
+ \def\x{\endgroup
+ \expandafter\edef\csname IfLang@AtEnd\endcsname{%
+ \catcode35 \the\catcode35\relax
+ \catcode64 \the\catcode64\relax
+ \catcode123 \the\catcode123\relax
+ \catcode125 \the\catcode125\relax
+ }%
+ }%
+\x
+\catcode35 6 % #
\catcode64 11 % @
+\catcode123 1 % {
+\catcode125 2 % }
\def\TMP@EnsureCode#1#2{%
\edef\IfLang@AtEnd{%
\IfLang@AtEnd
@@ -411,8 +435,10 @@ and the derived files
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname RequirePackage\endcsname\relax
\input infwarerr.sty\relax
+ \input pdftexcmds.sty\relax
\else
\RequirePackage{infwarerr}[2007/09/09]%
+ \RequirePackage{pdftexcmds}[2007/11/11]%
\fi
% \end{macrocode}
%
@@ -497,14 +523,15 @@ and the derived files
%
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname pdfstrcmp\endcsname\relax
+\expandafter\ifx\csname pdf@strcmp\endcsname\relax
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
{%
% \end{macrocode}
-% We do not have \cs{pdfstrcmp}. Thus we must define
+% We do not have \cs{pdf@strcmp} (and \cs{pdfstrcmp}).
+% Thus we must define
% our own expandable string comparison. The following
% implementation is based on a \TeX\ pearl from David Kastrup, presented
% at the conference Bacho\TeX~2005:
@@ -568,7 +595,7 @@ and the derived files
% \begin{macrocode}
\def\IfLanguageName#1{%
\ifnum\IfLang@IfDefined{languagename}{%
- \pdfstrcmp{#1}{\languagename}%
+ \pdf@strcmp{#1}{\languagename}%
}{1}=0 %
\expandafter\@firstoftwo
\else
@@ -610,7 +637,39 @@ and the derived files
%<*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
@@ -619,7 +678,7 @@ and the derived files
\catcode\the\count@=\the\catcode\count@\relax
}%
\ifnum\count@<255 %
- \advance\count@\@ne
+ \advance\count@ 1 %
\repeat
\def\RangeCatcodeInvalid#1#2{%
@@ -627,7 +686,7 @@ and the derived files
\loop
\catcode\count@=15 %
\ifnum\count@<#2\relax
- \advance\count@\@ne
+ \advance\count@ 1 %
\repeat
}
\def\Test{%
@@ -1077,6 +1136,10 @@ and the derived files
% \item
% Catcode section rewritten.
% \end{Version}
+% \begin{Version}{2007/11/11 v1.5}
+% \item
+% Use of package \xpackage{pdftexcmds} for \LuaTeX\ support.
+% \end{Version}
% \end{History}
%
% \PrintIndex