texlive[61934] Master/texmf-dist: siunitx (7feb22)

commits+karl at tug.org commits+karl at tug.org
Mon Feb 7 22:40:38 CET 2022


Revision: 61934
          http://tug.org/svn/texlive?view=revision&revision=61934
Author:   karl
Date:     2022-02-07 22:40:38 +0100 (Mon, 07 Feb 2022)
Log Message:
-----------
siunitx (7feb22)

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-locale.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex
    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-02-07 21:40:18 UTC (rev 61933)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2022-02-07 21:40:38 UTC (rev 61934)
@@ -7,6 +7,15 @@
 
 ## [Unreleased]
 
+## [v3.0.48] - 2022-02-07
+
+### Added
+- Polish locale
+
+### Fixed
+- Printing blank entries in text mode (see issue
+  [\#5853](https://github.com/josephwright/siunitx/issues/585))
+
 ## [v3.0.47] - 2022-02-03
 
 ### Changed
@@ -1703,7 +1712,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.47...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.48...HEAD
+[v3.0.48]: https://github.com/josephwright/siunitx/compare/v3.0.47...v3.0.48
 [v3.0.47]: https://github.com/josephwright/siunitx/compare/v3.0.46...v3.0.47
 [v3.0.46]: https://github.com/josephwright/siunitx/compare/v3.0.45...v3.0.46
 [v3.0.45]: https://github.com/josephwright/siunitx/compare/v3.0.44...v3.0.45

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-locale.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-locale.dtx	2022-02-07 21:40:18 UTC (rev 61933)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-locale.dtx	2022-02-07 21:40:38 UTC (rev 61934)
@@ -101,6 +101,12 @@
         inter-unit-product    = \,    ,
         output-decimal-marker = { , }
       } ,
+    locale / PL .meta:n =
+      {
+        exponent-product      = \cdot ,
+        inter-unit-product    = \cdot ,
+        output-decimal-marker = { , }
+      } ,
     locale / FR .meta:n =
       {
         exponent-product      = \times ,
@@ -148,6 +154,7 @@
     \DeclareTranslation { English } { to~(numerical~range) } { to }
     \DeclareTranslation { French }  { to~(numerical~range) } { à }
     \DeclareTranslation { German }  { to~(numerical~range) } { bis }
+    \DeclareTranslation { Polish }  { to~(numerical~range) } { do }
     \DeclareTranslation { Slovene } { to~(numerical~range) } { do }
     \DeclareTranslation { Spanish } { to~(numerical~range) } { a }
     \keys_set:nn { siunitx }

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx	2022-02-07 21:40:18 UTC (rev 61933)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx	2022-02-07 21:40:38 UTC (rev 61934)
@@ -842,20 +842,23 @@
         { \@@_text_replace:Nnnnn #1 }
         {
           \tl_set:Nn \l_@@_tmp_tl {#1}
-          \tl_if_empty:NF \l_siunitx_unit_font_tl
-            { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
-          \cs_set:Npn \mathord ##1
-            { \@@_text_replace_first:N ##1 }
-          \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
-          \tl_map_inline:nn
-            { \mp \ge \le \gg \ll }
-            { \cs_set:Npn ##1 { \exp_not:N \ensuremath { \exp_not:N ##1 } } }
-          \cs_set:Npn \cdot { \: \exp_not:N \textperiodcentered \: }
-          \cs_set:Npn \times { \: \exp_not:N \texttimes \: }
-          \protected at edef \l_@@_tmp_tl
-            {  \exp_after:wN \@@_text_replace_first:N \l_@@_tmp_tl }
-          \@@_text_replace:N \l_@@_tmp_tl
-          \@@_text_replace_aux:n { \tl_use:N \l_@@_tmp_tl }
+          \tl_if_empty:NF \l_@@_tmp_tl
+            {
+              \tl_if_empty:NF \l_siunitx_unit_font_tl
+                { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
+              \cs_set:Npn \mathord ##1
+                { \@@_text_replace_first:N ##1 }
+              \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
+              \tl_map_inline:nn
+                { \mp \ge \le \gg \ll }
+                { \cs_set:Npn ##1 { \exp_not:N \ensuremath { \exp_not:N ##1 } } }
+              \cs_set:Npn \cdot { \: \exp_not:N \textperiodcentered \: }
+              \cs_set:Npn \times { \: \exp_not:N \texttimes \: }
+              \protected at edef \l_@@_tmp_tl
+                { \exp_after:wN \@@_text_replace_first:N \l_@@_tmp_tl }
+              \@@_text_replace:N \l_@@_tmp_tl
+              \@@_text_replace_aux:n { \tl_use:N \l_@@_tmp_tl }
+            }
         }
     \group_end:
   }

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-02-07 21:40:18 UTC (rev 61933)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-02-07 21:40:38 UTC (rev 61934)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2022-02-03} {3.0.47}
+\ProvidesExplPackage {siunitx} {2022-02-07} {3.0.48}
   {A comprehensive (SI) units package}
 %    \end{macrocode}
 %

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex	2022-02-07 21:40:18 UTC (rev 61933)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex	2022-02-07 21:40:38 UTC (rev 61934)
@@ -79,7 +79,7 @@
 }
 
 % For demos
-\usepackage[french,german,spanish,UKenglish]{babel}
+\usepackage[french,german,polish,spanish,UKenglish]{babel}
 \AtBeginDocument{\shorthandoff{:<>}}
 \usepackage{translations}
 \usepackage{cancel}
@@ -2860,7 +2860,7 @@
 \pkg{siunitx} allows the user to switch between the typographic conventions of
 different (geographical) areas by using locales. Currently, the package is
 supplied with configurations for locales \opt{UK}, \opt{US}, \opt{DE}
-(Germany), \opt{FR} (French), \opt{SI} (Slovene) and \opt{ZA} (South Africa).
+(Germany), \opt{PL} (Poland), \opt{FR} (French), \opt{SI} (Slovene) and \opt{ZA} (South Africa).
 The \opt{locale}
 option is used to switch to a particular locale.
 \begin{LaTeXdemo}
@@ -3033,7 +3033,7 @@
 \end{LaTeXdemo}
 If the current language is known to the \pkg{translator} package then the
 result will be localised text. The preamble for this manual loads English,
-French, German and Spanish as options, and also loads the \pkg{babel} package:
+French, German, Polish and Spanish as options, and also loads the \pkg{babel} package:
 \begin{LaTeXdemo}
   % In English by default
   \numlist{1;2;3} \\
@@ -3044,6 +3044,9 @@
   \selectlanguage{german}%
   \numlist{1;2;3} \\
   \numrange{1}{10} \\
+  \selectlanguage{polish}%
+  \numlist{1;2;3} \\
+  \numrange{1}{10} \\
   \selectlanguage{spanish}%
   \numlist{1;2;3} \\
   \numrange{1}{10}

Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-02-07 21:40:18 UTC (rev 61933)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-02-07 21:40:38 UTC (rev 61934)
@@ -42,7 +42,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2022-02-03} {3.0.47}
+\ProvidesExplPackage {siunitx} {2022-02-07} {3.0.48}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -1427,6 +1427,12 @@
         inter-unit-product    = \,    ,
         output-decimal-marker = { , }
       } ,
+    locale / PL .meta:n =
+      {
+        exponent-product      = \cdot ,
+        inter-unit-product    = \cdot ,
+        output-decimal-marker = { , }
+      } ,
     locale / FR .meta:n =
       {
         exponent-product      = \times ,
@@ -1467,6 +1473,7 @@
     \DeclareTranslation { English } { to~(numerical~range) } { to }
     \DeclareTranslation { French }  { to~(numerical~range) } { à }
     \DeclareTranslation { German }  { to~(numerical~range) } { bis }
+    \DeclareTranslation { Polish }  { to~(numerical~range) } { do }
     \DeclareTranslation { Slovene } { to~(numerical~range) } { do }
     \DeclareTranslation { Spanish } { to~(numerical~range) } { a }
     \keys_set:nn { siunitx }
@@ -3966,20 +3973,23 @@
         { \__siunitx_print_text_replace:Nnnnn #1 }
         {
           \tl_set:Nn \l__siunitx_print_tmp_tl {#1}
-          \tl_if_empty:NF \l_siunitx_unit_font_tl
-            { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
-          \cs_set:Npn \mathord ##1
-            { \__siunitx_print_text_replace_first:N ##1 }
-          \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
-          \tl_map_inline:nn
-            { \mp \ge \le \gg \ll }
-            { \cs_set:Npn ##1 { \exp_not:N \ensuremath { \exp_not:N ##1 } } }
-          \cs_set:Npn \cdot { \: \exp_not:N \textperiodcentered \: }
-          \cs_set:Npn \times { \: \exp_not:N \texttimes \: }
-          \protected at edef \l__siunitx_print_tmp_tl
-            {  \exp_after:wN \__siunitx_print_text_replace_first:N \l__siunitx_print_tmp_tl }
-          \__siunitx_print_text_replace:N \l__siunitx_print_tmp_tl
-          \__siunitx_print_text_replace_aux:n { \tl_use:N \l__siunitx_print_tmp_tl }
+          \tl_if_empty:NF \l__siunitx_print_tmp_tl
+            {
+              \tl_if_empty:NF \l_siunitx_unit_font_tl
+                { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
+              \cs_set:Npn \mathord ##1
+                { \__siunitx_print_text_replace_first:N ##1 }
+              \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
+              \tl_map_inline:nn
+                { \mp \ge \le \gg \ll }
+                { \cs_set:Npn ##1 { \exp_not:N \ensuremath { \exp_not:N ##1 } } }
+              \cs_set:Npn \cdot { \: \exp_not:N \textperiodcentered \: }
+              \cs_set:Npn \times { \: \exp_not:N \texttimes \: }
+              \protected at edef \l__siunitx_print_tmp_tl
+                { \exp_after:wN \__siunitx_print_text_replace_first:N \l__siunitx_print_tmp_tl }
+              \__siunitx_print_text_replace:N \l__siunitx_print_tmp_tl
+              \__siunitx_print_text_replace_aux:n { \tl_use:N \l__siunitx_print_tmp_tl }
+            }
         }
     \group_end:
   }



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