[latex3-commits] [git/LaTeX3-latex3-babel] main: Tests for luatex. (cdd94ad)
Javier
email at dante.de
Fri Sep 9 18:32:14 CEST 2022
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/cdd94adaea08b9e13bd2c23eedff88bcbb48ac06
>---------------------------------------------------------------
commit cdd94adaea08b9e13bd2c23eedff88bcbb48ac06
Author: Javier <email at localhost>
Date: Fri Sep 9 18:32:14 2022 +0200
Tests for luatex.
>---------------------------------------------------------------
cdd94adaea08b9e13bd2c23eedff88bcbb48ac06
.gitignore | 1 +
build.lua | 3 +
config-lua.lua | 3 +
testfiles-lua/bbl-340.lvt | 57 ++++++++++++
testfiles-lua/bbl-340.tlg | 223 ++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 287 insertions(+)
diff --git a/.gitignore b/.gitignore
index 2c88f25..be5488e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ build/*
!*/testfiles/*.pdf
/xbuild.lua
/testfiles/log_tests.diff
+/*.py
diff --git a/build.lua b/build.lua
index 719fb40..b30101a 100644
--- a/build.lua
+++ b/build.lua
@@ -32,6 +32,9 @@ checksuppfiles = {"test2e.tex"}
-- Build TDS-style zips
packtdszip = true
+-- Lua test files
+checkconfigs = {"build","config-lua"}
+
-- Find and run the build system
kpse.set_program_name ("kpsewhich")
if not release_date then
diff --git a/config-lua.lua b/config-lua.lua
new file mode 100644
index 0000000..630479b
--- /dev/null
+++ b/config-lua.lua
@@ -0,0 +1,3 @@
+stdengine = "luatex"
+checkengines = {"luatex"}
+testfiledir = "testfiles-lua"
diff --git a/testfiles-lua/bbl-340.lvt b/testfiles-lua/bbl-340.lvt
new file mode 100644
index 0000000..1fa77c9
--- /dev/null
+++ b/testfiles-lua/bbl-340.lvt
@@ -0,0 +1,57 @@
+\input{test2e}
+\documentclass{article}
+
+\makeatletter
+ \def\TestBox#1{%
+ \def\Test at Temp{#1}%
+ \texttt{\expandafter\strip at prefix\meaning\Test at Temp} = {#1}%
+ \setbox0\hbox{#1}%
+ \message{^^J\expandafter\strip at prefix\meaning\Test at Temp
+ \space\string= \the\wd0, \the\ht0, \the\dp0}}
+\makeatother
+
+\START
+\OMIT
+
+\usepackage[english, hyphenmap=other*]{babel}
+
+\day=15
+\month=12
+\year2016
+
+\babelprovide[import]{lao}
+\babelprovide[import]{ancientgreek}
+\babelprovide[import]{monotonicgreek}
+\babelprovide[import]{medievallatin}
+
+\babelfont[ancientgreek]{rm}{FreeSerif}
+
+\begin{document}
+\TIMO
+
+\selectlanguage{lao}
+
+\selectlanguage{ancientgreek}
+
+\TestBox{\today}
+
+\TestBox{\greeknumeral{1} \greeknumeral{56} \greeknumeral{123987}}
+
+\TestBox{\MakeUppercase{\greeknumeral{1} \greeknumeral{56} \greeknumeral{123987}}}
+
+\selectlanguage{medievallatin}
+
+\TestBox{\today}
+
+\TestBox{\MakeUppercase{lupus}}
+
+\TestBox{\MakeLowercase{LVPVS}}
+
+\hsize1pt
+
+\begin{otherlanguage*}{italian}
+Il risorgimento per l'unità d'Italia.\TestPos{italian}\par
+\end{otherlanguage*}
+
+\OMIT
+\end{document}
diff --git a/testfiles-lua/bbl-340.tlg b/testfiles-lua/bbl-340.tlg
new file mode 100644
index 0000000..e8ea0de
--- /dev/null
+++ b/testfiles-lua/bbl-340.tlg
@@ -0,0 +1,223 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+\today = 82.64001pt, 7.75pt, 2.24pt
+\greeknumeral {1} \greeknumeral {56} \greeknumeral {123987} = 66.87003pt, 7.35pt, 2.24pt
+\MakeUppercase {\greeknumeral {1} \greeknumeral {56} \greeknumeral {123987}} = 77.96004pt, 7.35pt, 2.23pt
+Overfull \hbox (16.5pt too wide) in paragraph at lines 40--41
+[]\TU/lmtt/m/n/10 \MakeUppercase {\greeknumeral {1} \greeknumeral {56} \greeknum
+eral
+\hbox(6.94+2.29)x345.0, direction TLT
+.\localpar
+..\localinterlinepenalty=0
+..\localbrokenpenalty=0
+..\localleftbox=null
+..\localrightbox=null
+.\hbox(0.0+0.0)x15.0, direction TLT
+.\TU/lmtt/m/n/10 \
+.\TU/lmtt/m/n/10 M
+.\TU/lmtt/m/n/10 a
+.\TU/lmtt/m/n/10 k
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 U
+.\TU/lmtt/m/n/10 p
+.\TU/lmtt/m/n/10 p
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 r
+.\TU/lmtt/m/n/10 c
+.\TU/lmtt/m/n/10 a
+.\TU/lmtt/m/n/10 s
+.\TU/lmtt/m/n/10 e
+.\glue(\spaceskip) 5.25
+.\TU/lmtt/m/n/10 {
+.\TU/lmtt/m/n/10 \
+.\TU/lmtt/m/n/10 g
+.\TU/lmtt/m/n/10 r
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 k
+.\TU/lmtt/m/n/10 n
+.\TU/lmtt/m/n/10 u
+.\TU/lmtt/m/n/10 m
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 r
+.\TU/lmtt/m/n/10 a
+.\TU/lmtt/m/n/10 l
+.\glue(\spaceskip) 5.25
+.\TU/lmtt/m/n/10 {
+.\TU/lmtt/m/n/10 1
+.\TU/lmtt/m/n/10 }
+.\glue(\spaceskip) 5.25
+.\TU/lmtt/m/n/10 \
+.\TU/lmtt/m/n/10 g
+.\TU/lmtt/m/n/10 r
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 k
+.\TU/lmtt/m/n/10 n
+.\TU/lmtt/m/n/10 u
+.\TU/lmtt/m/n/10 m
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 r
+.\TU/lmtt/m/n/10 a
+.\TU/lmtt/m/n/10 l
+.\glue(\spaceskip) 5.25
+.\TU/lmtt/m/n/10 {
+.\TU/lmtt/m/n/10 5
+.\TU/lmtt/m/n/10 6
+.\TU/lmtt/m/n/10 }
+.\glue(\spaceskip) 5.25
+.\TU/lmtt/m/n/10 \
+.\TU/lmtt/m/n/10 g
+.\TU/lmtt/m/n/10 r
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 k
+.\TU/lmtt/m/n/10 n
+.\TU/lmtt/m/n/10 u
+.\TU/lmtt/m/n/10 m
+.\TU/lmtt/m/n/10 e
+.\TU/lmtt/m/n/10 r
+.\TU/lmtt/m/n/10 a
+.\TU/lmtt/m/n/10 l
+.\glue(\rightskip) 0.0
+\today = 103.82pt, 6.94pt, 0.22pt
+\MakeUppercase {lupus} = 32.51pt, 7.05pt, 0.22pt
+\MakeLowercase {LVPVS} = 23.4pt, 6.94pt, 1.94pt
+(../babel-italian.tex
+Package babel Info: Importing basic data for italian
+(babel) from babel-it.ini. Reported on input line ....
+)
+(../loadhyph-it.tex UTF-8 Italian hyphenation patterns
+(../hyph-it.tex)
+(../hyph-quote-it.tex))
+! Undefined control sequence.
+l. ...Il risorgimento per l'unit^^e0 d'Italia.\TestPos
+ {italian}\par
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
+Overfull \hbox (20.39pt too wide) in paragraph at lines 53--53
+[]\TU/lmr/m/n/10 Il
+\hbox(6.94+0.0)x1.0, direction TLT
+.\localpar
+..\localinterlinepenalty=0
+..\localbrokenpenalty=0
+..\localleftbox=null
+..\localrightbox=null
+.\hbox(0.0+0.0)x15.0, direction TLT
+.\TU/lmr/m/n/10 I
+.\TU/lmr/m/n/10 l
+.\glue(\rightskip) 0.0
+Overfull \hbox (9.03pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 ri-
+\hbox(6.57+0.0)x1.0, direction TLT
+.\TU/lmr/m/n/10 r
+.\TU/lmr/m/n/10 i
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (15.19pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 sor-
+\hbox(4.48+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 s
+.\TU/lmr/m/n/10 o
+.\TU/lmr/m/n/10 r
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (10.11pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 gi-
+\hbox(6.57+2.06)x1.0, direction TLT
+.\TU/lmr/m/n/10 g
+.\TU/lmr/m/n/10 i
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (20.66pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 men-
+\hbox(4.48+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 m
+.\TU/lmr/m/n/10 e
+.\TU/lmr/m/n/10 n
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (7.89pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 to
+\hbox(6.15+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 t
+.\TU/lmr/m/n/10 o
+.\glue(\rightskip) 0.0
+Overfull \hbox (13.2pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 per
+\hbox(4.48+1.94)x1.0, direction TLT
+.\TU/lmr/m/n/10 p
+.\kern0.28 (font)
+.\TU/lmr/m/n/10 e
+.\TU/lmr/m/n/10 r
+.\glue(\rightskip) 0.0
+Overfull \hbox (13.45pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 l’u-
+\hbox(6.94+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 l
+.\TU/lmr/m/n/10 ’
+.\TU/lmr/m/n/10 u
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (10.67pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 ni-
+\hbox(6.57+0.0)x1.0, direction TLT
+.\TU/lmr/m/n/10 n
+.\TU/lmr/m/n/10 i
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (7.89pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 t^^e0
+\hbox(6.98+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 t
+.\TU/lmr/m/n/10 ^^e0
+.\glue(\rightskip) 0.0
+Overfull \hbox (14.28pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 d’I-
+\hbox(6.94+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 d
+.\TU/lmr/m/n/10 ’
+.\TU/lmr/m/n/10 I
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (11.22pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 ta-
+\hbox(6.15+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 t
+.\TU/lmr/m/n/10 a
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (27.34pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 lia.ita-
+\hbox(6.94+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 l
+.\TU/lmr/m/n/10 i
+.\TU/lmr/m/n/10 a
+.\TU/lmr/m/n/10 .
+.\TU/lmr/m/n/10 i
+.\TU/lmr/m/n/10 t
+.\TU/lmr/m/n/10 a
+.\TU/lmr/m/n/10 -
+.\discretionary (penalty 50)
+.\glue(\rightskip) 0.0
+Overfull \hbox (15.12pt too wide) in paragraph at lines 53--53
+\TU/lmr/m/n/10 lian
+\hbox(6.94+0.11)x1.0, direction TLT
+.\TU/lmr/m/n/10 l
+.\TU/lmr/m/n/10 i
+.\TU/lmr/m/n/10 a
+.\TU/lmr/m/n/10 n
+.\penalty 10000
+.\glue(\parfillskip) 0.0 plus 1.0fil
+.\glue(\rightskip) 0.0
More information about the latex3-commits
mailing list.