diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def | 248 |
1 files changed, 126 insertions, 122 deletions
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 |