summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/oberdiek/iflang.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-09-16 00:07:34 +0000
committerKarl Berry <karl@freefriends.org>2007-09-16 00:07:34 +0000
commitd85f248e3b38ea0ecda38c5340e3cadd08d65346 (patch)
tree52e17f32b395006895b3917bc7729c7ac1514ae3 /Master/texmf-dist/tex/generic/oberdiek/iflang.sty
parent2389552f283181e0d8c610037712ade989112da3 (diff)
oberdiek update (14sep07)
git-svn-id: svn://tug.org/texlive/trunk@4947 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/iflang.sty')
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/iflang.sty41
1 files changed, 24 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/iflang.sty b/Master/texmf-dist/tex/generic/oberdiek/iflang.sty
index 40f7d8a5fd0..3823e4329ea 100644
--- a/Master/texmf-dist/tex/generic/oberdiek/iflang.sty
+++ b/Master/texmf-dist/tex/generic/oberdiek/iflang.sty
@@ -25,7 +25,8 @@
%% This work consists of the main source file iflang.dtx
%% and the derived files
%% iflang.sty, iflang.pdf, iflang.ins, iflang.drv,
-%% iflang-test1.tex, iflang-test2.tex, iflang-test3.tex.
+%% iflang-test1.tex, iflang-test2.tex, iflang-test3.tex,
+%% iflang-test4.tex, iflang-test5.tex.
%%
\begingroup
\catcode44 12 % ,
@@ -79,20 +80,26 @@
\fi
\expandafter\x\csname ver@iflang.sty\endcsname
\ProvidesPackage{iflang}%
- [2007/04/26 v1.3 Language checks (HO)]
-\expandafter\edef\csname IfLang@endinput\endcsname{%
- \catcode39 \the\catcode39\relax % '
- \catcode40 \the\catcode40\relax % (
- \catcode41 \the\catcode41\relax % )
- \catcode61 \the\catcode61\relax % =
- \catcode64 \the\catcode64\relax % @
- \noexpand\endinput
+ [2007/09/09 v1.4 Language checks (HO)]
+\expandafter\edef\csname IfLang@AtEnd\endcsname{%
+ \catcode64 \the\catcode64\relax
}
-\catcode39 12\relax % '
-\catcode40 12\relax % (
-\catcode41 12\relax % )
-\catcode61 12\relax % =
-\catcode64 11\relax % @
+\catcode64 11 % @
+\def\TMP@EnsureCode#1#2{%
+ \edef\IfLang@AtEnd{%
+ \IfLang@AtEnd
+ \catcode#1 \the\catcode#1\relax
+ }%
+ \catcode#1 #2\relax
+}
+\TMP@EnsureCode{39}{12}% '
+\TMP@EnsureCode{40}{12}% (
+\TMP@EnsureCode{41}{12}% )
+\TMP@EnsureCode{44}{12}% ,
+\TMP@EnsureCode{46}{12}% .
+\TMP@EnsureCode{47}{12}% /
+\TMP@EnsureCode{58}{12}% :
+\TMP@EnsureCode{61}{12}% =
\expandafter\ifx\csname @firstoftwo\endcsname\relax
\long\def\@firstoftwo#1#2{#1}%
\fi
@@ -135,7 +142,7 @@
\expandafter\ifx\csname RequirePackage\endcsname\relax
\input infwarerr.sty\relax
\else
- \RequirePackage{infwarerr}%
+ \RequirePackage{infwarerr}[2007/09/09]%
\fi
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname uselanguage\endcsname\relax
@@ -227,7 +234,7 @@
}%
\def\IfLanguageName#1{%
\ifnum\IfLang@IfDefined{languagename}{%
- \if\expandafter\IfLang@strequal\expandafter%
+ \if\expandafter\IfLang@StrEqual\expandafter%
{\languagename}{#1}%
0%
\else
@@ -261,7 +268,7 @@
}%
}%
\fi
-\IfLang@endinput
+\IfLang@AtEnd
\endinput
%%
%% End of file `iflang.sty'.