texlive[64310] Master/texmf-dist: siunitx (7sep22)

commits+karl at tug.org commits+karl at tug.org
Wed Sep 7 22:42:47 CEST 2022


Revision: 64310
          http://tug.org/svn/texlive?view=revision&revision=64310
Author:   karl
Date:     2022-09-07 22:42:47 +0200 (Wed, 07 Sep 2022)
Log Message:
-----------
siunitx (7sep22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
    trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
    trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty

Modified: trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2022-09-07 20:42:47 UTC (rev 64310)
@@ -7,6 +7,11 @@
 
 ## [Unreleased]
 
+## [v3.1.7] - 2022-09-07
+
+### Changed
+- Defensive step against active symbol characters in Unicode engines
+
 ## [v3.1.6] - 2022-08-08
 
 ### Fixed
@@ -1806,7 +1811,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.6...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.7...HEAD
+[v3.1.7]: https://github.com/josephwright/siunitx/compare/v3.1.6...v3.1.7
 [v3.1.6]: https://github.com/josephwright/siunitx/compare/v3.1.5...v3.1.6
 [v3.1.5]: https://github.com/josephwright/siunitx/compare/v3.1.4...v3.1.5
 [v3.1.4]: https://github.com/josephwright/siunitx/compare/v3.1.3...v3.1.4

Modified: trunk/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx	2022-09-07 20:42:47 UTC (rev 64310)
@@ -950,7 +950,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \@@_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \@@_non_latin:n #1

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2022-09-07 20:42:47 UTC (rev 64310)
@@ -1906,7 +1906,7 @@
 % \end{variable}
 %
 % \begin{macro}{\@@_set_round_min:n}
-% \begin{macro}[EXP]{\@@_set_round_min:nnnnnnn}
+% \begin{macro}{\@@_set_round_min:nnnnnnn}
 %  For setting the rounding minimum, the aim is to do as much of the work
 %  now as possible. That's mainly a question of checking if there are any
 %  significant digits in the mantissa given.
@@ -1916,7 +1916,7 @@
     \siunitx_number_parse:nN {#1} \l_@@_tmp_tl
     \exp_after:wN \@@_set_round_min:nnnnnnn \l_@@_tmp_tl
   }
-\cs_new:Npn \@@_set_round_min:nnnnnnn #1#2#3#4#5#6#7
+\cs_new_protected:Npn \@@_set_round_min:nnnnnnn #1#2#3#4#5#6#7
   {
     \tl_set:Nx \l_@@_round_min_tl
       {
@@ -3114,7 +3114,7 @@
 %   Before doing any rounding, we need to be sure that the main value has
 %   enough significant digits. If not, the result is zero.
 %    \begin{macrocode}
-\cs_new:Npn \__siunitx_number_round_uncertainty:nnn #1#2#3
+\cs_new:Npn \@@_round_uncertainty:nnn #1#2#3
   {
      \@@_round_uncertainty_check:nnnw {#1} {#2} {#3}
        #1#2 \q_recursion_tail \q_recursion_stop

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx	2022-09-07 20:42:47 UTC (rev 64310)
@@ -428,7 +428,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \@@_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \@@_non_latin:n #1

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx	2022-09-07 20:42:47 UTC (rev 64310)
@@ -104,7 +104,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \@@_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \@@_non_latin:n #1

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx	2022-09-07 20:42:47 UTC (rev 64310)
@@ -2644,7 +2644,10 @@
 %   A small amount of code to make it convenient to include non-Latin
 %   characters in units without having to directly include them in the
 %   sources directly. We only make the first token active as some packages
-%   (\foreign{e.g.}~\pkg{kotex}) do this.
+%   (\foreign{e.g.}~\pkg{kotex}) do this. For Unicode engines, we
+%   might run into some odd situations where active characters are in
+%   use (\foreign{e.g.}~\pkg{luainputenc}), so take precautions here
+%   too,
 %    \begin{macrocode}
 \bool_lazy_or:nnTF
   { \sys_if_engine_luatex_p: }
@@ -2651,7 +2654,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \@@_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \@@_non_latin:n #1

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-09-07 20:42:47 UTC (rev 64310)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2022-08-08} {3.1.6}
+\ProvidesExplPackage {siunitx} {2022-09-07} {3.1.7}
   {A comprehensive (SI) units package}
 %    \end{macrocode}
 %

Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-09-07 20:42:11 UTC (rev 64309)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-09-07 20:42:47 UTC (rev 64310)
@@ -42,7 +42,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2022-08-08} {3.1.6}
+\ProvidesExplPackage {siunitx} {2022-09-07} {3.1.7}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -2466,7 +2466,7 @@
     \siunitx_number_parse:nN {#1} \l__siunitx_number_tmp_tl
     \exp_after:wN \__siunitx_number_set_round_min:nnnnnnn \l__siunitx_number_tmp_tl
   }
-\cs_new:Npn \__siunitx_number_set_round_min:nnnnnnn #1#2#3#4#5#6#7
+\cs_new_protected:Npn \__siunitx_number_set_round_min:nnnnnnn #1#2#3#4#5#6#7
   {
     \tl_set:Nx \l__siunitx_number_round_min_tl
       {
@@ -6729,7 +6729,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \__siunitx_unit_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \__siunitx_unit_non_latin:n #1
@@ -7073,7 +7076,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \__siunitx_quantity_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \__siunitx_quantity_non_latin:n #1
@@ -7110,7 +7116,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \__siunitx_symbol_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \__siunitx_symbol_non_latin:n #1
@@ -8612,7 +8621,10 @@
   { \sys_if_engine_xetex_p: }
   {
     \cs_new:Npn \__siunitx_emulation_non_latin:n #1
-      { \char_generate:nn {#1} { \char_value_catcode:n {#1} } }
+      {
+        \exp_after:wN \exp_after:wN \exp_after:wN
+          \exp_not:N \char_generate:nn {#1} { \char_value_catcode:n {#1} }
+      }
   }
   {
     \cs_new:Npn \__siunitx_emulation_non_latin:n #1



More information about the tex-live-commits mailing list.