diff options
55 files changed, 1013 insertions, 881 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md index 54749861093..972c49380dc 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md @@ -5,7 +5,12 @@ first release 0.95a, 2021-02-23 will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), this project uses date-based 'snapshot' version identifiers. - +## [2023-11-05] +Version: 2023-11-05, 0.96b + +- switch to e-type +- correct fontspec firstaid and spotcolor support + ## [2023-10-09] Version: 2023-10-09, 0.96a diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md index 770ec9e2b51..35361e0a495 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md @@ -1,6 +1,6 @@ # LaTeX PDF management testphase bundle -Version: 0.96a, 2023-10-09 +Version: 0.96b, 2023-11-05 This package is used during a test phase to load the new PDF management code of LaTeX. diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf Binary files differindex d830ce140ac..4b4d37a989e 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf Binary files differindex 5abbe8a3f29..233f89550fb 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf Binary files differindex 92ae61b6352..4871acbc4b8 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf Binary files differindex c580144fb55..5c0de310c31 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf Binary files differindex 46ae5b82f24..11934af61cf 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf Binary files differindex d6e06870ad8..3ebc6e7caa1 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf Binary files differindex c8c02c3dd79..3bf4f3e9336 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf Binary files differindex c561ea10a59..afb6ed1e8e5 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf Binary files differindex 4b89a4d1d01..8a7962663be 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf Binary files differindex 491aff28159..38c9534fdaa 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf Binary files differindex c121fc5ebff..0f29cb95976 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf Binary files differindex dc868ba43c6..4b75eb1797b 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf Binary files differindex 0f2871f6603..c43e204e232 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf Binary files differindex a0edffc2329..060a1e23263 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf Binary files differindex 733d736ef75..8e72e27da0c 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf Binary files differindex eec75e8d947..ea4ecb57a55 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf Binary files differindex 692a6df4ac2..4c2d341ee6a 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/output-patches-tmp-ltx.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/output-patches-tmp-ltx.pdf Binary files differdeleted file mode 100644 index dc8d376f76b..00000000000 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/output-patches-tmp-ltx.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf Binary files differindex 1bf780aa3bf..e6911957d3c 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf Binary files differindex d2898a3049c..db319ff855b 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx index dc722effbef..47b957c2ece 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx @@ -82,7 +82,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -956,7 +956,7 @@ %<@@=hyp> % \end{macrocode} % \begin{macrocode} -\ProvidesFile{hgeneric-testphase.def}[2023-10-09 v0.96a % +\ProvidesFile{hgeneric-testphase.def}[2023-11-05 v0.96b % generic Hyperref driver for the LaTeX PDF management testphase bundle] \RequirePackage{etoolbox} %why? @@ -1213,7 +1213,7 @@ % \begin{macrocode} % TODO should go at some time ... % \kv@set@family@handler{Hyp} -% { \msg_warning:nnx {hyp}{unknown-key-to-Hyp}{#1} } +% { \msg_warning:nne {hyp}{unknown-key-to-Hyp}{#1} } \cs_set_protected:Npn \hypersetup #1 { %\kvsetkeys{Hyp} {#1} @@ -1224,7 +1224,7 @@ { unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-key } + \msg_warning:nneee { hyp } { unknown-key } { hyp~/~setup }{ \l_keys_key_str } { #1 } } } @@ -1294,7 +1294,7 @@ } ,afrelationship .code:n = { - \pdfdict_put:nnx + \pdfdict_put:nne { l_pdffile/Filespec}{AFRelationship}{ \pdf_name_from_unicode_e:n {#1}} } @@ -1454,7 +1454,7 @@ %\tl_set:cn {@#1}{#2} \AddToDocumentProperties[hyperref]{#1}{#2} } -\cs_generate_variant:Nn \@@_store_metadata:nn {xn,nx,xx} +\cs_generate_variant:Nn \@@_store_metadata:nn {en,ne,ee} % \end{macrocode} % \subsection{citecolor} % cite is a link context. So we define a hook, and the keys in terms of this hook. @@ -1878,7 +1878,7 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_text_purify:nN #1 #2 %#1 input, #2 str command { - \str_set:Nx #2 {\text_purify:n { #1 } } + \str_set:Ne #2 {\text_purify:n { #1 } } } % \end{macrocode} % \end{macro} @@ -1936,7 +1936,7 @@ \group_end: \str_set_eq:NN #3 \g_@@_text_tmpa_str } -\cs_generate_variant:Nn \@@_text_pdfstring:nnN {xnN,onN,xoN,ooN,noN} +\cs_generate_variant:Nn \@@_text_pdfstring:nnN {enN,onN,eoN,ooN,noN} % \end{macrocode} % \end{macro} % !!! temporary until all instances are gone @@ -1947,7 +1947,7 @@ %^^A \char_set_catcode_active:N \~ % \begin{macrocode} \cs_new_protected:Npn\Hy@pstringdef #1 #2 - { \@@_text_pdfstring:xnN {#2} {utf8/string-raw}#1 } + { \@@_text_pdfstring:enN {#2} {utf8/string-raw}#1 } % \end{macrocode} % % This is a special version for info keys: @@ -2009,7 +2009,7 @@ % \begin{macrocode} \cs_new_protected:Npn\@@_PageLabels_gpush: { - \pdfmanagement_add:nnx {Catalog} {PageLabels}{<</Nums[\HyPL@Labels]>>} + \pdfmanagement_add:nne {Catalog} {PageLabels}{<</Nums[\HyPL@Labels]>>} } \def\Hy@PutCatalog #1 {} @@ -2019,7 +2019,7 @@ { \cs_set_protected:Npn \HyPL@StorePageLabel #1 { - \tl_gput_right:Nx \HyPL@Labels { \the\Hy@abspage<<#1>> } + \tl_gput_right:Ne \HyPL@Labels { \the\Hy@abspage<<#1>> } \@@_PageLabels_gpush: } } @@ -2062,7 +2062,7 @@ \mode_if_horizontal:T { \@savsf\spacefactor } \Hy@SaveLastskip %defined in hyperref \Hy@VerboseAnchor{#1} %defined in hyperref, for debugging - \@@_text_pdfstring:xoN + \@@_text_pdfstring:eoN { \HyperDestNameFilter{#1} } { \l_@@_text_enc_dest_tl } \l_@@_tmpa_tl @@ -2144,14 +2144,14 @@ \protected@edef \l_@@_dest_name_tmpa_tl { #1 } \tl_if_empty:NTF \l_@@_dest_name_tmpa_tl { - \msg_warning:nnx + \msg_warning:nne { hyp } { empty-destination-name } { \c_@@_dest_undefined_tl } \tl_set_eq:NN \l_@@_dest_name_tmpa_tl \c_@@_dest_undefined_tl } { - \@@_text_pdfstring:xoN + \@@_text_pdfstring:eoN { \exp_args:No \HyperDestNameFilter { \l_@@_dest_name_tmpa_tl } } { \l_@@_text_enc_dest_tl } \l_@@_dest_name_tmpa_tl @@ -2257,7 +2257,7 @@ \bool_if:NTF \l_@@_annot_URI_bool { \group_begin: - \@@_text_pdfstring:xoN + \@@_text_pdfstring:eoN { #2} { \l_@@_text_enc_uri_print_tl } \l_@@_uri_tmpa_tl @@ -2270,8 +2270,8 @@ \cs_set_eq:NN \% \c_percent_str \Hy@safe@activestrue \mode_leave_vertical: - \pdfannot_dict_put:nnx {link/URI}{A}{<<\pdfdict_use:n {l_hyp/annot/A/URI}>>} - \pdfannot_link:nxn { URI } + \pdfannot_dict_put:nne {link/URI}{A}{<<\pdfdict_use:n {l_hyp/annot/A/URI}>>} + \pdfannot_link:nen { URI } { } { @@ -2292,24 +2292,23 @@ \pdfdict_put:nnn {l_hyp/annot/A/GoToR}{Type}{/Action} \pdfdict_put:nnn {l_hyp/annot/A/GoToR}{S}{/GoToR} - +\cs_generate_variant:Nn \pdffile_embed_file:nnn {noe} \cs_new_protected:Npn \hyper@linkfile #1 #2 #3 % link text, filename, destname { \bool_if:NTF \l_@@_annot_GoToR_bool { \group_begin: - \tl_set:Nx \l_@@_filename_tmpa_tl { \text_expand:n { #2 } } - \exp_args:Nx + \tl_set:Ne \l_@@_filename_tmpa_tl { \text_expand:n { #2 } } + \exp_args:Ne \pdf_object_if_exist:nF { @@_file_\tl_to_str:N \l_@@_filename_tmpa_tl } { - \pdfdict_put:nnx { l_pdffile/Filespec}{Subtype}{\pdf_name_from_unicode_e:n {application/pdf}} - \exp_args:Nnox - \pdffile_embed_file:nnn + \pdfdict_put:nne { l_pdffile/Filespec}{Subtype}{\pdf_name_from_unicode_e:n {application/pdf}} + \pdffile_embed_file:noe {} {\l_@@_filename_tmpa_tl } {@@_file_\tl_to_str:N \l_@@_filename_tmpa_tl } } - \pdfdict_put:nnx + \pdfdict_put:nne {l_hyp/annot/A/GoToR} {F} {\pdf_object_ref:e {@@_file_\tl_to_str:N \l_@@_filename_tmpa_tl}} @@ -2319,7 +2318,7 @@ \l_@@_dest_name_tmpa_tl \tl_if_blank:eTF {#3} { - \pdfdict_put:nnx {l_hyp/annot/A/GoToR}{D} + \pdfdict_put:nne {l_hyp/annot/A/GoToR}{D} { [ \int_eval:n @@ -2337,9 +2336,9 @@ % object reference in the dict % \url{https://chat.stackexchange.com/transcript/message/57361080#57361080} % \begin{macrocode} - \pdf_object_unnamed_write:nx{dict}{\pdfdict_use:n {l_hyp/annot/A/GoToR}} - \pdfannot_dict_put:nnx {link/GoToR}{A}{\pdf_object_ref_last:} - \pdfannot_link:nxn %expansion?? + \pdf_object_unnamed_write:ne{dict}{\pdfdict_use:n {l_hyp/annot/A/GoToR}} + \pdfannot_dict_put:nne {link/GoToR}{A}{\pdf_object_ref_last:} + \pdfannot_link:nnn %expansion?? { GoToR } { } @@ -2386,12 +2385,14 @@ \pdfdict_remove:nn {l_hyp/annot/A/Launch}{Win} } { - \pdfdict_put:nnx {l_hyp/annot/A/Launch}{Win} + \pdfdict_put:nne + {l_hyp/annot/A/Launch} + {Win} {<</P \l_@@_para_tmpa_tl /F \l_@@_filename_tmpa_tl >>} } \mode_leave_vertical: - \pdfannot_dict_put:nnx {link/Launch}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Launch}>>} - \pdfannot_link:nxn + \pdfannot_dict_put:nne {link/Launch}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Launch}>>} + \pdfannot_link:nen { Launch } { % /A @@ -2412,9 +2413,9 @@ % The actually command used by \pkg{hyperref} is \cs{@hyper@launch} which uses a delimited % argument, because of the color the definition is a bit convoluted. % \begin{macrocode} -\use:x +\use:e { % filename, anchor text, linkname - \cs_set_protected:Npn \exp_not:N \@hyper@launch run \c_colon_str ##1 \exp_not:N \\ ##2 ##3 + \cs_set_protected:Npn \exp_not:N \@hyper@launch run \c_colon_str #1 \exp_not:N \\ #2 #3 } { \hyper@linklaunch {#1}{#2}{#3} @@ -2436,10 +2437,10 @@ \pdfmeta_standard_verify:nnTF {named_actions}{#1} { \mode_leave_vertical: - \pdfdict_put:nnx {l_hyp/annot/A/Named}{N} + \pdfdict_put:nne {l_hyp/annot/A/Named}{N} {\pdf_name_from_unicode_e:n{#1}} - \pdfannot_dict_put:nnx {link/Named}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Named}>>} - \pdfannot_link:nxn { Named } + \pdfannot_dict_put:nne {link/Named}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Named}>>} + \pdfannot_link:nnn { Named } { % /A % << @@ -2648,7 +2649,7 @@ {hyp/color/#1border} \g_@@_bordercolormodel_str \l_@@_tmpa_tl - \pdfannot_dict_put:nnx + \pdfannot_dict_put:nne {link/#2} { C } { [\l_@@_tmpa_tl] } @@ -2791,7 +2792,7 @@ \pdf_object_new:n { @@/OCG/Print } \pdf_object_new:n { @@/OCG/config } \pdf_object_new:n { @@/OCG/refarray } - \pdf_object_write:nnx { @@/OCG/refarray } { array } + \pdf_object_write:nne { @@/OCG/refarray } { array } { \pdf_object_ref:n { @@/OCG/View } \c_space_tl @@ -2817,9 +2818,9 @@ /View <</ViewState/OFF>>~ >> } - \pdfmanagement_add:nnx { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {@@/OCG/View} } - \pdfmanagement_add:nnx { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {@@/OCG/Print} } - \pdf_object_write:nnx { @@/OCG/config } { dict } + \pdfmanagement_add:nne { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {@@/OCG/View} } + \pdfmanagement_add:nne { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {@@/OCG/Print} } + \pdf_object_write:nne { @@/OCG/config } { dict } { /OFF[\pdf_object_ref:n { @@/OCG/Print }] /AS[ @@ -2840,7 +2841,7 @@ >> ] } - \pdfmanagement_add:nnx { Catalog / OCProperties }{ D }{ \pdf_object_ref:n { @@/OCG/config} } + \pdfmanagement_add:nne { Catalog / OCProperties }{ D }{ \pdf_object_ref:n { @@/OCG/config} } \cs_gset:Npn \@@_ocg_init: {} } % \end{macrocode} @@ -2920,7 +2921,7 @@ { ,_ocgcolorlinks .code:n = { - \msg_warning:nnxx + \msg_warning:nnee { hyp } { ignore-deprecated-or-unknown-option-in-pdf-version } { ocgcolorlinks } { \pdf_version_major:.\pdf_version_minor: } @@ -2961,7 +2962,7 @@ { ,ocgcolor#1 .code:n= { - \msg_warning:nnxx + \msg_warning:nnee { hyp } { ignore-deprecated-or-unknown-option-in-pdf-version } { ocgcolor#1 } @@ -2997,7 +2998,7 @@ } ,#1highlight / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfhighlight } { /I~(inverse), /N~(no effect), /O~(outline), /P~(inset) } { \exp_not:n {##1} } @@ -3031,7 +3032,7 @@ ,pdfhighlight .initial:n = {/I}, ,pdfhighlight / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfhighlight } { /I~(inverse), /N~(no effect), /O~(outline), /P~(inset) } { \exp_not:n {#1} } @@ -3158,7 +3159,7 @@ } ,linktoc / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { linktoc } { none, section, all, page } { \exp_not:n {#1} } @@ -3195,7 +3196,7 @@ \pdfmanagement_remove:nn {Catalog} { URI } } { - \pdfmanagement_add:nnx {Catalog} { URI }{ <</Base \l_@@_tmpa_tl>> } + \pdfmanagement_add:nne {Catalog} { URI }{ <</Base \l_@@_tmpa_tl>> } } \@@_store_metadata:nn {baseurl}{#1} } @@ -3223,7 +3224,7 @@ } ,pdfcenterwindow / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdfcenterwindow } { \exp_not:n {#1} } } @@ -3243,7 +3244,7 @@ } ,pdfdirection / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfdirection } { L2R , R2L } { \exp_not:n {#1} } @@ -3267,7 +3268,7 @@ { PrintDuplex } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfduplex} @@ -3280,7 +3281,7 @@ } ,pdfduplex / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfduplex } { Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge } { \exp_not:n {#1} } @@ -3301,7 +3302,7 @@ ,pdffitwindow .default:n = true ,pdffitwindow / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdffitwindow } { \exp_not:n {#1} } } @@ -3324,7 +3325,7 @@ ,pdfmenubar .default:n = true ,pdfmenubar / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdfmenubar } { \exp_not:n {#1} } } @@ -3347,7 +3348,7 @@ ,pdfnonfullscreenpagemode .choices:nn = { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC } %pdf 1.5 { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { NonFullScreenPageMode} {/#1} } ,pdfnonfullscreenpagemode / UseAttachments .code:n = @@ -3357,7 +3358,7 @@ %message } { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } {NonFullScreenPageMode}{/UseAttachments} } } @@ -3367,7 +3368,7 @@ } ,pdfnonfullscreenpagemode / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfnonfullscreenpagemode } { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC, UseAttachments (PDF 1.6) } { \exp_not:n {#1} } @@ -3381,12 +3382,12 @@ \pdfmanagement_remove:nn {Catalog / ViewerPreferences } { NumCopies } } { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } {NumCopies}{#1} } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfnumcopies} @@ -3395,27 +3396,27 @@ } ,pdfpagelayout .choices:nn = { SinglePage, OneColumn, TwoColumnLeft, TwoColumnRight, TwoPageLeft, TwoPageRight} - { \pdfmanagement_add:nnx {Catalog} { PageLayout }{ /#1 } } + { \pdfmanagement_add:nne {Catalog} { PageLayout }{ /#1 } } ,pdfpagelayout / .code:n = { \pdfmanagement_remove:nn {Catalog} { PageLayout } } ,pdfpagelayout / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfpagelayout } { SinglePage, OneColumn, TwoColumnLeft, TwoColumnRight, TwoPageLeft, TwoPageRight } { \exp_not:n {#1} } } ,pdfpagemode .choices:nn = { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC } %pdf 1.5 - { \pdfmanagement_add:nnx {Catalog} { PageMode }{ /#1 } } + { \pdfmanagement_add:nne {Catalog} { PageMode }{ /#1 } } ,pdfpagemode / UseAttachments .code:n = { \pdf_version_compare:NnTF > {1.5} { - \pdfmanagement_add:nnx {Catalog} { PageMode }{ /UseAttachments } + \pdfmanagement_add:nne {Catalog} { PageMode }{ /UseAttachments } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-value-in-pdf-version} {UseAttachments} @@ -3425,7 +3426,7 @@ ,pdfpagemode .initial:n = { UseOutlines } %for now ... ,pdfpagemode / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfpagemode } { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC, UseAttachments (PDF 1.6) } { \exp_not:n {#1} } @@ -3437,7 +3438,7 @@ \pdfmanagement_remove:nn {Pages} { CropBox } } { - \pdfmanagement_add:nnx {Pages} { CropBox } { [#1] } + \pdfmanagement_add:nne {Pages} { CropBox } { [#1] } } } ,pdfpicktraybypdfsize .choice: @@ -3449,7 +3450,7 @@ { PickTrayByPDFSize } { true } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfpicktraybypdfsize} @@ -3464,7 +3465,7 @@ { PickTrayByPDFSize } { false } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfpicktraybypdfsize} @@ -3477,7 +3478,7 @@ } ,pdfpicktraybypdfsize / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { picktraybypdfsize } { \exp_not:n {#1} } } @@ -3486,11 +3487,11 @@ { \pdf_version_compare:NnTF < {2.0} { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { PrintArea } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintarea} @@ -3501,7 +3502,7 @@ { \pdfmanagement_remove:nn {Catalog / ViewerPreferences } { PrintArea } } ,pdfprintarea / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfprintarea } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -3511,11 +3512,11 @@ { \pdf_version_compare:NnTF < {2.0} { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { PrintClip } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintclip} @@ -3528,7 +3529,9 @@ } ,pdfprintclip / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee + { hyp } + { unknown-choice+empty } { pdfprintclip } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -3543,12 +3546,12 @@ { PrintPageRange } } { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } {PrintPageRange}{[#1]} } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintpagerange} @@ -3560,11 +3563,11 @@ { \pdf_version_compare:NnTF > {1.5} { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { PrintScaling } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintscaling} @@ -3577,18 +3580,18 @@ } ,pdfprintscaling / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfprintarea } { None, AppDefault } { \exp_not:n {#1} } } ,pdfremotestartview .code:n = { - \tl_set:Nx \l_@@_tmpa_tl {#1~null~null~null~} + \tl_set:Ne \l_@@_tmpa_tl {#1~null~null~null~} \exp_args:NNV \regex_extract_once:NnNTF \c_@@_dest_startview_regex \l_@@_tmpa_tl \l_@@_tmpa_seq { - \tl_set:Nx \l_@@_dest_pdfremotestartview_tl {\seq_item:Nn \l_@@_tmpa_seq {1}} + \tl_set:Ne \l_@@_dest_pdfremotestartview_tl {\seq_item:Nn \l_@@_tmpa_seq {1}} } { \msg_warning:nnnn {hyp}{invalid-destination-value}{#1}{pdfremotestartview} @@ -3599,14 +3602,14 @@ % pdfstartpage is special as it shares code with pdfstartview ,pdfstartpage .code:n = { - \tl_gset:Nx \g_@@_dest_pdfstartpage_tl { #1 } + \tl_gset:Ne \g_@@_dest_pdfstartpage_tl { #1 } \bool_if:nTF { \tl_if_empty_p:N \g_@@_dest_pdfstartpage_tl || \tl_if_empty_p:N \g_@@_dest_pdfstartview_tl } { \pdfmanagement_remove:nn {Catalog} { OpenAction } } { - \pdfmanagement_add:nnx {Catalog} { OpenAction } + \pdfmanagement_add:nne {Catalog} { OpenAction } { [\pdf_pageobject_ref:n {\g_@@_dest_pdfstartpage_tl}~/\g_@@_dest_pdfstartview_tl] } @@ -3615,11 +3618,11 @@ ,pdfstartpage .initial:n =1 ,pdfstartview .code:n = { - \tl_set:Nx \l_@@_tmpa_tl {#1~null~null~null~} + \tl_set:Ne \l_@@_tmpa_tl {#1~null~null~null~} \exp_args:NNV \regex_extract_once:NnNTF \c_@@_dest_startview_regex \l_@@_tmpa_tl \l_@@_tmpa_seq { - \tl_gset:Nx \g_@@_dest_pdfstartview_tl {\seq_item:Nn \l_@@_tmpa_seq {1}} + \tl_gset:Ne \g_@@_dest_pdfstartview_tl {\seq_item:Nn \l_@@_tmpa_seq {1}} } { \msg_warning:nnnn {hyp}{invalid-destination-value}{#1}{pdfstartview} @@ -3631,7 +3634,7 @@ \pdfmanagement_remove:nn {Catalog} { OpenAction } } { - \pdfmanagement_add:nnx {Catalog} { OpenAction } + \pdfmanagement_add:nne {Catalog} { OpenAction } { [\pdf_pageobject_ref:n {\g_@@_dest_pdfstartpage_tl}~/\g_@@_dest_pdfstartview_tl] } @@ -3655,7 +3658,7 @@ ,pdftoolbar .default:n = true ,pdftoolbar / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdftoolbar } { \exp_not:n {#1} } } @@ -3669,7 +3672,7 @@ { ViewArea } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfviewarea} @@ -3682,7 +3685,7 @@ } ,pdfviewarea / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfviewarea } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -3696,7 +3699,7 @@ { ViewClip } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfviewclip} @@ -3709,7 +3712,7 @@ } ,pdfviewclip / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfviewclip } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -3730,7 +3733,7 @@ } ,pdfwindowui / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdfwindowui } { \exp_not:n {#1} } } @@ -3758,7 +3761,7 @@ \tl_set:Nn \l_@@_dest_pdfview_tl {xyz} } { - \tl_set:Nx \l_@@_dest_pdfview_tl + \tl_set:Ne \l_@@_dest_pdfview_tl { \fp_eval:n { \l_@@_tmpa_tl * 100 } } @@ -3837,7 +3840,7 @@ { \tl_if_empty:nF { #1 } { - \pdfmanagement_add:nnx {Catalog} { Lang } { (#1) } + \pdfmanagement_add:nne {Catalog} { Lang } { (#1) } \AddToDocumentProperties[document]{lang}{#1} } } @@ -3868,12 +3871,12 @@ {creator} { \msg_info:nnn { hyp }{ empty-info-value } { pdfcreator } - \pdfmanagement_add:nnx {Info}{Creator}{()} + \pdfmanagement_add:nne {Info}{Creator}{()} } {producer} { \msg_info:nnn { hyp }{ empty-info-value } { pdfproducer } - \pdfmanagement_add:nnx {Info}{Producer}{()} + \pdfmanagement_add:nne {Info}{Producer}{()} } } { @@ -3881,7 +3884,7 @@ } } { - \tl_set:Nx\l_@@_tmpa_tl {\clist_item:nn{##1}{1}} + \tl_set:Ne\l_@@_tmpa_tl {\clist_item:nn{##1}{1}} \exp_args:NNV \regex_extract_once:NnN \l_@@_optlang_regex \l_@@_tmpa_tl\l_@@_tmpa_seq \seq_if_empty:NTF\l_@@_tmpa_seq @@ -3889,12 +3892,12 @@ \@@_text_pdfstring_info:nN {##1}\l_@@_tmpa_str } { - \exp_args:Nx + \exp_args:Ne \@@_text_pdfstring_info:nN {\seq_item:Nn \l_@@_tmpa_seq{3}}\l_@@_tmpa_str } \str_if_eq:VnF\l_@@_tmpa_str{<FEFF>} { - \pdfmanagement_add:nnx {Info}{#2}{\l_@@_tmpa_str} + \pdfmanagement_add:nne {Info}{#2}{\l_@@_tmpa_str} } } \@@_store_metadata:nn {pdf#1}{##1} @@ -3912,10 +3915,10 @@ \@@_text_pdfstring_info:nN {##1}\l_@@_tmpa_str \str_if_eq:VnF\l_@@_tmpa_str{<FEFF>} { - \pdfmanagement_add:nnx {Info}{#2}{\l_@@_tmpa_str} + \pdfmanagement_add:nne {Info}{#2}{\l_@@_tmpa_str} } } - \exp_args:Nx \@@_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} + \exp_args:Ne \@@_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} } ,unknown .code:n = { @@ -3923,7 +3926,7 @@ \str_if_eq:VnF\l_@@_tmpa_str{<FEFF>} { \exp_args:Nno - \pdfmanagement_add:nnx {Info} + \pdfmanagement_add:nne {Info} { \l_keys_key_str } {\l_@@_tmpa_str} } } @@ -3953,7 +3956,7 @@ \pdfmanagement_remove:nn {Info}{#2} } { - \pdfmanagement_add:nnx {Info}{#2}{(##1)} + \pdfmanagement_add:nne {Info}{#2}{(##1)} } \@@_store_metadata:nn {pdf#1}{##1} \AddToDocumentProperties[document]{#1}{##1} @@ -3968,9 +3971,9 @@ \pdfmanagement_remove:nn {Info}{#2} } { - \pdfmanagement_add:nnx {Info}{#2}{(##1)} + \pdfmanagement_add:nne {Info}{#2}{(##1)} } - \exp_args:Nx \@@_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} + \exp_args:Ne \@@_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} } } } @@ -3995,12 +3998,12 @@ } ,_pdftrapped .choices:nn = {TRUE,FALSE,UNKNOWN} { - \pdfmanagement_add:nnx {Info}{Trapped} + \pdfmanagement_add:nne {Info}{Trapped} {/ \str_uppercase:f { \str_head:n { #1 } } \str_lowercase:f { \str_tail:n { #1 } } } - \@@_store_metadata:nx {pdftrapped} + \@@_store_metadata:ne {pdftrapped} { \str_uppercase:f { \str_head:n { #1 } } \str_lowercase:f { \str_tail:n { #1 } } @@ -4008,7 +4011,7 @@ } ,_pdftrapped / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { pdftrapped } { true~(case~insensitive), false~(case~insensitive), unknown~(case~insensitive) } { \exp_not:n {#1} } @@ -4149,11 +4152,11 @@ { \group_begin: \keys_set:nn { hyp / trans }{style=R,#1} - \pdf_object_unnamed_write:nx { dict } + \pdf_object_unnamed_write:ne { dict } { \pdfdict_use:n {l_@@_page/Trans} } - \pdfmanagement_add:nnx {Page}{Trans}{\pdf_object_ref_last:} + \pdfmanagement_add:nne {Page}{Trans}{\pdf_object_ref_last:} \group_end: } } @@ -4165,7 +4168,7 @@ { \pdfdict_put:nnn {l_@@_page/Trans}{ S }{/#1} } ,style / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / style } { Split,Blinds,Box,Wipe,Dissolve,Glitter,R,Fly,Push,Cover,Uncover,Fade } { \exp_not:n {#1} } @@ -4184,7 +4187,7 @@ { \pdfdict_put:nnn {l_@@_page/Trans}{ Di }{ /None } } ,direction / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / direction } { H~(horizontal,~only~Split,~Blinds), @@ -4203,7 +4206,7 @@ { \pdfdict_put:nnn {l_@@_page/Trans}{ M }{/#1} } ,motion / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / motion } { I~(inwards) , O~(outwards) } { \exp_not:n {#1} } @@ -4214,7 +4217,7 @@ { \pdfdict_put:nnn { l_@@_page/Trans }{ B } { #1} } ,opaque / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / B } { true~(opaque~back,~only~Fly), false~(opaque~back,~only~Fly) } { \exp_not:n {#1} } @@ -4223,7 +4226,7 @@ ,unknown .code:n = { % warning ... - \exp_args:Nnx\keys_set:nn {hyp/trans}{ style=\l_keys_key_str } + \exp_args:Nne\keys_set:nn {hyp/trans}{ style=\l_keys_key_str } } } % \end{macrocode} @@ -4281,7 +4284,7 @@ \def\HyField@AddToFields { - \exp_args:Nx\HyField@@AddToFields + \exp_args:Ne\HyField@@AddToFields { \pdfannot_box_ref_last: } @@ -4329,7 +4332,7 @@ \Hy@FormObjects \prop_map_inline:Nn \g_@@_AcroForm_Fields_prop { - \pdfmanagement_add:nnx { Catalog / AcroForm } { Fields }{##1} + \pdfmanagement_add:nne { Catalog / AcroForm } { Fields }{##1} %\pdfmanagement_show:n { Catalog / AcroForm } } \prop_if_empty:NF \g_@@_AcroForm_CoFields_prop @@ -4346,18 +4349,18 @@ } \seq_map_inline:Nn \l_@@_tmpa_seq { - \pdfmanagement_add:nnx { Catalog / AcroForm } + \pdfmanagement_add:nne { Catalog / AcroForm } { CO } { \prop_item:Nn \g_@@_AcroForm_CoFields_prop {##1} } } } - \pdfmanagement_add:nnx {Catalog / AcroForm/DR/Font } + \pdfmanagement_add:nne {Catalog / AcroForm/DR/Font } {ZaDb} {\pdf_object_ref:n {@@/Font/ZaDb} } - \pdfmanagement_add:nnx {Catalog / AcroForm/DR/Font } + \pdfmanagement_add:nne {Catalog / AcroForm/DR/Font } {Helv} {\pdf_object_ref:n {@@/Font/Helv} } - \pdfmanagement_add:nnx {Catalog /AcroForm} + \pdfmanagement_add:nne {Catalog /AcroForm} {DA}{(/Helv~10~Tf~0~g)} \pdfmeta_standard_verify:nTF {form_no_NeedAppearance} { @@ -4538,7 +4541,7 @@ \group_end: } } - \pdfannot_box:nnnx + \pdfannot_box:nnne {\Fld@width} {\Fld@height} {0pt} %is this correct? @@ -4765,7 +4768,7 @@ \pdf_object_new:n {@@/Encoding/pdfdoc } \pdf_object_new:n {@@/Font/ZaDb } \pdf_object_new:n {@@/Font/Helv } - \pdf_object_write:nnx {@@/Encoding/pdfdoc } { dict } + \pdf_object_write:nne {@@/Encoding/pdfdoc } { dict } { /Type/Encoding /Differences[ @@ -4814,7 +4817,7 @@ /Name/ZaDb /BaseFont/ZapfDingbats } - \pdf_object_write:nnx {@@/Font/Helv } { dict } + \pdf_object_write:nne {@@/Font/Helv } { dict } { /Type/Font /Subtype/Type1 diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx index e378716818e..4d557d276b5 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx @@ -45,7 +45,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % @@ -56,27 +56,27 @@ % \begin{macrocode} %<drivers>\ProvidesExplFile %<*dvipdfmx> - {l3backend-testphase-dvipdfmx.def}{2023-10-09}{} + {l3backend-testphase-dvipdfmx.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx} %</dvipdfmx> %<*dvips> - {l3backend-testphase-dvips.def}{2023-10-09}{} + {l3backend-testphase-dvips.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvips} %</dvips> %<*dvisvgm> - {l3backend-testphase-dvisvgm.def}{2023-10-09}{} + {l3backend-testphase-dvisvgm.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm} %</dvisvgm> %<*luatex> - {l3backend-testphase-luatex.def}{2023-10-09}{} + {l3backend-testphase-luatex.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)} %</luatex> %<*pdftex> - {l3backend-testphase-pdftex.def}{2023-10-09}{} + {l3backend-testphase-pdftex.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)} %</pdftex> %<*xdvipdfmx> - {l3backend-testphase-xetex.def}{2023-10-09}{} + {l3backend-testphase-xetex.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX} %</xdvipdfmx> % \end{macrocode} @@ -446,7 +446,7 @@ %we need to know the page the resource should be added too. \int_gincr:N\g_@@_backend_resourceid_int \@@_backend_record_abspage:e { l3pdf\int_use:N\g_@@_backend_resourceid_int } - \tl_set:Nx \l_@@_tmpa_tl + \tl_set:Ne \l_@@_tmpa_tl { \@@_backend_ref_abspage:e {l3pdf\int_use:N\g_@@_backend_resourceid_int} } @@ -734,7 +734,7 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g_@@_Core/Page/Resources/##1} } { - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Page/Resources/##1 } { dict } { \pdfdict_use:n { g_@@_Core/Page/Resources/##1} } } @@ -1101,7 +1101,7 @@ } { \@@_backend_record_abspage:e {l3pdf\int_use:N\g_@@_backend_resourceid_int} - \tl_set:Nx \l_@@_tmpa_tl + \tl_set:Ne \l_@@_tmpa_tl { \@@_backend_ref_abspage:e{l3pdf\int_use:N\g_@@_backend_resourceid_int} } @@ -1131,7 +1131,7 @@ } { \@@_backend_record_abspage:e{l3pdf\int_use:N\g_@@_backend_resourceid_int} - \tl_set:Nx \l_@@_tmpa_tl + \tl_set:Ne \l_@@_tmpa_tl { \@@_backend_ref_abspage:e{l3pdf\int_use:N\g_@@_backend_resourceid_int} } @@ -1358,13 +1358,13 @@ #4 } %store the dimensions - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:N \l_@@_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:N \l_@@_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:N \l_@@_backend_tmpa_box } %% do we need to test if #2 and #3 are empty?? @@ -1439,13 +1439,13 @@ \prop_gclear:c { \__kernel_pdfdict_name:n { g_@@_Core/Xform/Resources/Properties } } #4 } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:N \l_@@_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:N \l_@@_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:N \l_@@_backend_tmpa_box } %% do we need to test if #2 and #3 are empty?? @@ -1531,13 +1531,13 @@ \bool_set_true:N \l_@@_backend_xform_bool #4 } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:c { g_@@_backend_xform_#1_box } } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:c { g_@@_backend_xform_#1_box } } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:c { g_@@_backend_xform_#1_box } } \box_set_dp:cn { g_@@_backend_xform_#1_box } { \c_zero_dim } @@ -1644,27 +1644,27 @@ #4 } %store the dimensions - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:N \l_@@_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:N \l_@@_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c_@@_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:N \l_@@_backend_tmpa_box } %store content dimensions in DPI units (Dots) (code from issue 25) - \tl_set:Nx\l_@@_backend_xform_tmpwd_tl + \tl_set:Ne\l_@@_backend_xform_tmpwd_tl { \dim_to_decimal_in_sp:n{ \box_wd:N \l_@@_backend_tmpa_box }~ 65536~div~72.27~div~DVImag~mul~Resolution~mul~ } - \tl_set:Nx\l_@@_backend_xform_tmpht_tl + \tl_set:Ne\l_@@_backend_xform_tmpht_tl { \dim_to_decimal_in_sp:n{ \box_ht:N \l_@@_backend_tmpa_box }~ 65536~div~72.27~div~DVImag~mul~VResolution~mul~ } - \tl_set:Nx\l_@@_backend_xform_tmpdp_tl + \tl_set:Ne\l_@@_backend_xform_tmpdp_tl { \dim_to_decimal_in_sp:n{ \box_dp:N \l_@@_backend_tmpa_box }~ 65536~div~72.27~div~DVImag~mul~VResolution~mul~ @@ -2125,8 +2125,8 @@ \__kernel_backend_literal:e{!~<</InstanceUUID~(InstanceUUID)>>~setpagedevice} \str_if_exist:NTF\c_sys_timestamp_str { - \pdfmanagement_add:nnx{Info}{CreationDate}{(\c_sys_timestamp_str)} - \pdfmanagement_add:nnx{Info}{ModDate}{(\c_sys_timestamp_str)} + \pdfmanagement_add:nne{Info}{CreationDate}{(\c_sys_timestamp_str)} + \pdfmanagement_add:nne{Info}{ModDate}{(\c_sys_timestamp_str)} } { \pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx index a6384c182c9..73b309615c4 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -93,7 +93,7 @@ % \subsection{General annotation commands} % % \begin{function}[added = 2019-09-05, updated = 2020-04-14] -% { \pdfannot_box:nnnn,\pdfannot_box:nnnx } +% { \pdfannot_box:nnnn,\pdfannot_box:nnne } % \begin{syntax} % \cs{pdfannot_box:nnnn} \Arg{width} \Arg{height} \Arg{depth} \Arg{annot spec} % \end{syntax} @@ -123,7 +123,7 @@ % \pdfdict_new:n {l_my_annot} % \pdfdict_put:nnn{l_my_annot}{Subtype}{/Link} % \pdfdict_put:nnn{l_my_annot}{Border}{[0~0~1]} -% \pdfannot_box:nnnx{1cm}{1cm}{0cm}{\pdfdict_use:n{l_my_annot}} +% \pdfannot_box:nnne{1cm}{1cm}{0cm}{\pdfdict_use:n{l_my_annot}} % \end{verbatim} % % The second method is clearly slower and more to type. But it has the advantage @@ -187,7 +187,7 @@ % by the commands \cs{pdfannot_dict_put:nnn} and friends described below. % \end{variable} % \begin{function}[added = 2020-03-12, updated = 2020-12-06] -% { \pdfannot_link:nnn,\pdfannot_link:nxn } +% { \pdfannot_link:nnn,\pdfannot_link:nen } % \begin{syntax} % \cs{pdfannot_link:nnn} \Arg{type} \Arg{user action spec} \Arg{link text} % \end{syntax} @@ -237,7 +237,7 @@ % \pdfannot_dict_put:nnn % {link/URI} { C } {[1~0~0]} %red border % -% \pdfannot_link:nxn { URI } +% \pdfannot_link:nen { URI } % { % /A <<\pdfdict_use:n{l_my_action_dict}>> % } @@ -260,7 +260,7 @@ % {link/URI} { C } {[1~0~0]} %red border % % \group_begin: -% \pdfannot_dict_put:nnx {link/GoTo}{A}{<<\pdfdict_use:n{l_my_action_dict}>>} +% \pdfannot_dict_put:nne {link/GoTo}{A}{<<\pdfdict_use:n{l_my_action_dict}>>} % \pdfannot_link:nnn { URI }{}{ link text } % \group_end: % \end{verbatim} @@ -381,7 +381,7 @@ % This outputs the property list of the dictionary as a list of % |/key value| pairs. % This can be used e.g. when writing a dictionary object with -% \cs{pdf_object_write:nnx} +% \cs{pdf_object_write:nne} % \end{function} % % \begin{variable}[added = 2020-12-28]{\l_pdfannot_F_bitset} @@ -390,7 +390,7 @@ % It can be used for example like this: % \begin{verbatim} % \bitset_set_true:Nn \l_pdfannot_F_bitset {Print} -% \pdfannot_dict_put:nnx {link/URI} {F} +% \pdfannot_dict_put:nne {link/URI} {F} % { \bitset_to_arabic:N \l_pdfannot_F_bitset } % \end{verbatim} % The known keys for the bitset are |Invisible|, |Hidden|, @@ -432,7 +432,7 @@ % \begin{macrocode} %<@@=pdfannot> %<*header> -\ProvidesExplPackage{l3pdfannot}{2023-10-09}{0.96a} +\ProvidesExplPackage{l3pdfannot}{2023-11-05}{0.96b} {PDF-annotations} \RequirePackage{l3pdfdict} %</header> @@ -481,14 +481,14 @@ % type or not type? Syntax for type? % should there be a version without type? % \end{NOTE} -% \begin{macro}{\pdfannot_box:nnnn,\pdfannot_box:nnnx,\pdfannot_box_ref_last:} +% \begin{macro}{\pdfannot_box:nnnn,\pdfannot_box:nnne,\pdfannot_box_ref_last:} % \begin{macrocode} \cs_new_protected:Npn \pdfannot_box:nnnn #1 #2 #3 #4 { \__pdf_backend_annotation:nnnn {#1}{#2}{#3}{#4} \bool_gset_false:N\g_@@_use_lastlink_bool } -\cs_generate_variant:Nn \pdfannot_box:nnnn {nnnx} +\cs_generate_variant:Nn \pdfannot_box:nnnn {nnne,nnnx} \cs_new:Npn \pdfannot_box_ref_last: { \__pdf_backend_annotation_last: @@ -520,34 +520,34 @@ { \pdfdict_if_empty:nF { l_@@/widget/AA } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l_@@/widget/AA}} - \pdfdict_put:nnx { l_@@/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l_@@/widget/AA}} + \pdfdict_put:nne { l_@@/widget } {AA} {\pdf_object_ref_last:} } } \pdfdict_if_empty:nF { l_@@/widget/AP } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l_@@/widget/AP}} - \pdfdict_put:nnx { l_@@/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l_@@/widget/AP}} + \pdfdict_put:nne { l_@@/widget } {AP} {\pdf_object_ref_last:} } \pdfdict_if_empty:nF { l_@@/widget/MK } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l_@@/widget/MK}} - \pdfdict_put:nnx { l_@@/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l_@@/widget/MK}} + \pdfdict_put:nne { l_@@/widget } {MK} {\pdf_object_ref_last:} } \pdfdict_if_empty:nF { l_@@/widget/BS } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l_@@/widget/BS}} - \pdfdict_put:nnx { l_@@/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l_@@/widget/BS}} + \pdfdict_put:nne { l_@@/widget } {BS} {\pdf_object_ref_last:} } - \pdfannot_box:nnnx {#1}{#2}{#3} + \pdfannot_box:nnne {#1}{#2}{#3} { \pdfdict_use:n { l_@@/widget} } @@ -618,14 +618,14 @@ % % \subsubsection{Annotations, subtype Link /management} % -% \begin{macro}{\pdfannot_link:nnn,\pdfannot_link:nxn} +% \begin{macro}{\pdfannot_link:nnn,\pdfannot_link:nen} % \begin{macrocode} \cs_new_protected:Nn \pdfannot_link:nnn %#1 type (URI, GoTo etc), %#2 action spec, #3 link text { \hook_use:n { pdfannot/link/#1/before} \mode_leave_vertical: - \exp_args:Nxx %xetex needs expansion + \exp_args:Nee %xetex needs expansion \__pdf_backend_link_begin_user:nnw { \pdfdict_if_exist:nT { l_@@/link/#1 } @@ -644,19 +644,19 @@ \bool_gset_true:N \g_@@_use_lastlink_bool \hook_use:n { pdfannot/link/#1/after} } -\cs_generate_variant:Nn \pdfannot_link:nnn {nxn} +\cs_generate_variant:Nn \pdfannot_link:nnn {nen,nxn} % \end{macrocode} % \end{macro} % \begin{macro}{ % \pdfannot_link_begin:nnw, -% \pdfannot_link_begin:nxw, +% \pdfannot_link_begin:new, % \pdfannot_link_end:n } % \begin{macrocode} \cs_new_protected:Npn \pdfannot_link_begin:nnw #1 #2 %#1 type, #2 action spec { \hook_use:n { pdfannot/link/#1/before} \mode_leave_vertical: - \exp_args:Nxx %xetex needs expansion + \exp_args:Nee %xetex needs expansion \__pdf_backend_link_begin_user:nnw { \pdfdict_if_exist:nT { l_@@/link/#1 } @@ -676,7 +676,7 @@ \bool_gset_true:N \g_@@_use_lastlink_bool \hook_use:n { pdfannot/link/#1/after} } -\cs_generate_variant:Nn \pdfannot_link_begin:nnw {nxw} +\cs_generate_variant:Nn \pdfannot_link_begin:nnw {new,nxw} % \end{macrocode} % \end{macro} % \begin{macro}{\pdfannot_link_goto_begin:nw, \pdfannot_link_goto_end:} @@ -686,7 +686,7 @@ \pdfdict_remove:nn { l_@@/link/GoTo} {Subtype} \hook_use:n { pdfannot/link/GoTo/before} %the backend add it too \mode_leave_vertical: - \exp_args:Nxx %xetex needs expansion + \exp_args:Nee %xetex needs expansion \__pdf_backend_link_begin_goto:nnw { \pdfdict_use:n { l_@@/link/GoTo} @@ -734,7 +734,7 @@ % \begin{macro} % { % \pdfannot_dict_put:nnn, -% \pdfannot_dict_put:nnx, +% \pdfannot_dict_put:nne, % \pdfannot_dict_remove:nn, % \pdfannot_dict_show:n % \pdfannot_dict_use:n @@ -744,7 +744,7 @@ { \pdfdict_put:nnn { l_@@/#1 } { #2 }{ #3 } } -\cs_generate_variant:Nn \pdfannot_dict_put:nnn {nnx} +\cs_generate_variant:Nn \pdfannot_dict_put:nnn {nne,nnx} % \end{macrocode} % \begin{macrocode} \cs_new_protected:Npn \pdfannot_dict_remove:nn #1 #2 diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx index d95382ad91f..88f6f1bd1cf 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -144,7 +144,7 @@ % This outputs the property list of the dictionary as a list of % |/key value| pairs. % This can be used e.g. when writing a dictionary object with -% \cs{pdf_object_write:nnx} +% \cs{pdf_object_write:nne} % \end{function} % % \begin{function}[updated = 2020-12-03] @@ -208,7 +208,7 @@ % \begin{macrocode} %<@@=pdfdict> %<*header> -\ProvidesExplPackage{l3pdfdict}{2023-10-09}{0.96a} +\ProvidesExplPackage{l3pdfdict}{2023-11-05}{0.96b} {Tools for PDF dictionaries (LaTeX PDF management testphase bundle)} %</header> % \end{macrocode} @@ -285,7 +285,7 @@ { \@@_if_exist:nTF { #1 } { - \msg_error:nnxx + \msg_error:nnee { pdfdict } { dict-already-defined } { \tl_to_str:n {#1} } @@ -306,7 +306,7 @@ } } { - \msg_error:nnx{pdfdict}{invalid-name}{\tl_to_str:n{#1}} + \msg_error:nne{pdfdict}{invalid-name}{\tl_to_str:n{#1}} } } } @@ -419,7 +419,7 @@ { \@@_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_put:cnn + \exp_args:Nne \prop_put:cnn { \@@_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } { #3 } } { @@ -429,7 +429,7 @@ } \cs_set_eq:NN \pdfdict_put:nnn \@@_put:nnn -\cs_generate_variant:Nn \pdfdict_put:nnn {nnx,nno,nee} +\cs_generate_variant:Nn \pdfdict_put:nnn {nne,nno,nee,nnx} \cs_new_protected:Npn \@@_gput:nnn #1 #2 #3 %#1 global dict, #2 name, #3 value { @@ -440,7 +440,7 @@ { \@@_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_gput:cnn + \exp_args:Nne \prop_gput:cnn { \@@_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } { #3 } } { @@ -450,7 +450,7 @@ } \cs_set_eq:NN \pdfdict_gput:nnn \@@_gput:nnn -\cs_generate_variant:Nn \pdfdict_gput:nnn {nnx,nno,nee} +\cs_generate_variant:Nn \pdfdict_gput:nnn {nne,nno,nee,nnx} % \end{macrocode} % \end{macro} % @@ -464,7 +464,7 @@ { \@@_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_get:cnN + \exp_args:Nne \prop_get:cnN { \@@_name:n { #1 } } { \str_convert_pdfname:n { #2 } } #3 } @@ -489,7 +489,7 @@ { \@@_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_remove:cn + \exp_args:Nne \prop_remove:cn { \@@_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } } { @@ -502,7 +502,7 @@ { \@@_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_gremove:cn + \exp_args:Nne \prop_gremove:cn { \@@_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } } { @@ -537,7 +537,7 @@ } \cs_new_protected:Npn \pdfdict_show:n #1 { - \@@_show:Nn \msg_show:nnxxxx {#1} + \@@_show:Nn \msg_show:nneeee {#1} } % \end{macrocode} % \end{macro} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx index 09489fc8a1c..3948784b336 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -92,7 +92,7 @@ % % \begin{verbatim} % Netto~\pdffield_textfield:n{name=netto}~ -% \pdf_object_unnamed_write:nx{stream} +% \pdf_object_unnamed_write:ne{stream} % { % {} % { @@ -100,7 +100,7 @@ % event.value = 1.19*f_netto.value; % } % } -% \tl_set:Nx\l_tmpa_tl{\pdf_object_ref_last:} +% \tl_set:Ne\l_tmpa_tl{\pdf_object_ref_last:} % Brutto~\pdffield_textfield:n{name=brutto,AA/C={\l_tmpa_tl}} % \end{verbatim} % @@ -388,8 +388,8 @@ % ,\dim_set:N % ,\endcsname % ,\exp_args:Ne -% ,\exp_args:Nnx -% ,\exp_args:Nx +% ,\exp_args:Nne +% ,\exp_args:Ne % ,\fboxsep % ,\group_begin: % ,\group_end: @@ -422,12 +422,12 @@ % ,\pdf_object_ref:n % ,\pdf_object_ref_last: % ,\pdf_object_unnamed_write:nn -% ,\pdf_object_unnamed_write:nx +% ,\pdf_object_unnamed_write:ne % ,\pdf_object_write:nnn % ,\pdf_string_from_unicode:nnN % ,\pdfannot_box_ref_last: % ,\pdfannot_dict_put:nnn -% ,\pdfannot_dict_put:nnx +% ,\pdfannot_dict_put:nne % ,\pdfannot_dict_remove:nn % ,\pdfannot_widget_box:nnn % ,\pdfdict_if_empty:nTF @@ -436,7 +436,7 @@ % ,\pdfdict_put:nnn % ,\pdfdict_remove:nn % ,\pdfdict_use:n -% ,\pdfdict_put:nnx +% ,\pdfdict_put:nne % ,\pdfmanagement_add:nnn % ,\pdfmeta_standard_verify:nTF % ,\pdfxform_if_exist:nTF @@ -608,7 +608,7 @@ \cs_if_exist:cTF { @@_action_reset_#1: } { \use:c { @@_action_reset_#1: } - \pdfannot_dict_put:nnx{widget} + \pdfannot_dict_put:nne{widget} {A} {\tl_use:c { c_@@_action_reset_#1_tl } } } @@ -626,7 +626,7 @@ \cs_if_exist:cTF { @@_action_submit_#1: } { \use:c { @@_action_submit_#1: } - \pdfannot_dict_put:nnx{widget} + \pdfannot_dict_put:nne{widget} {A} {\tl_use:c { c_@@_action_submit_#1_tl } } } @@ -641,8 +641,8 @@ import .code:n = { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_tmpa_str - \pdf_object_unnamed_write:nx {dict}{/Type/Action/S/ImportData/F\l_@@_tmpa_str} - \pdfannot_dict_put:nnx{widget} + \pdf_object_unnamed_write:ne {dict}{/Type/Action/S/ImportData/F\l_@@_tmpa_str} + \pdfannot_dict_put:nne{widget} {A} {\pdf_object_ref_last: } } @@ -714,25 +714,25 @@ \group_begin: \seq_clear:N \l_@@_action_Fields_seq \keys_set:nn { pdffield / action }{ #2 } - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne { array } { \seq_use:Nn \l_@@_action_Fields_seq {~} } \tl_if_empty:NF \l_@@_action_next_tl { - \pdfdict_put:nnx {l_@@/ResetForm}{Next}{\l_@@_action_next_tl} + \pdfdict_put:nne {l_@@/ResetForm}{Next}{\l_@@_action_next_tl} } - \pdfdict_put:nnx + \pdfdict_put:nne { l_@@/ResetForm } { Fields } { \pdf_object_ref_last: } - \pdfdict_put:nnx + \pdfdict_put:nne { l_@@/ResetForm } { Flags } { \bitset_item:Nn\l_@@_Flags_bitset{Include/Exclude} } - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne { dict } { \pdfdict_use:n{l_@@/ResetForm} } - \tl_const:cx { c_@@_action_reset_#1_tl } { \pdf_object_ref_last: } + \tl_const:ce { c_@@_action_reset_#1_tl } { \pdf_object_ref_last: } \cs_gset_eq:cN {@@_action_reset_#1:} \prg_do_nothing: \group_end: } @@ -764,30 +764,30 @@ \bitset_clear:N \l_@@_Flags_bitset \keys_set:nn {pdffield/action}{#2} \use:c{ @@_action_flags_\l_@@_action_export_tl :} - \pdfdict_put:nnx + \pdfdict_put:nne { l_@@/SubmitForm } { Flags } { \bitset_to_arabic:N \l_@@_Flags_bitset } \tl_if_empty:NF \l_@@_action_next_tl { - \pdfdict_put:nnx {l_@@/SubmitForm}{Next}{\l_@@_action_next_tl} + \pdfdict_put:nne {l_@@/SubmitForm}{Next}{\l_@@_action_next_tl} } \bool_if:NTF \l_@@_url_encode_bool { \pdf_string_from_unicode:nnN { utf8/URI } {#3}\l_@@_tmpa_str } { \pdf_string_from_unicode:nnN { utf8/string }{#3}\l_@@_tmpa_str } - \pdf_object_unnamed_write:nx {dict} + \pdf_object_unnamed_write:ne {dict} { /FS/URL /F \l_@@_tmpa_str } - \pdfdict_put:nnx + \pdfdict_put:nne { l_@@/SubmitForm } { F } { \pdf_object_ref_last: } - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne { dict } { \pdfdict_use:n{ l_@@/SubmitForm } } - \tl_const:cx { c_@@_action_submit_#1_tl } { \pdf_object_ref_last: } + \tl_const:ce { c_@@_action_submit_#1_tl } { \pdf_object_ref_last: } \cs_gset_eq:cN { @@_action_submit_#1: } \prg_do_nothing: \group_end: } diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx index 1a053e71808..cb16c8f00d4 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx @@ -64,7 +64,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -486,14 +486,14 @@ ,checked .choice: ,checked / false .code:n = { - \pdfdict_put:nnx { l_@@/field }{V} { /Off } - \pdfdict_put:nnx { l_@@/field }{DV}{ /Off } + \pdfdict_put:nne { l_@@/field }{V} { /Off } + \pdfdict_put:nne { l_@@/field }{DV}{ /Off } \pdfannot_dict_put:nnn {widget}{AS}{ /Off } } ,checked / true .code:n = { - \pdfdict_put:nnx { l_@@/field }{V} { /Yes } - \pdfdict_put:nnx { l_@@/field }{DV}{ /Yes } + \pdfdict_put:nne { l_@@/field }{V} { /Yes } + \pdfdict_put:nne { l_@@/field }{DV}{ /Yes } \pdfannot_dict_put:nnn {widget}{AS}{ /Yes } } ,checked .default:n = {true} @@ -504,14 +504,14 @@ ,__value .choice: ,__value / Off .code:n = { - \pdfdict_put:nnx { l_@@/field }{V} { /Off } - \pdfdict_put:nnx { l_@@/field }{DV}{ /Off } + \pdfdict_put:nne { l_@@/field }{V} { /Off } + \pdfdict_put:nne { l_@@/field }{DV}{ /Off } \pdfannot_dict_put:nnn {widget}{AS}{ /Off } } ,__value / Yes .code:n = { - \pdfdict_put:nnx { l_@@/field }{V} { /Yes } - \pdfdict_put:nnx { l_@@/field }{DV}{ /Yes } + \pdfdict_put:nne { l_@@/field }{V} { /Yes } + \pdfdict_put:nne { l_@@/field }{DV}{ /Yes } \pdfannot_dict_put:nnn {widget}{AS}{ /Yes } } } @@ -542,14 +542,14 @@ \pdf_object_if_exist:nF {@@/checkbox/AP/#1} { \pdf_object_new:n {@@/checkbox/AP/#1} - \pdf_object_write:nnx + \pdf_object_write:nne {@@/checkbox/AP/#1} { dict } { /Yes ~ \pdfxform_ref:n { #1/Yes} /Off ~ \pdfxform_ref:n { #1/Off} } } - \pdfannot_dict_put:nnx {widget/AP}{#2}{\pdf_object_ref:n{@@/checkbox/AP/#1}} + \pdfannot_dict_put:nne {widget/AP}{#2}{\pdf_object_ref:n{@@/checkbox/AP/#1}} } { \msg_error:nnnn{pdffield}{appearance-missing}{#1}{#3} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx index 5b9993158fe..23d142d0895 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -369,14 +369,14 @@ % ,\pdf_object_ref:n % ,\pdf_object_ref_last: % ,\pdf_object_unnamed_write:nn -% ,\pdf_object_unnamed_write:nx -% ,\pdf_object_write:nnx +% ,\pdf_object_unnamed_write:ne +% ,\pdf_object_write:nne % ,\pdf_object_write:nnn % ,\pdf_string_from_unicode:nnN % ,\pdfannot_box_ref_last: % ,\pdfannot_dict_put:nnn -% ,\pdfannot_dict_put:nnx -% ,\pdfdict_put:nnx +% ,\pdfannot_dict_put:nne +% ,\pdfdict_put:nne % ,\pdfannot_dict_remove:nn % ,\pdfannot_widget_box:nnn % ,\pdfdict_if_empty:nTF @@ -470,7 +470,7 @@ \seq_map_indexed_inline:Nn \l_@@_choice_values_seq { \pdf_string_from_unicode:nnN{utf16/hex}{##2}\l_@@_tmpa_str - \tl_set:Nx \l_@@_tmpa_tl {\seq_item:Nn \l_@@_choice_displayvalues_seq {##1} } + \tl_set:Ne \l_@@_tmpa_tl {\seq_item:Nn \l_@@_choice_displayvalues_seq {##1} } \tl_if_empty:NTF \l_@@_tmpa_tl { \seq_put_right:NV \l_@@_choice_opt_seq \l_@@_tmpa_str @@ -478,12 +478,12 @@ { \exp_args:NnV \pdf_string_from_unicode:nnN{utf16/hex}\l_@@_tmpa_tl\l_@@_tmpb_str - \seq_put_right:Nx \l_@@_choice_opt_seq + \seq_put_right:Ne \l_@@_choice_opt_seq { [ \l_@@_tmpa_str\c_space_tl\l_@@_tmpb_str] } } } - \pdf_object_unnamed_write:nx {array}{\seq_use:Nn\l_@@_choice_opt_seq {~}} - \pdfdict_put:nnx { l_@@/field }{Opt} { \pdf_object_ref_last: } + \pdf_object_unnamed_write:ne {array}{\seq_use:Nn\l_@@_choice_opt_seq {~}} + \pdfdict_put:nne { l_@@/field }{Opt} { \pdf_object_ref_last: } % \end{macrocode} % Now we handle the V value. If MultiSelect is set, we use the full % displayvalues seq, if not only the first value. @@ -495,14 +495,14 @@ { \pdf_string_from_unicode:nnN{utf16/hex}{##1}\l_@@_tmpa_str \tl_put_right:NV \l_@@_tmpa_tl \l_@@_tmpa_str - \pdfdict_put:nnx { l_@@/field }{V} { [ \l_@@_tmpa_tl ] } + \pdfdict_put:nne { l_@@/field }{V} { [ \l_@@_tmpa_tl ] } } } { - \tl_set:Nx \l_@@_tmpa_tl {\seq_item:Nn \l_@@_choice_defaultvalues_seq {1} } + \tl_set:Ne \l_@@_tmpa_tl {\seq_item:Nn \l_@@_choice_defaultvalues_seq {1} } \exp_args:NnV \pdf_string_from_unicode:nnN{utf16/hex}\l_@@_tmpa_tl\l_@@_tmpb_str - \pdfdict_put:nnx { l_@@/field }{V} { \l_@@_tmpb_str } + \pdfdict_put:nne { l_@@/field }{V} { \l_@@_tmpb_str } } % \end{macrocode} % now we create the field and set it as parent for the following annotation. @@ -605,7 +605,7 @@ } ,top-index .code:n = { - \pdfdict_put:nnx {l_@@/field}{TI}{\int_eval:n{#1-1}} + \pdfdict_put:nne {l_@@/field}{TI}{\int_eval:n{#1-1}} } } % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx index 7471de15f82..38f3b91b125 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx @@ -55,7 +55,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -82,8 +82,8 @@ % \group_begin: % \tl_set:Nn\l_tmpa_tl{app.alert('Hello!~I\'m~Bär!',3,0);} % \regex_replace_once:nnN{ä}{\x5Cu00E4}\l_tmpa_tl{} -% \pdf_object_unnamed_write:nx{stream}{{}{\exp_not:o{\l_tmpa_tl}}} -% \pdfannot_dict_put:nnx{widget}{A}{<</S/JavaScript /JS~\pdf_object_ref_last:>>} +% \pdf_object_unnamed_write:ne{stream}{{}{\exp_not:o{\l_tmpa_tl}}} +% \pdfannot_dict_put:nne{widget}{A}{<</S/JavaScript /JS~\pdf_object_ref_last:>>} % \pdffield_pushbutton:n{name=bear,appearance=pdffield/bear,width=23pt,height=30pt,depth=10pt} % \group_end: % \ExplSyntaxOff @@ -93,9 +93,9 @@ %^^A \group_begin: %^^A \tl_set:Nn\l_tmpa_tl{app.alert('Hello!~Im~Bär!',3,0);} %^^A \regex_replace_once:nnN{ä}{\x5Cu00E4}\l_tmpa_tl{} -%^^A \pdf_object_unnamed_write:nx{stream}{{}{\exp_not:o{\l_tmpa_tl}}} -%^^A \pdf_object_unnamed_write:nx{dict}{/S/JavaScript /JS~\pdf_object_ref_last:} -%^^A \pdfannot_dict_put:nnx{widget}{A}{\pdf_object_ref_last:} +%^^A \pdf_object_unnamed_write:ne{stream}{{}{\exp_not:o{\l_tmpa_tl}}} +%^^A \pdf_object_unnamed_write:ne{dict}{/S/JavaScript /JS~\pdf_object_ref_last:} +%^^A \pdfannot_dict_put:nne{widget}{A}{\pdf_object_ref_last:} %^^A \pdffield_pushbutton:n{name=bear,appearance=pdffield/bear,width=23pt,height=30pt,depth=10pt} %^^A \group_end:% % \bigskip @@ -318,8 +318,8 @@ % ,\dim_set:N % ,\endcsname % ,\exp_args:Ne -% ,\exp_args:Nnx -% ,\exp_args:Nx +% ,\exp_args:Nne +% ,\exp_args:Ne % ,\fboxsep % ,\group_begin: % ,\group_end: @@ -355,7 +355,7 @@ % ,\pdf_string_from_unicode:nnN % ,\pdfannot_box_ref_last: % ,\pdfannot_dict_put:nnn -% ,\pdfannot_dict_put:nnx +% ,\pdfannot_dict_put:nne % ,\pdfannot_dict_remove:nn % ,\pdfannot_widget_box:nnn % ,\pdfdict_if_empty:nTF @@ -442,7 +442,7 @@ \cs_new_protected:Npn \@@_pushbutton_default_appearances: { \int_gincr:N \g_@@_pushbutton_cnt_int - \exp_args:Nx + \exp_args:Ne \pdffield_appearance:nn {pdffield/pushbutton/default-\int_use:N \g_@@_pushbutton_cnt_int} { \draw_begin: @@ -517,7 +517,7 @@ \draw_box_use:N \l_tmpa_box \draw_end: } - \exp_args:Nx + \exp_args:Ne \pdffield_appearance:nn {pdffield/pushbutton/defaultrollover-\int_use:N \g_@@_pushbutton_cnt_int} { \draw_begin: @@ -591,7 +591,7 @@ \draw_box_use:N \l_tmpa_box \draw_end: } - \exp_args:Nx + \exp_args:Ne \pdffield_appearance:nn {pdffield/pushbutton/defaultdown-\int_use:N \g_@@_pushbutton_cnt_int} { \draw_begin: @@ -723,7 +723,7 @@ \tl_if_empty:NT\l_@@_pushbutton_appearance_code_tl { \@@_pushbutton_default_appearances: - \exp_args:Nnx + \exp_args:Nne \keys_set:nn {pdffield} { appearance = pdffield/pushbutton/default-\int_eval:n{ \g_@@_pushbutton_cnt_int}, @@ -751,7 +751,7 @@ { \pdfxform_if_exist:nTF { #1 } { - \pdfannot_dict_put:nnx {widget/AP}{#2}{\pdfxform_ref:n{#1}} + \pdfannot_dict_put:nne {widget/AP}{#2}{\pdfxform_ref:n{#1}} } { \msg_error:nnnn{pdffield}{appearance-missing}{#1}{#3} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx index 8098d4684c6..3c82cdde974 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx @@ -83,7 +83,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -519,14 +519,14 @@ % ,\pdf_object_ref:n % ,\pdf_object_ref_last: % ,\pdf_object_unnamed_write:nn -% ,\pdf_object_unnamed_write:nx -% ,\pdf_object_write:nnx +% ,\pdf_object_unnamed_write:ne +% ,\pdf_object_write:nne % ,\pdf_object_write:nnn % ,\pdf_string_from_unicode:nnN % ,\pdfannot_box_ref_last: % ,\pdfannot_dict_put:nnn -% ,\pdfannot_dict_put:nnx -% ,\pdfdict_put:nnx +% ,\pdfannot_dict_put:nne +% ,\pdfdict_put:nne % ,\pdfannot_dict_remove:nn % ,\pdfannot_widget_box:nnn % ,\pdfdict_if_empty:nTF @@ -708,19 +708,19 @@ % The object is written at the end of the document. % \begin{macrocode} \pdf_object_new:n {@@/field/@@/radio-Opt/#1} - \pdfdict_put:nnx { l_@@/field }{Opt} { \pdf_object_ref:n {@@/field/@@/radio-Opt/#1} } + \pdfdict_put:nne { l_@@/field }{Opt} { \pdf_object_ref:n {@@/field/@@/radio-Opt/#1} } \seq_new:c { g_@@_radio_opt_#1_seq } \hook_gput_code:nnn {shipout/lastpage}{pdffield/radio} { - \pdf_object_write:nnx + \pdf_object_write:nne {@@/field/@@/radio-Opt/#1} { array } {\seq_use:cn {g_@@_radio_opt_#1_seq}{~}} } % \end{macrocode} % The default value is retrieved through a label: % \begin{macrocode} - \pdfdict_put:nnx { l_@@/field }{V} { /\@@_property_ref:nn{#1}{pdfradioindex} } - \pdfdict_put:nnx { l_@@/field }{DV} { /\@@_property_ref:nn{#1}{pdfradioindex} } + \pdfdict_put:nne { l_@@/field }{V} { /\@@_property_ref:nn{#1}{pdfradioindex} } + \pdfdict_put:nne { l_@@/field }{DV} { /\@@_property_ref:nn{#1}{pdfradioindex} } % \end{macrocode} % now we create the field and set it as parent for the following annotation. % \begin{macrocode} @@ -828,8 +828,8 @@ { \@@_property_ref:Vn\l_@@_fieldID_tl{pdfradioindex} } - { \pdfannot_dict_put:nnx {widget}{AS}{/\@@_property_ref:Vn\l_@@_fieldID_tl{pdfradioindex}} } - { \pdfannot_dict_put:nnx {widget}{AS}{/Off} } + { \pdfannot_dict_put:nne {widget}{AS}{/\@@_property_ref:Vn\l_@@_fieldID_tl{pdfradioindex}} } + { \pdfannot_dict_put:nne {widget}{AS}{/Off} } % \end{macrocode} % Now we set the appearances, if no key has been use we take the default. % \begin{macrocode} @@ -906,14 +906,14 @@ { \pdfxform_if_exist:nTF { #1 / Yes } { - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne {dict} { /\int_use:N \l_@@_radio_value_num_int \c_space_tl \pdfxform_ref:n { #1/Yes} /Off ~ \pdfxform_ref:n { #1/Off} } - \pdfannot_dict_put:nnx {widget/AP}{#2}{\pdf_object_ref_last:} + \pdfannot_dict_put:nne {widget/AP}{#2}{\pdf_object_ref_last:} } { \msg_error:nnnn{pdffield}{appearance-missing}{#1}{#3} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx index 4ab1db01f85..df091d3e602 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -135,7 +135,7 @@ % to use should be active) % \begin{verbatim} % \pdffield_textfield:n {name=text,font=F\pdffeedback~fontname\font} -% \pdfmanagement_add:nxx{Catalog/AcroForm/DR/Font} +% \pdfmanagement_add:nee{Catalog/AcroForm/DR/Font} % {F\pdffeedback~fontname\font} % {\pdffeedback~fontobjnum\font \c_space_tl 0 \c_space_tl R} % \end{verbatim} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx index 1e1eb23f1e2..9261078e98d 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx @@ -69,7 +69,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -287,7 +287,7 @@ % % % \begin{verbatim} -% \pdfmanagement_add:nnx{Catalog/AcroForm}{Fields}{<obj ref>} +% \pdfmanagement_add:nne{Catalog/AcroForm}{Fields}{<obj ref>} % \end{verbatim} % % \end{function} @@ -897,7 +897,7 @@ % ,\dim_new:N % ,\endcsname % ,\exp_args:Ne -% ,\exp_args:Nnx +% ,\exp_args:Nne % ,\exp_args:NV % ,\group_begin: % ,\group_end: @@ -910,7 +910,7 @@ % ,\keys_set:nn % ,\mode_leave_vertical: % ,\msg_error:nnnn -% ,\msg_error:nnx +% ,\msg_error:nne % ,\msg_new:nnn % ,\msg_warning:nn % ,\msg_warning:nnn @@ -922,23 +922,23 @@ % ,\pdf_object_new:n % ,\pdf_object_ref:n % ,\pdf_object_ref_last: -% ,\pdf_object_unnamed_write:nx -% ,\pdf_object_write:nnx +% ,\pdf_object_unnamed_write:ne +% ,\pdf_object_write:nne % ,\pdf_string_from_unicode:nnN % ,\pdfannot_box_ref_last: % ,\pdfannot_dict_put:nnn -% ,\pdfannot_dict_put:nnx +% ,\pdfannot_dict_put:nne % ,\pdfannot_dict_remove:nn % ,\pdfannot_widget_box:nnn % ,\pdfdict_if_empty:nTF % ,\pdfdict_if_empty:nF % ,\pdfdict_new:n % ,\pdfdict_put:nnn -% ,\pdfdict_put:nnx +% ,\pdfdict_put:nne % ,\pdfdict_remove:nn % ,\pdfdict_use:n % ,\pdfmanagement_add:nnn -% ,\pdfmanagement_add:nnx +% ,\pdfmanagement_add:nne % ,\pdfmeta_standard_verify:nTF % ,\pdfmeta_standard_verify:nT % ,\pdfmeta_standard_verify:nF @@ -948,7 +948,7 @@ % ,\ProvidesExplPackage % ,\rule % ,\seq_gput_right:Nn -% ,\seq_gput_right:cx +% ,\seq_gput_right:ce % ,\seq_if_exist:NTF % ,\seq_if_exist:cTF % ,\seq_new:N @@ -972,7 +972,7 @@ %<*package> %<@@=pdffield> \NeedsTeXFormat{LaTeX2e} -\ProvidesExplPackage{l3pdffield-testphase}{2023-10-09}{0.96a}% +\ProvidesExplPackage{l3pdffield-testphase}{2023-11-05}{0.96b}% {form fields} % \end{macrocode} % \subsection{hyperref specific command} @@ -1169,7 +1169,7 @@ \pdf_object_new:n {@@/field/Kids/#1} \tl_if_empty:NTF \l_@@_currentparent_tl { - \pdfmanagement_add:nnx + \pdfmanagement_add:nne { Catalog / AcroForm } { Fields } {\pdf_object_ref:n {@@/field/#1} } @@ -1178,22 +1178,22 @@ \exp_args:Ne \pdf_object_if_exist:nTF {@@/field/\l_@@_currentparent_tl} { - \pdfdict_put:nnx { l_@@/field }{Parent} + \pdfdict_put:nne { l_@@/field }{Parent} {\exp_args:Ne \pdf_object_ref:n{@@/field/\l_@@_currentparent_tl}} - \seq_gput_right:cx {g_@@_field/Kids/\l_@@_currentparent_tl _seq} + \seq_gput_right:ce {g_@@_field/Kids/\l_@@_currentparent_tl _seq} { \exp_args:Ne \pdf_object_ref:n{@@/field/#1}} } { - \msg_error:nnx {pdffield}{parent-field-missing}{\l_@@_currentparent_tl} + \msg_error:nne {pdffield}{parent-field-missing}{\l_@@_currentparent_tl} } } \seq_new:c {g_@@_field/Kids/#1_seq} - \pdfdict_put:nnx {l_@@/field} + \pdfdict_put:nne {l_@@/field} {Kids} { \pdf_object_ref:n {@@/field/Kids/#1} } - \pdfdict_put:nnx {l_@@/field} + \pdfdict_put:nne {l_@@/field} {Ff} {\bitset_to_arabic:N \l_@@_Ff_bitset } \pdfdict_if_empty:nF{l_@@/field/AA} @@ -1201,29 +1201,29 @@ \pdfmeta_standard_verify:nT {annot_widget_no_AA} { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n {l_@@/field/AA}} - \pdfdict_put:nnx + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n {l_@@/field/AA}} + \pdfdict_put:nne {l_@@/field} {AA} {\pdf_object_ref_last:} \pdfdict_get:nnN {l_@@/field/AA}{C}\l_@@_tmpa_tl \quark_if_no_value:NF \l_@@_tmpa_tl { - \prop_gput:Nxx\g_@@_CO_sortkeys_prop + \prop_gput:Nee\g_@@_CO_sortkeys_prop { \pdf_object_ref:n {@@/field/#1} }{ \l_@@_CO_sortkey_str } - \seq_gput_right:Nx\g_@@_CO_sortkeys_seq + \seq_gput_right:Ne\g_@@_CO_sortkeys_seq { \pdf_object_ref:n {@@/field/#1} } } } } \hook_gput_code:nnn {shipout/lastpage}{pdffield} %xetex needs this ... { - \pdf_object_write:nnx {@@/field/Kids/#1} { array } + \pdf_object_write:nne {@@/field/Kids/#1} { array } { \seq_use:cn{g_@@_field/Kids/#1_seq}{~} } } - \pdf_object_write:nnx {@@/field/#1} { dict } { \pdfdict_use:n {l_@@/field} } + \pdf_object_write:nne {@@/field/#1} { dict } { \pdfdict_use:n {l_@@/field} } } \hook_gput_code:nnn {shipout/lastpage}{pdffield} @@ -1239,7 +1239,7 @@ { \sort_return_swapped: } { \sort_return_same: } } - \pdfmanagement_add:nnx + \pdfmanagement_add:nne { Catalog / AcroForm } { CO } { \seq_use:Nn \g_@@_CO_sortkeys_seq{~} } @@ -1274,21 +1274,21 @@ \bitset_set_false:Nn \l_@@_F_bitset {Invisible} \bitset_set_false:Nn \l_@@_F_bitset {NoView} } - \pdfannot_dict_put:nnx {widget}{F}{ \bitset_to_arabic:N \l_@@_F_bitset } + \pdfannot_dict_put:nne {widget}{F}{ \bitset_to_arabic:N \l_@@_F_bitset } \@@_tag_add_struct_parent: \tl_if_empty:NF \l_@@_currentparent_tl { \exp_args:Ne \pdf_object_if_exist:nTF { @@/field/\l_@@_currentparent_tl } { - \pdfannot_dict_put:nnx {widget}{Parent} + \pdfannot_dict_put:nne {widget}{Parent} { \exp_args:Ne \pdf_object_ref:n{@@/field/\l_@@_currentparent_tl} } } { - \msg_error:nnx { pdffield }{parent-field-missing}{\l_@@_currentparent_tl} + \msg_error:nne { pdffield }{parent-field-missing}{\l_@@_currentparent_tl} } } \mode_leave_vertical: @@ -1303,19 +1303,19 @@ { \l_@@_annot_dp_dim } \hfill } - \tl_gset:Nx \g_@@_annot_ref_last_tl { \pdfannot_box_ref_last: } + \tl_gset:Ne \g_@@_annot_ref_last_tl { \pdfannot_box_ref_last: } \exp_args:NV \@@_tag_add_objr:n \g_@@_annot_ref_last_tl \@@_tag_struct_end: \tl_if_empty:NF \l_@@_currentparent_tl { \seq_if_exist:cTF {g_@@_field/Kids/\l_@@_currentparent_tl _seq} { - \seq_gput_right:cx + \seq_gput_right:ce {g_@@_field/Kids/\l_@@_currentparent_tl _seq} { \g_@@_annot_ref_last_tl } } { - \msg_error:nnx { pdffield}{parent-field-missing}{\l_@@_currentparent_tl} + \msg_error:nne { pdffield}{parent-field-missing}{\l_@@_currentparent_tl} } } } @@ -1357,14 +1357,14 @@ { \bool_if:NT \l_@@_tag_bool { - \pdfannot_dict_put:nnx {widget}{StructParent}{ \tag_struct_parent_int: } + \pdfannot_dict_put:nne {widget}{StructParent}{ \tag_struct_parent_int: } } } \cs_set_protected:Npn \@@_tag_add_objr:n #1 { \bool_if:NT \l_@@_tag_bool { - \exp_args:Nnx + \exp_args:Nne \tag_struct_insert_annot:nn {#1}{ \tag_struct_parent_int: } } } @@ -1437,7 +1437,7 @@ \pdf_string_from_unicode:nnN {utf8/string-raw}{#1}\l_@@_tmpa_str \str_if_in:NnT \l_@@_tmpa_str {.} { - \msg_error:nnx {pdffield}{no-period}{\l_@@_tmpa_str} + \msg_error:nne {pdffield}{no-period}{\l_@@_tmpa_str} } \str_if_empty:NTF\l_@@_tmpa_str { @@ -1445,7 +1445,7 @@ \pdfdict_remove:nn { l_@@/field }{T} } { - \pdfdict_put:nnx { l_@@/field }{T}{(\l_@@_tmpa_str)} + \pdfdict_put:nne { l_@@/field }{T}{(\l_@@_tmpa_str)} } } ,T .value_required:n = true @@ -1462,7 +1462,7 @@ } { \pdf_string_from_unicode:nnN {utf16/hex}{#1}\l_@@_tmpa_str - \pdfdict_put:nnx { l_@@/field }{TU}{\l_@@_tmpa_str} + \pdfdict_put:nne { l_@@/field }{TU}{\l_@@_tmpa_str} } } ,TU .groups:n = {field} @@ -1476,7 +1476,7 @@ } { \pdf_string_from_unicode:nnN {utf16/hex}{#1}\l_@@_tmpa_str - \pdfdict_put:nnx { l_@@/field }{TM}{\l_@@_tmpa_str} + \pdfdict_put:nne { l_@@/field }{TM}{\l_@@_tmpa_str} } } ,TM .groups:n = {field} @@ -1515,7 +1515,7 @@ } { \@@_V_handler:nN{#1}\l_@@_tmpa_str - \pdfdict_put:nnx { l_@@/field }{V}{ \l_@@_tmpa_str } + \pdfdict_put:nne { l_@@/field }{V}{ \l_@@_tmpa_str } } } ,V .groups:n = {field} @@ -1527,7 +1527,7 @@ } { \@@_V_handler:nN{#1}\l_@@_tmpa_str - \pdfdict_put:nnx { l_@@/field }{DV}{ \l_@@_tmpa_str } + \pdfdict_put:nne { l_@@/field }{DV}{ \l_@@_tmpa_str } } } ,DV .groups:n = {field} @@ -1538,7 +1538,7 @@ \pdfdict_remove:nn { l_@@/field }{MaxLen} } { - \pdfdict_put:nnx { l_@@/field }{MaxLen}{ #1 } + \pdfdict_put:nne { l_@@/field }{MaxLen}{ #1 } } } ,MaxLen .groups:n = {field} @@ -1549,7 +1549,7 @@ \pdfdict_remove:nn { l_@@/field }{Lock} } { - \pdfdict_put:nnx { l_@@/field }{Lock}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l_@@/field }{Lock}{ \pdf_object_ref:n{#1} } } } ,Lock .groups:n = {field} @@ -1560,7 +1560,7 @@ \pdfdict_remove:nn { l_@@/field }{SV} } { - \pdfdict_put:nnx { l_@@/field }{SV}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l_@@/field }{SV}{ \pdf_object_ref:n{#1} } } } ,SV .groups:n = {field} @@ -1571,7 +1571,7 @@ \pdfdict_remove:nn { l_@@/field }{Opt} } { - \pdfdict_put:nnx { l_@@/field }{Opt}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l_@@/field }{Opt}{ \pdf_object_ref:n{#1} } } } ,Opt .groups:n = {field} @@ -1582,7 +1582,7 @@ \pdfdict_remove:nn { l_@@/field }{TI} } { - \pdfdict_put:nnx { l_@@/field }{TI}{ #1 } + \pdfdict_put:nne { l_@@/field }{TI}{ #1 } } } ,TI .groups:n = {field} @@ -1593,7 +1593,7 @@ \pdfdict_remove:nn { l_@@/field }{I} } { - \pdfdict_put:nnx { l_@@/field }{I}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l_@@/field }{I}{ \pdf_object_ref:n{#1} } } } ,I .groups:n = {field} @@ -1648,7 +1648,7 @@ \pdfdict_remove:nn {l_@@/field/AA}{#1} } { - \pdfdict_put:nnx {l_@@/field/AA} + \pdfdict_put:nne {l_@@/field/AA} {#1} {<</S/JavaScript/JS\c_space_tl ##1>>} } @@ -1675,7 +1675,7 @@ \keys_define:nn {pdffield} { - sortkey .code:n = {\str_set:Nx \l_@@_CO_sortkey_str {\tl_to_str:n{#1}}} + sortkey .code:n = {\str_set:Ne \l_@@_CO_sortkey_str {\tl_to_str:n{#1}}} } % \end{macrocode} % \end{macro} @@ -1692,13 +1692,13 @@ \pdfdict_remove:nn { l_@@/field }{DA} } { - \pdfdict_put:nnx { l_@@/field }{DA}{ (#1) } + \pdfdict_put:nne { l_@@/field }{DA}{ (#1) } } } ,DA .groups:n = {field} ,Q .choices:nn = {left,center,right} { - \pdfdict_put:nnx { l_@@/field }{Q}{ \int_eval:n{\l_keys_choice_int-1} } + \pdfdict_put:nne { l_@@/field }{Q}{ \int_eval:n{\l_keys_choice_int-1} } } ,Q / .code:n = { \pdfdict_remove:nn { l_@@/field }{Q} } ,Q .groups:n = {field} @@ -1761,7 +1761,7 @@ { \pdfxform_if_exist:nTF { #1 } { - \pdfannot_dict_put:nnx {widget/AP}{#2} + \pdfannot_dict_put:nne {widget/AP}{#2} { \pdfxform_ref:n {#1} } @@ -1785,7 +1785,7 @@ \pdfannot_dict_remove:nn { widget }{AS} } { - \pdfannot_dict_put:nnx {widget}{AS}{\pdf_name_from_unicode_e:n{#1}} + \pdfannot_dict_put:nne {widget}{AS}{\pdf_name_from_unicode_e:n{#1}} } } ,AS .groups:n = annot @@ -1847,7 +1847,7 @@ { MK/R .choices:nn = {0,90,180,270} { - \pdfannot_dict_put:nnx {widget/MK}{R}{#1} + \pdfannot_dict_put:nne {widget/MK}{R}{#1} } ,MK/R / .code:n = { @@ -1868,7 +1868,7 @@ { \@@_color_set:nn {@@/tmp}{#1} \color_export:nnN{@@/tmp}{space-sep-rgb}\l_@@_tmpa_tl - \pdfannot_dict_put:nnx {widget/MK}{BC}{[\l_@@_tmpa_tl]} + \pdfannot_dict_put:nne {widget/MK}{BC}{[\l_@@_tmpa_tl]} } } ,MK/BC .groups:n = annot @@ -1886,7 +1886,7 @@ { \@@_color_set:nn {@@/tmp}{#1} \color_export:nnN{@@/tmp}{space-sep-rgb}\l_@@_tmpa_tl - \pdfannot_dict_put:nnx {widget/MK}{BG}{[\l_@@_tmpa_tl]} + \pdfannot_dict_put:nne {widget/MK}{BG}{[\l_@@_tmpa_tl]} } } ,MK/BG .groups:n = annot @@ -1905,7 +1905,7 @@ } { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_tmpa_str - \pdfannot_dict_put:nnx {widget/MK}{CA}{\l_@@_tmpa_str} + \pdfannot_dict_put:nne {widget/MK}{CA}{\l_@@_tmpa_str} } } ,MK/CA .groups:n = annot @@ -1923,7 +1923,7 @@ } { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_tmpa_str - \pdfannot_dict_put:nnx {widget/MK}{RC}{\l_@@_tmpa_str} + \pdfannot_dict_put:nne {widget/MK}{RC}{\l_@@_tmpa_str} } } ,MK/RC .groups:n = annot @@ -1941,7 +1941,7 @@ } { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_tmpa_str - \pdfannot_dict_put:nnx {widget/MK}{AC}{\l_@@_tmpa_str} + \pdfannot_dict_put:nne {widget/MK}{AC}{\l_@@_tmpa_str} } } ,MK/AC .groups:n = annot @@ -1966,7 +1966,7 @@ \pdfannot_dict_remove:nn { widget/MK }{#1} } { - \pdfannot_dict_put:nnx {widget/MK}{#1}{##1} + \pdfannot_dict_put:nne {widget/MK}{#1}{##1} } } ,MK/#1 .groups:n = annot @@ -2030,7 +2030,7 @@ \pdfannot_dict_remove:nn {widget/AA}{#1} } { - \pdfannot_dict_put:nnx {widget/AA} + \pdfannot_dict_put:nne {widget/AA} {#1} {<</S/JavaScript/JS\c_space_tl##1>>} } diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx index a98883d5c1e..08ec26e76f6 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -182,7 +182,7 @@ % in the |/Filespec| dictionary. % % \begin{verbatim} -% \pdf_object_unnamed_write:nx {fstream} +% \pdf_object_unnamed_write:ne {fstream} % { % { % /Type /EmbeddedFile @@ -196,7 +196,7 @@ % } % {example-image.eps} % } -% \tl_set:Nx \l_my_fileobj_tl {\pdf_object_ref_last:} +% \tl_set:Ne \l_my_fileobj_tl {\pdf_object_ref_last:} % \end{verbatim} % % \begin{itemize} @@ -226,7 +226,7 @@ % This name tree is a global resource and uncoordinated access can lead to % clashes and files that are not visible or inaccessible. % The access here is managed by the \pkg{l3pdfmanagement} module:\\[\smallskipamount]% -% |\pdfmanagement_add:nnx{Catalog/Names}{EmbeddedFiles}{|\meta{objref}|}| +% |\pdfmanagement_add:nne{Catalog/Names}{EmbeddedFiles}{|\meta{objref}|}| % % \subsection{Commands and tools of these module} % \begin{function}{file, file/Params, file/streamParams,file/Filespec} @@ -323,7 +323,7 @@ % The stream should not be too long, at least PS imposes a size limit for strings. % \end{function} % -% \begin{function}{\pdffile_filespec:nnn,\pdffile_filespec:nnx} +% \begin{function}{\pdffile_filespec:nnn,\pdffile_filespec:nne} % \begin{syntax} % \cs{ pdffile_filespec:nnn }\Arg{object name}\Arg{file name}{stream object reference} % \end{syntax} @@ -380,11 +380,11 @@ % \pdf_string_from_unicode:nnN {utf16/string} % {this~is~an~odd~description~with~öäü} % \l_tmpa_str -% \pdfdict_put:nnx {l_pdffile/Filespec} {Desc}{\l_tmpa_str} +% \pdfdict_put:nne {l_pdffile/Filespec} {Desc}{\l_tmpa_str} % %embeds testinput.txt and calls it grüße.txt % \pdffile_embed_file:nnn {testinput.txt}{grüße.txt}{mymodule/example1} % %reference it in the panel -% \pdfmanagement_add:nnx +% \pdfmanagement_add:nne % {Catalog/Names} % {EmbeddedFiles} % {\pdf_object_ref:n{mymodule/example1}} @@ -398,7 +398,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage{l3pdffile}{2023-10-09}{0.96a} +\ProvidesExplPackage{l3pdffile}{2023-11-05}{0.96b} {embedding and referencing files in PDF---LaTeX PDF management testphase bundle} \RequirePackage{l3pdftools} %temporarly!! %</header> @@ -538,7 +538,7 @@ % \begin{macrocode} \cs_new_protected:Npn \pdffile_embed_show: { - \msg_show:nnx + \msg_show:nne {pdffile}{show-files} { \prop_map_function:NN {\g_pdffile_embed_prop} \msg_show_item:nn @@ -573,10 +573,10 @@ \l_@@_ext_str \l_@@_tmpb_tl { - \tl_set:Nx #2 {/Subtype~\pdf_name_from_unicode_e:V \l_@@_tmpb_tl} + \tl_set:Ne #2 {/Subtype~\pdf_name_from_unicode_e:V \l_@@_tmpb_tl} } { - \msg_warning:nnx { pdffile }{ mimetype-missing} {#1} + \msg_warning:nne { pdffile }{ mimetype-missing} {#1} \tl_clear:N #2 } } @@ -589,7 +589,7 @@ % e.g. result from \@@_mimetype_set:NN \cs_new_protected:Npn \@@_fstream_write:nN #1 #2 { - \pdf_object_unnamed_write:nx { fstream } + \pdf_object_unnamed_write:ne { fstream } { { #2 @@ -614,7 +614,7 @@ % e.g. result from \@@_mimetype_set:NN \cs_new_protected:Npn \@@_stream_write:nN #1 #2 { - \pdf_object_unnamed_write:nx { stream } + \pdf_object_unnamed_write:ne { stream } { { #2 @@ -646,9 +646,9 @@ { \group_begin: \@@_filename_convert_to_print:nN { #2 } \l_@@_tmpa_str - \pdfdict_put:nnx {l_pdffile/Filespec}{F} { \l_@@_tmpa_str } - \pdfdict_put:nnx {l_pdffile/Filespec}{UF}{ \l_@@_tmpa_str } - \pdf_object_write:nnx { #1 } { dict } + \pdfdict_put:nne {l_pdffile/Filespec}{F} { \l_@@_tmpa_str } + \pdfdict_put:nne {l_pdffile/Filespec}{UF}{ \l_@@_tmpa_str } + \pdf_object_write:nne { #1 } { dict } { \pdfdict_use:n { l_pdffile/Filespec} \tl_if_empty:nF { #3 } @@ -670,9 +670,9 @@ { \group_begin: \@@_filename_convert_to_print:nN { #1 } \l_@@_tmpa_str - \pdfdict_put:nnx {l_pdffile/Filespec}{F} { \l_@@_tmpa_str } - \pdfdict_put:nnx {l_pdffile/Filespec}{UF}{ \l_@@_tmpa_str } - \pdf_object_unnamed_write:nx {dict} + \pdfdict_put:nne {l_pdffile/Filespec}{F} { \l_@@_tmpa_str } + \pdfdict_put:nne {l_pdffile/Filespec}{UF}{ \l_@@_tmpa_str } + \pdf_object_unnamed_write:ne {dict} { \pdfdict_use:n { l_pdffile/Filespec} \tl_if_empty:nF { #2 } @@ -680,14 +680,14 @@ /EF <</F~#2 /UF~#2>> } } - \tl_gset:Nx\g_@@_tmpa_tl{\pdf_object_ref_last:} + \tl_gset:Ne\g_@@_tmpa_tl{\pdf_object_ref_last:} \group_end: \tl_set_eq:NN#3\g_@@_tmpa_tl } } \cs_set_eq:NN \pdffile_filespec:nnn \@@_filespec_write:nnn -\cs_generate_variant:Nn \pdffile_filespec:nnn {nnx} +\cs_generate_variant:Nn \pdffile_filespec:nnn {nne,nnx} %#1 {source filename} %#2 {target filename} %#3 { filespec object name } (will internally get a prefix! ??) @@ -712,14 +712,14 @@ \@@_fstream_write:VN \l_pdffile_source_name_str \l_@@_automimetype_tl - \tl_set:Nx \l_@@_embed_ref_tl { \pdf_object_ref_last: } + \tl_set:Ne \l_@@_embed_ref_tl { \pdf_object_ref_last: } } { \msg_error:nnn { pdffile }{ file-not-found }{ #1 } } } - \prop_gput:Nnx + \prop_gput:Nne \g_pdffile_embed_prop { #3 } { @@ -734,7 +734,7 @@ \tl_if_blank:nTF { #2 } { \pdf_object_new:n { #3 } - \exp_args:Nnnx + \exp_args:Nnne \@@_filespec_write:nnn %#1 dict, #2 target file name, #3 object ref { #3 } @@ -743,7 +743,7 @@ } { \pdf_object_new:n { #3 } - \exp_args:Nnnx + \exp_args:Nnne \@@_filespec_write:nnn %#1 dict, #2 target file name, #3 object ref { #3 } @@ -765,7 +765,7 @@ \msg_error:nnn { pdffile }{ object-exists } { #3 } } { - \prop_gput:Nnx + \prop_gput:Nne \g_pdffile_embed_prop { #3 } {{stream}{}{\tl_if_blank:nTF {#2}{stream.txt}{\exp_not:n{#2}}}} @@ -775,9 +775,9 @@ \@@_stream_write:nN { #1 } \l_@@_automimetype_tl - \tl_set:Nx \l_@@_embed_ref_tl { \pdf_object_ref_last: } + \tl_set:Ne \l_@@_embed_ref_tl { \pdf_object_ref_last: } \pdf_object_new:n { #3 } - \exp_args:Nnxx + \exp_args:Nnee \@@_filespec_write:nnn %#1 dict, #2 target file name, #3 object ref { #3 } @@ -794,14 +794,14 @@ \@@_stream_write:nN { #1 } \l_@@_automimetype_tl - \tl_set:Nx \l_@@_embed_ref_tl { \pdf_object_ref_last: } - \exp_args:Nxx + \tl_set:Ne \l_@@_embed_ref_tl { \pdf_object_ref_last: } + \exp_args:Nee \@@_filespec_write:nnN %#1 target file name, #2 object ref of stream, #3 object ref of filespec { \tl_if_blank:nTF {#2}{stream.txt}{\exp_not:n{#2}} } {\l_@@_embed_ref_tl} #3 - \prop_gput:Nxx + \prop_gput:Nee \g_pdffile_embed_prop { #3 } {{stream}{}{\tl_if_blank:nTF {#2}{stream.txt}{\exp_not:n{#2}}}} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx index 6081864cb64..cdedd54040e 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx @@ -57,7 +57,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -139,7 +139,7 @@ % \end{function} % \begin{function}[added = 2020-04-06,updated=2021-07-23] -% {\pdfmanagement_add:nnn,\pdfmanagement_add:nnx,\pdfmanagement_add:nxx,\pdfmanagement_add:xxx, +% {\pdfmanagement_add:nnn,\pdfmanagement_add:nne,\pdfmanagement_add:nee,\pdfmanagement_add:eee, % \PDFManagementAdd} % \begin{syntax} % \cs{pdfmanagement_add:nnn} \Arg{resource path} \Arg{name} \Arg{value} @@ -153,7 +153,7 @@ % keys used in PDF dictionaries (see the l3pdfdict module) the name is escaped % with \cs{str_convert_pdfname:n} when stored. % \Arg{value} should be a valid PDF value for this Name in the -% target dictionary. |\PDFManagementAdd| is a copy of |\pdfmanagement_add:xxx| +% target dictionary. |\PDFManagementAdd| is a copy of |\pdfmanagement_add:eee| % and so expands all its arguments. % % @@ -250,7 +250,7 @@ % normally sensible: % \begin{verbatim} % \str_set_convert:Nnnn \l_tmpa_str { Grüße }{ default } {utf16/string} -% \pdfmanagement_add:nnx {Info} {Title}{(\l_tmpa_str)} +% \pdfmanagement_add:nne {Info} {Title}{(\l_tmpa_str)} % \end{verbatim} % \end{function} % @@ -539,13 +539,13 @@ % \begin{verbatim} % \pdf_object_new:n {module/intent} % \pdf_object_write:nnn {module/intent}{dict}{...} -% \pdfmanagement_add:nnx {Catalog} {OutputIntents}{\pdf_object_ref:n {module/intent}} +% \pdfmanagement_add:nne {Catalog} {OutputIntents}{\pdf_object_ref:n {module/intent}} % \end{verbatim} % % or % \begin{verbatim} % \pdf_object_unnamed_write:nn {dict} { ... } -% \pdfmanagement_add:nnx {Catalog} {OutputIntents}{\pdf_object_ref_last:} +% \pdfmanagement_add:nne {Catalog} {OutputIntents}{\pdf_object_ref_last:} % \end{verbatim} % % @@ -582,7 +582,7 @@ % the AP names (for appearance streams) use % % \begin{verbatim} -% \pdfmanagement_add:nnx { Catalog / Names / AP } {myAPname} {\pdf_object_ref_last:} +% \pdfmanagement_add:nne { Catalog / Names / AP } {myAPname} {\pdf_object_ref_last:} % \end{verbatim} % % Remarks: @@ -632,7 +632,7 @@ %<@@=pdfmanagement> %<*header> % -\ProvidesExplPackage{l3pdfmanagement}{2023-10-09}{0.96a} +\ProvidesExplPackage{l3pdfmanagement}{2023-11-05}{0.96b} {Management of core PDF dictionaries (LaTeX PDF management testphase bundle)} %</header> % \end{macrocode} @@ -723,13 +723,13 @@ } } { - \msg_warning:nnx {pdfmanagement}{inactive} + \msg_warning:nne {pdfmanagement}{inactive} {\tl_to_str:n {\pdfmanagement_add:nnn}} } } -\cs_generate_variant:Nn \pdfmanagement_add:nnn {nnx,nxx,xxx} -\cs_set_eq:NN \PDFManagementAdd \pdfmanagement_add:xxx +\cs_generate_variant:Nn \pdfmanagement_add:nnn {nne,nee,eee,nnx,nxx,xxx} +\cs_set_eq:NN \PDFManagementAdd \pdfmanagement_add:eee % \end{macrocode} % \subsection{Hooks -- shipout and end of run code} % Code is executed in three places: At shipout of every page, @@ -831,7 +831,7 @@ { @@_handler/#1/#2_gput:n } { \use:c {@@_handler/#1/#2_gput:n} {#3} } %special handler { - \exp_args:Nnx + \exp_args:Nne \prop_gput:cnn { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n { #2 } } @@ -846,11 +846,11 @@ } -\cs_generate_variant:Nn \@@_handler_gput:nnn {nxx} +\cs_generate_variant:Nn \@@_handler_gput:nnn {nee} \cs_new_protected:Npn \@@_get:nnN #1 #2 #3 %path,key,macro { - \exp_args:Nnx + \exp_args:Nne \prop_get:cnN { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n {#2} } #3 @@ -869,7 +869,7 @@ { @@_handler/#1/#2_gremove: } { \use:c {@@_handler/#1/#2_gremove:} } %special handler { - \exp_args:Nnx + \exp_args:Nne \prop_gremove:cn { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n {#2} } @@ -885,7 +885,7 @@ { \pdfdict_if_exist:nTF { g__pdf_Core/#1 } { - \exp_args:Nnx + \exp_args:Nne \prop_gremove:cn { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n{#2} } @@ -931,7 +931,7 @@ % \begin{macrocode} \cs_new_protected:Npn \pdfmanagement_show:n #1 { - \@@_show:Nn \msg_show:nnxxxx {#1} + \@@_show:Nn \msg_show:nneeee {#1} } % \end{macrocode} % \begin{macrocode} @@ -999,7 +999,7 @@ { \pdfdict_if_empty:nF { g__pdf_Core/Pages} { - \exp_args:Nx \__pdf_backend_Pages_primitive:n + \exp_args:Ne \__pdf_backend_Pages_primitive:n { \pdfdict_use:n { g__pdf_Core/Pages} } @@ -1279,10 +1279,10 @@ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AA } } { \pdf_object_new:n { @@/Catalog/AA } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/AA }{ dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AA } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {AA} { @@ -1309,10 +1309,10 @@ \seq_if_empty:cF { g_@@_/Catalog/AcroForm/Fields_seq } { \pdf_object_new:n { @@/Catalog/AcroForm/Fields } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/AcroForm/Fields } { array } { \seq_use:cn { g_@@_/Catalog/AcroForm/Fields_seq } {~} } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } } { Fields } @@ -1321,10 +1321,10 @@ \seq_if_empty:cF { g_@@_/Catalog/AcroForm/CO_seq } { \pdf_object_new:n { @@/Catalog/AcroForm/CO } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/AcroForm/CO } { array } { \seq_use:cn { g_@@_/Catalog/AcroForm/CO_seq } {~} } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } } { CO } @@ -1333,10 +1333,10 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR/Font}} { \pdf_object_new:n { @@/Catalog/AcroForm/DR/Font } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/AcroForm/DR/Font } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR/Font } } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR } } { Font } @@ -1345,10 +1345,10 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR}} { \pdf_object_new:n { @@/Catalog/AcroForm/DR } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/AcroForm/DR } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR } } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } } { DR } @@ -1357,10 +1357,10 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm} } { \pdf_object_new:n { @@/Catalog/AcroForm } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/AcroForm } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm } } - \exp_args:Nnnx + \exp_args:Nnne \@@_handler_gput:nnn { Catalog } { AcroForm } @@ -1381,10 +1381,10 @@ { g_@@_/Catalog/AF_seq } { \pdf_object_new:n { @@/Catalog/AF } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/AF } { array } { \seq_use:cn { g_@@_/Catalog/AF_seq } {~} } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {AF} { @@ -1404,10 +1404,10 @@ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/MarkInfo } } { \pdf_object_new:n { @@/Catalog/MarkInfo } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/MarkInfo } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/MarkInfo } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {MarkInfo} { @@ -1445,7 +1445,7 @@ { \pdf_object_new:n { @@/Catalog/OCProperties } \seq_gpop_left:cN { g_@@_/Catalog/OCProperties/Configs_seq} \l_@@_tmpa_tl - \pdf_object_write:nnx {@@/Catalog/OCProperties} {dict} + \pdf_object_write:nne {@@/Catalog/OCProperties} {dict} { /OCGs~[ \seq_use:cn { g_@@_/Catalog/OCProperties/OCGs_seq } {~} ] /D~\l_@@_tmpa_tl~ @@ -1455,7 +1455,7 @@ [ \seq_use:cn { g_@@_/Catalog/OCProperties/Configs_seq} {~} ] } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn { OCProperties } { \__pdf_backend_object_ref:n {@@/Catalog/OCProperties} } @@ -1474,10 +1474,10 @@ { g_@@_/Catalog/OutputIntents_seq } { \pdf_object_new:n { @@/Catalog/OutputIntents } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/OutputIntents } { array } { \seq_use:cn { g_@@_/Catalog/OutputIntents_seq } {~} } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {OutputIntents} { @@ -1498,10 +1498,10 @@ { g_@@_/Catalog/Requirements_seq } { \pdf_object_new:n { @@/Catalog/Requirements } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/Requirements } { array } { \seq_use:cn { g_@@_/Catalog/Requirements_seq } {~} } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {Requirements} { @@ -1522,10 +1522,10 @@ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/ViewerPreferences } } { \pdf_object_new:n { @@/Catalog/ViewerPreferences } - \pdf_object_write:nnx + \pdf_object_write:nne { @@/Catalog/ViewerPreferences } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/ViewerPreferences } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {ViewerPreferences} { @@ -1571,12 +1571,12 @@ \cs_new_protected:cpn { @@_handler/Catalog/Names/EmbeddedFiles_gput:n } #1 { \int_gincr:N \g_@@_EmbeddedFiles_int - \exp_args:Nnx + \exp_args:Nne \prop_gput:cnn { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/Names/EmbeddedFiles }} { \@@_EmbeddedFiles_name: } { #1 } - \exp_args:Nx + \exp_args:Ne \__pdf_backend_NamesEmbeddedFiles_add:nn {\@@_EmbeddedFiles_name:} { #1 } } % \end{macrocode} @@ -1601,7 +1601,7 @@ { \sort_return_swapped: } { \sort_return_same: } } - \exp_args:Nnx \__pdf_backend_Names_gpush:nn + \exp_args:Nne \__pdf_backend_Names_gpush:nn {#1} { \seq_use:Nn \l_@@_tmpa_seq {~} @@ -1615,7 +1615,7 @@ % \begin{macrocode} \cs_new_protected:cpn {@@_handler/Catalog/?_show:} { - \iow_term:x + \iow_term:e { \iow_newline: The~Catalog~contains~in~the~top~level~the~single~value~entries @@ -1627,7 +1627,7 @@ { \seq_if_empty:cF { g_@@_/Catalog/##1_seq } { - \iow_term:x + \iow_term:e { The~'##1'~array~contains~the~entries \seq_map_function:cN { g_@@_/Catalog/##1_seq } \msg_show_item:n @@ -1638,7 +1638,7 @@ { \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/##1 } } { - \iow_term:x + \iow_term:e { The~Catalog~subdirectory~'##1'~contains~the~single~value~entries \prop_map_function:cN @@ -1647,7 +1647,7 @@ } } } - \tl_show:x {\tl_to_str:n{\pdfmanagement_show:n{Catalog}}} + \tl_show:e {\tl_to_str:n{\pdfmanagement_show:n{Catalog}}} } % \end{macrocode} % \end{macro} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx index 1f30c5badf4..0a55e2b9d77 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -566,7 +566,7 @@ % \begin{macrocode} %<@@=pdfmeta> %<*header> -\ProvidesExplPackage{l3pdfmeta}{2023-10-09}{0.96a} +\ProvidesExplPackage{l3pdfmeta}{2023-11-05}{0.96b} {PDF-Standards---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} @@ -644,7 +644,7 @@ { \cs_if_exist:cTF {@@_standard_verify_handler_#1:nn} { - \exp_args:Nnnx + \exp_args:Nnne \use:c {@@_standard_verify_handler_#1:nn} { #2 } @@ -756,7 +756,7 @@ { \__pdf_backend_omit_charset:n {1} } \pdfmeta_standard_verify:nnF { min_pdf_version } { \pdf_version: } - { \msg_warning:nnxxx {pdf}{wrong-pdfversion} + { \msg_warning:nneee {pdf}{wrong-pdfversion} {\pdf_version:}{low} { \pdfmeta_standard_item:n{type} @@ -766,7 +766,7 @@ } \pdfmeta_standard_verify:nnF { max_pdf_version } { \pdf_version: } - { \msg_warning:nnxxx {pdf}{wrong-pdfversion} + { \msg_warning:nneee {pdf}{wrong-pdfversion} {\pdf_version:}{high} { \pdfmeta_standard_item:n{type} @@ -970,7 +970,7 @@ % \end{verbatim} % \item Write a |/OutputIntent| dictionary for this % \begin{verbatim} -% \pdf_object_unnamed_write:nx {dict} +% \pdf_object_unnamed_write:ne {dict} % { % /Type /OutputIntent % /S /GTS_PDFA1 % or GTS_PDFX or ISO_PDFE1 or ... @@ -981,7 +981,7 @@ % \end{verbatim} % \item Reference the dictionary in the catalog: % \begin{verbatim} -% \pdfmanagement_add:nnx {Catalog}{OutputIntents}{\pdf_object_ref_last:} +% \pdfmanagement_add:nne {Catalog}{OutputIntents}{\pdf_object_ref_last:} % \end{verbatim} % \end{enumerate} % But we need to do a bit more work, to get the interface right. @@ -1085,7 +1085,7 @@ \pdf_object_if_exist:nF { __color_icc_ #1 } { \pdf_object_new:n { __color_icc_ #1 } - \pdf_object_write:nnx { __color_icc_ #1 } { fstream } + \pdf_object_write:nne { __color_icc_ #1 } { fstream } { {/N\c_space_tl \prop_item:cn{c_@@_colorprofile_#1}{N} @@ -1098,8 +1098,8 @@ \cs_new_protected:Npn \@@_write_outputintent:nn #1 #2 %#1 file name, #2 subtype { \group_begin: - \pdfdict_put:nnx {l_pdfmeta/outputintent}{S}{/\str_convert_pdfname:n{#2}} - \pdfdict_put:nnx {l_pdfmeta/outputintent} + \pdfdict_put:nne {l_pdfmeta/outputintent}{S}{/\str_convert_pdfname:n{#2}} + \pdfdict_put:nne {l_pdfmeta/outputintent} {DestOutputProfile} {\pdf_object_ref:n{ __color_icc_ #1 }} \clist_map_inline:nn { OutputConditionIdentifier, Info, RegistryName } @@ -1110,12 +1110,12 @@ \l_@@_tmpa_tl { \pdf_string_from_unicode:nVN {utf8/string}\l_@@_tmpa_tl\l_@@_tmpa_str - \pdfdict_put:nnx + \pdfdict_put:nne {l_pdfmeta/outputintent}{##1}{\l_@@_tmpa_str} } } - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n {l_pdfmeta/outputintent} } - \pdfmanagement_add:nnx {Catalog}{OutputIntents}{\pdf_object_ref_last:} + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n {l_pdfmeta/outputintent} } + \pdfmanagement_add:nne {Catalog}{OutputIntents}{\pdf_object_ref_last:} \group_end: } % \end{macrocode} @@ -1143,18 +1143,18 @@ % Then we loop but take always the same profile. % \begin{macrocode} { - \exp_args:NNx + \exp_args:NNe \prop_if_in:NnF \g_@@_outputintents_prop { \pdfmeta_standard_item:n { outputintent_A } } { - \exp_args:NNx + \exp_args:NNe \prop_gput:Nnn \g_@@_outputintents_prop { \pdfmeta_standard_item:n { outputintent_A } } { sRGB.icc } } - \exp_args:NNx + \exp_args:NNe \prop_get:NnN \g_@@_outputintents_prop { \pdfmeta_standard_item:n { outputintent_A } } @@ -1191,8 +1191,8 @@ % \begin{macrocode} \hook_gput_code:nnn{pdfmanagement/add}{pdfmanagement} { - \pdfmanagement_add:nnx {Info}{Producer}{(\c_sys_engine_exec_str-\c_sys_engine_version_str)} - \pdfmanagement_add:nnx {Info}{Creator}{(LaTeX)} + \pdfmanagement_add:nne {Info}{Producer}{(\c_sys_engine_exec_str-\c_sys_engine_version_str)} + \pdfmanagement_add:nne {Info}{Creator}{(LaTeX)} } % \end{macrocode} % \subsection{New document keys} @@ -1390,7 +1390,7 @@ \cs_new_protected:Npn \@@_xmp_date_get:nNN #1 #2 #3 %#1 property, #2 tl var with PDF date, #3 seq for splitted date { - \tl_set:Nx #2 { \GetDocumentProperties{#1} } + \tl_set:Ne #2 { \GetDocumentProperties{#1} } \tl_if_blank:VTF #2 { \seq_set_eq:NN #3 \l_@@_xmp_currentdate_seq @@ -1408,8 +1408,8 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_xmp_create_uuid:nN #1 #2 { - \str_set:Nx#2 {\str_lowercase:f{\tex_mdfivesum:D{#1}}} - \str_set:Nx#2 + \str_set:Ne#2 {\str_lowercase:f{\tex_mdfivesum:D{#1}}} + \str_set:Ne#2 { uuid: \str_range:Nnn #2{1}{8} -\str_range:Nnn#2{9}{12} @@ -1433,8 +1433,8 @@ \group_begin: \text_declare_purify_equivalent:Nn \& {\tl_to_str:N & } \text_declare_purify_equivalent:Nn \texttilde {\c_tilde_str} - \tl_set:Nx \l_@@_tmpa_tl { \text_purify:n {#1} } - \str_gset:Nx \g_@@_tmpa_str { \tl_to_str:N \l_@@_tmpa_tl } + \tl_set:Ne \l_@@_tmpa_tl { \text_purify:n {#1} } + \str_gset:Ne \g_@@_tmpa_str { \tl_to_str:N \l_@@_tmpa_tl } \str_greplace_all:Nnn\g_@@_tmpa_str {&}{&} \str_greplace_all:Nnn\g_@@_tmpa_str {<}{<} \str_greplace_all:Nnn\g_@@_tmpa_str {>}{>} @@ -1478,8 +1478,8 @@ \tl_set:Nn #3 {#1} } { - \tl_set:Nx #2 {\seq_item:Nn\l_@@_tmpa_seq{2}} - \tl_set:Nx #3 {\seq_item:Nn\l_@@_tmpa_seq{3}} + \tl_set:Ne #2 {\seq_item:Nn\l_@@_tmpa_seq{2}} + \tl_set:Ne #3 {\seq_item:Nn\l_@@_tmpa_seq{3}} } } \cs_generate_variant:Nn \@@_xmp_lang_get:nNN {eNN,VNN} @@ -1503,7 +1503,7 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_xmp_add_packet_chunk:n #1 { - \tl_gput_right:Nx\g_@@_xmp_packet_tl + \tl_gput_right:Ne\g_@@_xmp_packet_tl { \@@_xmp_indent: \exp_not:n{#1} } @@ -1518,7 +1518,7 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_xmp_add_packet_chunk:nN #1 #2 { - \tl_put_right:Nx#2 + \tl_put_right:Ne#2 { \@@_xmp_indent: \exp_not:n{#1} } @@ -1690,8 +1690,8 @@ % think if an error is needed for empty lang. % \end{NOTE} % \begin{macrocode} - \tl_set:Nx \l_@@_xmp_doclang_tl {\GetDocumentProperties{document/lang}} - \tl_set:Nx \l_@@_xmp_metalang_tl {\GetDocumentProperties{hyperref/pdfmetalang}} + \tl_set:Ne \l_@@_xmp_doclang_tl {\GetDocumentProperties{document/lang}} + \tl_set:Ne \l_@@_xmp_metalang_tl {\GetDocumentProperties{hyperref/pdfmetalang}} \tl_if_blank:VT \l_@@_xmp_metalang_tl { \cs_set_eq:NN \l_@@_xmp_metalang_tl\l_@@_xmp_doclang_tl} % \end{macrocode} @@ -1768,17 +1768,17 @@ \prop_new:N \g_@@_xmp_xmlns_prop % \end{macrocode} % \end{variable} -% \begin{macro}{\@@_xmp_xmlns_new:nn,\@@_xmp_xmlns_new:nx} +% \begin{macro}{\@@_xmp_xmlns_new:nn,\@@_xmp_xmlns_new:ne} % \begin{macrocode} \cs_new_protected:Npn \@@_xmp_xmlns_new:nn #1 #2 { \prop_gput:Nnn \g_@@_xmp_xmlns_prop {#1}{#2} - \tl_gput_right:Nx \g_@@_xmp_xmlns_tl + \tl_gput_right:Ne \g_@@_xmp_xmlns_tl { \@@_xmp_indent:n{4} xmlns:\exp_not:n{#1="#2"} } } -\cs_generate_variant:Nn \@@_xmp_xmlns_new:nn {nx} +\cs_generate_variant:Nn \@@_xmp_xmlns_new:nn {ne} % \end{macrocode} % \end{macro} % Now we fill the data. The list is more or less the same as in hyperxmp @@ -1789,7 +1789,7 @@ \@@_xmp_xmlns_new:nn {photoshop}{http://ns.adobe.com/photoshop/1.0/} \@@_xmp_xmlns_new:nn {xmp} {http://ns.adobe.com/xap/1.0/} \@@_xmp_xmlns_new:nn {xmpMM} {http://ns.adobe.com/xap/1.0/mm/} -\@@_xmp_xmlns_new:nx {stEvt} +\@@_xmp_xmlns_new:ne {stEvt} {http://ns.adobe.com/xap/1.0/sType/ResourceEvent\c_hash_str} \@@_xmp_xmlns_new:nn {pdfaid} {http://www.aiim.org/pdfa/ns/id/} \@@_xmp_xmlns_new:nn {pdfuaid} {http://www.aiim.org/pdfua/ns/id/} @@ -1798,13 +1798,13 @@ \@@_xmp_xmlns_new:nn {prism} {http://prismstandard.org/namespaces/basic/3.0/} %\@@_xmp_xmlns_new:nn {jav} {http://www.niso.org/schemas/jav/1.0/} %\@@_xmp_xmlns_new:nn {xmpTPg} {http://ns.adobe.com/xap/1.0/t/pg/} -\@@_xmp_xmlns_new:nx {stFnt} {http://ns.adobe.com/xap/1.0/sType/Font\c_hash_str} +\@@_xmp_xmlns_new:ne {stFnt} {http://ns.adobe.com/xap/1.0/sType/Font\c_hash_str} \@@_xmp_xmlns_new:nn {Iptc4xmpCore}{http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/} \@@_xmp_xmlns_new:nn {pdfaExtension}{http://www.aiim.org/pdfa/ns/extension/} -\@@_xmp_xmlns_new:nx {pdfaSchema}{http://www.aiim.org/pdfa/ns/schema\c_hash_str} -\@@_xmp_xmlns_new:nx {pdfaProperty}{http://www.aiim.org/pdfa/ns/property\c_hash_str} -\@@_xmp_xmlns_new:nx {pdfaType} {http://www.aiim.org/pdfa/ns/type\c_hash_str} -\@@_xmp_xmlns_new:nx {pdfaField}{http://www.aiim.org/pdfa/ns/field\c_hash_str} +\@@_xmp_xmlns_new:ne {pdfaSchema}{http://www.aiim.org/pdfa/ns/schema\c_hash_str} +\@@_xmp_xmlns_new:ne {pdfaProperty}{http://www.aiim.org/pdfa/ns/property\c_hash_str} +\@@_xmp_xmlns_new:ne {pdfaType} {http://www.aiim.org/pdfa/ns/type\c_hash_str} +\@@_xmp_xmlns_new:ne {pdfaField}{http://www.aiim.org/pdfa/ns/field\c_hash_str} % \end{macrocode} % \subsection{Building the chunks: Extensions} @@ -2191,14 +2191,14 @@ \@@_xmp_date_get:nNN {document/creationdate}\l_@@_tmpa_tl\l_@@_tmpa_seq \@@_xmp_add_packet_line:nne{xmp}{CreateDate}{\@@_xmp_print_date:N\l_@@_tmpa_seq} - \pdfmanagement_add:nnx{Info}{CreationDate}{(\l_@@_tmpa_tl)} + \pdfmanagement_add:nne{Info}{CreationDate}{(\l_@@_tmpa_tl)} % \end{macrocode} % ModifyDate % \begin{macrocode} \@@_xmp_date_get:nNN {document/moddate}\l_@@_tmpa_tl\l_@@_tmpa_seq \@@_xmp_add_packet_line:nne{xmp}{ModifyDate}{\@@_xmp_print_date:N\l_@@_tmpa_seq} - \pdfmanagement_add:nnx{Info}{ModDate}{(\l_@@_tmpa_tl)} + \pdfmanagement_add:nne{Info}{ModDate}{(\l_@@_tmpa_tl)} % \end{macrocode} % MetadataDate % \begin{macrocode} @@ -2273,7 +2273,7 @@ % \end{macrocode} % pdfdocumentid / xmpMM:DocumentID % \begin{macrocode} - \str_set:Nx\l_@@_tmpa_str {\GetDocumentProperties{hyperref/pdfdocumentid}} + \str_set:Ne\l_@@_tmpa_str {\GetDocumentProperties{hyperref/pdfdocumentid}} \str_if_empty:NT \l_@@_tmpa_str { \@@_xmp_create_uuid:nN @@ -2285,7 +2285,7 @@ % \end{macrocode} % pdfinstanceid / xmpMM:InstanceID % \begin{macrocode} - \str_set:Nx\l_@@_tmpa_str {\GetDocumentProperties{hyperref/pdfinstanceid}} + \str_set:Ne\l_@@_tmpa_str {\GetDocumentProperties{hyperref/pdfinstanceid}} \str_if_empty:NT \l_@@_tmpa_str { \@@_xmp_create_uuid:nN @@ -2473,7 +2473,7 @@ { \@@_xmp_add_packet_open_attr:nnn {Iptc4xmpCore}{CreatorContactInfo}{rdf:parseType="Resource"} - \tl_gput_right:Nx\g_@@_xmp_packet_tl { \l_@@_xmp_iptc_data_tl } + \tl_gput_right:Ne\g_@@_xmp_packet_tl { \l_@@_xmp_iptc_data_tl } \@@_xmp_add_packet_close:nn {Iptc4xmpCore}{CreatorContactInfo} } @@ -2552,7 +2552,7 @@ % The page count is take from the previous run or from % pdfnumpages. % \begin{macrocode} - \tl_set:Nx \l_@@_tmpa_tl { \GetDocumentProperties{hyperref/pdfnumpages} } + \tl_set:Ne \l_@@_tmpa_tl { \GetDocumentProperties{hyperref/pdfnumpages} } \@@_xmp_add_packet_line:nne {prism}{pageCount} {\tl_if_blank:VTF \l_@@_tmpa_tl {\PreviousTotalPages}{\l_@@_tmpa_tl}} @@ -2599,7 +2599,7 @@ \@@_xmp_build_packet: \exp_args:No \__pdf_backend_metadata_stream:n {\g_@@_xmp_packet_tl} - \pdfmanagement_add:nnx {Catalog} {Metadata}{\pdf_object_ref_last:} + \pdfmanagement_add:nne {Catalog} {Metadata}{\pdf_object_ref_last:} \bool_if:NT \g_@@_xmp_export_bool { \iow_open:Nn\g_tmpa_iow{\g_@@_xmp_export_str.xmpi} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx index 6906727952a..ce9958a9bb0 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -231,7 +231,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage{l3pdftools}{2023-10-09}{0.96a} +\ProvidesExplPackage{l3pdftools}{2023-11-05}{0.96b} {candidate commands for l3pdf---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx index 4df838e625d..bb25497b41b 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -132,7 +132,7 @@ % \begin{macrocode} %<@@=pdf> %<*header> -\ProvidesExplPackage{l3pdfxform}{2023-10-09}{0.96a} +\ProvidesExplPackage{l3pdfxform}{2023-11-05}{0.96b} {command to create xforms (beta)---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx index 96da24d6482..6501ef67150 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx @@ -47,7 +47,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -220,7 +220,7 @@ % \begin{macrocode} %<@@=pdfmanagement> %<*header> -\ProvidesExplPackage{ltdocinit}{2023-10-09}{0.96a} +\ProvidesExplPackage{ltdocinit}{2023-11-05}{0.96b} {Initialize document metadata} %</header> % \end{macrocode} @@ -280,7 +280,7 @@ % \begin{macrocode} \NewDocumentCommand\AddToDocumentProperties{O{\@currname}mm} { - \exp_args:NNx + \exp_args:NNe \prop_gput:Nnn \g_@@_documentproperties_prop { \tl_if_blank:eTF {#1}{top-level/}{#1/} #2 @@ -333,7 +333,7 @@ } \NewDocumentCommand\ShowDocumentProperties {} { - \msg_show:nnx {pdfmanagement}{show-properties} + \msg_show:nne {pdfmanagement}{show-properties} { \prop_map_function:NN \g_@@_documentproperties_prop \msg_show_item:nn } diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx index 29fcf8bafa5..3835be9ef2b 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx @@ -47,7 +47,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -63,7 +63,7 @@ % |debug={firstaidoff={name1,name2,...},...}|. % \begin{macrocode} %<*package> -\ProvidesExplPackage{pdfmanagement-firstaid}{2023-10-09}{0.96a} +\ProvidesExplPackage{pdfmanagement-firstaid}{2023-11-05}{0.96b} {LaTeX PDF management testphase bundle / firstaid-patches} %<@@=pdfmanagement> @@ -103,15 +103,78 @@ { \bool_if:NT \g_@@_firstaid_fontspec_bool { - \@ifpackagelater{fontspec}{2023-03-10} + \AddToHook{package/fontspec/after} { - \__fontspec_keys_define_code:nnn {fontspec} {Color} - { - \tl_set:Nn \l__fontspec_hexcol_tl {#1} - } - }{} + \@ifpackagelater{fontspec}{2023-11-05} + {\typeout{PDF~Management:~fontspec~firstaid~ignored}} + { + \def\c__fontspec_opacity_tl{} + \__fontspec_keys_define_code:nnn {fontspec} {Color} + { + \color_if_exist:nTF {#1} + { + \tl_set:Nn \l__fontspec_hexcol_tl {#1} + } + { + \cs_if_exist:cTF { \token_to_str:N \color@ #1 } + { + \convertcolorspec{named}{#1}{HTML}\l__fontspec_hexcol_tl + } + { + \int_compare:nTF { \tl_count:n {#1} == 6 } + { \tl_set:Nn \l__fontspec_hexcol_tl {#1} } + { + \int_compare:nTF { \tl_count:n {#1} == 8 } + { \fontspec_parse_colour:viii #1 } + { + \bool_if:NF \l__fontspec_firsttime_bool + { \__fontspec_warning:nx {bad-colour} {#1} } + } + } + } + } + } +% \end{macrocode} +% add a comma +% \begin{macrocode} + \__fontspec_keys_define_code:nnn {fontspec} {Opacity} + { + \int_set:Nn \l__fontspec_tmp_int {255} + \__fontspec_int_mult_truncate:Nn \l__fontspec_tmp_int { #1 } + \tl_if_eq:NNF \l__fontspec_opacity_tl \c__fontspec_opacity_tl + { + \bool_if:NF \l__fontspec_firsttime_bool + { \__fontspec_warning:nx {opa-twice} {#1} } + } + \tl_set:Nx \l__fontspec_opacity_tl + { + , + \int_compare:nT { \l__fontspec_tmp_int <= "F } {0} % zero pad + \int_to_hex:n { \l__fontspec_tmp_int } + } + } +% \end{macrocode} +% and a brace +% \begin{macrocode} + \cs_set:Nn \__fontspec_get_features:n + { + \__fontspec_init_fontface: + \__fontspec_keys_set_known:nxN {fontspec-renderer} {\l__fontspec_fontfeat_clist,#1} + \l__fontspec_keys_leftover_clist + \__fontspec_keys_set_known:nxN {fontspec} {\l__fontspec_keys_leftover_clist} \l__fontspec_keys_leftover_clist + \keys_set:nV {fontspec-opentype} \l__fontspec_keys_leftover_clist + + \tl_if_empty:NF \l__fontspec_mapping_tl + { \__fontspec_update_featstr:n { mapping = \l__fontspec_mapping_tl } } + + \str_if_eq:eeF { \l__fontspec_hexcol_tl \l__fontspec_opacity_tl } + { \c__fontspec_hexcol_tl \c__fontspec_opacity_tl } + { \__fontspec_update_featstr:n { color = {\l__fontspec_hexcol_tl\l__fontspec_opacity_tl } } } + } + } } } + } % \end{macrocode} % \subsection{\pkg{beamer}} @@ -314,21 +377,21 @@ } \cs_generate_variant:Nn \tl_trim_spaces:n{V} -\cs_generate_variant:Nn \pdfmanagement_add:nnn {nex} +\cs_generate_variant:Nn \pdfmanagement_add:nnn {nee} \cs_new:Npn \@@_patch_pgfextgs:w #1/#2<<#3>>#4\q_stop { - \tl_set:Nx\l_tmpa_tl{#2} - \pdfmanagement_add:nex + \tl_set:Ne\l_tmpa_tl{#2} + \pdfmanagement_add:nee {Page/Resources/ExtGState}{\tl_trim_spaces:V\l_tmpa_tl}{<<#3 #4>>} } \cs_new:Npn \@@_patch_pgfpatterns:w #1/#2\space#3\q_stop { - \pdfmanagement_add:nex + \pdfmanagement_add:nee {Page/Resources/Pattern}{\tl_trim_spaces:n{#2}}{#3} } \cs_new:Npn \@@_patch_pgfcolorspaces:w #1/#2[#3]#4\q_stop { - \pdfmanagement_add:nex + \pdfmanagement_add:nee {Page/Resources/ColorSpace}{\tl_trim_spaces:n{#2}}{[#3]} } diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx index 0fa1b2130b0..bb6140dd31e 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx @@ -47,7 +47,7 @@ % }^^A % } % -% \date{Version 0.96a, released 2023-10-09} +% \date{Version 0.96b, released 2023-11-05} % % \maketitle % \begin{documentation} @@ -395,7 +395,7 @@ % \begin{macrocode} %<@@=pdf> %<*package> -\ProvidesExplPackage{pdfmanagement-testphase}{2023-10-09}{0.96a} +\ProvidesExplPackage{pdfmanagement-testphase}{2023-11-05}{0.96b} {LaTeX PDF management testphase bundle} \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020-10-01}{}{ @@ -423,7 +423,7 @@ % to allow to set it in the document. % \begin{macrocode} %<*header> -\ProvidesExplFile{pdfmanagement-testphase.ltx}{2023-10-09}{0.96a} +\ProvidesExplFile{pdfmanagement-testphase.ltx}{2023-11-05}{0.96b} {PDF~management~code~(testphase)} % \end{macrocode} % We define a boolean for the new delayed shipout. This is temporary. At some diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty index b04fa5aa9b6..ac0a4e5f86f 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty @@ -24,7 +24,7 @@ %% This file has the LPPL maintenance status "maintained". %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{color-ltx}[2023-10-09 v0.96a +\ProvidesPackage{color-ltx}[2023-11-05 v0.96b Standard LaTeX Color (patched for l3color, part of pdfmanagement-testphase, original version 2022/01/06 v1.3d) (DPC)] \edef\Gin@codes{% \catcode`\noexpand\^^A\the\catcode`\^^A\relax diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty index 6af2ce080f7..8e03acf1120 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty @@ -19,7 +19,7 @@ % % for those people who are interested. \NeedsTeXFormat{LaTeX2e}[2020/10/01] -\ProvidesExplPackage{colorspace-patches-tmp-ltx}{2023-10-09}{0.96a} +\ProvidesExplPackage{colorspace-patches-tmp-ltx}{2023-11-05}{0.96b} {temporay patches to for the colorspace package to test pdfresource management ... UF} % colorspace can define more models, that l3color can't yet handle. @@ -79,11 +79,11 @@ \seq_set_split:NnV \l_tmpa_seq {~}\l_tmpa_str \seq_get_left:NN\l_tmpa_seq\l_tmpa_str %remove spaces - \exp_args:NNx + \exp_args:NNe \str_replace_all:Nnn\l_tmpa_str {\c_hash_str20}{~} %remove slash - \str_set:Nx\l_tmpa_str{\str_tail:N\l_tmpa_str} - \pdfmanagement_add:nex + \str_set:Ne\l_tmpa_str{\str_tail:N\l_tmpa_str} + \pdfmanagement_add:nee {Page/Resources/ColorSpace}{\l_tmpa_str}{\seq_item:Nn\l_tmpa_seq{2}~0~R} } \spc@csall diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def index 4c37ce15fba..a9e7d4c380e 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: hyperref-generic.dtx -\ProvidesFile{hgeneric-testphase.def}[2023-10-09 v0.96a % +\ProvidesFile{hgeneric-testphase.def}[2023-11-05 v0.96b % generic Hyperref driver for the LaTeX PDF management testphase bundle] \RequirePackage{etoolbox} %why? @@ -200,7 +200,7 @@ { unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-key } + \msg_warning:nneee { hyp } { unknown-key } { hyp~/~setup }{ \l_keys_key_str } { #1 } } } @@ -253,7 +253,7 @@ } ,afrelationship .code:n = { - \pdfdict_put:nnx + \pdfdict_put:nne { l_pdffile/Filespec}{AFRelationship}{ \pdf_name_from_unicode_e:n {#1}} } @@ -398,7 +398,7 @@ %\tl_set:cn {@#1}{#2} \AddToDocumentProperties[hyperref]{#1}{#2} } -\cs_generate_variant:Nn \__hyp_store_metadata:nn {xn,nx,xx} +\cs_generate_variant:Nn \__hyp_store_metadata:nn {en,ne,ee} \hook_new:n{hyp/link/cite} \keys_define:nn { hyp / setup } { @@ -582,7 +582,7 @@ \hook_new:n {hyp/text/pdfstring} \cs_new_protected:Npn \__hyp_text_purify:nN #1 #2 %#1 input, #2 str command { - \str_set:Nx #2 {\text_purify:n { #1 } } + \str_set:Ne #2 {\text_purify:n { #1 } } } \cs_new_protected:Npn \__hyp_text_cleanup:N #1 { @@ -604,16 +604,16 @@ \group_end: \str_set_eq:NN #3 \g__hyp_text_tmpa_str } -\cs_generate_variant:Nn \__hyp_text_pdfstring:nnN {xnN,onN,xoN,ooN,noN} +\cs_generate_variant:Nn \__hyp_text_pdfstring:nnN {enN,onN,eoN,ooN,noN} \cs_new_protected:Npn\Hy@pstringdef #1 #2 - { \__hyp_text_pdfstring:xnN {#2} {utf8/string-raw}#1 } + { \__hyp_text_pdfstring:enN {#2} {utf8/string-raw}#1 } \cs_new_protected:Npn \__hyp_text_pdfstring_info:nN #1 #2 { \__hyp_text_pdfstring:noN { #1 }{ \l__hyp_text_enc_info_print_tl } #2 } \cs_new_protected:Npn\__hyp_PageLabels_gpush: { - \pdfmanagement_add:nnx {Catalog} {PageLabels}{<</Nums[\HyPL@Labels]>>} + \pdfmanagement_add:nne {Catalog} {PageLabels}{<</Nums[\HyPL@Labels]>>} } \def\Hy@PutCatalog #1 {} @@ -622,7 +622,7 @@ { \cs_set_protected:Npn \HyPL@StorePageLabel #1 { - \tl_gput_right:Nx \HyPL@Labels { \the\Hy@abspage<<#1>> } + \tl_gput_right:Ne \HyPL@Labels { \the\Hy@abspage<<#1>> } \__hyp_PageLabels_gpush: } } @@ -631,7 +631,7 @@ \mode_if_horizontal:T { \@savsf\spacefactor } \Hy@SaveLastskip %defined in hyperref \Hy@VerboseAnchor{#1} %defined in hyperref, for debugging - \__hyp_text_pdfstring:xoN + \__hyp_text_pdfstring:eoN { \HyperDestNameFilter{#1} } { \l__hyp_text_enc_dest_tl } \l__hyp_tmpa_tl @@ -681,14 +681,14 @@ \protected@edef \l__hyp_dest_name_tmpa_tl { #1 } \tl_if_empty:NTF \l__hyp_dest_name_tmpa_tl { - \msg_warning:nnx + \msg_warning:nne { hyp } { empty-destination-name } { \c__hyp_dest_undefined_tl } \tl_set_eq:NN \l__hyp_dest_name_tmpa_tl \c__hyp_dest_undefined_tl } { - \__hyp_text_pdfstring:xoN + \__hyp_text_pdfstring:eoN { \exp_args:No \HyperDestNameFilter { \l__hyp_dest_name_tmpa_tl } } { \l__hyp_text_enc_dest_tl } \l__hyp_dest_name_tmpa_tl @@ -749,7 +749,7 @@ \bool_if:NTF \l__hyp_annot_URI_bool { \group_begin: - \__hyp_text_pdfstring:xoN + \__hyp_text_pdfstring:eoN { #2} { \l__hyp_text_enc_uri_print_tl } \l__hyp_uri_tmpa_tl @@ -762,8 +762,8 @@ \cs_set_eq:NN \% \c_percent_str \Hy@safe@activestrue \mode_leave_vertical: - \pdfannot_dict_put:nnx {link/URI}{A}{<<\pdfdict_use:n {l_hyp/annot/A/URI}>>} - \pdfannot_link:nxn { URI } + \pdfannot_dict_put:nne {link/URI}{A}{<<\pdfdict_use:n {l_hyp/annot/A/URI}>>} + \pdfannot_link:nen { URI } { } { @@ -781,23 +781,23 @@ \pdfdict_put:nnn {l_hyp/annot/A/GoToR}{Type}{/Action} \pdfdict_put:nnn {l_hyp/annot/A/GoToR}{S}{/GoToR} +\cs_generate_variant:Nn \pdffile_embed_file:nnn {noe} \cs_new_protected:Npn \hyper@linkfile #1 #2 #3 % link text, filename, destname { \bool_if:NTF \l__hyp_annot_GoToR_bool { \group_begin: - \tl_set:Nx \l__hyp_filename_tmpa_tl { \text_expand:n { #2 } } - \exp_args:Nx + \tl_set:Ne \l__hyp_filename_tmpa_tl { \text_expand:n { #2 } } + \exp_args:Ne \pdf_object_if_exist:nF { __hyp_file_\tl_to_str:N \l__hyp_filename_tmpa_tl } { - \pdfdict_put:nnx { l_pdffile/Filespec}{Subtype}{\pdf_name_from_unicode_e:n {application/pdf}} - \exp_args:Nnox - \pdffile_embed_file:nnn + \pdfdict_put:nne { l_pdffile/Filespec}{Subtype}{\pdf_name_from_unicode_e:n {application/pdf}} + \pdffile_embed_file:noe {} {\l__hyp_filename_tmpa_tl } {__hyp_file_\tl_to_str:N \l__hyp_filename_tmpa_tl } } - \pdfdict_put:nnx + \pdfdict_put:nne {l_hyp/annot/A/GoToR} {F} {\pdf_object_ref:e {__hyp_file_\tl_to_str:N \l__hyp_filename_tmpa_tl}} @@ -807,7 +807,7 @@ \l__hyp_dest_name_tmpa_tl \tl_if_blank:eTF {#3} { - \pdfdict_put:nnx {l_hyp/annot/A/GoToR}{D} + \pdfdict_put:nne {l_hyp/annot/A/GoToR}{D} { [ \int_eval:n @@ -820,9 +820,9 @@ \pdfdict_put:nno {l_hyp/annot/A/GoToR}{D}{\l__hyp_dest_name_tmpa_tl} } \mode_leave_vertical: - \pdf_object_unnamed_write:nx{dict}{\pdfdict_use:n {l_hyp/annot/A/GoToR}} - \pdfannot_dict_put:nnx {link/GoToR}{A}{\pdf_object_ref_last:} - \pdfannot_link:nxn %expansion?? + \pdf_object_unnamed_write:ne{dict}{\pdfdict_use:n {l_hyp/annot/A/GoToR}} + \pdfannot_dict_put:nne {link/GoToR}{A}{\pdf_object_ref_last:} + \pdfannot_link:nnn %expansion?? { GoToR } { } @@ -863,12 +863,14 @@ \pdfdict_remove:nn {l_hyp/annot/A/Launch}{Win} } { - \pdfdict_put:nnx {l_hyp/annot/A/Launch}{Win} + \pdfdict_put:nne + {l_hyp/annot/A/Launch} + {Win} {<</P \l__hyp_para_tmpa_tl /F \l__hyp_filename_tmpa_tl >>} } \mode_leave_vertical: - \pdfannot_dict_put:nnx {link/Launch}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Launch}>>} - \pdfannot_link:nxn + \pdfannot_dict_put:nne {link/Launch}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Launch}>>} + \pdfannot_link:nen { Launch } { % /A @@ -882,9 +884,9 @@ } {{\let\protect\relax#2}} } -\use:x +\use:e { % filename, anchor text, linkname - \cs_set_protected:Npn \exp_not:N \@hyper@launch run \c_colon_str ##1 \exp_not:N \\ ##2 ##3 + \cs_set_protected:Npn \exp_not:N \@hyper@launch run \c_colon_str #1 \exp_not:N \\ #2 #3 } { \hyper@linklaunch {#1}{#2}{#3} @@ -901,10 +903,10 @@ \pdfmeta_standard_verify:nnTF {named_actions}{#1} { \mode_leave_vertical: - \pdfdict_put:nnx {l_hyp/annot/A/Named}{N} + \pdfdict_put:nne {l_hyp/annot/A/Named}{N} {\pdf_name_from_unicode_e:n{#1}} - \pdfannot_dict_put:nnx {link/Named}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Named}>>} - \pdfannot_link:nxn { Named } + \pdfannot_dict_put:nne {link/Named}{A}{<<\pdfdict_use:n {l_hyp/annot/A/Named}>>} + \pdfannot_link:nnn { Named } { } { @@ -1039,7 +1041,7 @@ {hyp/color/#1border} \g__hyp_bordercolormodel_str \l__hyp_tmpa_tl - \pdfannot_dict_put:nnx + \pdfannot_dict_put:nne {link/#2} { C } { [\l__hyp_tmpa_tl] } @@ -1159,7 +1161,7 @@ \pdf_object_new:n { __hyp/OCG/Print } \pdf_object_new:n { __hyp/OCG/config } \pdf_object_new:n { __hyp/OCG/refarray } - \pdf_object_write:nnx { __hyp/OCG/refarray } { array } + \pdf_object_write:nne { __hyp/OCG/refarray } { array } { \pdf_object_ref:n { __hyp/OCG/View } \c_space_tl @@ -1185,9 +1187,9 @@ /View <</ViewState/OFF>>~ >> } - \pdfmanagement_add:nnx { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {__hyp/OCG/View} } - \pdfmanagement_add:nnx { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {__hyp/OCG/Print} } - \pdf_object_write:nnx { __hyp/OCG/config } { dict } + \pdfmanagement_add:nne { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {__hyp/OCG/View} } + \pdfmanagement_add:nne { Catalog / OCProperties }{OCGs }{ \pdf_object_ref:n {__hyp/OCG/Print} } + \pdf_object_write:nne { __hyp/OCG/config } { dict } { /OFF[\pdf_object_ref:n { __hyp/OCG/Print }] /AS[ @@ -1208,7 +1210,7 @@ >> ] } - \pdfmanagement_add:nnx { Catalog / OCProperties }{ D }{ \pdf_object_ref:n { __hyp/OCG/config} } + \pdfmanagement_add:nne { Catalog / OCProperties }{ D }{ \pdf_object_ref:n { __hyp/OCG/config} } \cs_gset:Npn \__hyp_ocg_init: {} } \prop_map_inline:Nn \c__hyp_map_hyp_annot_prop @@ -1269,7 +1271,7 @@ { ,_ocgcolorlinks .code:n = { - \msg_warning:nnxx + \msg_warning:nnee { hyp } { ignore-deprecated-or-unknown-option-in-pdf-version } { ocgcolorlinks } { \pdf_version_major:.\pdf_version_minor: } @@ -1310,7 +1312,7 @@ { ,ocgcolor#1 .code:n= { - \msg_warning:nnxx + \msg_warning:nnee { hyp } { ignore-deprecated-or-unknown-option-in-pdf-version } { ocgcolor#1 } @@ -1341,7 +1343,7 @@ } ,#1highlight / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfhighlight } { /I~(inverse), /N~(no effect), /O~(outline), /P~(inset) } { \exp_not:n {##1} } @@ -1374,7 +1376,7 @@ ,pdfhighlight .initial:n = {/I}, ,pdfhighlight / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfhighlight } { /I~(inverse), /N~(no effect), /O~(outline), /P~(inset) } { \exp_not:n {#1} } @@ -1465,7 +1467,7 @@ } ,linktoc / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { linktoc } { none, section, all, page } { \exp_not:n {#1} } @@ -1493,7 +1495,7 @@ \pdfmanagement_remove:nn {Catalog} { URI } } { - \pdfmanagement_add:nnx {Catalog} { URI }{ <</Base \l__hyp_tmpa_tl>> } + \pdfmanagement_add:nne {Catalog} { URI }{ <</Base \l__hyp_tmpa_tl>> } } \__hyp_store_metadata:nn {baseurl}{#1} } @@ -1521,7 +1523,7 @@ } ,pdfcenterwindow / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdfcenterwindow } { \exp_not:n {#1} } } @@ -1541,7 +1543,7 @@ } ,pdfdirection / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfdirection } { L2R , R2L } { \exp_not:n {#1} } @@ -1565,7 +1567,7 @@ { PrintDuplex } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfduplex} @@ -1578,7 +1580,7 @@ } ,pdfduplex / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfduplex } { Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge } { \exp_not:n {#1} } @@ -1599,7 +1601,7 @@ ,pdffitwindow .default:n = true ,pdffitwindow / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdffitwindow } { \exp_not:n {#1} } } @@ -1622,7 +1624,7 @@ ,pdfmenubar .default:n = true ,pdfmenubar / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdfmenubar } { \exp_not:n {#1} } } @@ -1645,7 +1647,7 @@ ,pdfnonfullscreenpagemode .choices:nn = { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC } %pdf 1.5 { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { NonFullScreenPageMode} {/#1} } ,pdfnonfullscreenpagemode / UseAttachments .code:n = @@ -1655,7 +1657,7 @@ %message } { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } {NonFullScreenPageMode}{/UseAttachments} } } @@ -1665,7 +1667,7 @@ } ,pdfnonfullscreenpagemode / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfnonfullscreenpagemode } { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC, UseAttachments (PDF 1.6) } { \exp_not:n {#1} } @@ -1679,12 +1681,12 @@ \pdfmanagement_remove:nn {Catalog / ViewerPreferences } { NumCopies } } { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } {NumCopies}{#1} } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfnumcopies} @@ -1693,27 +1695,27 @@ } ,pdfpagelayout .choices:nn = { SinglePage, OneColumn, TwoColumnLeft, TwoColumnRight, TwoPageLeft, TwoPageRight} - { \pdfmanagement_add:nnx {Catalog} { PageLayout }{ /#1 } } + { \pdfmanagement_add:nne {Catalog} { PageLayout }{ /#1 } } ,pdfpagelayout / .code:n = { \pdfmanagement_remove:nn {Catalog} { PageLayout } } ,pdfpagelayout / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfpagelayout } { SinglePage, OneColumn, TwoColumnLeft, TwoColumnRight, TwoPageLeft, TwoPageRight } { \exp_not:n {#1} } } ,pdfpagemode .choices:nn = { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC } %pdf 1.5 - { \pdfmanagement_add:nnx {Catalog} { PageMode }{ /#1 } } + { \pdfmanagement_add:nne {Catalog} { PageMode }{ /#1 } } ,pdfpagemode / UseAttachments .code:n = { \pdf_version_compare:NnTF > {1.5} { - \pdfmanagement_add:nnx {Catalog} { PageMode }{ /UseAttachments } + \pdfmanagement_add:nne {Catalog} { PageMode }{ /UseAttachments } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-value-in-pdf-version} {UseAttachments} @@ -1723,7 +1725,7 @@ ,pdfpagemode .initial:n = { UseOutlines } %for now ... ,pdfpagemode / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfpagemode } { UseNone, UseOutlines, UseThumbs, FullScreen, UseOC, UseAttachments (PDF 1.6) } { \exp_not:n {#1} } @@ -1735,7 +1737,7 @@ \pdfmanagement_remove:nn {Pages} { CropBox } } { - \pdfmanagement_add:nnx {Pages} { CropBox } { [#1] } + \pdfmanagement_add:nne {Pages} { CropBox } { [#1] } } } ,pdfpicktraybypdfsize .choice: @@ -1747,7 +1749,7 @@ { PickTrayByPDFSize } { true } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfpicktraybypdfsize} @@ -1762,7 +1764,7 @@ { PickTrayByPDFSize } { false } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfpicktraybypdfsize} @@ -1775,7 +1777,7 @@ } ,pdfpicktraybypdfsize / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { picktraybypdfsize } { \exp_not:n {#1} } } @@ -1784,11 +1786,11 @@ { \pdf_version_compare:NnTF < {2.0} { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { PrintArea } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintarea} @@ -1799,7 +1801,7 @@ { \pdfmanagement_remove:nn {Catalog / ViewerPreferences } { PrintArea } } ,pdfprintarea / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfprintarea } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -1809,11 +1811,11 @@ { \pdf_version_compare:NnTF < {2.0} { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { PrintClip } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintclip} @@ -1826,7 +1828,9 @@ } ,pdfprintclip / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee + { hyp } + { unknown-choice+empty } { pdfprintclip } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -1841,12 +1845,12 @@ { PrintPageRange } } { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } {PrintPageRange}{[#1]} } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintpagerange} @@ -1858,11 +1862,11 @@ { \pdf_version_compare:NnTF > {1.5} { - \pdfmanagement_add:nnx {Catalog / ViewerPreferences } + \pdfmanagement_add:nne {Catalog / ViewerPreferences } { PrintScaling } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfprintscaling} @@ -1875,18 +1879,18 @@ } ,pdfprintscaling / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfprintarea } { None, AppDefault } { \exp_not:n {#1} } } ,pdfremotestartview .code:n = { - \tl_set:Nx \l__hyp_tmpa_tl {#1~null~null~null~} + \tl_set:Ne \l__hyp_tmpa_tl {#1~null~null~null~} \exp_args:NNV \regex_extract_once:NnNTF \c__hyp_dest_startview_regex \l__hyp_tmpa_tl \l__hyp_tmpa_seq { - \tl_set:Nx \l__hyp_dest_pdfremotestartview_tl {\seq_item:Nn \l__hyp_tmpa_seq {1}} + \tl_set:Ne \l__hyp_dest_pdfremotestartview_tl {\seq_item:Nn \l__hyp_tmpa_seq {1}} } { \msg_warning:nnnn {hyp}{invalid-destination-value}{#1}{pdfremotestartview} @@ -1897,14 +1901,14 @@ % pdfstartpage is special as it shares code with pdfstartview ,pdfstartpage .code:n = { - \tl_gset:Nx \g__hyp_dest_pdfstartpage_tl { #1 } + \tl_gset:Ne \g__hyp_dest_pdfstartpage_tl { #1 } \bool_if:nTF { \tl_if_empty_p:N \g__hyp_dest_pdfstartpage_tl || \tl_if_empty_p:N \g__hyp_dest_pdfstartview_tl } { \pdfmanagement_remove:nn {Catalog} { OpenAction } } { - \pdfmanagement_add:nnx {Catalog} { OpenAction } + \pdfmanagement_add:nne {Catalog} { OpenAction } { [\pdf_pageobject_ref:n {\g__hyp_dest_pdfstartpage_tl}~/\g__hyp_dest_pdfstartview_tl] } @@ -1913,11 +1917,11 @@ ,pdfstartpage .initial:n =1 ,pdfstartview .code:n = { - \tl_set:Nx \l__hyp_tmpa_tl {#1~null~null~null~} + \tl_set:Ne \l__hyp_tmpa_tl {#1~null~null~null~} \exp_args:NNV \regex_extract_once:NnNTF \c__hyp_dest_startview_regex \l__hyp_tmpa_tl \l__hyp_tmpa_seq { - \tl_gset:Nx \g__hyp_dest_pdfstartview_tl {\seq_item:Nn \l__hyp_tmpa_seq {1}} + \tl_gset:Ne \g__hyp_dest_pdfstartview_tl {\seq_item:Nn \l__hyp_tmpa_seq {1}} } { \msg_warning:nnnn {hyp}{invalid-destination-value}{#1}{pdfstartview} @@ -1929,7 +1933,7 @@ \pdfmanagement_remove:nn {Catalog} { OpenAction } } { - \pdfmanagement_add:nnx {Catalog} { OpenAction } + \pdfmanagement_add:nne {Catalog} { OpenAction } { [\pdf_pageobject_ref:n {\g__hyp_dest_pdfstartpage_tl}~/\g__hyp_dest_pdfstartview_tl] } @@ -1953,7 +1957,7 @@ ,pdftoolbar .default:n = true ,pdftoolbar / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdftoolbar } { \exp_not:n {#1} } } @@ -1967,7 +1971,7 @@ { ViewArea } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfviewarea} @@ -1980,7 +1984,7 @@ } ,pdfviewarea / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfviewarea } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -1994,7 +1998,7 @@ { ViewClip } { /#1 } } { - \msg_warning:nnxx + \msg_warning:nnee {hyp} {ignore-deprecated-or-unknown-option-in-pdf-version} {pdfviewclip} @@ -2007,7 +2011,7 @@ } ,pdfviewclip / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice+empty } + \msg_warning:nneee { hyp } { unknown-choice+empty } { pdfviewclip } { MediaBox, CropBox, BleedBox, TrimBox, ArtBox } { \exp_not:n {#1} } @@ -2028,7 +2032,7 @@ } ,pdfwindowui / unknown .code:n = { - \msg_warning:nnxx { hyp } { no-bool } + \msg_warning:nnee { hyp } { no-bool } { pdfwindowui } { \exp_not:n {#1} } } @@ -2051,7 +2055,7 @@ \tl_set:Nn \l__hyp_dest_pdfview_tl {xyz} } { - \tl_set:Nx \l__hyp_dest_pdfview_tl + \tl_set:Ne \l__hyp_dest_pdfview_tl { \fp_eval:n { \l__hyp_tmpa_tl * 100 } } @@ -2122,7 +2126,7 @@ { \tl_if_empty:nF { #1 } { - \pdfmanagement_add:nnx {Catalog} { Lang } { (#1) } + \pdfmanagement_add:nne {Catalog} { Lang } { (#1) } \AddToDocumentProperties[document]{lang}{#1} } } @@ -2142,12 +2146,12 @@ {creator} { \msg_info:nnn { hyp }{ empty-info-value } { pdfcreator } - \pdfmanagement_add:nnx {Info}{Creator}{()} + \pdfmanagement_add:nne {Info}{Creator}{()} } {producer} { \msg_info:nnn { hyp }{ empty-info-value } { pdfproducer } - \pdfmanagement_add:nnx {Info}{Producer}{()} + \pdfmanagement_add:nne {Info}{Producer}{()} } } { @@ -2155,7 +2159,7 @@ } } { - \tl_set:Nx\l__hyp_tmpa_tl {\clist_item:nn{##1}{1}} + \tl_set:Ne\l__hyp_tmpa_tl {\clist_item:nn{##1}{1}} \exp_args:NNV \regex_extract_once:NnN \l__hyp_optlang_regex \l__hyp_tmpa_tl\l__hyp_tmpa_seq \seq_if_empty:NTF\l__hyp_tmpa_seq @@ -2163,12 +2167,12 @@ \__hyp_text_pdfstring_info:nN {##1}\l__hyp_tmpa_str } { - \exp_args:Nx + \exp_args:Ne \__hyp_text_pdfstring_info:nN {\seq_item:Nn \l__hyp_tmpa_seq{3}}\l__hyp_tmpa_str } \str_if_eq:VnF\l__hyp_tmpa_str{<FEFF>} { - \pdfmanagement_add:nnx {Info}{#2}{\l__hyp_tmpa_str} + \pdfmanagement_add:nne {Info}{#2}{\l__hyp_tmpa_str} } } \__hyp_store_metadata:nn {pdf#1}{##1} @@ -2186,10 +2190,10 @@ \__hyp_text_pdfstring_info:nN {##1}\l__hyp_tmpa_str \str_if_eq:VnF\l__hyp_tmpa_str{<FEFF>} { - \pdfmanagement_add:nnx {Info}{#2}{\l__hyp_tmpa_str} + \pdfmanagement_add:nne {Info}{#2}{\l__hyp_tmpa_str} } } - \exp_args:Nx \__hyp_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} + \exp_args:Ne \__hyp_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} } ,unknown .code:n = { @@ -2197,7 +2201,7 @@ \str_if_eq:VnF\l__hyp_tmpa_str{<FEFF>} { \exp_args:Nno - \pdfmanagement_add:nnx {Info} + \pdfmanagement_add:nne {Info} { \l_keys_key_str } {\l__hyp_tmpa_str} } } @@ -2220,7 +2224,7 @@ \pdfmanagement_remove:nn {Info}{#2} } { - \pdfmanagement_add:nnx {Info}{#2}{(##1)} + \pdfmanagement_add:nne {Info}{#2}{(##1)} } \__hyp_store_metadata:nn {pdf#1}{##1} \AddToDocumentProperties[document]{#1}{##1} @@ -2235,9 +2239,9 @@ \pdfmanagement_remove:nn {Info}{#2} } { - \pdfmanagement_add:nnx {Info}{#2}{(##1)} + \pdfmanagement_add:nne {Info}{#2}{(##1)} } - \exp_args:Nx \__hyp_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} + \exp_args:Ne \__hyp_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1} } } } @@ -2257,12 +2261,12 @@ } ,_pdftrapped .choices:nn = {TRUE,FALSE,UNKNOWN} { - \pdfmanagement_add:nnx {Info}{Trapped} + \pdfmanagement_add:nne {Info}{Trapped} {/ \str_uppercase:f { \str_head:n { #1 } } \str_lowercase:f { \str_tail:n { #1 } } } - \__hyp_store_metadata:nx {pdftrapped} + \__hyp_store_metadata:ne {pdftrapped} { \str_uppercase:f { \str_head:n { #1 } } \str_lowercase:f { \str_tail:n { #1 } } @@ -2270,7 +2274,7 @@ } ,_pdftrapped / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { pdftrapped } { true~(case~insensitive), false~(case~insensitive), unknown~(case~insensitive) } { \exp_not:n {#1} } @@ -2358,11 +2362,11 @@ { \group_begin: \keys_set:nn { hyp / trans }{style=R,#1} - \pdf_object_unnamed_write:nx { dict } + \pdf_object_unnamed_write:ne { dict } { \pdfdict_use:n {l__hyp_page/Trans} } - \pdfmanagement_add:nnx {Page}{Trans}{\pdf_object_ref_last:} + \pdfmanagement_add:nne {Page}{Trans}{\pdf_object_ref_last:} \group_end: } } @@ -2374,7 +2378,7 @@ { \pdfdict_put:nnn {l__hyp_page/Trans}{ S }{/#1} } ,style / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / style } { Split,Blinds,Box,Wipe,Dissolve,Glitter,R,Fly,Push,Cover,Uncover,Fade } { \exp_not:n {#1} } @@ -2393,7 +2397,7 @@ { \pdfdict_put:nnn {l__hyp_page/Trans}{ Di }{ /None } } ,direction / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / direction } { H~(horizontal,~only~Split,~Blinds), @@ -2412,7 +2416,7 @@ { \pdfdict_put:nnn {l__hyp_page/Trans}{ M }{/#1} } ,motion / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / motion } { I~(inwards) , O~(outwards) } { \exp_not:n {#1} } @@ -2423,7 +2427,7 @@ { \pdfdict_put:nnn { l__hyp_page/Trans }{ B } { #1} } ,opaque / unknown .code:n = { - \msg_warning:nnxxx { hyp } { unknown-choice } + \msg_warning:nneee { hyp } { unknown-choice } { trans / B } { true~(opaque~back,~only~Fly), false~(opaque~back,~only~Fly) } { \exp_not:n {#1} } @@ -2432,7 +2436,7 @@ ,unknown .code:n = { % warning ... - \exp_args:Nnx\keys_set:nn {hyp/trans}{ style=\l_keys_key_str } + \exp_args:Nne\keys_set:nn {hyp/trans}{ style=\l_keys_key_str } } } \keys_set_known:nv{hyp/setup}{opt@hyperref.sty} @@ -2475,7 +2479,7 @@ \def\HyField@AddToFields { - \exp_args:Nx\HyField__hypAddToFields + \exp_args:Ne\HyField__hypAddToFields { \pdfannot_box_ref_last: } @@ -2523,7 +2527,7 @@ \Hy@FormObjects \prop_map_inline:Nn \g__hyp_AcroForm_Fields_prop { - \pdfmanagement_add:nnx { Catalog / AcroForm } { Fields }{##1} + \pdfmanagement_add:nne { Catalog / AcroForm } { Fields }{##1} %\pdfmanagement_show:n { Catalog / AcroForm } } \prop_if_empty:NF \g__hyp_AcroForm_CoFields_prop @@ -2540,18 +2544,18 @@ } \seq_map_inline:Nn \l__hyp_tmpa_seq { - \pdfmanagement_add:nnx { Catalog / AcroForm } + \pdfmanagement_add:nne { Catalog / AcroForm } { CO } { \prop_item:Nn \g__hyp_AcroForm_CoFields_prop {##1} } } } - \pdfmanagement_add:nnx {Catalog / AcroForm/DR/Font } + \pdfmanagement_add:nne {Catalog / AcroForm/DR/Font } {ZaDb} {\pdf_object_ref:n {__hyp/Font/ZaDb} } - \pdfmanagement_add:nnx {Catalog / AcroForm/DR/Font } + \pdfmanagement_add:nne {Catalog / AcroForm/DR/Font } {Helv} {\pdf_object_ref:n {__hyp/Font/Helv} } - \pdfmanagement_add:nnx {Catalog /AcroForm} + \pdfmanagement_add:nne {Catalog /AcroForm} {DA}{(/Helv~10~Tf~0~g)} \pdfmeta_standard_verify:nTF {form_no_NeedAppearance} { @@ -2732,7 +2736,7 @@ \group_end: } } - \pdfannot_box:nnnx + \pdfannot_box:nnne {\Fld@width} {\Fld@height} {0pt} %is this correct? @@ -2957,7 +2961,7 @@ \pdf_object_new:n {__hyp/Encoding/pdfdoc } \pdf_object_new:n {__hyp/Font/ZaDb } \pdf_object_new:n {__hyp/Font/Helv } - \pdf_object_write:nnx {__hyp/Encoding/pdfdoc } { dict } + \pdf_object_write:nne {__hyp/Encoding/pdfdoc } { dict } { /Type/Encoding /Differences[ @@ -3006,7 +3010,7 @@ /Name/ZaDb /BaseFont/ZapfDingbats } - \pdf_object_write:nnx {__hyp/Font/Helv } { dict } + \pdf_object_write:nne {__hyp/Font/Helv } { dict } { /Type/Font /Subtype/Type1 diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def index 2014531e7a8..37bca32a03e 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvipdfmx.def}{2023-10-09}{} + {l3backend-testphase-dvipdfmx.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx} \cs_generate_variant:Nn \__kernel_backend_literal:n { e } \cs_generate_variant:Nn \__pdf_backend:n { e } @@ -301,13 +301,13 @@ \bool_set_true:N \l__pdf_backend_xform_bool #4 } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:c { g__pdf_backend_xform_#1_box } } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:c { g__pdf_backend_xform_#1_box } } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:c { g__pdf_backend_xform_#1_box } } \box_set_dp:cn { g__pdf_backend_xform_#1_box } { \c_zero_dim } diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def index 8b4d25eff36..3778a6d8a13 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvips.def}{2023-10-09}{} + {l3backend-testphase-dvips.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvips} \cs_generate_variant:Nn \__kernel_backend_postscript:n { e } \cs_generate_variant:Nn \__pdf_backend_pdfmark:n { e } @@ -210,27 +210,27 @@ #4 } %store the dimensions - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:N \l__pdf_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:N \l__pdf_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:N \l__pdf_backend_tmpa_box } %store content dimensions in DPI units (Dots) (code from issue 25) - \tl_set:Nx\l__pdf_backend_xform_tmpwd_tl + \tl_set:Ne\l__pdf_backend_xform_tmpwd_tl { \dim_to_decimal_in_sp:n{ \box_wd:N \l__pdf_backend_tmpa_box }~ 65536~div~72.27~div~DVImag~mul~Resolution~mul~ } - \tl_set:Nx\l__pdf_backend_xform_tmpht_tl + \tl_set:Ne\l__pdf_backend_xform_tmpht_tl { \dim_to_decimal_in_sp:n{ \box_ht:N \l__pdf_backend_tmpa_box }~ 65536~div~72.27~div~DVImag~mul~VResolution~mul~ } - \tl_set:Nx\l__pdf_backend_xform_tmpdp_tl + \tl_set:Ne\l__pdf_backend_xform_tmpdp_tl { \dim_to_decimal_in_sp:n{ \box_dp:N \l__pdf_backend_tmpa_box }~ 65536~div~72.27~div~DVImag~mul~VResolution~mul~ @@ -338,8 +338,8 @@ \__kernel_backend_literal:e{!~<</InstanceUUID~(InstanceUUID)>>~setpagedevice} \str_if_exist:NTF\c_sys_timestamp_str { - \pdfmanagement_add:nnx{Info}{CreationDate}{(\c_sys_timestamp_str)} - \pdfmanagement_add:nnx{Info}{ModDate}{(\c_sys_timestamp_str)} + \pdfmanagement_add:nne{Info}{CreationDate}{(\c_sys_timestamp_str)} + \pdfmanagement_add:nne{Info}{ModDate}{(\c_sys_timestamp_str)} } { \pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def index 7420d8d222a..ab7012c1577 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvisvgm.def}{2023-10-09}{} + {l3backend-testphase-dvisvgm.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm} \bool_if:NT \l__pdfmanagement_delayed_shipout_bool { diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def index 47210ec3190..75d50bb2d9d 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-luatex.def}{2023-10-09}{} + {l3backend-testphase-luatex.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)} \cs_generate_variant:Nn \__kernel_backend_literal_page:n { e } \bool_if:NT \l__pdfmanagement_delayed_shipout_bool @@ -214,7 +214,7 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Page/Resources/##1} } { - \pdf_object_write:nnx + \pdf_object_write:nne { __pdf/Page/Resources/##1 } { dict } { \pdfdict_use:n { g__pdf_Core/Page/Resources/##1} } } @@ -335,13 +335,13 @@ \prop_gclear:c { \__kernel_pdfdict_name:n { g__pdf_Core/Xform/Resources/Properties } } #4 } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:N \l__pdf_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:N \l__pdf_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:N \l__pdf_backend_tmpa_box } %% do we need to test if #2 and #3 are empty?? diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def index 71e598bfbaf..15ff542a3a5 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-pdftex.def}{2023-10-09}{} + {l3backend-testphase-pdftex.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)} \cs_generate_variant:Nn \__kernel_backend_literal_page:n { e } \bool_if:NT \l__pdfmanagement_delayed_shipout_bool @@ -122,7 +122,7 @@ %we need to know the page the resource should be added too. \int_gincr:N\g__pdf_backend_resourceid_int \__pdf_backend_record_abspage:e { l3pdf\int_use:N\g__pdf_backend_resourceid_int } - \tl_set:Nx \l__pdf_tmpa_tl + \tl_set:Ne \l__pdf_tmpa_tl { \__pdf_backend_ref_abspage:e {l3pdf\int_use:N\g__pdf_backend_resourceid_int} } @@ -180,7 +180,7 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Page/Resources/##1} } { - \pdf_object_write:nnx + \pdf_object_write:nne { __pdf/Page/Resources/##1 } { dict } { \pdfdict_use:n { g__pdf_Core/Page/Resources/##1} } } @@ -204,7 +204,7 @@ } { \__pdf_backend_record_abspage:e {l3pdf\int_use:N\g__pdf_backend_resourceid_int} - \tl_set:Nx \l__pdf_tmpa_tl + \tl_set:Ne \l__pdf_tmpa_tl { \__pdf_backend_ref_abspage:e{l3pdf\int_use:N\g__pdf_backend_resourceid_int} } @@ -234,7 +234,7 @@ } { \__pdf_backend_record_abspage:e{l3pdf\int_use:N\g__pdf_backend_resourceid_int} - \tl_set:Nx \l__pdf_tmpa_tl + \tl_set:Ne \l__pdf_tmpa_tl { \__pdf_backend_ref_abspage:e{l3pdf\int_use:N\g__pdf_backend_resourceid_int} } @@ -343,13 +343,13 @@ #4 } %store the dimensions - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:N \l__pdf_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:N \l__pdf_backend_tmpa_box } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:N \l__pdf_backend_tmpa_box } %% do we need to test if #2 and #3 are empty?? diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def index 095c557ba4b..7bf6539dc83 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-xetex.def}{2023-10-09}{} + {l3backend-testphase-xetex.def}{2023-11-05}{} {LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX} \cs_generate_variant:Nn \__kernel_backend_literal:n { e } \cs_generate_variant:Nn \__pdf_backend:n { e } @@ -301,13 +301,13 @@ \bool_set_true:N \l__pdf_backend_xform_bool #4 } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_wd_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_wd:c { g__pdf_backend_xform_#1_box } } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_ht_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_ht:c { g__pdf_backend_xform_#1_box } } - \tl_const:cx + \tl_const:ce { c__pdf_backend_xform_dp_ \tl_to_str:n {#1} _tl } { \tex_the:D \box_dp:c { g__pdf_backend_xform_#1_box } } \box_set_dp:cn { g__pdf_backend_xform_#1_box } { \c_zero_dim } diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty index 8be75cd66cd..feab2871ee7 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty @@ -27,7 +27,7 @@ %% File: l3pdffield.dtx \NeedsTeXFormat{LaTeX2e} -\ProvidesExplPackage{l3pdffield-testphase}{2023-10-09}{0.96a}% +\ProvidesExplPackage{l3pdffield-testphase}{2023-11-05}{0.96b}% {form fields} \csname HyField@NeedAppearancesfalse\endcsname % suppress NeedAppearances \str_new:N \l__pdffield_tmpa_str @@ -167,7 +167,7 @@ \pdf_object_new:n {__pdffield/field/Kids/#1} \tl_if_empty:NTF \l__pdffield_currentparent_tl { - \pdfmanagement_add:nnx + \pdfmanagement_add:nne { Catalog / AcroForm } { Fields } {\pdf_object_ref:n {__pdffield/field/#1} } @@ -176,22 +176,22 @@ \exp_args:Ne \pdf_object_if_exist:nTF {__pdffield/field/\l__pdffield_currentparent_tl} { - \pdfdict_put:nnx { l__pdffield/field }{Parent} + \pdfdict_put:nne { l__pdffield/field }{Parent} {\exp_args:Ne \pdf_object_ref:n{__pdffield/field/\l__pdffield_currentparent_tl}} - \seq_gput_right:cx {g__pdffield_field/Kids/\l__pdffield_currentparent_tl _seq} + \seq_gput_right:ce {g__pdffield_field/Kids/\l__pdffield_currentparent_tl _seq} { \exp_args:Ne \pdf_object_ref:n{__pdffield/field/#1}} } { - \msg_error:nnx {pdffield}{parent-field-missing}{\l__pdffield_currentparent_tl} + \msg_error:nne {pdffield}{parent-field-missing}{\l__pdffield_currentparent_tl} } } \seq_new:c {g__pdffield_field/Kids/#1_seq} - \pdfdict_put:nnx {l__pdffield/field} + \pdfdict_put:nne {l__pdffield/field} {Kids} { \pdf_object_ref:n {__pdffield/field/Kids/#1} } - \pdfdict_put:nnx {l__pdffield/field} + \pdfdict_put:nne {l__pdffield/field} {Ff} {\bitset_to_arabic:N \l__pdffield_Ff_bitset } \pdfdict_if_empty:nF{l__pdffield/field/AA} @@ -199,29 +199,29 @@ \pdfmeta_standard_verify:nT {annot_widget_no_AA} { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n {l__pdffield/field/AA}} - \pdfdict_put:nnx + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n {l__pdffield/field/AA}} + \pdfdict_put:nne {l__pdffield/field} {AA} {\pdf_object_ref_last:} \pdfdict_get:nnN {l__pdffield/field/AA}{C}\l__pdffield_tmpa_tl \quark_if_no_value:NF \l__pdffield_tmpa_tl { - \prop_gput:Nxx\g__pdffield_CO_sortkeys_prop + \prop_gput:Nee\g__pdffield_CO_sortkeys_prop { \pdf_object_ref:n {__pdffield/field/#1} }{ \l__pdffield_CO_sortkey_str } - \seq_gput_right:Nx\g__pdffield_CO_sortkeys_seq + \seq_gput_right:Ne\g__pdffield_CO_sortkeys_seq { \pdf_object_ref:n {__pdffield/field/#1} } } } } \hook_gput_code:nnn {shipout/lastpage}{pdffield} %xetex needs this ... { - \pdf_object_write:nnx {__pdffield/field/Kids/#1} { array } + \pdf_object_write:nne {__pdffield/field/Kids/#1} { array } { \seq_use:cn{g__pdffield_field/Kids/#1_seq}{~} } } - \pdf_object_write:nnx {__pdffield/field/#1} { dict } { \pdfdict_use:n {l__pdffield/field} } + \pdf_object_write:nne {__pdffield/field/#1} { dict } { \pdfdict_use:n {l__pdffield/field} } } \hook_gput_code:nnn {shipout/lastpage}{pdffield} @@ -237,7 +237,7 @@ { \sort_return_swapped: } { \sort_return_same: } } - \pdfmanagement_add:nnx + \pdfmanagement_add:nne { Catalog / AcroForm } { CO } { \seq_use:Nn \g__pdffield_CO_sortkeys_seq{~} } @@ -261,21 +261,21 @@ \bitset_set_false:Nn \l__pdffield_F_bitset {Invisible} \bitset_set_false:Nn \l__pdffield_F_bitset {NoView} } - \pdfannot_dict_put:nnx {widget}{F}{ \bitset_to_arabic:N \l__pdffield_F_bitset } + \pdfannot_dict_put:nne {widget}{F}{ \bitset_to_arabic:N \l__pdffield_F_bitset } \__pdffield_tag_add_struct_parent: \tl_if_empty:NF \l__pdffield_currentparent_tl { \exp_args:Ne \pdf_object_if_exist:nTF { __pdffield/field/\l__pdffield_currentparent_tl } { - \pdfannot_dict_put:nnx {widget}{Parent} + \pdfannot_dict_put:nne {widget}{Parent} { \exp_args:Ne \pdf_object_ref:n{__pdffield/field/\l__pdffield_currentparent_tl} } } { - \msg_error:nnx { pdffield }{parent-field-missing}{\l__pdffield_currentparent_tl} + \msg_error:nne { pdffield }{parent-field-missing}{\l__pdffield_currentparent_tl} } } \mode_leave_vertical: @@ -290,19 +290,19 @@ { \l__pdffield_annot_dp_dim } \hfill } - \tl_gset:Nx \g__pdffield_annot_ref_last_tl { \pdfannot_box_ref_last: } + \tl_gset:Ne \g__pdffield_annot_ref_last_tl { \pdfannot_box_ref_last: } \exp_args:NV \__pdffield_tag_add_objr:n \g__pdffield_annot_ref_last_tl \__pdffield_tag_struct_end: \tl_if_empty:NF \l__pdffield_currentparent_tl { \seq_if_exist:cTF {g__pdffield_field/Kids/\l__pdffield_currentparent_tl _seq} { - \seq_gput_right:cx + \seq_gput_right:ce {g__pdffield_field/Kids/\l__pdffield_currentparent_tl _seq} { \g__pdffield_annot_ref_last_tl } } { - \msg_error:nnx { pdffield}{parent-field-missing}{\l__pdffield_currentparent_tl} + \msg_error:nne { pdffield}{parent-field-missing}{\l__pdffield_currentparent_tl} } } } @@ -328,14 +328,14 @@ { \bool_if:NT \l__pdffield_tag_bool { - \pdfannot_dict_put:nnx {widget}{StructParent}{ \tag_struct_parent_int: } + \pdfannot_dict_put:nne {widget}{StructParent}{ \tag_struct_parent_int: } } } \cs_set_protected:Npn \__pdffield_tag_add_objr:n #1 { \bool_if:NT \l__pdffield_tag_bool { - \exp_args:Nnx + \exp_args:Nne \tag_struct_insert_annot:nn {#1}{ \tag_struct_parent_int: } } } @@ -387,7 +387,7 @@ \pdf_string_from_unicode:nnN {utf8/string-raw}{#1}\l__pdffield_tmpa_str \str_if_in:NnT \l__pdffield_tmpa_str {.} { - \msg_error:nnx {pdffield}{no-period}{\l__pdffield_tmpa_str} + \msg_error:nne {pdffield}{no-period}{\l__pdffield_tmpa_str} } \str_if_empty:NTF\l__pdffield_tmpa_str { @@ -395,7 +395,7 @@ \pdfdict_remove:nn { l__pdffield/field }{T} } { - \pdfdict_put:nnx { l__pdffield/field }{T}{(\l__pdffield_tmpa_str)} + \pdfdict_put:nne { l__pdffield/field }{T}{(\l__pdffield_tmpa_str)} } } ,T .value_required:n = true @@ -412,7 +412,7 @@ } { \pdf_string_from_unicode:nnN {utf16/hex}{#1}\l__pdffield_tmpa_str - \pdfdict_put:nnx { l__pdffield/field }{TU}{\l__pdffield_tmpa_str} + \pdfdict_put:nne { l__pdffield/field }{TU}{\l__pdffield_tmpa_str} } } ,TU .groups:n = {field} @@ -426,7 +426,7 @@ } { \pdf_string_from_unicode:nnN {utf16/hex}{#1}\l__pdffield_tmpa_str - \pdfdict_put:nnx { l__pdffield/field }{TM}{\l__pdffield_tmpa_str} + \pdfdict_put:nne { l__pdffield/field }{TM}{\l__pdffield_tmpa_str} } } ,TM .groups:n = {field} @@ -453,7 +453,7 @@ } { \__pdffield_V_handler:nN{#1}\l__pdffield_tmpa_str - \pdfdict_put:nnx { l__pdffield/field }{V}{ \l__pdffield_tmpa_str } + \pdfdict_put:nne { l__pdffield/field }{V}{ \l__pdffield_tmpa_str } } } ,V .groups:n = {field} @@ -465,7 +465,7 @@ } { \__pdffield_V_handler:nN{#1}\l__pdffield_tmpa_str - \pdfdict_put:nnx { l__pdffield/field }{DV}{ \l__pdffield_tmpa_str } + \pdfdict_put:nne { l__pdffield/field }{DV}{ \l__pdffield_tmpa_str } } } ,DV .groups:n = {field} @@ -476,7 +476,7 @@ \pdfdict_remove:nn { l__pdffield/field }{MaxLen} } { - \pdfdict_put:nnx { l__pdffield/field }{MaxLen}{ #1 } + \pdfdict_put:nne { l__pdffield/field }{MaxLen}{ #1 } } } ,MaxLen .groups:n = {field} @@ -487,7 +487,7 @@ \pdfdict_remove:nn { l__pdffield/field }{Lock} } { - \pdfdict_put:nnx { l__pdffield/field }{Lock}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l__pdffield/field }{Lock}{ \pdf_object_ref:n{#1} } } } ,Lock .groups:n = {field} @@ -498,7 +498,7 @@ \pdfdict_remove:nn { l__pdffield/field }{SV} } { - \pdfdict_put:nnx { l__pdffield/field }{SV}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l__pdffield/field }{SV}{ \pdf_object_ref:n{#1} } } } ,SV .groups:n = {field} @@ -509,7 +509,7 @@ \pdfdict_remove:nn { l__pdffield/field }{Opt} } { - \pdfdict_put:nnx { l__pdffield/field }{Opt}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l__pdffield/field }{Opt}{ \pdf_object_ref:n{#1} } } } ,Opt .groups:n = {field} @@ -520,7 +520,7 @@ \pdfdict_remove:nn { l__pdffield/field }{TI} } { - \pdfdict_put:nnx { l__pdffield/field }{TI}{ #1 } + \pdfdict_put:nne { l__pdffield/field }{TI}{ #1 } } } ,TI .groups:n = {field} @@ -531,7 +531,7 @@ \pdfdict_remove:nn { l__pdffield/field }{I} } { - \pdfdict_put:nnx { l__pdffield/field }{I}{ \pdf_object_ref:n{#1} } + \pdfdict_put:nne { l__pdffield/field }{I}{ \pdf_object_ref:n{#1} } } } ,I .groups:n = {field} @@ -571,7 +571,7 @@ \pdfdict_remove:nn {l__pdffield/field/AA}{#1} } { - \pdfdict_put:nnx {l__pdffield/field/AA} + \pdfdict_put:nne {l__pdffield/field/AA} {#1} {<</S/JavaScript/JS\c_space_tl ##1>>} } @@ -598,7 +598,7 @@ \keys_define:nn {pdffield} { - sortkey .code:n = {\str_set:Nx \l__pdffield_CO_sortkey_str {\tl_to_str:n{#1}}} + sortkey .code:n = {\str_set:Ne \l__pdffield_CO_sortkey_str {\tl_to_str:n{#1}}} } \keys_define:nn { pdffield } { @@ -609,13 +609,13 @@ \pdfdict_remove:nn { l__pdffield/field }{DA} } { - \pdfdict_put:nnx { l__pdffield/field }{DA}{ (#1) } + \pdfdict_put:nne { l__pdffield/field }{DA}{ (#1) } } } ,DA .groups:n = {field} ,Q .choices:nn = {left,center,right} { - \pdfdict_put:nnx { l__pdffield/field }{Q}{ \int_eval:n{\l_keys_choice_int-1} } + \pdfdict_put:nne { l__pdffield/field }{Q}{ \int_eval:n{\l_keys_choice_int-1} } } ,Q / .code:n = { \pdfdict_remove:nn { l__pdffield/field }{Q} } ,Q .groups:n = {field} @@ -651,7 +651,7 @@ { \pdfxform_if_exist:nTF { #1 } { - \pdfannot_dict_put:nnx {widget/AP}{#2} + \pdfannot_dict_put:nne {widget/AP}{#2} { \pdfxform_ref:n {#1} } @@ -670,7 +670,7 @@ \pdfannot_dict_remove:nn { widget }{AS} } { - \pdfannot_dict_put:nnx {widget}{AS}{\pdf_name_from_unicode_e:n{#1}} + \pdfannot_dict_put:nne {widget}{AS}{\pdf_name_from_unicode_e:n{#1}} } } ,AS .groups:n = annot @@ -727,7 +727,7 @@ { MK/R .choices:nn = {0,90,180,270} { - \pdfannot_dict_put:nnx {widget/MK}{R}{#1} + \pdfannot_dict_put:nne {widget/MK}{R}{#1} } ,MK/R / .code:n = { @@ -748,7 +748,7 @@ { \__pdffield_color_set:nn {__pdffield/tmp}{#1} \color_export:nnN{__pdffield/tmp}{space-sep-rgb}\l__pdffield_tmpa_tl - \pdfannot_dict_put:nnx {widget/MK}{BC}{[\l__pdffield_tmpa_tl]} + \pdfannot_dict_put:nne {widget/MK}{BC}{[\l__pdffield_tmpa_tl]} } } ,MK/BC .groups:n = annot @@ -766,7 +766,7 @@ { \__pdffield_color_set:nn {__pdffield/tmp}{#1} \color_export:nnN{__pdffield/tmp}{space-sep-rgb}\l__pdffield_tmpa_tl - \pdfannot_dict_put:nnx {widget/MK}{BG}{[\l__pdffield_tmpa_tl]} + \pdfannot_dict_put:nne {widget/MK}{BG}{[\l__pdffield_tmpa_tl]} } } ,MK/BG .groups:n = annot @@ -784,7 +784,7 @@ } { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l__pdffield_tmpa_str - \pdfannot_dict_put:nnx {widget/MK}{CA}{\l__pdffield_tmpa_str} + \pdfannot_dict_put:nne {widget/MK}{CA}{\l__pdffield_tmpa_str} } } ,MK/CA .groups:n = annot @@ -802,7 +802,7 @@ } { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l__pdffield_tmpa_str - \pdfannot_dict_put:nnx {widget/MK}{RC}{\l__pdffield_tmpa_str} + \pdfannot_dict_put:nne {widget/MK}{RC}{\l__pdffield_tmpa_str} } } ,MK/RC .groups:n = annot @@ -820,7 +820,7 @@ } { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l__pdffield_tmpa_str - \pdfannot_dict_put:nnx {widget/MK}{AC}{\l__pdffield_tmpa_str} + \pdfannot_dict_put:nne {widget/MK}{AC}{\l__pdffield_tmpa_str} } } ,MK/AC .groups:n = annot @@ -838,7 +838,7 @@ \pdfannot_dict_remove:nn { widget/MK }{#1} } { - \pdfannot_dict_put:nnx {widget/MK}{#1}{##1} + \pdfannot_dict_put:nne {widget/MK}{#1}{##1} } } ,MK/#1 .groups:n = annot @@ -883,7 +883,7 @@ \pdfannot_dict_remove:nn {widget/AA}{#1} } { - \pdfannot_dict_put:nnx {widget/AA} + \pdfannot_dict_put:nne {widget/AA} {#1} {<</S/JavaScript/JS\c_space_tl##1>>} } @@ -1058,14 +1058,14 @@ ,checked .choice: ,checked / false .code:n = { - \pdfdict_put:nnx { l__pdffield/field }{V} { /Off } - \pdfdict_put:nnx { l__pdffield/field }{DV}{ /Off } + \pdfdict_put:nne { l__pdffield/field }{V} { /Off } + \pdfdict_put:nne { l__pdffield/field }{DV}{ /Off } \pdfannot_dict_put:nnn {widget}{AS}{ /Off } } ,checked / true .code:n = { - \pdfdict_put:nnx { l__pdffield/field }{V} { /Yes } - \pdfdict_put:nnx { l__pdffield/field }{DV}{ /Yes } + \pdfdict_put:nne { l__pdffield/field }{V} { /Yes } + \pdfdict_put:nne { l__pdffield/field }{DV}{ /Yes } \pdfannot_dict_put:nnn {widget}{AS}{ /Yes } } ,checked .default:n = {true} @@ -1076,14 +1076,14 @@ ,__value .choice: ,__value / Off .code:n = { - \pdfdict_put:nnx { l__pdffield/field }{V} { /Off } - \pdfdict_put:nnx { l__pdffield/field }{DV}{ /Off } + \pdfdict_put:nne { l__pdffield/field }{V} { /Off } + \pdfdict_put:nne { l__pdffield/field }{DV}{ /Off } \pdfannot_dict_put:nnn {widget}{AS}{ /Off } } ,__value / Yes .code:n = { - \pdfdict_put:nnx { l__pdffield/field }{V} { /Yes } - \pdfdict_put:nnx { l__pdffield/field }{DV}{ /Yes } + \pdfdict_put:nne { l__pdffield/field }{V} { /Yes } + \pdfdict_put:nne { l__pdffield/field }{DV}{ /Yes } \pdfannot_dict_put:nnn {widget}{AS}{ /Yes } } } @@ -1102,14 +1102,14 @@ \pdf_object_if_exist:nF {__pdffield/checkbox/AP/#1} { \pdf_object_new:n {__pdffield/checkbox/AP/#1} - \pdf_object_write:nnx + \pdf_object_write:nne {__pdffield/checkbox/AP/#1} { dict } { /Yes ~ \pdfxform_ref:n { #1/Yes} /Off ~ \pdfxform_ref:n { #1/Off} } } - \pdfannot_dict_put:nnx {widget/AP}{#2}{\pdf_object_ref:n{__pdffield/checkbox/AP/#1}} + \pdfannot_dict_put:nne {widget/AP}{#2}{\pdf_object_ref:n{__pdffield/checkbox/AP/#1}} } { \msg_error:nnnn{pdffield}{appearance-missing}{#1}{#3} @@ -1196,16 +1196,16 @@ \pdf_object_if_exist:nF {__pdffield/field/__pdffield/radio/#1} { \pdf_object_new:n {__pdffield/field/__pdffield/radio-Opt/#1} - \pdfdict_put:nnx { l__pdffield/field }{Opt} { \pdf_object_ref:n {__pdffield/field/__pdffield/radio-Opt/#1} } + \pdfdict_put:nne { l__pdffield/field }{Opt} { \pdf_object_ref:n {__pdffield/field/__pdffield/radio-Opt/#1} } \seq_new:c { g__pdffield_radio_opt_#1_seq } \hook_gput_code:nnn {shipout/lastpage}{pdffield/radio} { - \pdf_object_write:nnx + \pdf_object_write:nne {__pdffield/field/__pdffield/radio-Opt/#1} { array } {\seq_use:cn {g__pdffield_radio_opt_#1_seq}{~}} } - \pdfdict_put:nnx { l__pdffield/field }{V} { /\__pdffield_property_ref:nn{#1}{pdfradioindex} } - \pdfdict_put:nnx { l__pdffield/field }{DV} { /\__pdffield_property_ref:nn{#1}{pdfradioindex} } + \pdfdict_put:nne { l__pdffield/field }{V} { /\__pdffield_property_ref:nn{#1}{pdfradioindex} } + \pdfdict_put:nne { l__pdffield/field }{DV} { /\__pdffield_property_ref:nn{#1}{pdfradioindex} } \__pdffield_field:n { __pdffield/radio/#1 } \bool_if:NF \l__pdffield_radio_unison_bool { @@ -1275,8 +1275,8 @@ { \__pdffield_property_ref:Vn\l__pdffield_fieldID_tl{pdfradioindex} } - { \pdfannot_dict_put:nnx {widget}{AS}{/\__pdffield_property_ref:Vn\l__pdffield_fieldID_tl{pdfradioindex}} } - { \pdfannot_dict_put:nnx {widget}{AS}{/Off} } + { \pdfannot_dict_put:nne {widget}{AS}{/\__pdffield_property_ref:Vn\l__pdffield_fieldID_tl{pdfradioindex}} } + { \pdfannot_dict_put:nne {widget}{AS}{/Off} } \tl_if_empty:NT\l__pdffield_radio_appearance_code_tl { \__pdffield_radio_default_appearances: @@ -1324,14 +1324,14 @@ { \pdfxform_if_exist:nTF { #1 / Yes } { - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne {dict} { /\int_use:N \l__pdffield_radio_value_num_int \c_space_tl \pdfxform_ref:n { #1/Yes} /Off ~ \pdfxform_ref:n { #1/Off} } - \pdfannot_dict_put:nnx {widget/AP}{#2}{\pdf_object_ref_last:} + \pdfannot_dict_put:nne {widget/AP}{#2}{\pdf_object_ref_last:} } { \msg_error:nnnn{pdffield}{appearance-missing}{#1}{#3} @@ -1469,7 +1469,7 @@ \cs_new_protected:Npn \__pdffield_pushbutton_default_appearances: { \int_gincr:N \g__pdffield_pushbutton_cnt_int - \exp_args:Nx + \exp_args:Ne \pdffield_appearance:nn {pdffield/pushbutton/default-\int_use:N \g__pdffield_pushbutton_cnt_int} { \draw_begin: @@ -1544,7 +1544,7 @@ \draw_box_use:N \l_tmpa_box \draw_end: } - \exp_args:Nx + \exp_args:Ne \pdffield_appearance:nn {pdffield/pushbutton/defaultrollover-\int_use:N \g__pdffield_pushbutton_cnt_int} { \draw_begin: @@ -1618,7 +1618,7 @@ \draw_box_use:N \l_tmpa_box \draw_end: } - \exp_args:Nx + \exp_args:Ne \pdffield_appearance:nn {pdffield/pushbutton/defaultdown-\int_use:N \g__pdffield_pushbutton_cnt_int} { \draw_begin: @@ -1731,7 +1731,7 @@ \tl_if_empty:NT\l__pdffield_pushbutton_appearance_code_tl { \__pdffield_pushbutton_default_appearances: - \exp_args:Nnx + \exp_args:Nne \keys_set:nn {pdffield} { appearance = pdffield/pushbutton/default-\int_eval:n{ \g__pdffield_pushbutton_cnt_int}, @@ -1750,7 +1750,7 @@ { \pdfxform_if_exist:nTF { #1 } { - \pdfannot_dict_put:nnx {widget/AP}{#2}{\pdfxform_ref:n{#1}} + \pdfannot_dict_put:nne {widget/AP}{#2}{\pdfxform_ref:n{#1}} } { \msg_error:nnnn{pdffield}{appearance-missing}{#1}{#3} @@ -1775,7 +1775,7 @@ \seq_map_indexed_inline:Nn \l__pdffield_choice_values_seq { \pdf_string_from_unicode:nnN{utf16/hex}{##2}\l__pdffield_tmpa_str - \tl_set:Nx \l__pdffield_tmpa_tl {\seq_item:Nn \l__pdffield_choice_displayvalues_seq {##1} } + \tl_set:Ne \l__pdffield_tmpa_tl {\seq_item:Nn \l__pdffield_choice_displayvalues_seq {##1} } \tl_if_empty:NTF \l__pdffield_tmpa_tl { \seq_put_right:NV \l__pdffield_choice_opt_seq \l__pdffield_tmpa_str @@ -1783,12 +1783,12 @@ { \exp_args:NnV \pdf_string_from_unicode:nnN{utf16/hex}\l__pdffield_tmpa_tl\l__pdffield_tmpb_str - \seq_put_right:Nx \l__pdffield_choice_opt_seq + \seq_put_right:Ne \l__pdffield_choice_opt_seq { [ \l__pdffield_tmpa_str\c_space_tl\l__pdffield_tmpb_str] } } } - \pdf_object_unnamed_write:nx {array}{\seq_use:Nn\l__pdffield_choice_opt_seq {~}} - \pdfdict_put:nnx { l__pdffield/field }{Opt} { \pdf_object_ref_last: } + \pdf_object_unnamed_write:ne {array}{\seq_use:Nn\l__pdffield_choice_opt_seq {~}} + \pdfdict_put:nne { l__pdffield/field }{Opt} { \pdf_object_ref_last: } \int_compare:nNnTF {\bitset_item:Nn \l__pdffield_Ff_bitset {MultiSelect}} = {1} { \tl_clear:N \l__pdffield_tmpa_tl @@ -1796,14 +1796,14 @@ { \pdf_string_from_unicode:nnN{utf16/hex}{##1}\l__pdffield_tmpa_str \tl_put_right:NV \l__pdffield_tmpa_tl \l__pdffield_tmpa_str - \pdfdict_put:nnx { l__pdffield/field }{V} { [ \l__pdffield_tmpa_tl ] } + \pdfdict_put:nne { l__pdffield/field }{V} { [ \l__pdffield_tmpa_tl ] } } } { - \tl_set:Nx \l__pdffield_tmpa_tl {\seq_item:Nn \l__pdffield_choice_defaultvalues_seq {1} } + \tl_set:Ne \l__pdffield_tmpa_tl {\seq_item:Nn \l__pdffield_choice_defaultvalues_seq {1} } \exp_args:NnV \pdf_string_from_unicode:nnN{utf16/hex}\l__pdffield_tmpa_tl\l__pdffield_tmpb_str - \pdfdict_put:nnx { l__pdffield/field }{V} { \l__pdffield_tmpb_str } + \pdfdict_put:nne { l__pdffield/field }{V} { \l__pdffield_tmpb_str } } \__pdffield_field:n { __pdffield/choice/#1 } } @@ -1871,7 +1871,7 @@ } ,top-index .code:n = { - \pdfdict_put:nnx {l__pdffield/field}{TI}{\int_eval:n{#1-1}} + \pdfdict_put:nne {l__pdffield/field}{TI}{\int_eval:n{#1-1}} } } \cs_new_protected:Npn \__pdffield_choice_set_type: {} @@ -1999,7 +1999,7 @@ \cs_if_exist:cTF { __pdffield_action_reset_#1: } { \use:c { __pdffield_action_reset_#1: } - \pdfannot_dict_put:nnx{widget} + \pdfannot_dict_put:nne{widget} {A} {\tl_use:c { c__pdffield_action_reset_#1_tl } } } @@ -2017,7 +2017,7 @@ \cs_if_exist:cTF { __pdffield_action_submit_#1: } { \use:c { __pdffield_action_submit_#1: } - \pdfannot_dict_put:nnx{widget} + \pdfannot_dict_put:nne{widget} {A} {\tl_use:c { c__pdffield_action_submit_#1_tl } } } @@ -2032,8 +2032,8 @@ import .code:n = { \pdf_string_from_unicode:nnN {utf8/string}{#1}\l__pdffield_tmpa_str - \pdf_object_unnamed_write:nx {dict}{/Type/Action/S/ImportData/F\l__pdffield_tmpa_str} - \pdfannot_dict_put:nnx{widget} + \pdf_object_unnamed_write:ne {dict}{/Type/Action/S/ImportData/F\l__pdffield_tmpa_str} + \pdfannot_dict_put:nne{widget} {A} {\pdf_object_ref_last: } } @@ -2087,25 +2087,25 @@ \group_begin: \seq_clear:N \l__pdffield_action_Fields_seq \keys_set:nn { pdffield / action }{ #2 } - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne { array } { \seq_use:Nn \l__pdffield_action_Fields_seq {~} } \tl_if_empty:NF \l__pdffield_action_next_tl { - \pdfdict_put:nnx {l__pdffield/ResetForm}{Next}{\l__pdffield_action_next_tl} + \pdfdict_put:nne {l__pdffield/ResetForm}{Next}{\l__pdffield_action_next_tl} } - \pdfdict_put:nnx + \pdfdict_put:nne { l__pdffield/ResetForm } { Fields } { \pdf_object_ref_last: } - \pdfdict_put:nnx + \pdfdict_put:nne { l__pdffield/ResetForm } { Flags } { \bitset_item:Nn\l__pdffield_Flags_bitset{Include/Exclude} } - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne { dict } { \pdfdict_use:n{l__pdffield/ResetForm} } - \tl_const:cx { c__pdffield_action_reset_#1_tl } { \pdf_object_ref_last: } + \tl_const:ce { c__pdffield_action_reset_#1_tl } { \pdf_object_ref_last: } \cs_gset_eq:cN {__pdffield_action_reset_#1:} \prg_do_nothing: \group_end: } @@ -2129,30 +2129,30 @@ \bitset_clear:N \l__pdffield_Flags_bitset \keys_set:nn {pdffield/action}{#2} \use:c{ __pdffield_action_flags_\l__pdffield_action_export_tl :} - \pdfdict_put:nnx + \pdfdict_put:nne { l__pdffield/SubmitForm } { Flags } { \bitset_to_arabic:N \l__pdffield_Flags_bitset } \tl_if_empty:NF \l__pdffield_action_next_tl { - \pdfdict_put:nnx {l__pdffield/SubmitForm}{Next}{\l__pdffield_action_next_tl} + \pdfdict_put:nne {l__pdffield/SubmitForm}{Next}{\l__pdffield_action_next_tl} } \bool_if:NTF \l__pdffield_url_encode_bool { \pdf_string_from_unicode:nnN { utf8/URI } {#3}\l__pdffield_tmpa_str } { \pdf_string_from_unicode:nnN { utf8/string }{#3}\l__pdffield_tmpa_str } - \pdf_object_unnamed_write:nx {dict} + \pdf_object_unnamed_write:ne {dict} { /FS/URL /F \l__pdffield_tmpa_str } - \pdfdict_put:nnx + \pdfdict_put:nne { l__pdffield/SubmitForm } { F } { \pdf_object_ref_last: } - \pdf_object_unnamed_write:nx + \pdf_object_unnamed_write:ne { dict } { \pdfdict_use:n{ l__pdffield/SubmitForm } } - \tl_const:cx { c__pdffield_action_submit_#1_tl } { \pdf_object_ref_last: } + \tl_const:ce { c__pdffield_action_submit_#1_tl } { \pdf_object_ref_last: } \cs_gset_eq:cN { __pdffield_action_submit_#1: } \prg_do_nothing: \group_end: } diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty index 4b14960d8e2..b32eac928c5 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-firstaid.dtx -\ProvidesExplPackage{pdfmanagement-firstaid}{2023-10-09}{0.96a} +\ProvidesExplPackage{pdfmanagement-firstaid}{2023-11-05}{0.96b} {LaTeX PDF management testphase bundle / firstaid-patches} \clist_map_inline:nn @@ -51,15 +51,72 @@ { \bool_if:NT \g__pdfmanagement_firstaid_fontspec_bool { - \@ifpackagelater{fontspec}{2023-03-10} + \AddToHook{package/fontspec/after} { - \__fontspec_keys_define_code:nnn {fontspec} {Color} - { - \tl_set:Nn \l__fontspec_hexcol_tl {#1} - } - }{} + \@ifpackagelater{fontspec}{2023-11-05} + {\typeout{PDF~Management:~fontspec~firstaid~ignored}} + { + \def\c__fontspec_opacity_tl{} + \__fontspec_keys_define_code:nnn {fontspec} {Color} + { + \color_if_exist:nTF {#1} + { + \tl_set:Nn \l__fontspec_hexcol_tl {#1} + } + { + \cs_if_exist:cTF { \token_to_str:N \color@ #1 } + { + \convertcolorspec{named}{#1}{HTML}\l__fontspec_hexcol_tl + } + { + \int_compare:nTF { \tl_count:n {#1} == 6 } + { \tl_set:Nn \l__fontspec_hexcol_tl {#1} } + { + \int_compare:nTF { \tl_count:n {#1} == 8 } + { \fontspec_parse_colour:viii #1 } + { + \bool_if:NF \l__fontspec_firsttime_bool + { \__fontspec_warning:nx {bad-colour} {#1} } + } + } + } + } + } + \__fontspec_keys_define_code:nnn {fontspec} {Opacity} + { + \int_set:Nn \l__fontspec_tmp_int {255} + \__fontspec_int_mult_truncate:Nn \l__fontspec_tmp_int { #1 } + \tl_if_eq:NNF \l__fontspec_opacity_tl \c__fontspec_opacity_tl + { + \bool_if:NF \l__fontspec_firsttime_bool + { \__fontspec_warning:nx {opa-twice} {#1} } + } + \tl_set:Nx \l__fontspec_opacity_tl + { + , + \int_compare:nT { \l__fontspec_tmp_int <= "F } {0} % zero pad + \int_to_hex:n { \l__fontspec_tmp_int } + } + } + \cs_set:Nn \__fontspec_get_features:n + { + \__fontspec_init_fontface: + \__fontspec_keys_set_known:nxN {fontspec-renderer} {\l__fontspec_fontfeat_clist,#1} + \l__fontspec_keys_leftover_clist + \__fontspec_keys_set_known:nxN {fontspec} {\l__fontspec_keys_leftover_clist} \l__fontspec_keys_leftover_clist + \keys_set:nV {fontspec-opentype} \l__fontspec_keys_leftover_clist + + \tl_if_empty:NF \l__fontspec_mapping_tl + { \__fontspec_update_featstr:n { mapping = \l__fontspec_mapping_tl } } + + \str_if_eq:eeF { \l__fontspec_hexcol_tl \l__fontspec_opacity_tl } + { \c__fontspec_hexcol_tl \c__fontspec_opacity_tl } + { \__fontspec_update_featstr:n { color = {\l__fontspec_hexcol_tl\l__fontspec_opacity_tl } } } + } + } } } + } \bool_if:NT \g__pdfmanagement_firstaid_color_bool { @@ -183,21 +240,21 @@ } \cs_generate_variant:Nn \tl_trim_spaces:n{V} -\cs_generate_variant:Nn \pdfmanagement_add:nnn {nex} +\cs_generate_variant:Nn \pdfmanagement_add:nnn {nee} \cs_new:Npn \__pdfmanagement_patch_pgfextgs:w #1/#2<<#3>>#4\q_stop { - \tl_set:Nx\l_tmpa_tl{#2} - \pdfmanagement_add:nex + \tl_set:Ne\l_tmpa_tl{#2} + \pdfmanagement_add:nee {Page/Resources/ExtGState}{\tl_trim_spaces:V\l_tmpa_tl}{<<#3 #4>>} } \cs_new:Npn \__pdfmanagement_patch_pgfpatterns:w #1/#2\space#3\q_stop { - \pdfmanagement_add:nex + \pdfmanagement_add:nee {Page/Resources/Pattern}{\tl_trim_spaces:n{#2}}{#3} } \cs_new:Npn \__pdfmanagement_patch_pgfcolorspaces:w #1/#2[#3]#4\q_stop { - \pdfmanagement_add:nex + \pdfmanagement_add:nee {Page/Resources/ColorSpace}{\tl_trim_spaces:n{#2}}{[#3]} } diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx index e0f6f78d832..8654dbe2f2c 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx @@ -27,7 +27,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-testphase.dtx -\ProvidesExplFile{pdfmanagement-testphase.ltx}{2023-10-09}{0.96a} +\ProvidesExplFile{pdfmanagement-testphase.ltx}{2023-11-05}{0.96b} {PDF~management~code~(testphase)} \bool_new:N\l__pdfmanagement_delayed_shipout_bool \msg_new:nnn {pdfmanagement}{delayed-shipout} @@ -116,7 +116,7 @@ { \__pdfdict_if_exist:nTF { #1 } { - \msg_error:nnxx + \msg_error:nnee { pdfdict } { dict-already-defined } { \tl_to_str:n {#1} } @@ -137,7 +137,7 @@ } } { - \msg_error:nnx{pdfdict}{invalid-name}{\tl_to_str:n{#1}} + \msg_error:nne{pdfdict}{invalid-name}{\tl_to_str:n{#1}} } } } @@ -204,7 +204,7 @@ { \__pdfdict_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_put:cnn + \exp_args:Nne \prop_put:cnn { \__pdfdict_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } { #3 } } { @@ -214,7 +214,7 @@ } \cs_set_eq:NN \pdfdict_put:nnn \__pdfdict_put:nnn -\cs_generate_variant:Nn \pdfdict_put:nnn {nnx,nno,nee} +\cs_generate_variant:Nn \pdfdict_put:nnn {nne,nno,nee,nnx} \cs_new_protected:Npn \__pdfdict_gput:nnn #1 #2 #3 %#1 global dict, #2 name, #3 value { @@ -225,7 +225,7 @@ { \__pdfdict_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_gput:cnn + \exp_args:Nne \prop_gput:cnn { \__pdfdict_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } { #3 } } { @@ -235,12 +235,12 @@ } \cs_set_eq:NN \pdfdict_gput:nnn \__pdfdict_gput:nnn -\cs_generate_variant:Nn \pdfdict_gput:nnn {nnx,nno,nee} +\cs_generate_variant:Nn \pdfdict_gput:nnn {nne,nno,nee,nnx} \cs_new_protected:Npn \__pdfdict_get:nnN #1 #2 #3 %dict,key,macro { \__pdfdict_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_get:cnN + \exp_args:Nne \prop_get:cnN { \__pdfdict_name:n { #1 } } { \str_convert_pdfname:n { #2 } } #3 } @@ -254,7 +254,7 @@ { \__pdfdict_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_remove:cn + \exp_args:Nne \prop_remove:cn { \__pdfdict_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } } { @@ -267,7 +267,7 @@ { \__pdfdict_if_exist:nTF { #1 } { - \exp_args:Nnx \prop_gremove:cn + \exp_args:Nne \prop_gremove:cn { \__pdfdict_name:n { #1 } }{ \str_convert_pdfname:n { #2 } } } { @@ -294,7 +294,7 @@ } \cs_new_protected:Npn \pdfdict_show:n #1 { - \__pdfdict_show:Nn \msg_show:nnxxxx {#1} + \__pdfdict_show:Nn \msg_show:nneeee {#1} } \cs_new:Npn \__pdfdict_item:nn #1 #2 %#1 name, #2 value { @@ -377,13 +377,13 @@ } } { - \msg_warning:nnx {pdfmanagement}{inactive} + \msg_warning:nne {pdfmanagement}{inactive} {\tl_to_str:n {\pdfmanagement_add:nnn}} } } -\cs_generate_variant:Nn \pdfmanagement_add:nnn {nnx,nxx,xxx} -\cs_set_eq:NN \PDFManagementAdd \pdfmanagement_add:xxx +\cs_generate_variant:Nn \pdfmanagement_add:nnn {nne,nee,eee,nnx,nxx,xxx} +\cs_set_eq:NN \PDFManagementAdd \pdfmanagement_add:eee \tl_new:N \g__kernel_pdfmanagement_thispage_shipout_code_tl \tl_new:N \g__kernel_pdfmanagement_lastpage_shipout_code_tl \tl_new:N \g__kernel_pdfmanagement_end_run_code_tl @@ -426,7 +426,7 @@ { __pdfmanagement_handler/#1/#2_gput:n } { \use:c {__pdfmanagement_handler/#1/#2_gput:n} {#3} } %special handler { - \exp_args:Nnx + \exp_args:Nne \prop_gput:cnn { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n { #2 } } @@ -440,11 +440,11 @@ } } -\cs_generate_variant:Nn \__pdfmanagement_handler_gput:nnn {nxx} +\cs_generate_variant:Nn \__pdfmanagement_handler_gput:nnn {nee} \cs_new_protected:Npn \__pdfmanagement_get:nnN #1 #2 #3 %path,key,macro { - \exp_args:Nnx + \exp_args:Nne \prop_get:cnN { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n {#2} } #3 @@ -462,7 +462,7 @@ { __pdfmanagement_handler/#1/#2_gremove: } { \use:c {__pdfmanagement_handler/#1/#2_gremove:} } %special handler { - \exp_args:Nnx + \exp_args:Nne \prop_gremove:cn { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n {#2} } @@ -478,7 +478,7 @@ { \pdfdict_if_exist:nTF { g__pdf_Core/#1 } { - \exp_args:Nnx + \exp_args:Nne \prop_gremove:cn { \__kernel_pdfdict_name:n { g__pdf_Core/#1 } } { \str_convert_pdfname:n{#2} } @@ -518,7 +518,7 @@ } \cs_new_protected:Npn \pdfmanagement_show:n #1 { - \__pdfmanagement_show:Nn \msg_show:nnxxxx {#1} + \__pdfmanagement_show:Nn \msg_show:nneeee {#1} } \cs_new_protected:Npn \pdfmanagement_remove:nn #1 #2 { @@ -553,7 +553,7 @@ { \pdfdict_if_empty:nF { g__pdf_Core/Pages} { - \exp_args:Nx \__pdf_backend_Pages_primitive:n + \exp_args:Ne \__pdf_backend_Pages_primitive:n { \pdfdict_use:n { g__pdf_Core/Pages} } @@ -760,10 +760,10 @@ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AA } } { \pdf_object_new:n { __pdfmanagement/Catalog/AA } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/AA }{ dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AA } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {AA} { @@ -776,10 +776,10 @@ \seq_if_empty:cF { g__pdfmanagement_/Catalog/AcroForm/Fields_seq } { \pdf_object_new:n { __pdfmanagement/Catalog/AcroForm/Fields } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/AcroForm/Fields } { array } { \seq_use:cn { g__pdfmanagement_/Catalog/AcroForm/Fields_seq } {~} } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } } { Fields } @@ -788,10 +788,10 @@ \seq_if_empty:cF { g__pdfmanagement_/Catalog/AcroForm/CO_seq } { \pdf_object_new:n { __pdfmanagement/Catalog/AcroForm/CO } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/AcroForm/CO } { array } { \seq_use:cn { g__pdfmanagement_/Catalog/AcroForm/CO_seq } {~} } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } } { CO } @@ -800,10 +800,10 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR/Font}} { \pdf_object_new:n { __pdfmanagement/Catalog/AcroForm/DR/Font } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/AcroForm/DR/Font } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR/Font } } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR } } { Font } @@ -812,10 +812,10 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR}} { \pdf_object_new:n { __pdfmanagement/Catalog/AcroForm/DR } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/AcroForm/DR } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR } } - \exp_args:Nnnx + \exp_args:Nnne \prop_gput:cnn %we have to use \prop here to avoid the handler ... { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } } { DR } @@ -824,10 +824,10 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm} } { \pdf_object_new:n { __pdfmanagement/Catalog/AcroForm } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/AcroForm } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm } } - \exp_args:Nnnx + \exp_args:Nnne \__pdfmanagement_handler_gput:nnn { Catalog } { AcroForm } @@ -841,10 +841,10 @@ { g__pdfmanagement_/Catalog/AF_seq } { \pdf_object_new:n { __pdfmanagement/Catalog/AF } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/AF } { array } { \seq_use:cn { g__pdfmanagement_/Catalog/AF_seq } {~} } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {AF} { @@ -858,10 +858,10 @@ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/MarkInfo } } { \pdf_object_new:n { __pdfmanagement/Catalog/MarkInfo } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/MarkInfo } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/MarkInfo } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {MarkInfo} { @@ -881,7 +881,7 @@ { \pdf_object_new:n { __pdfmanagement/Catalog/OCProperties } \seq_gpop_left:cN { g__pdfmanagement_/Catalog/OCProperties/Configs_seq} \l__pdfmanagement_tmpa_tl - \pdf_object_write:nnx {__pdfmanagement/Catalog/OCProperties} {dict} + \pdf_object_write:nne {__pdfmanagement/Catalog/OCProperties} {dict} { /OCGs~[ \seq_use:cn { g__pdfmanagement_/Catalog/OCProperties/OCGs_seq } {~} ] /D~\l__pdfmanagement_tmpa_tl~ @@ -891,7 +891,7 @@ [ \seq_use:cn { g__pdfmanagement_/Catalog/OCProperties/Configs_seq} {~} ] } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn { OCProperties } { \__pdf_backend_object_ref:n {__pdfmanagement/Catalog/OCProperties} } @@ -903,10 +903,10 @@ { g__pdfmanagement_/Catalog/OutputIntents_seq } { \pdf_object_new:n { __pdfmanagement/Catalog/OutputIntents } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/OutputIntents } { array } { \seq_use:cn { g__pdfmanagement_/Catalog/OutputIntents_seq } {~} } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {OutputIntents} { @@ -920,10 +920,10 @@ { g__pdfmanagement_/Catalog/Requirements_seq } { \pdf_object_new:n { __pdfmanagement/Catalog/Requirements } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/Requirements } { array } { \seq_use:cn { g__pdfmanagement_/Catalog/Requirements_seq } {~} } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {Requirements} { @@ -937,10 +937,10 @@ { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/ViewerPreferences } } { \pdf_object_new:n { __pdfmanagement/Catalog/ViewerPreferences } - \pdf_object_write:nnx + \pdf_object_write:nne { __pdfmanagement/Catalog/ViewerPreferences } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/ViewerPreferences } } - \exp_args:Nnx + \exp_args:Nne \__pdf_backend_catalog_gput:nn {ViewerPreferences} { @@ -967,12 +967,12 @@ \cs_new_protected:cpn { __pdfmanagement_handler/Catalog/Names/EmbeddedFiles_gput:n } #1 { \int_gincr:N \g__pdfmanagement_EmbeddedFiles_int - \exp_args:Nnx + \exp_args:Nne \prop_gput:cnn { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/Names/EmbeddedFiles }} { \__pdfmanagement_EmbeddedFiles_name: } { #1 } - \exp_args:Nx + \exp_args:Ne \__pdf_backend_NamesEmbeddedFiles_add:nn {\__pdfmanagement_EmbeddedFiles_name:} { #1 } } \cs_new_protected:cpn { __pdfmanagement_/Catalog/Names_gpush:n } #1 %#1 name of name tree @@ -989,7 +989,7 @@ { \sort_return_swapped: } { \sort_return_same: } } - \exp_args:Nnx \__pdf_backend_Names_gpush:nn + \exp_args:Nne \__pdf_backend_Names_gpush:nn {#1} { \seq_use:Nn \l__pdfmanagement_tmpa_seq {~} @@ -998,7 +998,7 @@ } \cs_new_protected:cpn {__pdfmanagement_handler/Catalog/?_show:} { - \iow_term:x + \iow_term:e { \iow_newline: The~Catalog~contains~in~the~top~level~the~single~value~entries @@ -1010,7 +1010,7 @@ { \seq_if_empty:cF { g__pdfmanagement_/Catalog/##1_seq } { - \iow_term:x + \iow_term:e { The~'##1'~array~contains~the~entries \seq_map_function:cN { g__pdfmanagement_/Catalog/##1_seq } \msg_show_item:n @@ -1021,7 +1021,7 @@ { \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/##1 } } { - \iow_term:x + \iow_term:e { The~Catalog~subdirectory~'##1'~contains~the~single~value~entries \prop_map_function:cN @@ -1030,7 +1030,7 @@ } } } - \tl_show:x {\tl_to_str:n{\pdfmanagement_show:n{Catalog}}} + \tl_show:e {\tl_to_str:n{\pdfmanagement_show:n{Catalog}}} } \pdfdict_new:n { g__pdf_Core/Xform/Resources/Properties} %% File: ltdocinit.dtx @@ -1053,7 +1053,7 @@ \prop_new:N \g__pdfmanagement_documentproperties_prop % \NewDocumentCommand\AddToDocumentProperties{O{\@currname}mm} { - \exp_args:NNx + \exp_args:NNe \prop_gput:Nnn \g__pdfmanagement_documentproperties_prop { \tl_if_blank:eTF {#1}{top-level/}{#1/} #2 @@ -1086,7 +1086,7 @@ } \NewDocumentCommand\ShowDocumentProperties {} { - \msg_show:nnx {pdfmanagement}{show-properties} + \msg_show:nne {pdfmanagement}{show-properties} { \prop_map_function:NN \g__pdfmanagement_documentproperties_prop \msg_show_item:nn } @@ -1112,7 +1112,7 @@ \__pdf_backend_annotation:nnnn {#1}{#2}{#3}{#4} \bool_gset_false:N\g__pdfannot_use_lastlink_bool } -\cs_generate_variant:Nn \pdfannot_box:nnnn {nnnx} +\cs_generate_variant:Nn \pdfannot_box:nnnn {nnne,nnnx} \cs_new:Npn \pdfannot_box_ref_last: { \__pdf_backend_annotation_last: @@ -1136,34 +1136,34 @@ { \pdfdict_if_empty:nF { l__pdfannot/widget/AA } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l__pdfannot/widget/AA}} - \pdfdict_put:nnx { l__pdfannot/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l__pdfannot/widget/AA}} + \pdfdict_put:nne { l__pdfannot/widget } {AA} {\pdf_object_ref_last:} } } \pdfdict_if_empty:nF { l__pdfannot/widget/AP } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l__pdfannot/widget/AP}} - \pdfdict_put:nnx { l__pdfannot/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l__pdfannot/widget/AP}} + \pdfdict_put:nne { l__pdfannot/widget } {AP} {\pdf_object_ref_last:} } \pdfdict_if_empty:nF { l__pdfannot/widget/MK } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l__pdfannot/widget/MK}} - \pdfdict_put:nnx { l__pdfannot/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l__pdfannot/widget/MK}} + \pdfdict_put:nne { l__pdfannot/widget } {MK} {\pdf_object_ref_last:} } \pdfdict_if_empty:nF { l__pdfannot/widget/BS } { - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l__pdfannot/widget/BS}} - \pdfdict_put:nnx { l__pdfannot/widget } + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n{l__pdfannot/widget/BS}} + \pdfdict_put:nne { l__pdfannot/widget } {BS} {\pdf_object_ref_last:} } - \pdfannot_box:nnnx {#1}{#2}{#3} + \pdfannot_box:nnne {#1}{#2}{#3} { \pdfdict_use:n { l__pdfannot/widget} } @@ -1190,7 +1190,7 @@ { \hook_use:n { pdfannot/link/#1/before} \mode_leave_vertical: - \exp_args:Nxx %xetex needs expansion + \exp_args:Nee %xetex needs expansion \__pdf_backend_link_begin_user:nnw { \pdfdict_if_exist:nT { l__pdfannot/link/#1 } @@ -1209,12 +1209,12 @@ \bool_gset_true:N \g__pdfannot_use_lastlink_bool \hook_use:n { pdfannot/link/#1/after} } -\cs_generate_variant:Nn \pdfannot_link:nnn {nxn} +\cs_generate_variant:Nn \pdfannot_link:nnn {nen,nxn} \cs_new_protected:Npn \pdfannot_link_begin:nnw #1 #2 %#1 type, #2 action spec { \hook_use:n { pdfannot/link/#1/before} \mode_leave_vertical: - \exp_args:Nxx %xetex needs expansion + \exp_args:Nee %xetex needs expansion \__pdf_backend_link_begin_user:nnw { \pdfdict_if_exist:nT { l__pdfannot/link/#1 } @@ -1234,13 +1234,13 @@ \bool_gset_true:N \g__pdfannot_use_lastlink_bool \hook_use:n { pdfannot/link/#1/after} } -\cs_generate_variant:Nn \pdfannot_link_begin:nnw {nxw} +\cs_generate_variant:Nn \pdfannot_link_begin:nnw {new,nxw} \cs_new_protected:Npn \pdfannot_link_goto_begin:nw #1 %#1 destination { \pdfdict_remove:nn { l__pdfannot/link/GoTo} {Subtype} \hook_use:n { pdfannot/link/GoTo/before} %the backend add it too \mode_leave_vertical: - \exp_args:Nxx %xetex needs expansion + \exp_args:Nee %xetex needs expansion \__pdf_backend_link_begin_goto:nnw { \pdfdict_use:n { l__pdfannot/link/GoTo} @@ -1277,7 +1277,7 @@ { \pdfdict_put:nnn { l__pdfannot/#1 } { #2 }{ #3 } } -\cs_generate_variant:Nn \pdfannot_dict_put:nnn {nnx} +\cs_generate_variant:Nn \pdfannot_dict_put:nnn {nne,nnx} \cs_new_protected:Npn \pdfannot_dict_remove:nn #1 #2 { \pdfdict_remove:nn { l__pdfannot/#1 } { #2 } @@ -1357,7 +1357,7 @@ { \cs_if_exist:cTF {__pdfmeta_standard_verify_handler_#1:nn} { - \exp_args:Nnnx + \exp_args:Nnne \use:c {__pdfmeta_standard_verify_handler_#1:nn} { #2 } @@ -1426,7 +1426,7 @@ { \__pdf_backend_omit_charset:n {1} } \pdfmeta_standard_verify:nnF { min_pdf_version } { \pdf_version: } - { \msg_warning:nnxxx {pdf}{wrong-pdfversion} + { \msg_warning:nneee {pdf}{wrong-pdfversion} {\pdf_version:}{low} { \pdfmeta_standard_item:n{type} @@ -1436,7 +1436,7 @@ } \pdfmeta_standard_verify:nnF { max_pdf_version } { \pdf_version: } - { \msg_warning:nnxxx {pdf}{wrong-pdfversion} + { \msg_warning:nneee {pdf}{wrong-pdfversion} {\pdf_version:}{high} { \pdfmeta_standard_item:n{type} @@ -1671,7 +1671,7 @@ \pdf_object_if_exist:nF { __color_icc_ #1 } { \pdf_object_new:n { __color_icc_ #1 } - \pdf_object_write:nnx { __color_icc_ #1 } { fstream } + \pdf_object_write:nne { __color_icc_ #1 } { fstream } { {/N\c_space_tl \prop_item:cn{c__pdfmeta_colorprofile_#1}{N} @@ -1684,8 +1684,8 @@ \cs_new_protected:Npn \__pdfmeta_write_outputintent:nn #1 #2 %#1 file name, #2 subtype { \group_begin: - \pdfdict_put:nnx {l_pdfmeta/outputintent}{S}{/\str_convert_pdfname:n{#2}} - \pdfdict_put:nnx {l_pdfmeta/outputintent} + \pdfdict_put:nne {l_pdfmeta/outputintent}{S}{/\str_convert_pdfname:n{#2}} + \pdfdict_put:nne {l_pdfmeta/outputintent} {DestOutputProfile} {\pdf_object_ref:n{ __color_icc_ #1 }} \clist_map_inline:nn { OutputConditionIdentifier, Info, RegistryName } @@ -1696,12 +1696,12 @@ \l__pdfmeta_tmpa_tl { \pdf_string_from_unicode:nVN {utf8/string}\l__pdfmeta_tmpa_tl\l__pdfmeta_tmpa_str - \pdfdict_put:nnx + \pdfdict_put:nne {l_pdfmeta/outputintent}{##1}{\l__pdfmeta_tmpa_str} } } - \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n {l_pdfmeta/outputintent} } - \pdfmanagement_add:nnx {Catalog}{OutputIntents}{\pdf_object_ref_last:} + \pdf_object_unnamed_write:ne {dict}{\pdfdict_use:n {l_pdfmeta/outputintent} } + \pdfmanagement_add:nne {Catalog}{OutputIntents}{\pdf_object_ref_last:} \group_end: } @@ -1719,18 +1719,18 @@ } } { - \exp_args:NNx + \exp_args:NNe \prop_if_in:NnF \g__pdfmeta_outputintents_prop { \pdfmeta_standard_item:n { outputintent_A } } { - \exp_args:NNx + \exp_args:NNe \prop_gput:Nnn \g__pdfmeta_outputintents_prop { \pdfmeta_standard_item:n { outputintent_A } } { sRGB.icc } } - \exp_args:NNx + \exp_args:NNe \prop_get:NnN \g__pdfmeta_outputintents_prop { \pdfmeta_standard_item:n { outputintent_A } } @@ -1752,8 +1752,8 @@ \bool_gset_true:N \g__pdfmeta_xmp_bool \hook_gput_code:nnn{pdfmanagement/add}{pdfmanagement} { - \pdfmanagement_add:nnx {Info}{Producer}{(\c_sys_engine_exec_str-\c_sys_engine_version_str)} - \pdfmanagement_add:nnx {Info}{Creator}{(LaTeX)} + \pdfmanagement_add:nne {Info}{Producer}{(\c_sys_engine_exec_str-\c_sys_engine_version_str)} + \pdfmanagement_add:nne {Info}{Creator}{(LaTeX)} } \keys_define:nn { document / metadata } { @@ -1883,7 +1883,7 @@ \cs_new_protected:Npn \__pdfmeta_xmp_date_get:nNN #1 #2 #3 %#1 property, #2 tl var with PDF date, #3 seq for splitted date { - \tl_set:Nx #2 { \GetDocumentProperties{#1} } + \tl_set:Ne #2 { \GetDocumentProperties{#1} } \tl_if_blank:VTF #2 { \seq_set_eq:NN #3 \l__pdfmeta_xmp_currentdate_seq @@ -1895,8 +1895,8 @@ } \cs_new_protected:Npn \__pdfmeta_xmp_create_uuid:nN #1 #2 { - \str_set:Nx#2 {\str_lowercase:f{\tex_mdfivesum:D{#1}}} - \str_set:Nx#2 + \str_set:Ne#2 {\str_lowercase:f{\tex_mdfivesum:D{#1}}} + \str_set:Ne#2 { uuid: \str_range:Nnn #2{1}{8} -\str_range:Nnn#2{9}{12} @@ -1910,8 +1910,8 @@ \group_begin: \text_declare_purify_equivalent:Nn \& {\tl_to_str:N & } \text_declare_purify_equivalent:Nn \texttilde {\c_tilde_str} - \tl_set:Nx \l__pdfmeta_tmpa_tl { \text_purify:n {#1} } - \str_gset:Nx \g__pdfmeta_tmpa_str { \tl_to_str:N \l__pdfmeta_tmpa_tl } + \tl_set:Ne \l__pdfmeta_tmpa_tl { \text_purify:n {#1} } + \str_gset:Ne \g__pdfmeta_tmpa_str { \tl_to_str:N \l__pdfmeta_tmpa_tl } \str_greplace_all:Nnn\g__pdfmeta_tmpa_str {&}{&} \str_greplace_all:Nnn\g__pdfmeta_tmpa_str {<}{<} \str_greplace_all:Nnn\g__pdfmeta_tmpa_str {>}{>} @@ -1934,8 +1934,8 @@ \tl_set:Nn #3 {#1} } { - \tl_set:Nx #2 {\seq_item:Nn\l__pdfmeta_tmpa_seq{2}} - \tl_set:Nx #3 {\seq_item:Nn\l__pdfmeta_tmpa_seq{3}} + \tl_set:Ne #2 {\seq_item:Nn\l__pdfmeta_tmpa_seq{2}} + \tl_set:Ne #3 {\seq_item:Nn\l__pdfmeta_tmpa_seq{3}} } } \cs_generate_variant:Nn \__pdfmeta_xmp_lang_get:nNN {eNN,VNN} @@ -1943,7 +1943,7 @@ \tl_new:N \g__pdfmeta_xmp_packet_tl \cs_new_protected:Npn \__pdfmeta_xmp_add_packet_chunk:n #1 { - \tl_gput_right:Nx\g__pdfmeta_xmp_packet_tl + \tl_gput_right:Ne\g__pdfmeta_xmp_packet_tl { \__pdfmeta_xmp_indent: \exp_not:n{#1} } @@ -1952,7 +1952,7 @@ \cs_new_protected:Npn \__pdfmeta_xmp_add_packet_chunk:nN #1 #2 { - \tl_put_right:Nx#2 + \tl_put_right:Ne#2 { \__pdfmeta_xmp_indent: \exp_not:n{#1} } @@ -2059,8 +2059,8 @@ \cs_generate_variant:Nn \__pdfmeta_xmp_add_packet_list:nnnn {nnne} \cs_new_protected:Npn \__pdfmeta_xmp_build_packet: { - \tl_set:Nx \l__pdfmeta_xmp_doclang_tl {\GetDocumentProperties{document/lang}} - \tl_set:Nx \l__pdfmeta_xmp_metalang_tl {\GetDocumentProperties{hyperref/pdfmetalang}} + \tl_set:Ne \l__pdfmeta_xmp_doclang_tl {\GetDocumentProperties{document/lang}} + \tl_set:Ne \l__pdfmeta_xmp_metalang_tl {\GetDocumentProperties{hyperref/pdfmetalang}} \tl_if_blank:VT \l__pdfmeta_xmp_metalang_tl { \cs_set_eq:NN \l__pdfmeta_xmp_metalang_tl\l__pdfmeta_xmp_doclang_tl} \__pdfmeta_xmp_build_iptc_data:N \l__pdfmeta_xmp_iptc_data_tl @@ -2110,32 +2110,32 @@ \cs_new_protected:Npn \__pdfmeta_xmp_xmlns_new:nn #1 #2 { \prop_gput:Nnn \g__pdfmeta_xmp_xmlns_prop {#1}{#2} - \tl_gput_right:Nx \g__pdfmeta_xmp_xmlns_tl + \tl_gput_right:Ne \g__pdfmeta_xmp_xmlns_tl { \__pdfmeta_xmp_indent:n{4} xmlns:\exp_not:n{#1="#2"} } } -\cs_generate_variant:Nn \__pdfmeta_xmp_xmlns_new:nn {nx} +\cs_generate_variant:Nn \__pdfmeta_xmp_xmlns_new:nn {ne} \__pdfmeta_xmp_xmlns_new:nn {pdf} {http://ns.adobe.com/pdf/1.3/} \__pdfmeta_xmp_xmlns_new:nn {xmpRights}{http://ns.adobe.com/xap/1.0/rights/} \__pdfmeta_xmp_xmlns_new:nn {dc} {http://purl.org/dc/elements/1.1/} \__pdfmeta_xmp_xmlns_new:nn {photoshop}{http://ns.adobe.com/photoshop/1.0/} \__pdfmeta_xmp_xmlns_new:nn {xmp} {http://ns.adobe.com/xap/1.0/} \__pdfmeta_xmp_xmlns_new:nn {xmpMM} {http://ns.adobe.com/xap/1.0/mm/} -\__pdfmeta_xmp_xmlns_new:nx {stEvt} +\__pdfmeta_xmp_xmlns_new:ne {stEvt} {http://ns.adobe.com/xap/1.0/sType/ResourceEvent\c_hash_str} \__pdfmeta_xmp_xmlns_new:nn {pdfaid} {http://www.aiim.org/pdfa/ns/id/} \__pdfmeta_xmp_xmlns_new:nn {pdfuaid} {http://www.aiim.org/pdfua/ns/id/} \__pdfmeta_xmp_xmlns_new:nn {pdfx} {http://ns.adobe.com/pdfx/1.3/} \__pdfmeta_xmp_xmlns_new:nn {pdfxid} {http://www.npes.org/pdfx/ns/id/} \__pdfmeta_xmp_xmlns_new:nn {prism} {http://prismstandard.org/namespaces/basic/3.0/} -\__pdfmeta_xmp_xmlns_new:nx {stFnt} {http://ns.adobe.com/xap/1.0/sType/Font\c_hash_str} +\__pdfmeta_xmp_xmlns_new:ne {stFnt} {http://ns.adobe.com/xap/1.0/sType/Font\c_hash_str} \__pdfmeta_xmp_xmlns_new:nn {Iptc4xmpCore}{http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/} \__pdfmeta_xmp_xmlns_new:nn {pdfaExtension}{http://www.aiim.org/pdfa/ns/extension/} -\__pdfmeta_xmp_xmlns_new:nx {pdfaSchema}{http://www.aiim.org/pdfa/ns/schema\c_hash_str} -\__pdfmeta_xmp_xmlns_new:nx {pdfaProperty}{http://www.aiim.org/pdfa/ns/property\c_hash_str} -\__pdfmeta_xmp_xmlns_new:nx {pdfaType} {http://www.aiim.org/pdfa/ns/type\c_hash_str} -\__pdfmeta_xmp_xmlns_new:nx {pdfaField}{http://www.aiim.org/pdfa/ns/field\c_hash_str} +\__pdfmeta_xmp_xmlns_new:ne {pdfaSchema}{http://www.aiim.org/pdfa/ns/schema\c_hash_str} +\__pdfmeta_xmp_xmlns_new:ne {pdfaProperty}{http://www.aiim.org/pdfa/ns/property\c_hash_str} +\__pdfmeta_xmp_xmlns_new:ne {pdfaType} {http://www.aiim.org/pdfa/ns/type\c_hash_str} +\__pdfmeta_xmp_xmlns_new:ne {pdfaField}{http://www.aiim.org/pdfa/ns/field\c_hash_str} \seq_new:N \l__pdfmeta_xmp_schema_seq \cs_new_protected:Npn \__pdfmeta_xmp_schema_new:nnn #1 #2 #3 @@ -2390,11 +2390,11 @@ \__pdfmeta_xmp_date_get:nNN {document/creationdate}\l__pdfmeta_tmpa_tl\l__pdfmeta_tmpa_seq \__pdfmeta_xmp_add_packet_line:nne{xmp}{CreateDate}{\__pdfmeta_xmp_print_date:N\l__pdfmeta_tmpa_seq} - \pdfmanagement_add:nnx{Info}{CreationDate}{(\l__pdfmeta_tmpa_tl)} + \pdfmanagement_add:nne{Info}{CreationDate}{(\l__pdfmeta_tmpa_tl)} \__pdfmeta_xmp_date_get:nNN {document/moddate}\l__pdfmeta_tmpa_tl\l__pdfmeta_tmpa_seq \__pdfmeta_xmp_add_packet_line:nne{xmp}{ModifyDate}{\__pdfmeta_xmp_print_date:N\l__pdfmeta_tmpa_seq} - \pdfmanagement_add:nnx{Info}{ModDate}{(\l__pdfmeta_tmpa_tl)} + \pdfmanagement_add:nne{Info}{ModDate}{(\l__pdfmeta_tmpa_tl)} \__pdfmeta_xmp_date_get:nNN {hyperref/pdfmetadate}\l__pdfmeta_tmpa_tl\l__pdfmeta_tmpa_seq \__pdfmeta_xmp_add_packet_line:nne{xmp}{MetadataDate}{\__pdfmeta_xmp_print_date:N\l__pdfmeta_tmpa_seq} @@ -2429,7 +2429,7 @@ \cs_new_protected:Npn \__pdfmeta_xmp_build_xmpMM: { - \str_set:Nx\l__pdfmeta_tmpa_str {\GetDocumentProperties{hyperref/pdfdocumentid}} + \str_set:Ne\l__pdfmeta_tmpa_str {\GetDocumentProperties{hyperref/pdfdocumentid}} \str_if_empty:NT \l__pdfmeta_tmpa_str { \__pdfmeta_xmp_create_uuid:nN @@ -2438,7 +2438,7 @@ } \__pdfmeta_xmp_add_packet_line:nnV{xmpMM}{DocumentID} \l__pdfmeta_tmpa_str - \str_set:Nx\l__pdfmeta_tmpa_str {\GetDocumentProperties{hyperref/pdfinstanceid}} + \str_set:Ne\l__pdfmeta_tmpa_str {\GetDocumentProperties{hyperref/pdfinstanceid}} \str_if_empty:NT \l__pdfmeta_tmpa_str { \__pdfmeta_xmp_create_uuid:nN @@ -2539,7 +2539,7 @@ { \__pdfmeta_xmp_add_packet_open_attr:nnn {Iptc4xmpCore}{CreatorContactInfo}{rdf:parseType="Resource"} - \tl_gput_right:Nx\g__pdfmeta_xmp_packet_tl { \l__pdfmeta_xmp_iptc_data_tl } + \tl_gput_right:Ne\g__pdfmeta_xmp_packet_tl { \l__pdfmeta_xmp_iptc_data_tl } \__pdfmeta_xmp_add_packet_close:nn {Iptc4xmpCore}{CreatorContactInfo} } @@ -2590,7 +2590,7 @@ \__pdfmeta_xmp_add_packet_line:nne {prism}{url} {\GetDocumentProperties{hyperref/pdfurl}} - \tl_set:Nx \l__pdfmeta_tmpa_tl { \GetDocumentProperties{hyperref/pdfnumpages} } + \tl_set:Ne \l__pdfmeta_tmpa_tl { \GetDocumentProperties{hyperref/pdfnumpages} } \__pdfmeta_xmp_add_packet_line:nne {prism}{pageCount} {\tl_if_blank:VTF \l__pdfmeta_tmpa_tl {\PreviousTotalPages}{\l__pdfmeta_tmpa_tl}} @@ -2617,7 +2617,7 @@ \__pdfmeta_xmp_build_packet: \exp_args:No \__pdf_backend_metadata_stream:n {\g__pdfmeta_xmp_packet_tl} - \pdfmanagement_add:nnx {Catalog} {Metadata}{\pdf_object_ref_last:} + \pdfmanagement_add:nne {Catalog} {Metadata}{\pdf_object_ref_last:} \bool_if:NT \g__pdfmeta_xmp_export_bool { \iow_open:Nn\g_tmpa_iow{\g__pdfmeta_xmp_export_str.xmpi} @@ -2873,7 +2873,7 @@ \prop_new:N \g_pdffile_embed_prop \cs_new_protected:Npn \pdffile_embed_show: { - \msg_show:nnx + \msg_show:nne {pdffile}{show-files} { \prop_map_function:NN {\g_pdffile_embed_prop} \msg_show_item:nn @@ -2896,10 +2896,10 @@ \l__pdffile_ext_str \l__pdffile_tmpb_tl { - \tl_set:Nx #2 {/Subtype~\pdf_name_from_unicode_e:V \l__pdffile_tmpb_tl} + \tl_set:Ne #2 {/Subtype~\pdf_name_from_unicode_e:V \l__pdffile_tmpb_tl} } { - \msg_warning:nnx { pdffile }{ mimetype-missing} {#1} + \msg_warning:nne { pdffile }{ mimetype-missing} {#1} \tl_clear:N #2 } } @@ -2909,7 +2909,7 @@ \cs_new_protected:Npn \__pdffile_fstream_write:nN #1 #2 { - \pdf_object_unnamed_write:nx { fstream } + \pdf_object_unnamed_write:ne { fstream } { { #2 @@ -2931,7 +2931,7 @@ \cs_new_protected:Npn \__pdffile_stream_write:nN #1 #2 { - \pdf_object_unnamed_write:nx { stream } + \pdf_object_unnamed_write:ne { stream } { { #2 @@ -2960,9 +2960,9 @@ { \group_begin: \__pdffile_filename_convert_to_print:nN { #2 } \l__pdffile_tmpa_str - \pdfdict_put:nnx {l_pdffile/Filespec}{F} { \l__pdffile_tmpa_str } - \pdfdict_put:nnx {l_pdffile/Filespec}{UF}{ \l__pdffile_tmpa_str } - \pdf_object_write:nnx { #1 } { dict } + \pdfdict_put:nne {l_pdffile/Filespec}{F} { \l__pdffile_tmpa_str } + \pdfdict_put:nne {l_pdffile/Filespec}{UF}{ \l__pdffile_tmpa_str } + \pdf_object_write:nne { #1 } { dict } { \pdfdict_use:n { l_pdffile/Filespec} \tl_if_empty:nF { #3 } @@ -2983,9 +2983,9 @@ { \group_begin: \__pdffile_filename_convert_to_print:nN { #1 } \l__pdffile_tmpa_str - \pdfdict_put:nnx {l_pdffile/Filespec}{F} { \l__pdffile_tmpa_str } - \pdfdict_put:nnx {l_pdffile/Filespec}{UF}{ \l__pdffile_tmpa_str } - \pdf_object_unnamed_write:nx {dict} + \pdfdict_put:nne {l_pdffile/Filespec}{F} { \l__pdffile_tmpa_str } + \pdfdict_put:nne {l_pdffile/Filespec}{UF}{ \l__pdffile_tmpa_str } + \pdf_object_unnamed_write:ne {dict} { \pdfdict_use:n { l_pdffile/Filespec} \tl_if_empty:nF { #2 } @@ -2993,14 +2993,14 @@ /EF <</F~#2 /UF~#2>> } } - \tl_gset:Nx\g__pdffile_tmpa_tl{\pdf_object_ref_last:} + \tl_gset:Ne\g__pdffile_tmpa_tl{\pdf_object_ref_last:} \group_end: \tl_set_eq:NN#3\g__pdffile_tmpa_tl } } \cs_set_eq:NN \pdffile_filespec:nnn \__pdffile_filespec_write:nnn -\cs_generate_variant:Nn \pdffile_filespec:nnn {nnx} +\cs_generate_variant:Nn \pdffile_filespec:nnn {nne,nnx} \cs_new_protected:Npn \pdffile_embed_file:nnn #1 #2 #3 { % if #1 empty => only filespec % if #2 empty => = #1 @@ -3022,14 +3022,14 @@ \__pdffile_fstream_write:VN \l_pdffile_source_name_str \l__pdffile_automimetype_tl - \tl_set:Nx \l__pdffile_embed_ref_tl { \pdf_object_ref_last: } + \tl_set:Ne \l__pdffile_embed_ref_tl { \pdf_object_ref_last: } } { \msg_error:nnn { pdffile }{ file-not-found }{ #1 } } } - \prop_gput:Nnx + \prop_gput:Nne \g_pdffile_embed_prop { #3 } { @@ -3044,7 +3044,7 @@ \tl_if_blank:nTF { #2 } { \pdf_object_new:n { #3 } - \exp_args:Nnnx + \exp_args:Nnne \__pdffile_filespec_write:nnn %#1 dict, #2 target file name, #3 object ref { #3 } @@ -3053,7 +3053,7 @@ } { \pdf_object_new:n { #3 } - \exp_args:Nnnx + \exp_args:Nnne \__pdffile_filespec_write:nnn %#1 dict, #2 target file name, #3 object ref { #3 } @@ -3071,7 +3071,7 @@ \msg_error:nnn { pdffile }{ object-exists } { #3 } } { - \prop_gput:Nnx + \prop_gput:Nne \g_pdffile_embed_prop { #3 } {{stream}{}{\tl_if_blank:nTF {#2}{stream.txt}{\exp_not:n{#2}}}} @@ -3081,9 +3081,9 @@ \__pdffile_stream_write:nN { #1 } \l__pdffile_automimetype_tl - \tl_set:Nx \l__pdffile_embed_ref_tl { \pdf_object_ref_last: } + \tl_set:Ne \l__pdffile_embed_ref_tl { \pdf_object_ref_last: } \pdf_object_new:n { #3 } - \exp_args:Nnxx + \exp_args:Nnee \__pdffile_filespec_write:nnn %#1 dict, #2 target file name, #3 object ref { #3 } @@ -3100,14 +3100,14 @@ \__pdffile_stream_write:nN { #1 } \l__pdffile_automimetype_tl - \tl_set:Nx \l__pdffile_embed_ref_tl { \pdf_object_ref_last: } - \exp_args:Nxx + \tl_set:Ne \l__pdffile_embed_ref_tl { \pdf_object_ref_last: } + \exp_args:Nee \__pdffile_filespec_write:nnN %#1 target file name, #2 object ref of stream, #3 object ref of filespec { \tl_if_blank:nTF {#2}{stream.txt}{\exp_not:n{#2}} } {\l__pdffile_embed_ref_tl} #3 - \prop_gput:Nxx + \prop_gput:Nee \g_pdffile_embed_prop { #3 } {{stream}{}{\tl_if_blank:nTF {#2}{stream.txt}{\exp_not:n{#2}}}} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty index 8ef18663978..9e1470f9ccf 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-testphase.dtx -\ProvidesExplPackage{pdfmanagement-testphase}{2023-10-09}{0.96a} +\ProvidesExplPackage{pdfmanagement-testphase}{2023-11-05}{0.96b} {LaTeX PDF management testphase bundle} \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020-10-01}{}{ diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty index 29074b3de42..597c4669a2b 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty @@ -1,6 +1,6 @@ %% LaTeX2e file `xcolor-patches-tmp-ltx.sty' %% -\ProvidesPackage{xcolor-patches-tmp-ltx}[2023-10-09 v0.96a patch xcolor for l3color] +\ProvidesPackage{xcolor-patches-tmp-ltx}[2023-11-05 v0.96b patch xcolor for l3color] \@ifundefined{color_set:nn}{\RequirePackage{l3color}}{} \ExplSyntaxOn |