[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: add test for luacolor, exclude on travis for now (4c71851)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun Feb 23 00:26:14 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/4c71851aa55034d680af5ff91612a4e02e5dc3b5

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

commit 4c71851aa55034d680af5ff91612a4e02e5dc3b5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Feb 23 00:26:14 2020 +0100

    add test for luacolor, exclude on travis for now


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

4c71851aa55034d680af5ff91612a4e02e5dc3b5
 build.lua              |   3 +-
 testfiles/luacolor.lvt |  21 ++++++++++
 testfiles/luacolor.tlg | 108 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 131 insertions(+), 1 deletion(-)

diff --git a/build.lua b/build.lua
index 5745a65..b0f90f5 100644
--- a/build.lua
+++ b/build.lua
@@ -108,7 +108,8 @@ if os.env["CONTEXTPATH"] then
   end
 else
   -- travis or somewhere else ...
-  excludetests = {"luatex-ja","aux-resolve-fontname"}
+  -- luacolor will fail until update ...
+  excludetests = {"luatex-ja","aux-resolve-fontname","luacolor"}
 end
 
 ---------------------------------------------
diff --git a/testfiles/luacolor.lvt b/testfiles/luacolor.lvt
new file mode 100644
index 0000000..59c5d60
--- /dev/null
+++ b/testfiles/luacolor.lvt
@@ -0,0 +1,21 @@
+\input{regression-test}
+\documentclass{report}
+\usepackage{xcolor,fontspec}
+
+\setmainfont{texgyreheros}[Color=green]
+\usepackage{luacolor,fontspec}
+\directlua{
+  luaotfload.add_colorscheme("my_scheme", {
+    ["FF0000"] = {"b"},
+    ["0000FF"] = {"z"},
+  })
+}
+\newfontface\colorglyphs{texgyretermes}[RawFeature={color=my_scheme}]
+\newfontface\colorfont{texgyrechorus}[RawFeature={color=FF0000}]
+\begin{document}
+\START \showoutput
+
+blubzzz {\colorglyphs blubzzz} {\colorfont blubzzz}
+
+{\color{green}blubzzz {\colorglyphs blubzzz} {\colorfont blubzzz}}
+\end{document}
\ No newline at end of file
diff --git a/testfiles/luacolor.tlg b/testfiles/luacolor.tlg
new file mode 100644
index 0000000..68caca8
--- /dev/null
+++ b/testfiles/luacolor.tlg
@@ -0,0 +1,108 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0, direction TLT
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0, direction TLT
+....\hbox(0.0+0.0)x345.0, direction TLT
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 527.9436fil, direction TLT
+...\write-{}
+...\pdfcolorstack 0 push {0 g 0 G}
+...\glue(\topskip) 2.71
+...\hbox(7.29+0.17)x345.0, glue set 230.84003fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyreheros(0)/m/n/10 b
+....\TU/texgyreheros(0)/m/n/10 l
+....\TU/texgyreheros(0)/m/n/10 u
+....\TU/texgyreheros(0)/m/n/10 b
+....\TU/texgyreheros(0)/m/n/10 z
+....\TU/texgyreheros(0)/m/n/10 z
+....\TU/texgyreheros(0)/m/n/10 z
+....\glue(\spaceskip) 2.78 plus 1.39 minus 0.92667
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 b
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 l
+....\TU/texgyretermes(0)/m/n/10 u
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 b
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 z
+....\TU/texgyretermes(0)/m/n/10 z
+....\TU/texgyretermes(0)/m/n/10 z
+....\glue(\spaceskip) 2.78 plus 1.39 minus 0.92667
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyrechorus(0)/m/n/10 b
+....\TU/texgyrechorus(0)/m/n/10 l
+....\TU/texgyrechorus(0)/m/n/10 u
+....\TU/texgyrechorus(0)/m/n/10 b
+....\TU/texgyrechorus(0)/m/n/10 z
+....\TU/texgyrechorus(0)/m/n/10 z
+....\TU/texgyrechorus(0)/m/n/10 z
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\baselineskip) 4.54001
+...\hbox(7.29+0.17)x345.0, glue set 230.84003fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyreheros(0)/m/n/10 b
+....\TU/texgyreheros(0)/m/n/10 l
+....\TU/texgyreheros(0)/m/n/10 u
+....\TU/texgyreheros(0)/m/n/10 b
+....\TU/texgyreheros(0)/m/n/10 z
+....\TU/texgyreheros(0)/m/n/10 z
+....\TU/texgyreheros(0)/m/n/10 z
+....\glue(\spaceskip) 2.78 plus 1.39 minus 0.92667
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 b
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 l
+....\TU/texgyretermes(0)/m/n/10 u
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 b
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyretermes(0)/m/n/10 z
+....\TU/texgyretermes(0)/m/n/10 z
+....\TU/texgyretermes(0)/m/n/10 z
+....\glue(\spaceskip) 2.78 plus 1.39 minus 0.92667
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyrechorus(0)/m/n/10 b
+....\TU/texgyrechorus(0)/m/n/10 l
+....\TU/texgyrechorus(0)/m/n/10 u
+....\TU/texgyrechorus(0)/m/n/10 b
+....\TU/texgyrechorus(0)/m/n/10 z
+....\TU/texgyrechorus(0)/m/n/10 z
+....\TU/texgyrechorus(0)/m/n/10 z
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue -0.17
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 22.91
+..\hbox(7.09+0.0)x345.0, direction TLT
+...\hbox(7.09+0.0)x345.0, glue set 169.72fil, direction TLT
+....\glue 0.0 plus 1.0fil
+....\pdfliteral direct <lua data reference ...>
+....\TU/texgyreheros(0)/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(luacolor.aux)





More information about the latex3-commits mailing list.