Skip to content

Commit

Permalink
Merge pull request #32 from muzimuzhi/test/fully-expand-bablename
Browse files Browse the repository at this point in the history
Test against full expansion of \babelname and \mainbabelname
  • Loading branch information
gusbrs authored Jul 19, 2024
2 parents fa84952 + 6d49929 commit 90549a9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions testfiles/zc-opt-lang05.luatex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ l. ...\testtmp
> \l__zrefclever_ref_language_tl=\l__zrefclever_current_language_tl .
<recently read> }
l. ...\testtmp
> \babelname=\__cmd_start_optimized: \babelname code .
> \babelname=>ngerman.
<recently read> }
l. ...\testtmp
> \mainbabelname=\__cmd_start_optimized: \mainbabelname code .
> \mainbabelname=>ngerman.
<recently read> }
l. ...\testtmp
> \box...=
Expand Down
6 changes: 4 additions & 2 deletions testfiles/zc-opt-lang05.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
\testtmp
\renewcommand{\testtmp}{ \tl_show:N \l__zrefclever_ref_language_tl }
\testtmp
\renewcommand{\testtmp}{ \tl_show:N \babelname }
\renewcommand{\testtmp}
{ \tl_show:e { \token_to_str:N \babelname => \babelname } }
\testtmp
\renewcommand{\testtmp}{ \tl_show:N \mainbabelname }
\renewcommand{\testtmp}
{ \tl_show:e { \token_to_str:N \mainbabelname => \mainbabelname } }
\testtmp
\ExplSyntaxOff

Expand Down
4 changes: 2 additions & 2 deletions testfiles/zc-opt-lang05.xetex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ l. ...\testtmp
> \l__zrefclever_ref_language_tl=\l__zrefclever_current_language_tl .
<recently read> }
l. ...\testtmp
> \babelname=\__cmd_start_optimized: \babelname code .
> \babelname=>ngerman.
<recently read> }
l. ...\testtmp
> \mainbabelname=\__cmd_start_optimized: \mainbabelname code .
> \mainbabelname=>ngerman.
<recently read> }
l. ...\testtmp
> \box...=
Expand Down
4 changes: 2 additions & 2 deletions testfiles/zc-opt-lang06.luatex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ l. ...\testtmp
> \l__zrefclever_ref_language_tl=\l__zrefclever_main_language_tl .
<recently read> }
l. ...\testtmp
> \babelname=\__cmd_start_optimized: \babelname code .
> \babelname=>ngerman.
<recently read> }
l. ...\testtmp
> \mainbabelname=\__cmd_start_optimized: \mainbabelname code .
> \mainbabelname=>ngerman.
<recently read> }
l. ...\testtmp
> \box...=
Expand Down
6 changes: 4 additions & 2 deletions testfiles/zc-opt-lang06.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
\testtmp
\renewcommand{\testtmp}{ \tl_show:N \l__zrefclever_ref_language_tl }
\testtmp
\renewcommand{\testtmp}{ \tl_show:N \babelname }
\renewcommand{\testtmp}
{ \tl_show:e { \token_to_str:N \babelname => \babelname } }
\testtmp
\renewcommand{\testtmp}{ \tl_show:N \mainbabelname }
\renewcommand{\testtmp}
{ \tl_show:e { \token_to_str:N \mainbabelname => \mainbabelname } }
\testtmp
\ExplSyntaxOff

Expand Down
4 changes: 2 additions & 2 deletions testfiles/zc-opt-lang06.xetex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ l. ...\testtmp
> \l__zrefclever_ref_language_tl=\l__zrefclever_main_language_tl .
<recently read> }
l. ...\testtmp
> \babelname=\__cmd_start_optimized: \babelname code .
> \babelname=>ngerman.
<recently read> }
l. ...\testtmp
> \mainbabelname=\__cmd_start_optimized: \mainbabelname code .
> \mainbabelname=>ngerman.
<recently read> }
l. ...\testtmp
> \box...=
Expand Down

0 comments on commit 90549a9

Please sign in to comment.