[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Add tests for fixedspace feature (bdabac5)
Marcel Fabian Krüger
tex at 2krueger.de
Mon Jun 21 14:02:30 CEST 2021
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/bdabac57827b09a5cea86a3108a1e0bb69f2fc73
>---------------------------------------------------------------
commit bdabac57827b09a5cea86a3108a1e0bb69f2fc73
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon Jun 21 13:58:11 2021 +0200
Add tests for fixedspace feature
>---------------------------------------------------------------
bdabac57827b09a5cea86a3108a1e0bb69f2fc73
testfiles-harf/fixedspace.lvt | 26 ++++++++
testfiles-harf/fixedspace.tlg | 146 ++++++++++++++++++++++++++++++++++++++++++
testfiles/fixedspace.lvt | 26 ++++++++
testfiles/fixedspace.tlg | 146 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 344 insertions(+)
diff --git a/testfiles-harf/fixedspace.lvt b/testfiles-harf/fixedspace.lvt
new file mode 100644
index 0000000..775bda6
--- /dev/null
+++ b/testfiles-harf/fixedspace.lvt
@@ -0,0 +1,26 @@
+% !Mode:: "TeX:DE:UTF-8:Main"
+\documentclass{article}
+\input{regression-test}
+
+\begin{document}
+\showoutput
+\START
+\font \lmrDefaultspace "kpse:lmroman10-regular.otf:mode=harf"\lmrDefaultspace
+abc def
+
+\font \lmrVarspace "kpse:lmroman10-regular.otf:mode=harf,-fixedspace"\lmrVarspace
+abc def
+
+\font \lmrFixedspace "kpse:lmroman10-regular.otf:mode=harf,+fixedspace"\lmrFixedspace
+abc def
+
+\font \lmttDefaultspace "kpse:lmmono10-regular.otf:mode=harf"\lmttDefaultspace
+abc def
+
+\font \lmttVarspace "kpse:lmmono10-regular.otf:mode=harf,-fixedspace"\lmttVarspace
+abc def
+
+\font \lmttFixedspace "kpse:lmmono10-regular.otf:mode=harf,+fixedspace"\lmttFixedspace
+abc def
+
+\end{document}
diff --git a/testfiles-harf/fixedspace.tlg b/testfiles-harf/fixedspace.tlg
new file mode 100644
index 0000000..415c304
--- /dev/null
+++ b/testfiles-harf/fixedspace.tlg
@@ -0,0 +1,146 @@
+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 479.94873fil, direction TLT
+...\write-{}
+...\glue(\topskip) 2.92355
+...\hbox(7.07645+0.11041)x345.0, glue set 298.21124fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmrDefaultspace a
+....\lmrDefaultspace b
+....\kern0.28105 (font)
+....\lmrDefaultspace c
+....\glue(\spaceskip) 3.34248 plus 1.67125 minus 1.11417
+....\lmrDefaultspace d
+....\lmrDefaultspace e
+....\lmrDefaultspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.81314
+...\hbox(7.07645+0.11041)x345.0, glue set 298.21124fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmrVarspace a
+....\lmrVarspace b
+....\kern0.28105 (font)
+....\lmrVarspace c
+....\glue(\spaceskip) 3.34248 plus 1.67125 minus 1.11417
+....\lmrVarspace d
+....\lmrVarspace e
+....\lmrVarspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.81314
+...\hbox(7.07645+0.11041)x345.0, glue set 298.21124fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmrFixedspace a
+....\lmrFixedspace b
+....\kern0.28105 (font)
+....\lmrFixedspace c
+....\glue(\spaceskip) 3.34248
+....\lmrFixedspace d
+....\lmrFixedspace e
+....\lmrFixedspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.69644
+...\hbox(6.19315+0.06023)x345.0, glue set 293.11221fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmttDefaultspace a
+....\lmttDefaultspace b
+....\lmttDefaultspace c
+....\glue(\spaceskip) 5.26968
+....\lmttDefaultspace d
+....\lmttDefaultspace e
+....\lmttDefaultspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.74663
+...\hbox(6.19315+0.06023)x345.0, glue set 293.11221fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmttVarspace a
+....\lmttVarspace b
+....\lmttVarspace c
+....\glue(\spaceskip) 5.26968 plus 2.63484 minus 1.75656
+....\lmttVarspace d
+....\lmttVarspace e
+....\lmttVarspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.74663
+...\hbox(6.19315+0.06023)x345.0, glue set 293.11221fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmttFixedspace a
+....\lmttFixedspace b
+....\lmttFixedspace c
+....\glue(\spaceskip) 5.26968
+....\lmttFixedspace d
+....\lmttFixedspace e
+....\lmttFixedspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue -0.06023
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.34
+..\hbox(6.66+0.0)x345.0, direction TLT
+...\hbox(6.66+0.0)x345.0, glue set 170.0fil, direction TLT
+....\glue 0.0 plus 1.0fil
+....\TU/lmr/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(fixedspace.aux)
diff --git a/testfiles/fixedspace.lvt b/testfiles/fixedspace.lvt
new file mode 100644
index 0000000..4cbe7ae
--- /dev/null
+++ b/testfiles/fixedspace.lvt
@@ -0,0 +1,26 @@
+% !Mode:: "TeX:DE:UTF-8:Main"
+\documentclass{article}
+\input{regression-test}
+
+\begin{document}
+\showoutput
+\START
+\font \lmrDefaultspace "kpse:lmroman10-regular.otf"\lmrDefaultspace
+abc def
+
+\font \lmrVarspace "kpse:lmroman10-regular.otf:-fixedspace"\lmrVarspace
+abc def
+
+\font \lmrFixedspace "kpse:lmroman10-regular.otf:+fixedspace"\lmrFixedspace
+abc def
+
+\font \lmttDefaultspace "kpse:lmmono10-regular.otf"\lmttDefaultspace
+abc def
+
+\font \lmttVarspace "kpse:lmmono10-regular.otf:-fixedspace"\lmttVarspace
+abc def
+
+\font \lmttFixedspace "kpse:lmmono10-regular.otf:+fixedspace"\lmttFixedspace
+abc def
+
+\end{document}
diff --git a/testfiles/fixedspace.tlg b/testfiles/fixedspace.tlg
new file mode 100644
index 0000000..4c78df1
--- /dev/null
+++ b/testfiles/fixedspace.tlg
@@ -0,0 +1,146 @@
+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 479.94873fil, direction TLT
+...\write-{}
+...\glue(\topskip) 2.95
+...\hbox(7.05+0.11)x345.0, glue set 298.33002fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmrDefaultspace a
+....\lmrDefaultspace b
+....\kern0.28 (font)
+....\lmrDefaultspace c
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\lmrDefaultspace d
+....\lmrDefaultspace e
+....\lmrDefaultspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.84
+...\hbox(7.05+0.11)x345.0, glue set 298.33002fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmrVarspace a
+....\lmrVarspace b
+....\kern0.28 (font)
+....\lmrVarspace c
+....\glue(\spaceskip) 3.33 plus 1.665 minus 1.11
+....\lmrVarspace d
+....\lmrVarspace e
+....\lmrVarspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 4.84
+...\hbox(7.05+0.11)x345.0, glue set 298.33002fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmrFixedspace a
+....\lmrFixedspace b
+....\kern0.28 (font)
+....\lmrFixedspace c
+....\glue(\spaceskip) 3.33
+....\lmrFixedspace d
+....\lmrFixedspace e
+....\lmrFixedspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.72
+...\hbox(6.17+0.06)x345.0, glue set 293.25fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmttDefaultspace a
+....\lmttDefaultspace b
+....\lmttDefaultspace c
+....\glue(\spaceskip) 5.25
+....\lmttDefaultspace d
+....\lmttDefaultspace e
+....\lmttDefaultspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.77
+...\hbox(6.17+0.06)x345.0, glue set 293.25fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmttVarspace a
+....\lmttVarspace b
+....\lmttVarspace c
+....\glue(\spaceskip) 5.25 plus 2.625 minus 1.75
+....\lmttVarspace d
+....\lmttVarspace e
+....\lmttVarspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 5.77
+...\hbox(6.17+0.06)x345.0, glue set 293.25fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\lmttFixedspace a
+....\lmttFixedspace b
+....\lmttFixedspace c
+....\glue(\spaceskip) 5.25
+....\lmttFixedspace d
+....\lmttFixedspace e
+....\lmttFixedspace f
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue -0.06
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.34
+..\hbox(6.66+0.0)x345.0, direction TLT
+...\hbox(6.66+0.0)x345.0, glue set 170.0fil, direction TLT
+....\glue 0.0 plus 1.0fil
+....\TU/lmr/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(fixedspace.aux)
More information about the latex3-commits
mailing list.