texlive[54259] trunk: l3 (12mar20)

commits+karl at tug.org commits+karl at tug.org
Thu Mar 12 21:28:20 CET 2020


Revision: 54259
          http://tug.org/svn/texlive?view=revision&revision=54259
Author:   karl
Date:     2020-03-12 21:28:20 +0100 (Thu, 12 Mar 2020)
Log Message:
-----------
l3 (12mar20)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
    trunk/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/l3backend/README.md
    trunk/Master/texmf-dist/doc/latex/l3backend/l3backend-code.pdf
    trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/l3build/README.md
    trunk/Master/texmf-dist/doc/latex/l3build/l3build.pdf
    trunk/Master/texmf-dist/doc/man/man1/l3build.1
    trunk/Master/texmf-dist/doc/man/man1/l3build.man1.pdf
    trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build.lua
    trunk/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx
    trunk/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx
    trunk/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx
    trunk/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx
    trunk/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx
    trunk/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx
    trunk/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx
    trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx
    trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def
    trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def
    trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def
    trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def
    trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def

Modified: trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua	2020-03-12 20:28:20 UTC (rev 54259)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2020-02-21"
+release_date = "2020-03-12"
 
 -- File operations are aided by the LuaFileSystem module
 local lfs = require("lfs")

Modified: trunk/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md	2020-03-12 20:28:20 UTC (rev 54259)
@@ -6,6 +6,11 @@
 
 ## [Unreleased]
 
+## [2020-03-12]
+
+### Fixed
+- Creation of PDF annotations with `dvips` backend
+
 ## [2020-02-23]
 
 ### Fixed
@@ -56,7 +61,8 @@
 - Include `l3backend` in file names
 - Moved backend code to internal for each 'parent' module
 
-[Unreleased]: https://github.com/latex3/latex3/compare/2020-02-23...HEAD
+[Unreleased]: https://github.com/latex3/latex3/compare/2020-03-12...HEAD
+[2020-03-12]: https://github.com/latex3/latex3/compare/2020-02-23...2020-03-12
 [2020-02-23]: https://github.com/latex3/latex3/compare/2020-02-21...2020-02-23
 [2020-02-21]: https://github.com/latex3/latex3/compare/2020-02-03...2020-02-21
 [2020-02-03]: https://github.com/latex3/latex3/compare/2019-11-25...2020-02-03

Modified: trunk/Master/texmf-dist/doc/latex/l3backend/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3backend/README.md	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/doc/latex/l3backend/README.md	2020-03-12 20:28:20 UTC (rev 54259)
@@ -1,7 +1,7 @@
 LaTeX3 Backend Drivers
 ======================
 
-Release 2020-02-23
+Release 2020-03-12
 
 This package forms parts of `expl3`, and contains the code used to interface
 with backends (drivers) across the `expl3` codebase. The functions here are

Modified: trunk/Master/texmf-dist/doc/latex/l3backend/l3backend-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md	2020-03-12 20:28:20 UTC (rev 54259)
@@ -7,6 +7,19 @@
 
 ## [Unreleased]
 
+## [2020-03-12]
+
+### Added
+- Option `ps2pdfopt`
+
+### Changed
+- Normalise `/ID` lines in PDF comparisons
+- Normalise `%%` lines in PDF comparisons
+
+### Fixed
+- Enable `cleandir()` recursively
+- Install files after *all* directory cleaning/creation
+
 ## [2020-02-21]
 
 ### Changed
@@ -434,7 +447,8 @@
 - Rationalise short option names: removed `-d`, `-E`, `-r`
 - Target `cmdcheck`: specific to LaTeX3 kernel work
 
-[Unreleased]: https://github.com/latex3/l3build/compare/2020-02-21...HEAD
+[Unreleased]: https://github.com/latex3/l3build/compare/2020-03-12...HEAD
+[2020-03-12]: https://github.com/latex3/l3build/compare/2020-02-21...2020-03-12
 [2020-02-21]: https://github.com/latex3/l3build/compare/2020-02-17...2020-02-21
 [2020-02-17]: https://github.com/latex3/l3build/compare/2020-02-03...2020-02-17
 [2020-02-03]: https://github.com/latex3/l3build/compare/2020-01-14...2020-02-03

