[latex3-commits] [git/LaTeX3-latex3-l3build] master: Lever \direction/yoko when (u)pTeX is default engine (fixes #103) (914d379)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Oct 27 11:36:51 CET 2019


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/914d379b4a67eec91c978f05288812d791c5cb12

>---------------------------------------------------------------

commit 914d379b4a67eec91c978f05288812d791c5cb12
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Oct 27 10:36:41 2019 +0000

    Lever \direction/yoko when (u)pTeX is default engine (fixes #103)


>---------------------------------------------------------------

914d379b4a67eec91c978f05288812d791c5cb12
 CHANGELOG.md      |  5 +++++
 l3build-check.lua | 14 ++++++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ec89a3f..08201ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,11 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Changed
+
+- Avoid normalisation of (u)pTeX data when this is standard engine
+  (fixes #103)
+
 ## [2019-10-02]
 
 ### Added
diff --git a/l3build-check.lua b/l3build-check.lua
index e2cdd65..539a9fe 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -215,12 +215,14 @@ local function normalize_log(content,engine,errlevels)
     if match(line, "^> \\box%d+=$") or match(line, "^> \\box%d+=(void)$") then
       line = gsub(line, "%d+=", "...=")
     end
-    -- Remove 'normal' direction information on boxes with (u)pTeX
-    line = gsub(line, ",? yoko direction,?", "")
-    line = gsub(line, ",? yoko%(math%) direction,?", "")
-    -- Remove '\displace 0.0' lines in (u)pTeX
-    if match(line,"^%.*\\displace 0%.0$") then
-      return ""
+    if not match(stdengine,"^u?ptex$") then
+      -- Remove 'normal' direction information on boxes with (u)pTeX
+      line = gsub(line, ",? yoko direction,?", "")
+      line = gsub(line, ",? yoko%(math%) direction,?", "")
+      -- Remove '\displace 0.0' lines in (u)pTeX
+      if match(line,"^%.*\\displace 0%.0$") then
+        return ""
+       end
      end
      -- Remove the \special line that in DVI mode keeps PDFs comparable
     if match(line, "^%.*\\special%{pdf: docinfo << /Creator") then





More information about the latex3-commits mailing list