From 892c21b6bddf968f85a4de0de3d289ff9f27da5f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 4 Dec 2019 22:54:28 +0000
Subject: oberdiek trimmed more; move some of the new packages among
 collections per usage

git-svn-id: svn://tug.org/texlive/trunk@53027 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/source/latex/oberdiek/catchfile.dtx | 326 +--------------------
 1 file changed, 1 insertion(+), 325 deletions(-)

(limited to 'Master/texmf-dist/source/latex/oberdiek/catchfile.dtx')

diff --git a/Master/texmf-dist/source/latex/oberdiek/catchfile.dtx b/Master/texmf-dist/source/latex/oberdiek/catchfile.dtx
index 2f40cdd3881..439a7871e7b 100644
--- a/Master/texmf-dist/source/latex/oberdiek/catchfile.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/catchfile.dtx
@@ -67,9 +67,6 @@
 % Installation:
 %    TDS:tex/generic/oberdiek/catchfile.sty
 %    TDS:doc/latex/oberdiek/catchfile.pdf
-%    TDS:doc/latex/oberdiek/test/catchfile-test1.tex
-%    TDS:doc/latex/oberdiek/test/catchfile-test2.tex
-%    TDS:doc/latex/oberdiek/test/catchfile-test3.tex
 %    TDS:source/latex/oberdiek/catchfile.dtx
 %
 %<*ignore>
@@ -143,10 +140,6 @@ and the derived files
 %  \file{catchfile-test1.tex}{\from{catchfile.dtx}{test1}}%
 %  \file{catchfile-test2.tex}{\from{catchfile.dtx}{test2}}%
 %  \file{catchfile-test3.tex}{\from{catchfile.dtx}{test3}}%
-  \nopreamble
-  \nopostamble
-%  \usedir{source/latex/oberdiek/catalogue}%
-%  \file{catchfile.xml}{\from{catchfile.dtx}{catalogue}}%
 }
 
 \catcode32=13\relax% active space
@@ -183,21 +176,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{catchfile.drv}
 %
@@ -591,306 +569,7 @@ and the derived files
 \CatchFile@AtEnd%
 %</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 catchfile.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}
