summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-07-18 23:28:58 +0000
committerKarl Berry <karl@freefriends.org>2014-07-18 23:28:58 +0000
commitd66a478e29bb6753eca65870094236edfcef5b85 (patch)
tree673ad543af8e5fcf278ea26992e219925f73c4ac /Master/texmf-dist/tex
parent6da0d477b6b8ef5b23291b8a09f0d0242e74659d (diff)
* xetex.ini,
* xelatex.ini (\pdfmapfile, \pdfmapline): define for near-compatibility with the primitives in pdftex and luatex. Imperfect since a macro generating a whatsit from \special is not the same as a primitive, but hopefully still useful in practice, and given the implementation of xetex, not practical to do anything else. http://sourceforge.net/p/xetex/feature-requests/18/ git-svn-id: svn://tug.org/texlive/trunk@34655 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/xelatex.ini9
-rw-r--r--Master/texmf-dist/tex/plain/config/xetex.ini6
2 files changed, 14 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
index f47278aa2ad..eb0ba44f538 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
+++ b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
@@ -25,8 +25,15 @@
\fi}
\def\newXeTeXintercharclass{%
\xe@alloc@\xe@alloc@intercharclass\XeTeXintercharclass\chardef\@cclv} %at most 254
+
+% Primitives in pdftex and luatex, we'll just use macros here.
+% Since we are generating a whatsit, not 100% compatible,
+% but hopefully close enough.
+\def\pdfmapfile#1{\special{pdf:mapfile #1}}
+\def\pdfmapline#1{\special{pdf:mapline #1}}
+
\catcode`\@=12
-%
+
% Because latex.ltx sets up character code tables for T1 encoding by default,
% we need to reset values from unicode-letters that may have been overridden
\begingroup
diff --git a/Master/texmf-dist/tex/plain/config/xetex.ini b/Master/texmf-dist/tex/plain/config/xetex.ini
index 692649730fa..90b353b1208 100644
--- a/Master/texmf-dist/tex/plain/config/xetex.ini
+++ b/Master/texmf-dist/tex/plain/config/xetex.ini
@@ -47,6 +47,12 @@
\def\newXeTeXintercharclass{%
\xe@alloc@\xe@alloc@intercharclass\XeTeXintercharclass\chardef\@cclv} %at most 254
+% Primitives in pdftex and luatex, we'll just use macros here.
+% Since we are generating a whatsit, not 100% compatible,
+% but hopefully close enough.
+\def\pdfmapfile#1{\special{pdf:mapfile #1}}
+\def\pdfmapline#1{\special{pdf:mapline #1}}
+
\catcode`\@=12
\XeTeXuseglyphmetrics=1