Modified: trunk/Master/texmf-dist/doc/latex/l3build/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3build/README.md	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/doc/latex/l3build/README.md	2020-03-12 20:28:20 UTC (rev 54259)
@@ -1,7 +1,7 @@
 l3build: a testing and building system for LaTeX3
 =================================================
 
-Release 2020-02-21
+Release 2020-03-12
 
 Overview
 --------

Modified: trunk/Master/texmf-dist/doc/latex/l3build/l3build.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/man/man1/l3build.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/l3build.1	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/doc/man/man1/l3build.1	2020-03-12 20:28:20 UTC (rev 54259)
@@ -1,4 +1,4 @@
-.TH l3build 1 "2020-02-21"
+.TH l3build 1 "2020-03-12"
 .SH NAME
 l3build \- Checking and building packages
 .SH SYNOPSIS

Modified: trunk/Master/texmf-dist/doc/man/man1/l3build.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2020-03-12 20:28:20 UTC (rev 54259)
@@ -537,7 +537,8 @@
       binary = false
       stream = true
       stream_content = "stream" .. os_newline
-    elseif not match(line, "^ *$") then
+    elseif not match(line, "^ *$") and not match(line,"^%%%%") then
+      line = gsub(line,"%/ID %[<[^>]+><[^>]+>]","/ID [<ID-STRING><ID-STRING>]")
       new_content = new_content .. line .. os_newline
     end
   end
@@ -768,6 +769,9 @@
     -- Break the loop if the result is stable
     if breakout and i < checkruns then
       if pdfmode then
+        if fileexists(testdir .. "/" .. name .. dviext) then
+          dvitopdf(name, testdir, engine, hide)
+        end
         rewrite(pdffile,npffile,normalize_pdf)
         if compare_pdf(name,engine,true) == 0 then
           break

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua	2020-03-12 20:28:20 UTC (rev 54259)
@@ -204,7 +204,7 @@
   if errorlevel ~= 0 then
     return errorlevel
   end
-  return rm(dir, "*")
+  return rm(dir, "**")
 end
 
 -- Copy files 'quietly'
@@ -376,7 +376,7 @@
 
 -- Remove file(s) based on a glob
 function rm(source, glob)
-  for _,i in ipairs(filelist(source, glob)) do
+  for i,_ in pairs(tree(source, glob)) do
     rmfile(source,i)
   end
   -- os.remove doesn't give a sensible errorlevel

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua	2020-03-12 20:28:20 UTC (rev 54259)
@@ -108,8 +108,11 @@
 
   -- Needed so paths are only cleaned out once
   local cleanpaths = { }
+  -- Collect up all file data before copying:
+  -- ensures no files are lost during clean-up
+  local installmap = { }
 
-  local function install_files(source,dir,files,subdir)
+  local function create_install_map(source,dir,files,subdir)
     subdir = subdir or moduledir
     -- For material associated with secondary tools (BibTeX, MakeIndex)
     -- the structure needed is slightly different from those items going
@@ -172,13 +175,14 @@
           print("- " .. file)
         else
           local path,file = splitpath(file)
-          errorlevel = cp(file,sourcepaths[file],target .. "/" .. path)
-          if errorlevel ~= 0 then return errorlevel end
+          insert(installmap,
+            {file = file, source = sourcepaths[file], dest = target .. "/" .. path})
         end
       end
     end
     return 0
   end
+
   local errorlevel = unpack()
   if errorlevel ~= 0 then return errorlevel end
 
@@ -233,8 +237,8 @@
     print("\nFor installation inside " .. target .. ":")
   end 
     