-%
-% \subsection{\LaTeX}
-%
-%    \begin{macrocode}
-%<*test2>
-\NeedsTeXFormat{LaTeX2e}
-\nofiles
-\listfiles
-\tracingnesting=2 %
-\documentclass{minimal}
-\usepackage{catchfile}[2016/05/16]
-\makeatletter
-\def\mysetup{%
-  \let\do\@makeother
-  \dospecials
-}
-\def\CheckContents{%
-  \begingroup
-    \expandafter\ifx\csname contents\endcsname\relax
-      \PackageError{TEST}{\string\contents\space is not defined}\@ehc
-    \fi
-  \endgroup
-}
-\def\StartDisableUnexpanded{%
-  \begingroup
-    \let\etex@unexpanded\@undefined
-}
-\def\StopDisableUnexpanded{%
-  \endgroup
-}
-\def\CheckCleanup{%
-  \begingroup
-    \edef\x{\the\toks0}%
-    \def\y{ABC}%
-    \ifx\x\y
-    \else
-      \PackageError{TEST}{\string\toks0 has changed}\@ehc
-    \fi
-    \ifx\CatchFile@gtemp\@undefined
-    \else
-      \PackageError{TEST}{Left over \string\CatchFile@gtemp}\@ehc
-    \fi
-  \endgroup
-}
-\def\Check{%
-  \CheckContents
-  \CheckCleanup
-}
-\makeatother
-\begin{document}
-\toks0{ABC}
-
-\CatchFileDef\contents{catchfile.sty}\mysetup
-\typeout{\meaning\contents}
-\Check
-\typeout{***********************************************************}%
-\CatchFileDef\contents{catchfile.sty}{}
-\typeout{\meaning\contents}
-\Check
-\typeout{***********************************************************}%
-
-\StartDisableUnexpanded
-\CatchFileDef\contents{catchfile.sty}\mysetup
-\typeout{\meaning\contents}
-\Check
-\typeout{***********************************************************}%
-\CatchFileDef\contents{catchfile.sty}{}
-\typeout{\meaning\contents}
-\Check
-\typeout{***********************************************************}%
-\StopDisableUnexpanded
-
-\CatchFileEdef\contents{catchfile.sty}{%
-  \mysetup
-  \def\par{^^J}%
-  \obeylines
-}
-\typeout{\contents}
-\Check
-\typeout{***********************************************************}%
-\CatchFileEdef\contents{catchfile.sty}{%
-  \catcode`\\=12 %
-  \catcode`\#=12 %
-  \def\par{^^J}%
-  \obeylines
-}
-\typeout{\contents}
-\Check
-\typeout{***********************************************************}%
-\end{document}
-%</test2>
-%    \end{macrocode}
-%
-% \subsection{\plainTeX}
-%
-%    \begin{macrocode}
-%<*test3>
-\def\msg#{\immediate\write16}
-\newlinechar=10 %
-\tracingnesting=2 %
-\input catchfile.sty\relax
-
-\def\mysetup{%
-  \def\do##1{%
-    \catcode`##1=12\relax
-  }%
-  \dospecials
-}
-\def\CheckContents{%
-  \begingroup
-    \expandafter\ifx\csname contents\endcsname\relax
-      \def\space{ }%
-      \errmessage{\string\contents\space is not defined.}%
-    \fi
-  \endgroup
-}
-\catcode`\@=11 %
-\def\CheckCleanup{%
-  \begingroup
-    \edef\x{\the\toks0}%
-    \def\y{ABC}%
-    \ifx\x\y
-    \else
-      \errmessage{\string\toks0 has changed}%
-    \fi
-    \ifx\CatchFile@gtemp\@undefined
-    \else
-      \errmessage{Left over \string\CatchFile@gtemp}%
-    \fi
-  \endgroup
-}
-\def\Check{%
-  \CheckContents
-  \CheckCleanup
-}
-\def\StartDisableUnexpanded{%
-  \begingroup
-    \let\etex@unexpanded\@undefined
-}
-\def\StopDisableUnexpanded{%
-  \endgroup
-}
-\catcode`\@=12 %
-
-\toks0{ABC}
-
-\CatchFileDef\contents{catchfile.sty}\mysetup
-\msg{\meaning\contents}
-\Check
-\msg{***********************************************************}%
-\CatchFileDef\contents{catchfile.sty}{}
-\msg{\meaning\contents}
-\Check
-\msg{***********************************************************}%
-
-\StartDisableUnexpanded
-\CatchFileDef\contents{catchfile.sty}\mysetup
-\msg{\meaning\contents}
-\Check
-\msg{***********************************************************}%
-\CatchFileDef\contents{catchfile.sty}{}
-\msg{\meaning\contents}
-\Check
-\msg{***********************************************************}%
-\StopDisableUnexpanded
-
-\CatchFileEdef\contents{catchfile.sty}{%
-  \mysetup
-  \def\par{^^J}%
-  \obeylines
-}
-\msg{\contents}
-\Check
-\msg{***********************************************************}%
-\CatchFileEdef\contents{catchfile.sty}{%
-  \catcode`\\=12 %
-  \catcode`\#=12 %
-  \def\par{^^J}%
-  \obeylines
-}
-\msg{\contents}
-\Check
-\msg{***********************************************************}%
-
-\csname @@end\endcsname
-\end
-%</test3>
-%    \end{macrocode}
-%
-% \section{Installation}
+%% \section{Installation}
 %
 % \subsection{Download}
 %
@@ -939,9 +618,6 @@ and the derived files
 % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
 %   catchfile.sty & tex/generic/oberdiek/catchfile.sty\\
 %   catchfile.pdf & doc/latex/oberdiek/catchfile.pdf\\
-%   test/catchfile-test1.tex & doc/latex/oberdiek/test/catchfile-test1.tex\\
-%   test/catchfile-test2.tex & doc/latex/oberdiek/test/catchfile-test2.tex\\
-%   test/catchfile-test3.tex & doc/latex/oberdiek/test/catchfile-test3.tex\\
 %   catchfile.dtx & source/latex/oberdiek/catchfile.dtx\\
 % \end{tabular}^^A
 % }^^A
-- 
cgit v1.2.3

