summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/enco-pfr.tex
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2008-06-12 10:42:53 +0000
committerTaco Hoekwater <taco@elvenkind.com>2008-06-12 10:42:53 +0000
commit0d01365d53c456d246da0ca1f0b3cd9868f02b35 (patch)
tree01a655c8028e17cfb371456b299c1848fe08c05b /Master/texmf-dist/tex/context/base/enco-pfr.tex
parent44f3714442da07fdfc36a7f2a8dcd5d4294c5d26 (diff)
ConTeXt release 2008.05.21
git-svn-id: svn://tug.org/texlive/trunk@8691 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/enco-pfr.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/enco-pfr.tex50
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}.