diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/stringenc.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/stringenc.dtx | 429 |
1 files changed, 226 insertions, 203 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/stringenc.dtx b/Master/texmf-dist/source/latex/oberdiek/stringenc.dtx index 3d949ea52bc..9547b19af23 100644 --- a/Master/texmf-dist/source/latex/oberdiek/stringenc.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/stringenc.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2007-2009 by +% Copyright (C) 2007-2010 by % Heiko Oberdiek <heiko.oberdiek at googlemail.com> % % This work may be distributed and/or modified under the @@ -116,6 +116,8 @@ % %<*ignore> \begingroup + \catcode123=1 % + \catcode125=2 % \def\x{LaTeX2e}% \expandafter\endgroup \ifcase 0\ifx\install y1\fi\expandafter @@ -127,7 +129,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: stringenc 2009/12/15 v1.7 Converts strings between encodings (HO)} +\Msg{* Package: stringenc 2010/03/01 v1.8 Converts strings between encodings (HO)} \Msg{************************************************************************} \keepsilent @@ -138,7 +140,7 @@ This is a generated file. -Copyright (C) 2007-2009 by +Copyright (C) 2007-2010 by Heiko Oberdiek <heiko.oberdiek at googlemail.com> This work may be distributed and/or modified under the @@ -228,7 +230,8 @@ and the derived files \file{stringenc-test2.tex}{\from{stringenc.dtx}{test2}}% } -\obeyspaces +\catcode32=13\relax% active space +\let =\space% \Msg{************************************************************************} \Msg{*} \Msg{* To finish the installation you have to move the following} @@ -267,7 +270,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{stringenc.drv}% - [2009/12/15 v1.7 Converts strings between encodings (HO)]% + [2010/03/01 v1.8 Converts strings between encodings (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] \usepackage{longtable} @@ -277,7 +280,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{6070} +% \CheckSum{6133} % % \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 @@ -298,7 +301,7 @@ and the derived files % \GetFileInfo{stringenc.drv} % % \title{The \xpackage{stringenc} package} -% \date{2009/12/15 v1.7} +% \date{2010/03/01 v1.8} % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}} % % \maketitle @@ -508,16 +511,28 @@ and the derived files \fi \expandafter\x\csname ver@stringenc.sty\endcsname \ProvidesPackage{stringenc}% - [2009/12/15 v1.7 Converts strings between encodings (HO)] + [2010/03/01 v1.8 Converts strings between encodings (HO)] % \end{macrocode} % % \subsection{Catcodes} % % \begin{macrocode} -\expandafter\edef\csname SE@AtEnd\endcsname{% - \catcode64 \the\catcode64\relax -} +\begingroup + \catcode123 1 % { + \catcode125 2 % } + \def\x{\endgroup + \expandafter\edef\csname SE@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#3{% \edef\SE@AtEnd{% \SE@AtEnd @@ -556,43 +571,15 @@ and the derived files \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname RequirePackage\endcsname\relax \input infwarerr.sty\relax + \input ltxcmds.sty\relax \input pdfescape.sty\relax \else \RequirePackage{infwarerr}[2007/09/09]% - \RequirePackage{pdfescape}[2007/09/09]% + \RequirePackage{ltxcmds}[2010/03/01]% + \RequirePackage{pdfescape}[2010/03/01]% \fi % \end{macrocode} % -% \begin{macro}{\SE@Empty} -% \begin{macrocode} -\def\SE@Empty{} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\SE@FirstOfOne} -% \begin{macrocode} -\long\def\SE@FirstOfOne#1{#1} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\SE@FirstOfTwo} -% \begin{macrocode} -\long\def\SE@FirstOfTwo#1#2{#1} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\SE@SecondOfTwo} -% \begin{macrocode} -\long\def\SE@SecondOfTwo#1#2{#2} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\SE@GobbleTwo} -% \begin{macrocode} -\long\def\SE@GobbleTwo#1#2{} -% \end{macrocode} -% \end{macro} -% \begin{macro}{\SE@GobbleFour} -% \begin{macrocode} -\long\def\SE@GobbleFour#1#2#3#4{} -% \end{macrocode} -% \end{macro} % \begin{macro}{\SE@GobbleEight} % \begin{macrocode} \long\def\SE@GobbleEight#1#2#3#4#5#6#7#8{} @@ -625,27 +612,57 @@ and the derived files % \end{macrocode} % \end{macro} % -% \begin{macro}{\SE@zero} +% \begin{macro}{\SE@ResultAdd} % \begin{macrocode} -\chardef\SE@zero=0 % +\def\SE@ResultAdd#1{% + \edef\SE@result{\SE@result#1}% +} % \end{macrocode} % \end{macro} -% \begin{macro}{\SE@one} +% % \begin{macrocode} -\chardef\SE@one=1 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname newif\endcsname\relax +% \end{macrocode} +% \begin{macro}{\SE@newif} +% \begin{macrocode} + \def\SE@newif#1{% + \begingroup + \escapechar=-1 % + \expandafter\endgroup + \expandafter\SE@@newif\string#1\@nil + }% % \end{macrocode} % \end{macro} -% -% \begin{macro}{\SE@ResultAdd} +% \begin{macro}{\SE@@newif} % \begin{macrocode} -\def\SE@ResultAdd#1{% - \edef\SE@result{\SE@result#1}% -} + \def\SE@@newif#1#2#3\@nil{% + \expandafter\edef\csname#3true\endcsname{% + \let + \expandafter\noexpand\csname if#3\endcsname + \expandafter\noexpand\csname iftrue\endcsname + }% + \expandafter\edef\csname#3false\endcsname{% + \let + \expandafter\noexpand\csname if#3\endcsname + \expandafter\noexpand\csname iffalse\endcsname + }% + \csname#3false\endcsname + }% +% \end{macrocode} +% \end{macro} +% \begin{macrocode} +\else +% \end{macrocode} +% \begin{macro}{\SE@newif} +% \begin{macrocode} + \expandafter\let\expandafter\SE@newif\csname newif\endcsname +\fi % \end{macrocode} % \end{macro} % % \begin{macrocode} -\newif\ifSE@invalid +\SE@newif\ifSE@invalid % \end{macrocode} % % \begin{macro}{\SE@InvalidCharacter} @@ -662,7 +679,7 @@ and the derived files % the result is stored in macro |#1|. % \begin{macrocode} \def\SE@ConvertTo#1#2#3{% - \let\SE@result\SE@Empty + \let\SE@result\ltx@empty \EdefSanitize\SE@encoding{#3}% \expandafter\ifx\csname\SE@PrefixTo\SE@encoding\endcsname\relax \StringEncodingLoad\SE@encoding @@ -733,12 +750,12 @@ and the derived files \let\SE@next\relax \else \ifcase\ifnum"#1#2#3#4<"DC00 % - \SE@zero + \ltx@zero \else \ifnum"#1#2#3#4>"DFFF % - \SE@zero + \ltx@zero \else - \SE@one + \ltx@one \fi \fi \SE@InvalidCharacter @@ -771,7 +788,7 @@ and the derived files % the result is stored in macro |#1|. % \begin{macrocode} \def\SE@ConvertFrom#1#2#3{% - \let\SE@result\SE@Empty + \let\SE@result\ltx@empty \EdefSanitize\SE@encoding{#3}% \expandafter\ifx\csname\SE@PrefixFrom\SE@encoding\endcsname\relax \StringEncodingLoad\SE@encoding @@ -910,7 +927,7 @@ and the derived files % % \begin{macro}{\ifSE@numexpr} % \begin{macrocode} -\newif\ifSE@numexpr +\SE@newif\ifSE@numexpr \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname numexpr\endcsname\relax \else @@ -933,7 +950,7 @@ and the derived files % \begin{macrocode} \def\SE@Nibble@NumToHex#1{% $ \ifcase\numexpr#1\relax -& \expandafter\ifcase\expandafter\SE@FirstOfOne\expandafter{\number#1} % +& \expandafter\ifcase\expandafter\ltx@firstofone\expandafter{\number#1} % 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or 8\or 9\or A\or B\or C\or D\or E\or F% \fi @@ -945,7 +962,7 @@ $ \ifcase\numexpr#1\relax \def\SE@Nibble@NumToBin#1{% $ \ifcase\numexpr#1\relax & \expandafter -& \ifcase\expandafter\SE@FirstOfOne\expandafter{\number#1} % +& \ifcase\expandafter\ltx@firstofone\expandafter{\number#1} % 0000\or 0001\or 0010\or @@ -970,39 +987,39 @@ $ \ifcase\numexpr#1\relax % \begin{macro}{\SE@Nibbles@BinToHex} % \begin{macrocode} \def\SE@Nibbles@BinToHex#1{% - \expandafter\SE@@Nibbles@BinToHex#1\SE@Empty\SE@Empty - \SE@Empty\SE@Empty + \expandafter\SE@@Nibbles@BinToHex#1\ltx@empty\ltx@empty + \ltx@empty\ltx@empty } \def\SE@@Nibbles@BinToHex#1#2#3#4{% - \ifx#1\SE@Empty + \ifx#1\ltx@empty \else $ \SE@Nibble@NumToHex{% $ \numexpr#4+2*(#3+2*(#2+2*#1))\relax $ }% -& \ifnum#1>\SE@zero -& \ifnum#2>\SE@zero -& \ifnum#3>\SE@zero -& \ifnum#4>\SE@zero +& \ifnum#1>\ltx@zero +& \ifnum#2>\ltx@zero +& \ifnum#3>\ltx@zero +& \ifnum#4>\ltx@zero & F% & \else & E% & \fi & \else -& \ifnum#4>\SE@zero +& \ifnum#4>\ltx@zero & D% & \else & C% & \fi & \fi & \else -& \ifnum#3>\SE@zero -& \ifnum#4>\SE@zero +& \ifnum#3>\ltx@zero +& \ifnum#4>\ltx@zero & B% & \else & A% & \fi & \else -& \ifnum#4>\SE@zero +& \ifnum#4>\ltx@zero & 9% & \else & 8% @@ -1010,29 +1027,29 @@ $ }% & \fi & \fi & \else -& \ifnum#2>\SE@zero -& \ifnum#3>\SE@zero -& \ifnum#4>\SE@zero +& \ifnum#2>\ltx@zero +& \ifnum#3>\ltx@zero +& \ifnum#4>\ltx@zero & 7% & \else & 6% & \fi & \else -& \ifnum#4>\SE@zero +& \ifnum#4>\ltx@zero & 5% & \else & 4% & \fi & \fi & \else -& \ifnum#3>\SE@zero -& \ifnum#4>\SE@zero +& \ifnum#3>\ltx@zero +& \ifnum#4>\ltx@zero & 3% & \else & 2% & \fi & \else -& \ifnum#4>\SE@zero +& \ifnum#4>\ltx@zero & 1% & \else & 0% @@ -1051,10 +1068,10 @@ $ }% \def\SE@Add#1#2#3{% $ \edef#1{\the\numexpr(#2)+(#3)\relax}% & \begingroup -& \count\SE@zero=#2\relax -& \advance\count\SE@zero by#3\relax +& \count\ltx@zero=#2\relax +& \advance\count\ltx@zero by#3\relax & \edef\x{\endgroup -& \def\noexpand#1{\the\count\SE@zero}% +& \def\noexpand#1{\the\count\ltx@zero}% & }% & \x } @@ -1190,9 +1207,9 @@ $ \fi % \begin{macrocode} \def\StringEncodingSuccessFailure{% \ifSE@invalid - \expandafter\SE@SecondOfTwo + \expandafter\ltx@secondoftwo \else - \expandafter\SE@FirstOfTwo + \expandafter\ltx@firstoftwo \fi } % \end{macrocode} @@ -1205,7 +1222,7 @@ $ \fi \SE@TestModefalse \StringEncodingSuccessFailure } -\newif\ifSE@TestMode +\SE@newif\ifSE@TestMode % \end{macrocode} % \end{macro} % \begin{macro}{\SE@utfxvi} @@ -1252,11 +1269,11 @@ $ \fi \def\SE@@CheckByteOrderTwo#1#2#3#4#5\@nil{% \ifnum"#1#2#3#4="FEFF % \let\SE@from\SE@utfxvibe - \edef\SE@result{\expandafter\SE@GobbleFour\SE@result}% + \edef\SE@result{\expandafter\ltx@gobblefour\SE@result}% \else \ifnum"#3#4#1#2="FEFF % \let\SE@from\SE@utfxvile - \edef\SE@result{\expandafter\SE@GobbleFour\SE@result}% + \edef\SE@result{\expandafter\ltx@gobblefour\SE@result}% \else \let\SE@from\SE@utfxvibe \fi @@ -1277,12 +1294,12 @@ $ \fi } \def\SE@@CheckByteOrderFour#1#2#3#4#5#6#7#8#9\@nil{% \let\SE@from\SE@utfxxxiibe - \ifnum"#1#2#3#4=\SE@zero + \ifnum"#1#2#3#4=\ltx@zero \ifnum"#5#6#7#8="FEFF % \edef\SE@result{\expandafter\SE@GobbleEight\SE@result}% \fi \else - \ifnum"#7#8#5#6=\SE@zero + \ifnum"#7#8#5#6=\ltx@zero \ifnum"#3#4#1#2="FEFF % \let\SE@from\SE@utfxxxiile \edef\SE@result{\expandafter\SE@GobbleEight\SE@result}% @@ -1297,7 +1314,7 @@ $ \fi % \begin{macrocode} \def\SE@RemoveByteOrderTwo{% \expandafter\SE@@RemoveByteOrderTwo\SE@result - \SE@Empty\SE@Empty\SE@Empty\SE@Empty\@nil + \ltx@empty\ltx@empty\ltx@empty\ltx@empty\@nil } \def\SE@@RemoveByteOrderTwo#1#2#3#4#5\@nil#6{% \ifnum"0#1#2#3#4="#6 % @@ -1312,8 +1329,8 @@ $ \fi \def\SE@a{"#1 }% \def\SE@b{"#2 }% \expandafter\SE@@RemoveByteOrderFour\SE@result - \SE@Empty\SE@Empty\SE@Empty\SE@Empty - \SE@Empty\SE@Empty\SE@Empty\SE@Empty + \ltx@empty\ltx@empty\ltx@empty\ltx@empty + \ltx@empty\ltx@empty\ltx@empty\ltx@empty \@nil } \def\SE@@RemoveByteOrderFour#1#2#3#4#5#6#7#8#9\@nil{% @@ -1466,8 +1483,8 @@ $ \fi % % \begin{macrocode} %<*utf32> -%<utf32be>\ProvidesFile{se-utf32be.def}[2009/12/15 v1.7 stringenc: UTF-32BE] -%<utf32le>\ProvidesFile{se-utf32le.def}[2009/12/15 v1.7 stringenc: UTF-32LE] +%<utf32be>\ProvidesFile{se-utf32be.def}[2010/03/01 v1.8 stringenc: UTF-32BE] +%<utf32le>\ProvidesFile{se-utf32le.def}[2010/03/01 v1.8 stringenc: UTF-32LE] % \end{macrocode} % % \begin{macrocode} @@ -1490,17 +1507,17 @@ $ \fi \edef\SE@a{\SE@Nibble@NumToBin{"#3}}% \edef\SE@c{\SE@Nibble@NumToBin{"#6}}% \edef\SE@w{% - \expandafter\SE@GobbleTwo\SE@w + \expandafter\ltx@gobbletwo\SE@w \expandafter\SE@CarTwo\SE@a\@nil }% \edef\SE@w{% \SE@Nibbles@BinToHex\SE@w }% - \SE@Add\SE@w{\expandafter"\SE@w}\SE@one + \SE@Add\SE@w{\expandafter"\SE@w}\ltx@one \edef\SE@a{% - \expandafter\SE@GobbleTwo\SE@a + \expandafter\ltx@gobbletwo\SE@a \SE@Nibble@NumToBin{"#4}% - \expandafter\SE@GobbleTwo\SE@c + \expandafter\ltx@gobbletwo\SE@c }% %<utf32be> \SE@ResultAdd{% %<utf32le> \SE@utfxxxii@le@add{% @@ -1572,19 +1589,19 @@ $ \fi % \end{macrocode} % \begin{macrocode} \gdef\SE@utfxxxii@from#1#2#3#4#5#6#7#8{% - \ifcase\ifnum"#1#2>\z@ - \SE@zero + \ifcase\ifnum"#1#2>\ltx@zero + \ltx@zero \else \ifnum"#3#4#5#6#7#8>"10FFFF % - \SE@zero + \ltx@zero \else \ifnum"#3#4#5#6#7#8<"D800 % - \SE@one + \ltx@one \else \ifnum"#3#4#5#6#7#8>"DFFF % - \SE@one + \ltx@one \else - \SE@zero + \ltx@zero \fi \fi \fi @@ -1605,7 +1622,7 @@ $ \fi \expandafter\SE@CarTwo\SE@low\@nil }% \edef\SE@low{% - 11\expandafter\SE@GobbleTwo\SE@low + 11\expandafter\ltx@gobbletwo\SE@low }% \SE@ResultAdd{% D\SE@Nibbles@BinToHex\SE@high @@ -1625,7 +1642,7 @@ $ \fi % % \begin{macrocode} %<*utf8> -\ProvidesFile{se-utf8.def}[2009/12/15 v1.7 stringenc: UTF-8] +\ProvidesFile{se-utf8.def}[2010/03/01 v1.8 stringenc: UTF-8] % \end{macrocode} % % \noindent @@ -1646,7 +1663,7 @@ $ \fi \SE@Nibble@NumToBin{"#2}% \expandafter\SE@CarTwo\SE@temp\@nil 10% - \expandafter\SE@GobbleTwo\SE@temp + \expandafter\ltx@gobbletwo\SE@temp }% \SE@ResultAdd{% \SE@Nibbles@BinToHex\SE@temp @@ -1661,7 +1678,7 @@ $ \fi \SE@Nibble@NumToBin{"#2}% \expandafter\SE@CarTwo\SE@temp\@nil 10% - \expandafter\SE@GobbleTwo\SE@temp + \expandafter\ltx@gobbletwo\SE@temp }% \SE@ResultAdd{% E#1% @@ -1687,13 +1704,13 @@ $ \fi \edef\SE@c{\SE@Nibble@NumToBin{"#6}}% \edef\SE@d{\SE@Nibble@NumToBin{"#7}}% \edef\SE@w{% - \expandafter\SE@GobbleTwo\SE@w + \expandafter\ltx@gobbletwo\SE@w \expandafter\SE@CarTwo\SE@a\@nil }% \edef\SE@w{% \SE@Nibbles@BinToHex\SE@w }% - \SE@Add\SE@w{\expandafter"\SE@w}\SE@one + \SE@Add\SE@w{\expandafter"\SE@w}\ltx@one \ifnum\SE@w>15 % \def\SE@char{1}% \SE@Add\SE@w\SE@w{-16}% @@ -1705,15 +1722,15 @@ $ \fi 0\SE@char \expandafter\SE@CarTwo\SE@w\@nil 10% - \expandafter\SE@GobbleTwo\SE@w - \expandafter\SE@GobbleTwo\SE@a + \expandafter\ltx@gobbletwo\SE@w + \expandafter\ltx@gobbletwo\SE@a \expandafter\SE@CarTwo\SE@b\@nil 10% - \expandafter\SE@GobbleTwo\SE@b - \expandafter\SE@GobbleTwo\SE@c + \expandafter\ltx@gobbletwo\SE@b + \expandafter\ltx@gobbletwo\SE@c \expandafter\SE@CarTwo\SE@d\@nil 10% - \expandafter\SE@GobbleTwo\SE@d + \expandafter\ltx@gobbletwo\SE@d }% \SE@ResultAdd{% F% @@ -1725,17 +1742,17 @@ $ \fi % % \begin{macrocode} \expandafter\gdef\csname\SE@PrefixFrom utf8\endcsname#1{% - \let\SE@temp\SE@Empty + \let\SE@temp\ltx@empty \let\SE@next\SE@utfviii@filter \expandafter\SE@utfviii@filter#1\relax\relax \ifcase\ifSE@TestMode \ifSE@invalid - \SE@one + \ltx@one \else - \SE@zero + \ltx@zero \fi \else - \SE@zero + \ltx@zero \fi \expandafter\SE@utfviii@from\SE@temp\relax\relax\relax\relax \relax\relax\relax\relax @@ -1749,15 +1766,15 @@ $ \fi \let\SE@next\relax \else \ifcase\ifnum"#1#2>"F4 % - \SE@zero + \ltx@zero \else \ifnum"#1#2="C0 % - \SE@zero + \ltx@zero \else \ifnum"#1#2="C1 % - \SE@zero + \ltx@zero \else - \SE@one + \ltx@one \fi \fi \fi @@ -1807,7 +1824,7 @@ $ \fi \edef\SE@temp{% 0\ifodd"#1 1\else 0\fi \SE@Nibble@NumToBin{"#2}% - \expandafter\SE@GobbleTwo\SE@temp + \expandafter\ltx@gobbletwo\SE@temp }% \SE@ResultAdd{% 0% @@ -1832,19 +1849,19 @@ $ \fi % zzzz yyyy yyxx xxxx \ifcase\ifnum"#2="D % \ifnum"#3#4>"9F % - \SE@zero + \ltx@zero \else - \SE@one + \ltx@one \fi \else - \ifnum"#2=\SE@zero + \ifnum"#2=\ltx@zero \ifnum"#3<"A % - \SE@zero + \ltx@zero \else - \SE@one + \ltx@one \fi \else - \SE@one + \ltx@one \fi \fi \SE@InvalidCharacter @@ -1857,9 +1874,9 @@ $ \fi \edef\SE@a{\SE@Nibble@NumToBin{"#3}}% \edef\SE@b{\SE@Nibble@NumToBin{"#5}}% \edef\SE@temp{% - \expandafter\SE@GobbleTwo\SE@a + \expandafter\ltx@gobbletwo\SE@a \SE@Nibble@NumToBin{"#4}% - \expandafter\SE@GobbleTwo\SE@b + \expandafter\ltx@gobbletwo\SE@b }% \SE@ResultAdd{% #2% @@ -1888,7 +1905,7 @@ $ \fi \edef\SE@w{% 00% \SE@Nibble@NumToBin{"#2}% - \expandafter\SE@GobbleTwo\SE@w + \expandafter\ltx@gobbletwo\SE@w }% \edef\SE@w{\SE@Nibbles@BinToHex\SE@w}% \SE@Add\SE@w{\expandafter"\SE@w}{-1}% @@ -1898,7 +1915,7 @@ $ \fi \let\SE@next\SE@SkipRemaining \fi \else - \ifnum\SE@w<\SE@zero + \ifnum\SE@w<\ltx@zero \SE@InvalidCharacter \ifSE@TestMode \let\SE@next\SE@SkipRemaining @@ -1910,11 +1927,11 @@ $ \fi 10% \SE@Nibble@NumToBin\SE@w \SE@Nibble@NumToBin{"#4}% - \expandafter\SE@GobbleTwo\SE@a + \expandafter\ltx@gobbletwo\SE@a 1101% 11% \SE@Nibble@NumToBin{"#6}% - \expandafter\SE@GobbleTwo\SE@b + \expandafter\ltx@gobbletwo\SE@b }% \SE@ResultAdd{% D% @@ -1946,12 +1963,12 @@ $ \fi % \begin{macrocode} \gdef\SE@utfviii@CheckCont#1{% \ifnum"#1<8 % - \SE@zero + \ltx@zero \else \ifnum"#1<12 % - \SE@one + \ltx@one \else - \SE@zero + \ltx@zero \fi \fi } @@ -1965,7 +1982,7 @@ $ \fi % % \begin{macrocode} %<*utf16le> -\ProvidesFile{se-utf16le.def}[2009/12/15 v1.7 stringenc: UTF-16LE] +\ProvidesFile{se-utf16le.def}[2010/03/01 v1.8 stringenc: UTF-16LE] % \end{macrocode} % % \begin{macrocode} @@ -2005,7 +2022,7 @@ $ \fi % % \begin{macrocode} %<*pdfdoc> -\ProvidesFile{se-pdfdoc.def}[2009/12/15 v1.7 stringenc: PDFDocEncoding] +\ProvidesFile{se-pdfdoc.def}[2010/03/01 v1.8 stringenc: PDFDocEncoding] % \end{macrocode} % % Pass ranges 32..126 and 160..255 through and use @@ -2014,20 +2031,20 @@ $ \fi \expandafter\gdef\csname\SE@PrefixTo pdfdoc\endcsname#1#2#3#4{% \ifcase\ifnum"#1#2#3#4<256 % \ifnum"#1#2#3#4>160 % - \SE@zero + \ltx@zero \else \ifnum"#1#2#3#4<127 % \ifnum"#1#2#3#4>31 % - \SE@zero + \ltx@zero \else - \SE@one + \ltx@one \fi \else - \SE@one + \ltx@one \fi \fi \else - \SE@one + \ltx@one \fi \SE@ResultAdd{#3#4}% \else @@ -2055,17 +2072,17 @@ $ \fi \ifnum"#1#2="AD % 2 % \else - \SE@zero + \ltx@zero \fi \else \ifnum"#1#2<127 % \ifnum"#1#2>31 % - \SE@zero + \ltx@zero \else - \SE@one + \ltx@one \fi \else - \SE@one + \ltx@one \fi \fi \SE@ResultAdd{00#1#2}% @@ -2136,24 +2153,24 @@ $ \fi % % \begin{macrocode} %<*iso-8859-1> -\ProvidesFile{se-iso-8859-1.def}[2009/12/15 v1.7 stringenc: ISO-8859-1] +\ProvidesFile{se-iso-8859-1.def}[2010/03/01 v1.8 stringenc: ISO-8859-1] % \end{macrocode} % % Excluded area: 0x80..0x9F % \begin{macrocode} \expandafter\gdef\csname\SE@PrefixTo iso-8859-1\endcsname#1#2#3#4{% - \ifcase\ifnum"#1#2=\SE@zero + \ifcase\ifnum"#1#2=\ltx@zero \ifnum"#3#4<"80 % - \SE@one + \ltx@one \else \ifnum"#3#4>"9F % - \SE@one + \ltx@one \else - \SE@zero + \ltx@zero \fi \fi \else - \SE@zero + \ltx@zero \fi \SE@InvalidCharacter \else @@ -2178,12 +2195,12 @@ $ \fi \let\SE@next\relax \else \ifcase\ifnum"#1#2<"80 % - \SE@one + \ltx@one \else \ifnum"#1#2>"9F % - \SE@one + \ltx@one \else - \SE@zero + \ltx@zero \fi \fi \SE@InvalidCharacter @@ -2206,23 +2223,23 @@ $ \fi % % \begin{macrocode} %<*cp1252> -\ProvidesFile{se-cp1252.def}[2009/12/15 v1.7 stringenc: cp1252] +\ProvidesFile{se-cp1252.def}[2010/03/01 v1.8 stringenc: cp1252] % \end{macrocode} % % \begin{macrocode} \expandafter\gdef\csname\SE@PrefixTo cp1252\endcsname#1#2#3#4{% - \ifcase\ifnum"#1#2=\SE@zero + \ifcase\ifnum"#1#2=\ltx@zero \ifnum"#3#4<"80 % - \SE@one + \ltx@one \else \ifnum"#3#4>"9F % - \SE@one + \ltx@one \else - \SE@zero + \ltx@zero \fi \fi \else - \SE@zero + \ltx@zero \fi \SE@MapConvertTo{cp1252}{#1#2#3#4}% \else @@ -2247,12 +2264,12 @@ $ \fi \let\SE@next\relax \else \ifcase\ifnum"#1#2<"80 % - \SE@one + \ltx@one \else \ifnum"#1#2>"9F % - \SE@one + \ltx@one \else - \SE@zero + \ltx@zero \fi \fi \SE@MapConvertFrom{cp1252}{#1#2}% @@ -2307,7 +2324,7 @@ $ \fi % % \begin{macrocode} %<*ascii> -\ProvidesFile{se-ascii.def}[2009/12/15 v1.7 stringenc: US-ASCII] +\ProvidesFile{se-ascii.def}[2010/03/01 v1.8 stringenc: US-ASCII] % \end{macrocode} % % \begin{macrocode} @@ -2356,12 +2373,12 @@ $ \fi % \begin{macrocode} %<*ascii-print> \ProvidesFile{se-ascii-print.def}% - [2009/12/15 v1.7 stringenc: Printable ASCII characters]% + [2010/03/01 v1.8 stringenc: Printable ASCII characters]% % \end{macrocode} % % \begin{macrocode} \expandafter\gdef\csname\SE@PrefixTo ascii-print\endcsname#1#2#3#4{% - \ifnum"#1#2=\z@ % + \ifnum"#1#2=\ltx@zero \ifnum"#3#4<127 % \ifnum"#3#4>31 % \SE@ResultAdd{#3#4}% @@ -2419,7 +2436,7 @@ $ \fi % % \begin{macrocode} %<*clean7bit> -\ProvidesFile{se-clean7bit.def}[2009/12/15 v1.7 stringenc: Clean7Bit] +\ProvidesFile{se-clean7bit.def}[2010/03/01 v1.8 stringenc: Clean7Bit] % \end{macrocode} % % \begin{macrocode} @@ -2505,123 +2522,123 @@ $ \fi % % \begin{macrocode} %<*iso-8859-2> -\ProvidesFile{se-iso-8859-2.def}[2009/12/15 v1.7 stringenc: ISO-8859-2] +\ProvidesFile{se-iso-8859-2.def}[2010/03/01 v1.8 stringenc: ISO-8859-2] \def\SE@this{iso-8859-2} %</iso-8859-2> %<*iso-8859-3> -\ProvidesFile{se-iso-8859-3.def}[2009/12/15 v1.7 stringenc: ISO-8859-3] +\ProvidesFile{se-iso-8859-3.def}[2010/03/01 v1.8 stringenc: ISO-8859-3] \def\SE@this{iso-8859-3} %</iso-8859-3> %<*iso-8859-4> -\ProvidesFile{se-iso-8859-4.def}[2009/12/15 v1.7 stringenc: ISO-8859-4] +\ProvidesFile{se-iso-8859-4.def}[2010/03/01 v1.8 stringenc: ISO-8859-4] \def\SE@this{iso-8859-4} %</iso-8859-4> %<*iso-8859-5> -\ProvidesFile{se-iso-8859-5.def}[2009/12/15 v1.7 stringenc: ISO-8859-5] +\ProvidesFile{se-iso-8859-5.def}[2010/03/01 v1.8 stringenc: ISO-8859-5] \def\SE@this{iso-8859-5} %</iso-8859-5> %<*iso-8859-6> -\ProvidesFile{se-iso-8859-6.def}[2009/12/15 v1.7 stringenc: ISO-8859-6] +\ProvidesFile{se-iso-8859-6.def}[2010/03/01 v1.8 stringenc: ISO-8859-6] \def\SE@this{iso-8859-6} %</iso-8859-6> %<*iso-8859-7> -\ProvidesFile{se-iso-8859-7.def}[2009/12/15 v1.7 stringenc: ISO-8859-7] +\ProvidesFile{se-iso-8859-7.def}[2010/03/01 v1.8 stringenc: ISO-8859-7] \def\SE@this{iso-8859-7} %</iso-8859-7> %<*iso-8859-8> -\ProvidesFile{se-iso-8859-8.def}[2009/12/15 v1.7 stringenc: ISO-8859-8] +\ProvidesFile{se-iso-8859-8.def}[2010/03/01 v1.8 stringenc: ISO-8859-8] \def\SE@this{iso-8859-8} %</iso-8859-8> %<*iso-8859-9> -\ProvidesFile{se-iso-8859-9.def}[2009/12/15 v1.7 stringenc: ISO-8859-9] +\ProvidesFile{se-iso-8859-9.def}[2010/03/01 v1.8 stringenc: ISO-8859-9] \def\SE@this{iso-8859-9} %</iso-8859-9> %<*iso-8859-10> -\ProvidesFile{se-iso-8859-10.def}[2009/12/15 v1.7 stringenc: ISO-8859-10] +\ProvidesFile{se-iso-8859-10.def}[2010/03/01 v1.8 stringenc: ISO-8859-10] \def\SE@this{iso-8859-10} %</iso-8859-10> %<*iso-8859-11> -\ProvidesFile{se-iso-8859-11.def}[2009/12/15 v1.7 stringenc: ISO-8859-11] +\ProvidesFile{se-iso-8859-11.def}[2010/03/01 v1.8 stringenc: ISO-8859-11] \def\SE@this{iso-8859-11} %</iso-8859-11> %<*iso-8859-13> -\ProvidesFile{se-iso-8859-13.def}[2009/12/15 v1.7 stringenc: ISO-8859-13] +\ProvidesFile{se-iso-8859-13.def}[2010/03/01 v1.8 stringenc: ISO-8859-13] \def\SE@this{iso-8859-13} %</iso-8859-13> %<*iso-8859-14> -\ProvidesFile{se-iso-8859-14.def}[2009/12/15 v1.7 stringenc: ISO-8859-14] +\ProvidesFile{se-iso-8859-14.def}[2010/03/01 v1.8 stringenc: ISO-8859-14] \def\SE@this{iso-8859-14} %</iso-8859-14> %<*iso-8859-15> -\ProvidesFile{se-iso-8859-15.def}[2009/12/15 v1.7 stringenc: ISO-8859-15] +\ProvidesFile{se-iso-8859-15.def}[2010/03/01 v1.8 stringenc: ISO-8859-15] \def\SE@this{iso-8859-15} %</iso-8859-15> %<*iso-8859-16> -\ProvidesFile{se-iso-8859-16.def}[2009/12/15 v1.7 stringenc: ISO-8859-16] +\ProvidesFile{se-iso-8859-16.def}[2010/03/01 v1.8 stringenc: ISO-8859-16] \def\SE@this{iso-8859-16} %</iso-8859-16> %<*koi8-r> -\ProvidesFile{se-koi8-r.def}[2009/12/15 v1.7 stringenc: KOI8-R] +\ProvidesFile{se-koi8-r.def}[2010/03/01 v1.8 stringenc: KOI8-R] \def\SE@this{koi8-r} %</koi8-r> %<*nextstep> -\ProvidesFile{se-nextstep.def}[2009/12/15 v1.7 stringenc: NextStep] +\ProvidesFile{se-nextstep.def}[2010/03/01 v1.8 stringenc: NextStep] \def\SE@this{nextstep} %</nextstep> %<*mac-centeuro> -\ProvidesFile{se-mac-centeuro.def}[2009/12/15 v1.7 stringenc: Mac OS Central European] +\ProvidesFile{se-mac-centeuro.def}[2010/03/01 v1.8 stringenc: Mac OS Central European] \def\SE@this{mac-centeuro} %</mac-centeuro> %<*mac-cyrillic> -\ProvidesFile{se-mac-cyrillic.def}[2009/12/15 v1.7 stringenc: Mac OS Cyrillic] +\ProvidesFile{se-mac-cyrillic.def}[2010/03/01 v1.8 stringenc: Mac OS Cyrillic] \def\SE@this{mac-cyrillic} %</mac-cyrillic> %<*mac-roman> -\ProvidesFile{se-mac-roman.def}[2009/12/15 v1.7 stringenc: Mac OS Roman] +\ProvidesFile{se-mac-roman.def}[2010/03/01 v1.8 stringenc: Mac OS Roman] \def\SE@this{mac-roman} %</mac-roman> %<*dec-mcs> -\ProvidesFile{se-dec-mcs.def}[2009/12/15 v1.7 stringenc: DEC-MCS] +\ProvidesFile{se-dec-mcs.def}[2010/03/01 v1.8 stringenc: DEC-MCS] \def\SE@this{dec-mcs} %</dec-mcs> %<*cp437> -\ProvidesFile{se-cp437.def}[2009/12/15 v1.7 stringenc: cp437] +\ProvidesFile{se-cp437.def}[2010/03/01 v1.8 stringenc: cp437] \def\SE@this{cp437} %</cp437> %<*cp850> -\ProvidesFile{se-cp850.def}[2009/12/15 v1.7 stringenc: cp850] +\ProvidesFile{se-cp850.def}[2010/03/01 v1.8 stringenc: cp850] \def\SE@this{cp850} %</cp850> %<*cp852> -\ProvidesFile{se-cp852.def}[2009/12/15 v1.7 stringenc: cp852] +\ProvidesFile{se-cp852.def}[2010/03/01 v1.8 stringenc: cp852] \def\SE@this{cp852} %</cp852> %<*cp855> -\ProvidesFile{se-cp855.def}[2009/12/15 v1.7 stringenc: cp855] +\ProvidesFile{se-cp855.def}[2010/03/01 v1.8 stringenc: cp855] \def\SE@this{cp855} %</cp855> %<*cp858> -\ProvidesFile{se-cp858.def}[2009/12/15 v1.7 stringenc: cp858] +\ProvidesFile{se-cp858.def}[2010/03/01 v1.8 stringenc: cp858] \def\SE@this{cp858} %</cp858> %<*cp865> -\ProvidesFile{se-cp865.def}[2009/12/15 v1.7 stringenc: cp865] +\ProvidesFile{se-cp865.def}[2010/03/01 v1.8 stringenc: cp865] \def\SE@this{cp865} %</cp865> %<*cp866> -\ProvidesFile{se-cp866.def}[2009/12/15 v1.7 stringenc: cp866] +\ProvidesFile{se-cp866.def}[2010/03/01 v1.8 stringenc: cp866] \def\SE@this{cp866} %</cp866> %<*cp1250> -\ProvidesFile{se-cp1250.def}[2009/12/15 v1.7 stringenc: cp1250] +\ProvidesFile{se-cp1250.def}[2010/03/01 v1.8 stringenc: cp1250] \def\SE@this{cp1250} %</cp1250> %<*cp1251> -\ProvidesFile{se-cp1251.def}[2009/12/15 v1.7 stringenc: cp1251] +\ProvidesFile{se-cp1251.def}[2010/03/01 v1.8 stringenc: cp1251] \def\SE@this{cp1251} %</cp1251> %<*cp1257> -\ProvidesFile{se-cp1257.def}[2009/12/15 v1.7 stringenc: cp1257] +\ProvidesFile{se-cp1257.def}[2010/03/01 v1.8 stringenc: cp1257] \def\SE@this{cp1257} %</cp1257> % \end{macrocode} @@ -6109,7 +6126,7 @@ $ \fi \catcode`\%=14 % \catcode`\ =10 % \catcode13=5 % - \usepackage{stringenc}[2009/12/15]% + \usepackage{stringenc}[2010/03/01]% \RestoreCatcodes } \Test @@ -6160,7 +6177,7 @@ $ \fi \let\SavedNumexpr\numexpr \let\numexpr\relax \fi -\usepackage{stringenc}[2009/12/15] +\usepackage{stringenc}[2010/03/01] \ifx\plainmode Y \let\numexpr\SavedNumexpr \fi @@ -6786,6 +6803,12 @@ $ \fi % \item % Encoding \xoption{ascii-print} added. % \end{Version} +% \begin{Version}{2010/03/01 v1.8} +% \item +% Compatibility with \iniTeX. +% \item +% Use of package \xpackage{ltxcmds}. +% \end{Version} % \end{History} % % \PrintIndex |