-    errorlevel = install_files(sourcefiledir,"source",{sourcelist})
-      + install_files(docfiledir,"doc",
+    errorlevel = create_install_map(sourcefiledir,"source",{sourcelist})
+      + create_install_map(docfiledir,"doc",
           {bibfiles,demofiles,docfiles,pdffiles,textfiles,typesetlist})
     if errorlevel ~= 0 then return errorlevel end
 
@@ -272,12 +276,21 @@
 
   if errorlevel ~= 0 then return errorlevel end
 
-  errorlevel = install_files(unpackdir,"tex",{installlist})
-    + install_files(unpackdir,"bibtex/bst",{bstfiles},module)
-    + install_files(unpackdir,"makeindex",{makeindexfiles},module)
-    + install_files(unpackdir,"scripts",{scriptfiles},module)
+  errorlevel = create_install_map(unpackdir,"tex",{installlist})
+    + create_install_map(unpackdir,"bibtex/bst",{bstfiles},module)
+    + create_install_map(unpackdir,"makeindex",{makeindexfiles},module)
+    + create_install_map(unpackdir,"scripts",{scriptfiles},module)
+
+  if errorlevel ~= 0 then return errorlevel end
+
+  -- Files are all copied in one shot: this ensures that cleandir()
+  -- can't be an issue even if there are complex set-ups
+  for _,v in ipairs(installmap) do
+    errorlevel = cp(v.file,v.source,v.dest)
+    if errorlevel ~= 0  then return errorlevel end
+  end 
   
-  return errorlevel
+  return 0
 end
 
 function install()

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua	2020-03-12 20:28:20 UTC (rev 54259)
@@ -1,6 +1,6 @@
 --[[
 
-File l3build-typesetting.lua Copyright (C) 2018,2019 The LaTeX3 Project
+File l3build-typesetting.lua Copyright (C) 2018-2020 The LaTeX3 Project
 
 It may be distributed and/or modified under the conditions of the
 LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -36,24 +36,15 @@
 local os_type = os.type
 
 function dvitopdf(name, dir, engine, hide)
-  if match(engine, "^u?ptex$") then
-    run(
-      dir,
-      (forcecheckepoch and setepoch() or "") ..
-     "dvipdfmx  " .. name .. dviext
-       .. (hide and (" > " .. os_null) or "")
-    )
-  else
-    run(
-      dir,
-      (forcecheckepoch and setepoch() or "") ..
-     "dvips " .. name .. dviext
-       .. (hide and (" > " .. os_null) or "")
-       .. os_concat ..
-     "ps2pdf " .. name .. psext
-        .. (hide and (" > " .. os_null) or "")
-    )
-  end
+  run(
+    dir,
+    (forcecheckepoch and setepoch() or "") ..
+    "dvips " .. name .. dviext
+      .. (hide and (" > " .. os_null) or "")
+      .. os_concat ..
+   "ps2pdf " .. ps2pdfopt .. name .. psext
+      .. (hide and (" > " .. os_null) or "")
+  )
 end
 
 -- An auxiliary used to set up the environmental variables

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua	2020-03-12 20:28:20 UTC (rev 54259)
@@ -184,6 +184,7 @@
 end
 maxprintline = maxprintline or 79
 packtdszip   = packtdszip   or false
+ps2pdfopt    = ps2pdfopt    or ""
 typesetcmds  = typesetcmds  or ""
 typesetruns  = typesetruns  or 3
 recordstatus = recordstatus or false

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2020-03-12 20:28:20 UTC (rev 54259)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2020-02-21"
+release_date = "2020-03-12"
 
 -- File operations are aided by the LuaFileSystem module
 local lfs = require("lfs")

Modified: trunk/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-23}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 %
@@ -71,23 +71,23 @@
 %<*package>
 \ProvidesExplFile
 %<*dvipdfmx>
-  {l3backend-dvipdfmx.def}{2020-02-23}{}
+  {l3backend-dvipdfmx.def}{2020-03-12}{}
   {L3 backend support: dvipdfmx}
 %</dvipdfmx>
 %<*dvips>
-  {l3backend-dvips.def}{2020-02-23}{}
+  {l3backend-dvips.def}{2020-03-12}{}
   {L3 backend support: dvips}
 %</dvips>
 %<*dvisvgm>
-  {l3backend-dvisvgm.def}{2020-02-23}{}
+  {l3backend-dvisvgm.def}{2020-03-12}{}
   {L3 backend support: dvisvgm}
 %</dvisvgm>
 %<*pdfmode>
-  {l3backend-pdfmode.def}{2020-02-23}{}
+  {l3backend-pdfmode.def}{2020-03-12}{}
   {L3 backend support: PDF mode}
 %</pdfmode>
 %<*xdvipdfmx>
-  {l3backend-xdvipdfmx.def}{2020-02-23}{}
+  {l3backend-xdvipdfmx.def}{2020-03-12}{}
   {L3 backend support: xdvipdfmx}
 %</xdvipdfmx>
 %</package>

Modified: trunk/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-23}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 %

Modified: trunk/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-23}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 %

