[latex3-commits] [git/LaTeX3-latex3-latex3] l3bitset: correct docu for arabic (9f65fa6c8)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Dec 22 14:37:37 CET 2020
Repository : https://github.com/latex3/latex3
On branch : l3bitset
Link : https://github.com/latex3/latex3/commit/9f65fa6c8535ef921c758aadba6a57bedbc16fa9
>---------------------------------------------------------------
commit 9f65fa6c8535ef921c758aadba6a57bedbc16fa9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Dec 22 14:37:37 2020 +0100
correct docu for arabic
>---------------------------------------------------------------
9f65fa6c8535ef921c758aadba6a57bedbc16fa9
l3kernel/l3bitset.dtx | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/l3kernel/l3bitset.dtx b/l3kernel/l3bitset.dtx
index 26c37f9ea..e096fcb68 100644
--- a/l3kernel/l3bitset.dtx
+++ b/l3kernel/l3bitset.dtx
@@ -57,11 +57,12 @@
% package are implemented here, mainly the functions needed to use bitsets in
% PDF dictionaries.
%
-% The bitset is stored as a string and so the vector size is theoretically
-% unlimited, only restricted by \TeX-memory, but the export function
-% \cs{bitset_to_arabic:N} uses a function from the \texttt{int} module and
-% so the length is practically restricted to values smaller than 31 if this
-% output is needed.
+% The bitset is stored as a string (but one shouldn't rely on the internal
+% representation) and so the vector size is theoretically
+% unlimited, only restricted by \TeX-memory. But the export function
+% \cs{bitset_to_arabic:N} can use functions from the \texttt{int} module only if
+% the largest index used for this bitset is smaller then 32, for longer
+% bitsets \texttt{fp} is used and this is slower.
%
% \section{Creating bitsets}
% \begin{function}[added = 2020-12-13]
@@ -76,7 +77,8 @@
% \texttt{1}'s and \texttt{0}'s.
% The rightmost number is the index position 1, so
% the string variable can be viewed directly as the binary number.
-%
+% But one shouldn't rely on the internal representation, but use the
+% dedicated \cs{bitset_to_bin:N} instead to get the binary number.
% \end{function}
%
% \begin{function}[EXP, pTF,added = 2020-12-14]
@@ -145,7 +147,7 @@
% \end{syntax}
% This leaves the current value of the bitset expressed as
% a decimal number in the input stream. If no bit has been set yet,
-% the output is zero. The function uses \cs{int_from_bin:n} if largest
+% the output is zero. The function uses \cs{int_from_bin:n} if the largest
% index that have been set or unset is smaller then 32, and a slower implementation
% based on \cs{fp_eval} otherwise.
% \end{function}
More information about the latex3-commits
mailing list.