diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/stringenc.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/oberdiek/stringenc.sty | 77 |
1 files changed, 39 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/stringenc.sty b/Master/texmf-dist/tex/generic/oberdiek/stringenc.sty index dc1df3cb697..9ed85d874c8 100644 --- a/Master/texmf-dist/tex/generic/oberdiek/stringenc.sty +++ b/Master/texmf-dist/tex/generic/oberdiek/stringenc.sty @@ -91,47 +91,48 @@ \fi \expandafter\x\csname ver@stringenc.sty\endcsname \ProvidesPackage{stringenc}% - [2007/06/16 v1.1 Converts strings between encodings (HO)] + [2007/09/09 v1.2 Converts strings between encodings (HO)] \expandafter\edef\csname SE@AtEnd\endcsname{% \catcode64 \the\catcode64\relax } \catcode64 11 % @ -\def\SE@EnsureCode#1#2#3{% +\def\TMP@EnsureCode#1#2#3{% \edef\SE@AtEnd{% \SE@AtEnd #1#2 \the#1#2\relax }% #1#2 #3\relax } -\SE@EnsureCode\catcode{34}{12}% " -\SE@EnsureCode\catcode{36}{3}% $ -\SE@EnsureCode\catcode{38}{4}% & -\SE@EnsureCode\catcode{39}{12}% ' -\SE@EnsureCode\catcode{40}{12}% ( -\SE@EnsureCode\catcode{41}{12}% ) -\SE@EnsureCode\catcode{42}{12}% * -\SE@EnsureCode\catcode{43}{12}% + -\SE@EnsureCode\catcode{44}{12}% , -\SE@EnsureCode\catcode{45}{12}% - -\SE@EnsureCode\catcode{46}{12}% . -\SE@EnsureCode\catcode{58}{12}% : -\SE@EnsureCode\catcode{60}{12}% < -\SE@EnsureCode\catcode{61}{12}% = -\SE@EnsureCode\catcode{62}{12}% > -\SE@EnsureCode\catcode{91}{12}% [ -\SE@EnsureCode\catcode{93}{12}% ] -\SE@EnsureCode\catcode{94}{7}% ^ -\SE@EnsureCode\catcode{96}{12}% ` -\SE@EnsureCode\uccode{34}{0}% " -\SE@EnsureCode\uccode{48}{0}% 0 -\SE@EnsureCode\uccode{61}{0}% = +\TMP@EnsureCode\catcode{34}{12}% " +\TMP@EnsureCode\catcode{36}{3}% $ +\TMP@EnsureCode\catcode{38}{4}% & +\TMP@EnsureCode\catcode{39}{12}% ' +\TMP@EnsureCode\catcode{40}{12}% ( +\TMP@EnsureCode\catcode{41}{12}% ) +\TMP@EnsureCode\catcode{42}{12}% * +\TMP@EnsureCode\catcode{43}{12}% + +\TMP@EnsureCode\catcode{44}{12}% , +\TMP@EnsureCode\catcode{45}{12}% - +\TMP@EnsureCode\catcode{46}{12}% . +\TMP@EnsureCode\catcode{47}{12}% / +\TMP@EnsureCode\catcode{58}{12}% : +\TMP@EnsureCode\catcode{60}{12}% < +\TMP@EnsureCode\catcode{61}{12}% = +\TMP@EnsureCode\catcode{62}{12}% > +\TMP@EnsureCode\catcode{91}{12}% [ +\TMP@EnsureCode\catcode{93}{12}% ] +\TMP@EnsureCode\catcode{94}{7}% ^ +\TMP@EnsureCode\catcode{96}{12}% ` +\TMP@EnsureCode\uccode{34}{0}% " +\TMP@EnsureCode\uccode{48}{0}% 0 +\TMP@EnsureCode\uccode{61}{0}% = \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname RequirePackage\endcsname\relax \input infwarerr.sty\relax \input pdfescape.sty\relax \else - \RequirePackage{infwarerr}% - \RequirePackage{pdfescape}% + \RequirePackage{infwarerr}[2007/09/09]% + \RequirePackage{pdfescape}[2007/09/09]% \fi \def\SE@Empty{} \long\def\SE@FirstOfOne#1{#1} @@ -156,7 +157,7 @@ } \def\SE@ConvertTo#1#2#3{% \let\SE@result\SE@Empty - \PE@sanitize\SE@encoding{#3}% + \EdefSanitize\SE@encoding{#3}% \expandafter\ifx\csname\SE@PrefixTo\SE@encoding\endcsname\relax \StringEncodingLoad\SE@encoding \fi @@ -244,7 +245,7 @@ } \def\SE@ConvertFrom#1#2#3{% \let\SE@result\SE@Empty - \PE@sanitize\SE@encoding{#3}% + \EdefSanitize\SE@encoding{#3}% \expandafter\ifx\csname\SE@PrefixFrom\SE@encoding\endcsname\relax \StringEncodingLoad\SE@encoding \fi @@ -506,15 +507,15 @@ $ \fi & \fi } \def\StringEncodingConvert#1#2#3#4{% - \PE@sanitize\SE@from{#3}% - \PE@sanitize\SE@to{#4}% + \EdefSanitize\SE@from{#3}% + \EdefSanitize\SE@to{#4}% \expandafter\ifx\csname SE@alias@\SE@from\endcsname\relax \else - \PE@sanitize\SE@from{\csname SE@alias@\SE@from\endcsname}% + \EdefSanitize\SE@from{\csname SE@alias@\SE@from\endcsname}% \fi \expandafter\ifx\csname SE@alias@\SE@to\endcsname\relax \else - \PE@sanitize\SE@to{\csname SE@alias@\SE@to\endcsname}% + \EdefSanitize\SE@to{\csname SE@alias@\SE@to\endcsname}% \fi \ifx\SE@to\SE@utfxvi \let\SE@to\SE@utfxvibe @@ -577,12 +578,12 @@ $ \fi \StringEncodingSuccessFailure } \newif\ifSE@TestMode -\PE@sanitize\SE@utfxvi{utf16} -\PE@sanitize\SE@utfxvibe{utf16be} -\PE@sanitize\SE@utfxvile{utf16le} -\PE@sanitize\SE@utfxxxii{utf32} -\PE@sanitize\SE@utfxxxiibe{utf32be} -\PE@sanitize\SE@utfxxxiile{utf32le} +\EdefSanitize\SE@utfxvi{utf16} +\EdefSanitize\SE@utfxvibe{utf16be} +\EdefSanitize\SE@utfxvile{utf16le} +\EdefSanitize\SE@utfxxxii{utf32} +\EdefSanitize\SE@utfxxxiibe{utf32be} +\EdefSanitize\SE@utfxxxiile{utf32le} \def\SE@CheckByteOrderTwo{% \expandafter\SE@@CheckByteOrderTwo\SE@result0000\@nil } |