Modified: trunk/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-23}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 %

Modified: trunk/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-23}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 %

Modified: trunk/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-23}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 %

Modified: trunk/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-23}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 %
@@ -253,41 +253,30 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{macro}{\@@_backend_annotation:nnnn, \@@_backend_annotation_aux:nnnn}
-% \begin{macro}{pdf.llx, pdf.lly, pdf.urx, pdf.ury}
+% \begin{macro}{\@@_backend_annotation:nnnn}
 %   Annotations are objects, but we track them separately. Notably, they are
 %   not in the object data lists. Here, to get the co-ordinates of the
 %   annotation, we need to have the data collected at the PostScript level.
 %   That requires a bit of box trickery (effectively a \LaTeXe{} |picture|
 %   of zero size). Once the data is collected, use it to set up the annotation
-%   border. There is a split into two parts here to allow an easy way of
-%   applying the Adobe Reader fix.
+%   border.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_backend_annotation:nnnn #1#2#3#4
   {
-    \@@_backend_annotation_aux:nnnn {#1} {#2} {#3} {#4}
-    \int_gincr:N \g_@@_backend_object_int
-    \int_gset_eq:NN \g_@@_backend_annotation_int \g_@@_backend_object_int
-    \@@_backend_pdfmark:x
-      {
-
-        /_objdef { pdf.obj \int_use:N \g_@@_backend_object_int }
-        pdf.rect ~
-        #4 ~
-        /ANN
-      }
+    \exp_args:Nf \@@_backend_annotation_aux:nnnn 
+      { \dim_eval:n {#1} } {#2} {#3} {#4}
   }
 \cs_new_protected:Npn \@@_backend_annotation_aux:nnnn #1#2#3#4
   {
     \box_move_down:nn {#3}
       { \hbox:n { \__kernel_backend_postscript:n { pdf.save.ll } } }
-    \hbox:n {#4}
     \box_move_up:nn {#2}
       {
         \hbox:n
           {
-            \tex_kern:D \dim_eval:n {#1} \scan_stop:
+            \tex_kern:D #1 \scan_stop:
             \__kernel_backend_postscript:n { pdf.save.ur }
+            \tex_kern:D -#1 \scan_stop:
           }
       }
     \int_gincr:N \g_@@_backend_object_int
@@ -296,12 +285,12 @@
       {
         /_objdef { pdf.obj \int_use:N \g_@@_backend_object_int }
         pdf.rect
+        #4 ~
         /ANN
       }
   }
 %    \end{macrocode}
 % \end{macro}
-% \end{macro}
 %
 % \begin{macro}[EXP]{\@@_backend_annotation_last:}
 %   Provide the last annotation we created: could get tricky of course if
@@ -616,7 +605,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\@@_backend_destination:nn, \@@_backend_destination_rectangle:nn}
+% \begin{macro}{\@@_backend_destination:nn, \@@_backend_destination_box:nn}
 %   Here, we need to turn the zoom into a scale. We also need to know where
 %   the current anchor point actually is: worked out in PostScript. For the
 %   rectangle version, we have a bit more PostScript: we need two points.
@@ -646,7 +635,7 @@
         /DEST
       }
   }
-\cs_new_protected:Npn \@@_backend_destination_rectangle:nn #1#2
+\cs_new_protected:Npn \@@_backend_destination_box:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l_@@_internal_box {#2}
@@ -814,7 +803,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\@@_backend_destination:nn, \@@_backend_destination_rectangle:nn}
+% \begin{macro}{\@@_backend_destination:nn, \@@_backend_destination_box:nn}
 %   A simple task: pass the data to the primitive. The |\scan_stop:| deals
 %   with the danger of an unterminated keyword. The zoom given here is a
 %   percentage, but we need to pass it as \emph{per mille}. The rectangle
@@ -839,7 +828,7 @@
           { xyz ~ zoom \exp_not:N \fp_eval:n { #2 * 10 } }
         \scan_stop:
   }
-\cs_new_protected:Npx \@@_backend_destination_rectangle:nn #1#2
+\cs_new_protected:Npx \@@_backend_destination_box:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l_@@_internal_box {#2}
@@ -1365,7 +1354,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\@@_backend_destination:nn, \@@_backend_destination_rectangle:nn}
+% \begin{macro}{\@@_backend_destination:nn, \@@_backend_destination_box:nn}
 %   Here, we need to turn the zoom into a scale. The method for \texttt{FitR}
 %   is from Alexander Grahn: the idea is to avoid needing to do any calculations
 %   in \TeX{} by using the backend data for \texttt{@xpos} and \texttt{@ypos}.
@@ -1391,7 +1380,7 @@
         ]
       }
   }
-\cs_new_protected:Npn \@@_backend_destination_rectangle:nn #1#2
+\cs_new_protected:Npn \@@_backend_destination_box:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l_@@_internal_box {#2}

Modified: trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx	2020-03-12 20:28:20 UTC (rev 54259)
@@ -152,6 +152,7 @@
 \luavarset{flattentds}  {true}        {Switch to flatten any source structure when creating a TDS structure}
 \luavarset{maxprintline}{79}          {Length of line to use in log files}
 \luavarset{packtdszip}  {false}       {Switch to build a TDS-style zip file for CTAN}
+\luavarset{ps2pdfopts}  {""}          {Options for \texttt{ps2pdf}}
 \luavarset{typesetcmds} {""}          {Instructions to be passed to \TeX{} when doing typesetting}
 \luavarset{typesetruns}{3}            {Number of cycles of typesetting to carry out}
 \luavarset{recordstatus}{false}       {Switch to include error level from test runs in \texttt{.tlg} files}
@@ -233,7 +234,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2020-02-21}
+% \date{Released 2020-03-12}
 %
 % \maketitle
 % \tableofcontents
@@ -1230,7 +1231,9 @@
 % normalization takes place:
 % \begin{itemize}
 %   \item Replacement of binary streams by the marker |[BINARY STREAM]|
+%   \item Replacement of \texttt{/ID} values by |ID-STRING|
 %   \item Removal of blank lines
+%   \item Removal of comment (|%%|) lines
 % \end{itemize}
 %
 % After this normalization takes place, the file can not usually be rendered

Modified: trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def	2020-03-12 20:28:20 UTC (rev 54259)
@@ -25,7 +25,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvipdfmx.def}{2020-02-23}{}
+  {l3backend-dvipdfmx.def}{2020-03-12}{}
   {L3 backend support: dvipdfmx}
 \cs_new_eq:NN \__kernel_backend_literal:e \tex_special:D
 \cs_new_protected:Npn \__kernel_backend_literal:n #1
@@ -588,7 +588,7 @@
         ]
       }
   }
