[latex3-commits] [latex3/latex3] main: Test l3opacity with dvips, etc. (be05bc880)
github at latex-project.org
github at latex-project.org
Thu Feb 29 21:27:06 CET 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/be05bc880c9c49f3554ee26d7c0d2123e201bb18
>---------------------------------------------------------------
commit be05bc880c9c49f3554ee26d7c0d2123e201bb18
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Thu Feb 29 12:50:18 2024 +0800
Test l3opacity with dvips, etc.
>---------------------------------------------------------------
be05bc880c9c49f3554ee26d7c0d2123e201bb18
l3experimental/l3opacity/build.lua | 18 +++
.../testfiles/m3opacity001.etex-dvips.tlg | 165 +++++++++++++++++++++
.../testfiles/m3opacity001.etex-dvisvgm.tlg | 163 ++++++++++++++++++++
3 files changed, 346 insertions(+)
diff --git a/l3experimental/l3opacity/build.lua b/l3experimental/l3opacity/build.lua
index 5cc9926f2..24093edfb 100644
--- a/l3experimental/l3opacity/build.lua
+++ b/l3experimental/l3opacity/build.lua
@@ -10,5 +10,23 @@ module = "l3opacity"
-- Location of main directory: use Unix-style path separators
maindir = "../.."
+-- Set up to allow testing dvips, etc.
+specialformats = specialformats or {}
+specialformats.latex =
+ {
+ luatex = {binary = "luahbtex",format = "lualatex"},
+ ptex = {binary = "eptex"},
+ uptex = {binary = "euptex"},
+ ["etex-dvips"] = {binary = "etex", format = "latex"},
+ ["etex-dvisvgm"] =
+ {
+ binary = "etex",
+ format = "latex",
+ tokens = "\\ExplSyntaxOn\\sys_load_backend:n{dvisvgm}\\ExplSyntaxOff"
+ }
+ }
+checkengines =
+ {"pdftex", "luatex", "xetex", "etex-dvips", "etex-dvisvgm", "uptex"}
+
-- Load the common build code
dofile(maindir .. "/build-config.lua")
diff --git a/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvips.tlg b/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvips.tlg
new file mode 100644
index 000000000..1dbd05b2b
--- /dev/null
+++ b/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvips.tlg
@@ -0,0 +1,165 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Joseph Wright
+============================================================
+TEST 1: Select
+============================================================
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 1 .setfillconstantalpha}{pop mark /ca 1/SetTransparency pdfmark}ifelse end}
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 1 .setstrokeconstantalpha}{pop mark /CA 1/SetTransparency pdfmark}ifelse end}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 1 .setfillconstantalpha}{pop mark /ca 1/SetTransparency pdfmark}ifelse end}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 1 .setstrokeconstantalpha}{pop mark /CA 1/SetTransparency pdfmark}ifelse end}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 0.5 .setfillconstantalpha}{pop mark /ca 0.5/SetTransparency pdfmark}ifelse end}
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 0.5 .setstrokeconstantalpha}{pop mark /CA 0.5/SetTransparency pdfmark}ifelse end}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 0.5 .setfillconstantalpha}{pop mark /ca 0.5/SetTransparency pdfmark}ifelse end}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{ps:SDict begin product (Ghostscript) search{pop pop pop 0.5 .setstrokeconstantalpha}{pop mark /CA 0.5/SetTransparency pdfmark}ifelse end}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of 2, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of 2, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of 2, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of -1, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of -1, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of -1, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+============================================================
diff --git a/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg b/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg
new file mode 100644
index 000000000..af58e9a65
--- /dev/null
+++ b/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg
@@ -0,0 +1,163 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Joseph Wright
+============================================================
+TEST 1: Select
+============================================================
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{dvisvgm:raw <g opacity="1">{?nl}}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{dvisvgm:raw <g fill-opacity="1">{?nl}}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{dvisvgm:raw <g stroke-opacity="{1}">{?nl}}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{dvisvgm:raw <g opacity="0.5">{?nl}}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{dvisvgm:raw <g fill-opacity="0.5">{?nl}}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\special{dvisvgm:raw <g stroke-opacity="{0.5}">{?nl}}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of 2, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of 2, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of 2, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of -1, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of -1, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+! Package opacity Error: Opacity value out of range.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX was asked to set opacity of -1, but only values in the range 0 to 1 are supported.
+> \box...=
+\hbox(6.94444+0.0)x22.50005
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+============================================================
More information about the latex3-commits
mailing list.