diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-04 03:02:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-04 03:02:24 +0000 |
commit | b2ede2da5ece936a9be421f2b6fbdb6c65cb225a (patch) | |
tree | 52e56df44d458efa71d7de971f576d61dbdb2123 /macros/latex/contrib/siunitx/siunitx-emulation.dtx | |
parent | 660cf44d2a0aee74bd6e69615fedfc57c966a260 (diff) |
CTAN sync 202301040302
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-emulation.dtx')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-emulation.dtx | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-emulation.dtx b/macros/latex/contrib/siunitx/siunitx-emulation.dtx index 96bbaf02d4..65db65b664 100644 --- a/macros/latex/contrib/siunitx/siunitx-emulation.dtx +++ b/macros/latex/contrib/siunitx/siunitx-emulation.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: siunitx-emulation.dtx Copyright (C) 2016-2019,2021,2022 Joseph Wright +% File: siunitx-emulation.dtx Copyright (C) 2016-2019,2021-2023 Joseph Wright % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this @@ -941,37 +941,12 @@ % \end{macrocode} % % \begin{macro}{\@@_non_latin:n} -% \begin{macro}{\@@_non_latin:nnnn} -% As in \pkg{siunitx-unit}, but internal in both cases as it's rather -% specialised. +% A shortcut. % \begin{macrocode} -\bool_lazy_or:nnTF - { \sys_if_engine_luatex_p: } - { \sys_if_engine_xetex_p: } - { - \cs_new:Npn \@@_non_latin: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 - { - \exp_last_unbraced:Nf \@@_non_latin:nnnn - { \char_to_utfviii_bytes:n {#1} } - } - \cs_new:Npn \@@_non_latin:nnnn #1#2#3#4 - { - \exp_after:wN \exp_after:wN \exp_after:wN - \exp_not:N \char_generate:nn {#1} { 13 } - \exp_after:wN \exp_after:wN \exp_after:wN - \exp_not:N \char_generate:nn {#2} { 13 } - } - } +\cs_new:Npn \@@_non_latin:n #1 + { \codepoint_generate:nn {#1} { \char_value_catcode:n {#1} } } % \end{macrocode} % \end{macro} -% \end{macro} % % \begin{macro} % { |