-\cs_new_protected:Npn \__pdf_backend_destination_rectangle:nn #1#2
+\cs_new_protected:Npn \__pdf_backend_destination_box:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l__pdf_internal_box {#2}

Modified: trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def	2020-03-12 20:28:20 UTC (rev 54259)
@@ -25,7 +25,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvips.def}{2020-02-23}{}
+  {l3backend-dvips.def}{2020-03-12}{}
   {L3 backend support: dvips}
 \cs_new_eq:NN \__kernel_backend_literal:e \tex_special:D
 \cs_new_protected:Npn \__kernel_backend_literal:n #1
@@ -521,29 +521,20 @@
 \int_new:N \g__pdf_backend_annotation_int
 \cs_new_protected:Npn \__pdf_backend_annotation:nnnn #1#2#3#4
   {
-    \__pdf_backend_annotation_aux:nnnn {#1} {#2} {#3} {#4}
-    \int_gincr:N \g__pdf_backend_object_int
-    \int_gset_eq:NN \g__pdf_backend_annotation_int \g__pdf_backend_object_int
-    \__pdf_backend_pdfmark:x
-      {
-
-        /_objdef { pdf.obj \int_use:N \g__pdf_backend_object_int }
-        pdf.rect ~
-        #4 ~
-        /ANN
-      }
+    \exp_args:Nf \__pdf_backend_annotation_aux:nnnn
+      { \dim_eval:n {#1} } {#2} {#3} {#4}
   }
 \cs_new_protected:Npn \__pdf_backend_annotation_aux:nnnn #1#2#3#4
   {
     \box_move_down:nn {#3}
       { \hbox:n { \__kernel_backend_postscript:n { pdf.save.ll } } }
-    \hbox:n {#4}
     \box_move_up:nn {#2}
       {
         \hbox:n
           {
-            \tex_kern:D \dim_eval:n {#1} \scan_stop:
+            \tex_kern:D #1 \scan_stop:
             \__kernel_backend_postscript:n { pdf.save.ur }
+            \tex_kern:D -#1 \scan_stop:
           }
       }
     \int_gincr:N \g__pdf_backend_object_int
@@ -552,6 +543,7 @@
       {
         /_objdef { pdf.obj \int_use:N \g__pdf_backend_object_int }
         pdf.rect
+        #4 ~
         /ANN
       }
   }
@@ -758,7 +750,7 @@
         /DEST
       }
   }
-\cs_new_protected:Npn \__pdf_backend_destination_rectangle:nn #1#2
+\cs_new_protected:Npn \__pdf_backend_destination_box:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l__pdf_internal_box {#2}

Modified: trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def	2020-03-12 20:28:20 UTC (rev 54259)
@@ -25,7 +25,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvisvgm.def}{2020-02-23}{}
+  {l3backend-dvisvgm.def}{2020-03-12}{}
   {L3 backend support: dvisvgm}
 \cs_new_eq:NN \__kernel_backend_literal:e \tex_special:D
 \cs_new_protected:Npn \__kernel_backend_literal:n #1

Modified: trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def	2020-03-12 20:28:20 UTC (rev 54259)
@@ -25,7 +25,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-pdfmode.def}{2020-02-23}{}
+  {l3backend-pdfmode.def}{2020-03-12}{}
   {L3 backend support: PDF mode}
 \cs_new_eq:NN \__kernel_backend_literal:e \tex_special:D
 \cs_new_protected:Npn \__kernel_backend_literal:n #1
@@ -551,7 +551,7 @@
           { xyz ~ zoom \exp_not:N \fp_eval:n { #2 * 10 } }
         \scan_stop:
   }
-\cs_new_protected:Npx \__pdf_backend_destination_rectangle:nn #1#2
+\cs_new_protected:Npx \__pdf_backend_destination_box:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l__pdf_internal_box {#2}

Modified: trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def	2020-03-12 20:25:43 UTC (rev 54258)
+++ trunk/Master/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def	2020-03-12 20:28:20 UTC (rev 54259)
@@ -25,7 +25,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-xdvipdfmx.def}{2020-02-23}{}
+  {l3backend-xdvipdfmx.def}{2020-03-12}{}
   {L3 backend support: xdvipdfmx}
 \cs_new_eq:NN \__kernel_backend_literal:e \tex_special:D
 \cs_new_protected:Npn \__kernel_backend_literal:n #1
@@ -634,7 +634,7 @@
         ]
       }
   }
-\cs_new_protected:Npn \__pdf_backend_destination_rectangle:nn #1#2
+\cs_new_protected:Npn \__pdf_backend_destination_box:nn #1#2
   {
     \group_begin:
       \hbox_set:Nn \l__pdf_internal_box {#2}



More information about the tex-live-commits mailing list.