[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: some corrections to info (6fb0ff0)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Mar 9 23:13:13 CET 2020
Repository : https://github.com/latex3/pdfresources
On branch : master
Link : https://github.com/latex3/pdfresources/commit/6fb0ff07c9b5edc3b897d5f1966bf3239d35a3cc
>---------------------------------------------------------------
commit 6fb0ff07c9b5edc3b897d5f1966bf3239d35a3cc
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Mar 9 23:13:13 2020 +0100
some corrections to info
>---------------------------------------------------------------
6fb0ff07c9b5edc3b897d5f1966bf3239d35a3cc
pdfresources.dtx | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/pdfresources.dtx b/pdfresources.dtx
index c04b638..6296fb1 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -1042,7 +1042,7 @@
%
% \begin{function}[added = 2019-06-22]
% {
-% \pdf_info_gput:nn, \pdf_info_gput:no
+% \pdf_info_gput:nn
% }
% \begin{syntax}
% \cs{pdf_info_gput:nn} \Arg{name} \Arg{value}
@@ -1051,12 +1051,6 @@
% \meta{name} should be a valid pdf name without the leading slash,
% \meta{value} should be a valid pdf value. Any escaping or (re)encoding must be
% done explictly.
-% The info dictionary expects utf8 in the strings, so a conversion like this is
-% normally sensible:
-% \begin{verbatim}
-% \str_set_convert:Nnnn \l_tmpa_str { Grüße }{ utf8 } {utf8/string}
-% \pdf_info_string_gput:no {Title}{\l_tmpa_str}
-% \end{verbatim}
% If a \meta{name} is used twice, only the last \meta{value}
% set will be used. The info dictionary is written at the end of the compilation,
% so values can be set at any time.
@@ -1088,11 +1082,9 @@
\cs_new_protected:Npn \pdf_info_gput:nn #1 #2 %#1 key without /, #2 content
{
- \@@_prop_gput:nnn {Info}{#1}{#2}
+ \@@_prop_gput:nnn {Info}{ #1 }{ #2 }
}
-\cs_generate_variant:Nn \pdf_info_gput:nn {no}
-
% should #2 be inside a some escaping command? (no)
% hyperref passes them through
% \HyXeTeX at CheckUnicode
More information about the latex3-commits
mailing list.