diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/back-ini.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/back-ini.mkiv | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/context/base/back-ini.mkiv b/Master/texmf-dist/tex/context/base/back-ini.mkiv index a3cf2ca54c4..8ece8f6e13b 100644 --- a/Master/texmf-dist/tex/context/base/back-ini.mkiv +++ b/Master/texmf-dist/tex/context/base/back-ini.mkiv @@ -5,7 +5,7 @@ %D subtitle=Initialization, %D author=Hans Hagen, %D date=\currentdate, -%D copyright=\PRAGMA] +%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for @@ -50,12 +50,15 @@ %D Not everything here makes sense and the content of this file will %D definitely change. -\let \dostartrotation \gobbleoneargument -\let \dostoprotation \donothing -\let \dostartscaling \gobbletwoarguments -\let \dostopscaling \donothing -\let \dostartmirroring \donothing -\let \dostopmirroring \donothing +\newcount\backendtransformlevel + +\let \dostartrotation \gobbleoneargument +\let \dostoprotation \donothing +\let \dostartscaling \gobbletwoarguments +\let \dostopscaling \donothing +\let \dostartmirroring \donothing +\let \dostopmirroring \donothing +\let \dotransformnextbox\gobblesixarguments % and pass last box %D \macros %D {doovalbox} @@ -135,28 +138,19 @@ %D know what the target file will be. In other driver %D modules we wil set \type {\jobsuffix} to \type {pdf}. -\def\jobsuffix{pdf} - -\ifdefined\resetsystemmode \else % can't happen - \let\setsystemmode \gobbleoneargument - \let\resetsystemmode\gobbleoneargument -\fi +%D Backend configuration: -\def\setjobsuffix#1% - {\resetsystemmode\jobsuffix - \edef\jobsuffix{#1}% - \setsystemmode\jobsuffix} +\installcorenamespace{backend} -\unexpanded\def\setupoutput[#1]{} % will be command line switch +\installsetuponlycommandhandler \??backend {backend} -%D New: +\let\jobsuffix\empty -\newtoks\everysetupbackend - -\def\backendparameter#1{\csname\ifcsname\??bc#1\endcsname\??bc#1\else\s!empty\fi\endcsname} +\unexpanded\def\back_job_set_suffix#1% % checking could happen in mode + {\ifx\jobsuffix\empty\else\resetsystemmode\jobsuffix\fi + \edef\jobsuffix{#1}% + \ifx\jobsuffix\empty\else\setsystemmode \jobsuffix\fi} -\def\setupbackend[#1]% - {\getparameters[\??bc][#1]% - \the\everysetupbackend} +\back_job_set_suffix{pdf} % default \protect \endinput |