From c5f344887b1e1b7aab4f1c3bd6a623b50ba98481 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Fri, 4 Oct 2024 13:47:51 +0800 Subject: [PATCH] Add more tests --- tests/latex/luatex-2/issue-78.lvt | 58 +++++++++++++ tests/latex/luatex-2/issue-78.tlg | 131 ++++++++++++++++++++++++++++++ tests/latex/pdftex-1/issue-78.lvt | 58 +++++++++++++ tests/latex/pdftex-1/issue-78.tlg | 17 ++++ tests/latex/pdftex-2/issue-78.lvt | 58 +++++++++++++ tests/latex/pdftex-2/issue-78.tlg | 125 ++++++++++++++++++++++++++++ 6 files changed, 447 insertions(+) create mode 100644 tests/latex/luatex-2/issue-78.lvt create mode 100644 tests/latex/luatex-2/issue-78.tlg create mode 100644 tests/latex/pdftex-1/issue-78.lvt create mode 100644 tests/latex/pdftex-1/issue-78.tlg create mode 100644 tests/latex/pdftex-2/issue-78.lvt create mode 100644 tests/latex/pdftex-2/issue-78.tlg diff --git a/tests/latex/luatex-2/issue-78.lvt b/tests/latex/luatex-2/issue-78.lvt new file mode 100644 index 0000000..0d97e5d --- /dev/null +++ b/tests/latex/luatex-2/issue-78.lvt @@ -0,0 +1,58 @@ +% + +\input{regression-test} +\documentclass{article} +\input{csl-test} + +\begin{filecontents}[overwrite, noheader]{\jobname.json} +[ + { + "id": "King2008-Gramma", + "type": "thesis", + "author": [ + { + "family": "King", + "given": "John T." + } + ], + "title": "A Grammar of Dhimal", + "publisher-place": "Netherlands", + "publisher": "Universiteit Leiden", + "URL": "https://scholarlypublications.universiteitleiden.nl/handle/1887/13072", + "genre": "doctoral dissertation", + "issued": { + "date-parts": [ + [ + "2008", + "9", + "3" + ] + ] + }, + "accessed": { + "date-parts": [ + [ + "2024", + "08", + "13" + ] + ] + } + } +] +\end{filecontents} + +\usepackage[style=chicago-fullnote-bibliography]{citation-style-language} +\cslsetup{regression-test = true} +\addbibresource{\jobname.json} + +\newcommand{\hlm}{hlm.} + + +\begin{document} +\START + +Commands don't work in the content of the page option.\cite[page = {PDF \hlm\ 20}]{King2008-Gramma} + +\OMIT +\end{document} diff --git a/tests/latex/luatex-2/issue-78.tlg b/tests/latex/luatex-2/issue-78.tlg new file mode 100644 index 0000000..95f6e28 --- /dev/null +++ b/tests/latex/luatex-2/issue-78.tlg @@ -0,0 +1,131 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@1},citationItems={{id={King2008-Gramma},label={page},locator={PDF \hlm \ 20}}},properties={noteIndex={1}}. + } +l. ......cite[page = {PDF \hlm\ 20}]{King2008-Gramma} +> \l__csl_citation_tl=John T. King, “A Grammar of Dhimal” (doctoral dissertation, Universiteit Leiden, 2008), PDF \hlm \ 20, \url {https://scholarlypublications.universiteitleiden.nl/handle/1887/13072}.. + } +l. ......cite[page = {PDF \hlm\ 20}]{King2008-Gramma} +Underfull \hbox (badness 1221) in paragraph at lines 55--55 +[][]\TU/lmr/m/n/8 John T. King, “A Gram-mar of Dhi-mal” (doc-toral dis-ser-ta-tion, Uni-ver-siteit Lei- +\hbox(6.81334+2.0)x345.0, glue set 2.30638, direction TLT +.\localpar +..\localinterlinepenalty=0 +..\localbrokenpenalty=0 +..\localleftbox=null +..\localrightbox=null +.\hbox(6.81334+0.0)x14.40002, glue set 10.23402fil, direction TLT +..\glue 0.0 plus 1.0fil minus 1.0fil +..\hbox(6.81334+0.0)x4.166, direction TLT +...\mathon +...\hbox(0.0+0.0)x0.0, direction TLT +...\hbox(3.99+0.0)x4.166, shifted -2.82333, direction TLT +....\TU/lmr/m/n/6 1 +...\mathoff +.\hbox(6.65+0.0)x0.0, direction TLT +..\rule(6.65+0.0)x0.0 +.\TU/lmr/m/n/8 J +.\TU/lmr/m/n/8 o +.\TU/lmr/m/n/8 h +.\TU/lmr/m/n/8 n +.\glue(\spaceskip) 2.832 plus 1.416 minus 0.944 +.\TU/lmr/m/n/8 T +.\TU/lmr/m/n/8 . +.\glue(\spaceskip) 2.832 plus 1.416 minus 0.944 +.\TU/lmr/m/n/8 K +.\TU/lmr/m/n/8 i +.\TU/lmr/m/n/8 n +.\TU/lmr/m/n/8 g +.\TU/lmr/m/n/8 , +.\glue(\spaceskip) 2.832 plus 1.76999 minus 0.75519 +.\TU/lmr/m/n/8 “ +.\TU/lmr/m/n/8 A +.\glue(\spaceskip) 2.832 plus 1.41458 minus 0.94493 +.\TU/lmr/m/n/8 G +.\TU/lmr/m/n/8 r +.\TU/lmr/m/n/8 a +.\TU/lmr/m/n/8 m +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 m +.\TU/lmr/m/n/8 a +.\TU/lmr/m/n/8 r +.\glue(\spaceskip) 2.832 plus 1.416 minus 0.944 +.\TU/lmr/m/n/8 o +.\TU/lmr/m/n/8 f +.\glue(\spaceskip) 2.832 plus 1.416 minus 0.944 +.\TU/lmr/m/n/8 D +.\TU/lmr/m/n/8 h +.\TU/lmr/m/n/8 i +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 m +.\TU/lmr/m/n/8 a +.\TU/lmr/m/n/8 l +.\TU/lmr/m/n/8 ” +.\glue(\spaceskip) 2.832 plus 1.416 minus 0.944 +.\TU/lmr/m/n/8 ( +.\TU/lmr/m/n/8 d +.\TU/lmr/m/n/8 o +.\kern0.24 (font) +.\TU/lmr/m/n/8 c +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 t +.\TU/lmr/m/n/8 o +.\TU/lmr/m/n/8 r +.\TU/lmr/m/n/8 a +.\TU/lmr/m/n/8 l +.\glue(\spaceskip) 2.832 plus 1.416 minus 0.944 +.\TU/lmr/m/n/8 d +.\TU/lmr/m/n/8 i +.\TU/lmr/m/n/8 s +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 s +.\TU/lmr/m/n/8 e +.\TU/lmr/m/n/8 r +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 t +.\TU/lmr/m/n/8 a +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 t +.\TU/lmr/m/n/8 i +.\TU/lmr/m/n/8 o +.\TU/lmr/m/n/8 n +.\TU/lmr/m/n/8 , +.\glue(\spaceskip) 2.832 plus 1.76999 minus 0.75519 +.\TU/lmr/m/n/8 U +.\TU/lmr/m/n/8 n +.\TU/lmr/m/n/8 i +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 v +.\kern-0.24 (font) +.\TU/lmr/m/n/8 e +.\TU/lmr/m/n/8 r +.\discretionary (penalty 50) +..< \TU/lmr/m/n/8 - +.\TU/lmr/m/n/8 s +.\TU/lmr/m/n/8 i +.\TU/lmr/m/n/8 t +.\TU/lmr/m/n/8 e +.\TU/lmr/m/n/8 i +.\TU/lmr/m/n/8 t +.\glue(\spaceskip) 2.832 plus 1.416 minus 0.944 +.\TU/lmr/m/n/8 L +.\TU/lmr/m/n/8 e +.\TU/lmr/m/n/8 i +.\TU/lmr/m/n/8 - +.\discretionary (penalty 50) +.\glue(\rightskip) 0.0 diff --git a/tests/latex/pdftex-1/issue-78.lvt b/tests/latex/pdftex-1/issue-78.lvt new file mode 100644 index 0000000..0d97e5d --- /dev/null +++ b/tests/latex/pdftex-1/issue-78.lvt @@ -0,0 +1,58 @@ +% + +\input{regression-test} +\documentclass{article} +\input{csl-test} + +\begin{filecontents}[overwrite, noheader]{\jobname.json} +[ + { + "id": "King2008-Gramma", + "type": "thesis", + "author": [ + { + "family": "King", + "given": "John T." + } + ], + "title": "A Grammar of Dhimal", + "publisher-place": "Netherlands", + "publisher": "Universiteit Leiden", + "URL": "https://scholarlypublications.universiteitleiden.nl/handle/1887/13072", + "genre": "doctoral dissertation", + "issued": { + "date-parts": [ + [ + "2008", + "9", + "3" + ] + ] + }, + "accessed": { + "date-parts": [ + [ + "2024", + "08", + "13" + ] + ] + } + } +] +\end{filecontents} + +\usepackage[style=chicago-fullnote-bibliography]{citation-style-language} +\cslsetup{regression-test = true} +\addbibresource{\jobname.json} + +\newcommand{\hlm}{hlm.} + + +\begin{document} +\START + +Commands don't work in the content of the page option.\cite[page = {PDF \hlm\ 20}]{King2008-Gramma} + +\OMIT +\end{document} diff --git a/tests/latex/pdftex-1/issue-78.tlg b/tests/latex/pdftex-1/issue-78.tlg new file mode 100644 index 0000000..666c3a6 --- /dev/null +++ b/tests/latex/pdftex-1/issue-78.tlg @@ -0,0 +1,17 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@1},citationItems={{id={King2008-Gramma},label={page},locator={PDF \hlm \ 20}}},properties={noteIndex={1}}. + } +l. ......te[page = {PDF \hlm\ 20}]{King2008-Gramma} +LaTeX Warning: Citation `King2008-Gramma' on page 1 undefined on input line .... +> \l__csl_citation_tl=[\textbf {King2008-Gramma}]. + } +l. ......te[page = {PDF \hlm\ 20}]{King2008-Gramma} diff --git a/tests/latex/pdftex-2/issue-78.lvt b/tests/latex/pdftex-2/issue-78.lvt new file mode 100644 index 0000000..0d97e5d --- /dev/null +++ b/tests/latex/pdftex-2/issue-78.lvt @@ -0,0 +1,58 @@ +% + +\input{regression-test} +\documentclass{article} +\input{csl-test} + +\begin{filecontents}[overwrite, noheader]{\jobname.json} +[ + { + "id": "King2008-Gramma", + "type": "thesis", + "author": [ + { + "family": "King", + "given": "John T." + } + ], + "title": "A Grammar of Dhimal", + "publisher-place": "Netherlands", + "publisher": "Universiteit Leiden", + "URL": "https://scholarlypublications.universiteitleiden.nl/handle/1887/13072", + "genre": "doctoral dissertation", + "issued": { + "date-parts": [ + [ + "2008", + "9", + "3" + ] + ] + }, + "accessed": { + "date-parts": [ + [ + "2024", + "08", + "13" + ] + ] + } + } +] +\end{filecontents} + +\usepackage[style=chicago-fullnote-bibliography]{citation-style-language} +\cslsetup{regression-test = true} +\addbibresource{\jobname.json} + +\newcommand{\hlm}{hlm.} + + +\begin{document} +\START + +Commands don't work in the content of the page option.\cite[page = {PDF \hlm\ 20}]{King2008-Gramma} + +\OMIT +\end{document} diff --git a/tests/latex/pdftex-2/issue-78.tlg b/tests/latex/pdftex-2/issue-78.tlg new file mode 100644 index 0000000..1025bab --- /dev/null +++ b/tests/latex/pdftex-2/issue-78.tlg @@ -0,0 +1,125 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@1},citationItems={{id={King2008-Gramma},label={page},locator={PDF \hlm \ 20}}},properties={noteIndex={1}}. + } +l. ......te[page = {PDF \hlm\ 20}]{King2008-Gramma} +> \l__csl_citation_tl=John T. King, “A Grammar of Dhimal” (doctoral dissertation, Universiteit Leiden, 2008), PDF \hlm \ 20, \url {https://scholarlypublications.universiteitleiden.nl/handle/1887/13072}.. + } +l. ......te[page = {PDF \hlm\ 20}]{King2008-Gramma} +Underfull \hbox (badness 1072) in paragraph at lines 55--55 +[][]\OT1/cmr/m/n/8 John T. King, \A Gram-mar of Dhi-mal" (doc-toral dis-ser-ta-tion, Uni-ver-siteit Lei- +\hbox(6.68999+2.0)x345.0, glue set 2.20697 +.\hbox(6.68999+0.0)x15.30023, glue set 11.13362fil +..\glue 0.0 plus 1.0fil minus 1.0fil +..\hbox(6.68999+0.0)x4.16661 +...\mathon +...\hbox(3.86665+0.0)x4.16661, shifted -2.82333 +....\OT1/cmr/m/n/6 1 +...\mathoff +.\hbox(6.65+0.0)x0.0 +..\rule(6.65+0.0)x0.0 +.\OT1/cmr/m/n/8 J +.\OT1/cmr/m/n/8 o +.\OT1/cmr/m/n/8 h +.\OT1/cmr/m/n/8 n +.\glue 2.83337 plus 1.41669 minus 0.94446 +.\OT1/cmr/m/n/8 T +.\OT1/cmr/m/n/8 . +.\glue 2.83337 plus 1.41669 minus 0.94446 +.\OT1/cmr/m/n/8 K +.\OT1/cmr/m/n/8 i +.\OT1/cmr/m/n/8 n +.\OT1/cmr/m/n/8 g +.\OT1/cmr/m/n/8 , +.\glue 2.83337 plus 1.77086 minus 0.75555 +.\OT1/cmr/m/n/8 \ +.\OT1/cmr/m/n/8 A +.\glue 2.83337 plus 1.41527 minus 0.94539 +.\OT1/cmr/m/n/8 G +.\OT1/cmr/m/n/8 r +.\OT1/cmr/m/n/8 a +.\OT1/cmr/m/n/8 m +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 m +.\OT1/cmr/m/n/8 a +.\OT1/cmr/m/n/8 r +.\glue 2.83337 plus 1.41669 minus 0.94446 +.\OT1/cmr/m/n/8 o +.\OT1/cmr/m/n/8 f +.\glue 2.83337 plus 1.41669 minus 0.94446 +.\OT1/cmr/m/n/8 D +.\OT1/cmr/m/n/8 h +.\OT1/cmr/m/n/8 i +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 m +.\OT1/cmr/m/n/8 a +.\OT1/cmr/m/n/8 l +.\OT1/cmr/m/n/8 " +.\glue 2.83337 plus 1.41669 minus 0.94446 +.\OT1/cmr/m/n/8 ( +.\OT1/cmr/m/n/8 d +.\OT1/cmr/m/n/8 o +.\kern0.23611 +.\OT1/cmr/m/n/8 c +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 t +.\OT1/cmr/m/n/8 o +.\OT1/cmr/m/n/8 r +.\OT1/cmr/m/n/8 a +.\OT1/cmr/m/n/8 l +.\glue 2.83337 plus 1.41669 minus 0.94446 +.\OT1/cmr/m/n/8 d +.\OT1/cmr/m/n/8 i +.\OT1/cmr/m/n/8 s +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 s +.\OT1/cmr/m/n/8 e +.\OT1/cmr/m/n/8 r +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 t +.\OT1/cmr/m/n/8 a +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 t +.\OT1/cmr/m/n/8 i +.\OT1/cmr/m/n/8 o +.\OT1/cmr/m/n/8 n +.\OT1/cmr/m/n/8 , +.\glue 2.83337 plus 1.77086 minus 0.75555 +.\OT1/cmr/m/n/8 U +.\OT1/cmr/m/n/8 n +.\OT1/cmr/m/n/8 i +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 v +.\kern-0.23611 +.\OT1/cmr/m/n/8 e +.\OT1/cmr/m/n/8 r +.\discretionary +..\OT1/cmr/m/n/8 - +.\OT1/cmr/m/n/8 s +.\OT1/cmr/m/n/8 i +.\OT1/cmr/m/n/8 t +.\OT1/cmr/m/n/8 e +.\OT1/cmr/m/n/8 i +.\OT1/cmr/m/n/8 t +.\glue 2.83337 plus 1.41669 minus 0.94446 +.\OT1/cmr/m/n/8 L +.\OT1/cmr/m/n/8 e +.\OT1/cmr/m/n/8 i +.\discretionary +.\OT1/cmr/m/n/8 - +.\glue(\rightskip) 0.0