[latex3-commits] [git/LaTeX3-latex3-l3build] master: Only write (x)dvipdfmx specials if 'safe' (see #94) (110d6a3)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Jul 27 00:31:33 CEST 2019
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/110d6a3bba809a5cb2763460ce1b2cce18034660
>---------------------------------------------------------------
commit 110d6a3bba809a5cb2763460ce1b2cce18034660
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Jul 26 23:31:33 2019 +0100
Only write (x)dvipdfmx specials if 'safe' (see #94)
Only do this for XeTeX and (u)pTeX, where (x)dvipdfmx
is the best guess.
>---------------------------------------------------------------
110d6a3bba809a5cb2763460ce1b2cce18034660
CHANGELOG.md | 4 ++++
l3build.dtx | 32 +++++++++++++++++++++-----------
2 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 27ea28f..b05453a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Changed
+
+- Only write (x)dvipdfmx specials for XeTeX and (u)pTeX (see #94)
+
## [2019-06-27]
### Changed
diff --git a/l3build.dtx b/l3build.dtx
index 4ca8409..8ce3828 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -2246,15 +2246,20 @@
\relax
\fi
\else
- \special{%
- pdf: docinfo
- <<
- /Creator (TeX)
- /CreationDate ()
- /ModDate ()
- /Producer (\ifx\XeTeXversion\@undefined\else x\fi dvipdfmx)
- >>
- }
+ \ifnum 0%
+ \ifx\XeTeXversion\@undefined\else 1\fi
+ \ifx\kanjiskip\@undefined\else 1\fi
+ >0 %
+ \special{%
+ pdf: docinfo
+ <<
+ /Creator (TeX)
+ /CreationDate ()
+ /ModDate ()
+ /Producer (\ifx\XeTeXversion\@undefined\else x\fi dvipdfmx)
+ >>
+ }
+ \fi
\fi
% \end{macrocode}
%
@@ -2272,8 +2277,13 @@
\pdfvariable objcompresslevel=0 %
\fi
\else
- \special{dvipdfmx:config z 0}% Compress level
- \special{dvipdfmx:config C 0x40}% Object compression
+ \ifnum 0%
+ \ifx\XeTeXversion\@undefined\else 1\fi
+ \ifx\kanjiskip\@undefined\else 1\fi
+ >0 %
+ \special{dvipdfmx:config z 0}% Compress level
+ \special{dvipdfmx:config C 0x40}% Object compression
+ \fi
\fi
% \end{macrocode}
%
More information about the latex3-commits
mailing list