summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/spec-mis.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-11-18 01:37:52 +0000
committerKarl Berry <karl@freefriends.org>2006-11-18 01:37:52 +0000
commit5c91b9f8a88e06f057a6a08b0a755a224d08e019 (patch)
tree57cfafb6bd6c146dcdfc911dbef8db622c6476bd /Master/texmf-dist/tex/context/base/spec-mis.tex
parent983736c2ab572e9a860c74f0f781b3decd282f13 (diff)
context 17nov06 update
git-svn-id: svn://tug.org/texlive/trunk@2449 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/spec-mis.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/spec-mis.tex65
1 files changed, 19 insertions, 46 deletions
diff --git a/Master/texmf-dist/tex/context/base/spec-mis.tex b/Master/texmf-dist/tex/context/base/spec-mis.tex
index 6bd7c699443..06afb65c2e4 100644
--- a/Master/texmf-dist/tex/context/base/spec-mis.tex
+++ b/Master/texmf-dist/tex/context/base/spec-mis.tex
@@ -72,64 +72,37 @@
\newif\ifPDFstrokecolor \PDFstrokecolortrue
%D \macros
-%D {dodoinsertfile,dofileinsertion,
-%D definefileinsertion,doiffileinsertionsupported}
+%D {dofileinsertion,definefileinsertion,doiffileinsertionsupported}
%D
%D File insertion depend on the driver or \TEX\ variant used.
%D All driver modules use the same scheme for file insertion,
-%D and therefore have the next macro in common:
-
-% \def\dododoinsertfile[#1][#2,#3][#4,#5]% \next kan weg
-% {\def\fileinsertionclass{do#1insert}%
-% \doifdefinedelse{\fileinsertionclass#3}
-% {\def\next{\getvalue{\fileinsertionclass#3}}}
-% {\doifdefinedelse{\fileinsertionclass#2}
-% {\def\next{\getvalue{\fileinsertionclass#2}}}
-% {\def\next{\gobbleninearguments}}}%
-% \next{#4}{#5}}
-%
-% more modern
-%
-% \def\dododoinsertfile[#1][#2,#3][#4,#5]%
-% {\def\fileinsertionclass{do#1insert}%
-% \doifdefinedelse{\fileinsertionclass#3}
-% {\getvalue{\fileinsertionclass#3}}
-% {\doifdefinedelse{\fileinsertionclass#2}
-% {\getvalue{\fileinsertionclass#2}}
-% {\gobbleninearguments}}%
-% {#4}{#5}}
-%
-% more efficient
-%
-% \def\dododoinsertfile[#1][#2,#3][#4,#5]%
-% {\def\fileinsertionclass{do#1insert}%
-% \executeifdefined{\fileinsertionclass#3}
-% {\executeifdefined{\fileinsertionclass#2}\gobbleninearguments}%
-% {#4}{#5}}
-%
-% cleaner
-
-\def\dododoinsertfile[#1][#2,#3][#4,#5]%
- {\executeifdefined{do#1insert#3}{\executeifdefined{do#1insert#2}\gobbleninearguments}{#4}{#5}}
-
-\def\dodoinsertfile#1#2#3%
- {\dododoinsertfile[#1][#2][#3]}
-
-\def\definefileinsertion#1#2%
+%D and therefore have the next macro in common (stupified
+%D per august 2006):
+
+\let\supportedfileinsertions\empty
+\let\supportedfilecheckers \empty
+
+\def\definefileinsertion#1#2#3%
{\addtocommalist{#2}\supportedfileinsertions
- \setvalue{do#1insert#2}}
+ \setvalue{do#1insert#2}{#3}}
-\def\dofileinsertion#1#2%
- {\getvalue{do#1insert#2}}
+\def\definefilechecker#1#2#3%
+ {\addtocommalist{#2}\supportedfilecheckers
+ \setvalue{do#1check#2}{#3}}
+
+\def\dofileinsertion#1#2{\executeifdefined{do#1insert#2}\donothing}
+\def\dofilechecker #1#2{\executeifdefined{do#1check#2} \donothing}
\newevery \everyresetspecials \relax
\appendtoks \let\supportedfileinsertions\empty \to \everyresetspecials
+\appendtoks \let\supportedfilecheckers \empty \to \everyresetspecials
-\let\supportedfileinsertions\empty
+% \def\doiffileinsertionsupportedelse#1%
+% {\expanded{\doifinstringelse{#1}{\c!tex,\c!tmp,\supportedfileinsertions}}}
\def\doiffileinsertionsupportedelse#1%
- {\ExpandBothAfter\doifinstringelse{#1}{\c!tex,\c!tmp,\supportedfileinsertions}}
+ {\expanded{\doifinstringelse{\truegraphictype{#1}}{\c!tex,\c!tmp,\supportedfileinsertions}}}
%D This macro is called with 10 arguments, where the first
%D one specifies the driver, like \type{yy} or \type{tr}. The