diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/enco-pfr.tex')
-rw-r--r-- | Master/texmf-dist/tex/context/base/enco-pfr.tex | 50 |
1 files changed, 16 insertions, 34 deletions
diff --git a/Master/texmf-dist/tex/context/base/enco-pfr.tex b/Master/texmf-dist/tex/context/base/enco-pfr.tex index 24044e4d009..902eb7bcd55 100644 --- a/Master/texmf-dist/tex/context/base/enco-pfr.tex +++ b/Master/texmf-dist/tex/context/base/enco-pfr.tex @@ -15,6 +15,10 @@ \endinput \endXETEX +\beginLUATEX + \endinput +\endLUATEX + \ifx\pdffontresource\undefined\else\endinput\fi \writestatus{loading}{Context Encoding Macros (pdf)} @@ -215,7 +219,17 @@ % \fi} \def\includepdffontresource - {\ifcase\pdfgentounicode + {\ifx\pdfgentounicode\undefined + \expandafter\ifx\the\font\nullfont \else + \ifx\pdffontattr\undefined + % we're not using (a recent version of) pdftex + \else\ifcase\pdfoutput + % we're not in pdf mode + \else + \doincludepdffontresource + \fi\fi + \fi + \else\ifcase\pdfgentounicode \ifincludepdffontresources \expandafter\ifx\the\font\nullfont \else \ifx\pdffontattr\undefined @@ -229,7 +243,7 @@ \fi \or \global\let\includepdffontresource\relax % automatic, built in - \fi} + \fi\fi} \def\dododoincludepdffontresource#1% encoding {\bgroup @@ -242,8 +256,6 @@ \letgvalue\pdffontfileresource\empty}% \egroup} -\beginETEX - \def\doincludepdffontresource {\ifcsname\s!ucmap\fontfile\endcsname\else \dodoincludepdffontresource @@ -271,36 +283,6 @@ \letgvalue{\s!ucmap\fontfile}\empty \fi}} -\endETEX - -\beginTEX - -\def\doincludepdffontresource - {\expandafter\ifcsname\s!ucmap\fontfile\endcsname\relax - \dodoincludepdffontresource - \fi} - -\def\dodoincludepdffontresource - {\doifsomething\currentencoding % no \ifx - {\expandafter\ifx\csname\pdffontresource\endcsname\relax - \expandafter\ifx\csname\pdffontfileresource\endcsname\relax\else - \doifsomething\pdffontfileresource - {\pdfobj reserveobjnum {}% - \setxvalue\pdffontresource{\the\pdflastobj}% - \flushatshipout{\dododoincludepdffontresource{\currentencoding}}}% -% \doglobal\appendetoks -% \noexpand\dododoincludepdffontresource{\currentencoding}% -% \to \everybeforeshipout}% prevent multiple loading - \fi - \fi - \expandafter\ifx\csname\pdffontresource\endcsname\relax\else - \expanded{\pdffontattr\font{/ToUnicode \csname\pdffontresource\endcsname\space0 R}}% - % do it only once for each font - \letgvalue{\s!ucmap\fontfile}\empty - \fi}} - -\endTEX - %D For the moment, we keep this definition here, if only %D because \type {\usepdffontencoding} is not defined in the %D core. In the end, this will go to \type {enco-*.tex}. |