[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: renamed link hooks (a7de86e)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Mar 30 16:58:48 CEST 2020
Repository : https://github.com/latex3/pdfresources
On branch : master
Link : https://github.com/latex3/pdfresources/commit/a7de86e5062391349706b4e2ea5b6923ba20bca8
>---------------------------------------------------------------
commit a7de86e5062391349706b4e2ea5b6923ba20bca8
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Mar 30 16:58:48 2020 +0200
renamed link hooks
>---------------------------------------------------------------
a7de86e5062391349706b4e2ea5b6923ba20bca8
hgeneric-experimental.def | 24 ++++++++++++------------
pdfresources.dtx | 36 ++++++++++++++++++------------------
testfiles-dvips/linkhook.pvt | 10 +++++-----
testfiles/linkhook.pvt | 10 +++++-----
4 files changed, 40 insertions(+), 40 deletions(-)
diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index ee03854..b89527c 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -172,25 +172,25 @@
{
\hook_put:nnnn
{ pdf }
- { link_begin_URI_attr }
+ { link_URI_attr }
{ F }
{ 4 }
\hook_put:nnnn
{ pdf }
- { link_begin_GoTo_attr }
+ { link_GoTo_attr }
{ F }
{ 4 }
\hook_put:nnnn
{ pdf }
- { link_begin_GoToR_attr }
+ { link_GoToR_attr }
{ F }
{ 4 }
\hook_put:nnnn
{ pdf }
- { link_begin_Named_attr }
+ { link_Named_attr }
{ F }
{ 4 }
}
@@ -208,23 +208,23 @@
{
\tl_if_empty:NTF \@pdfborder
{
- \hook_remove:nnn { pdf } { link_begin_##1_attr } { Border }
+ \hook_remove:nnn { pdf } { link_##1_attr } { Border }
}
{
\hook_put:nnnn
{ pdf }
- { link_begin_##1_attr }
+ { link_##1_attr }
{ Border }
{ [\@pdfborder] }
}
\tl_if_empty:NTF \@pdfborderstyle
{
- \hook_remove:nnn { pdf }{ link_begin_##1_attr } { BS }
+ \hook_remove:nnn { pdf }{ link_##1_attr } { BS }
}
{
\hook_put:nnnn
{ pdf }
- { link_begin_##1_attr }
+ { link_##1_attr }
{ BS }
{ <<\@pdfborderstyle>> }
}
@@ -238,12 +238,12 @@
{
\tl_if_empty:NTF \@pdfhighlight
{
- \hook_remove:nnn { pdf } { link_begin_##1_attr }{ H }
+ \hook_remove:nnn { pdf } { link_##1_attr }{ H }
}
{
\hook_put:nnnn
{ pdf }
- { link_begin_##1_attr }
+ { link_##1_attr }
{ H }
{ \@pdfhighlight }
}
@@ -259,12 +259,12 @@
{
\hook_put:nnnn
{ pdf }
- { link_begin_##1_attr }
+ { link_##1_attr }
{ C }
{ [\tl_use:c {@\prop_item:Nn\c__hyp_map_linktypes_prop{##1}bordercolor}] }
}
{
- \hook_remove:nnn { pdf } { link_begin_##1_attr } { C }
+ \hook_remove:nnn { pdf } { link_##1_attr } { C }
}
}
}
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 1d78f0e..52f9257 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -2709,9 +2709,9 @@
\seq_map_inline:Nn \c_pdf_link_types_seq
{
- \prop_new:c { l_@@_hook_link_begin_#1_attr_prop }
- \seq_new:c { l_@@_hook_link_begin_#1_seq }
- \seq_new:c { l_@@_hook_link_end_#1_seq }
+ \prop_new:c { l_@@_hook_link_#1_attr_prop }
+ \seq_new:c { l_@@_hook_link_#1_begin_seq }
+ \seq_new:c { l_@@_hook_link_#1_end_seq }
}
% \end{macrocode}
@@ -2747,18 +2747,18 @@
\cs_new_protected:Nn \pdf_link_user:nnn %#1 type (URI, GoTo etc),
%#2 action spec, #3 link text
{
- \seq_if_exist:cT { l_@@_hook_link_begin_#1_seq }
+ \seq_if_exist:cT { l_@@_hook_link_#1_begin_seq }
{
- \seq_use:cn { l_@@_hook_link_begin_#1_seq }{}
+ \seq_use:cn { l_@@_hook_link_#1_begin_seq }{}
}
\mode_leave_vertical:
\exp_args:Nxx %xetex needs expansion
\@@_backend_link_begin_user:nnw
{
- \prop_if_exist:cT { l_@@_hook_link_begin_#1_attr_prop }
+ \prop_if_exist:cT { l_@@_hook_link_#1_attr_prop }
{
\prop_map_function:cN
- { l_@@_hook_link_begin_#1_attr_prop }
+ { l_@@_hook_link_#1_attr_prop }
\@@_dict_item:nn
}
}
@@ -2767,9 +2767,9 @@
}
#3
\@@_backend_link_end:
- \seq_if_exist:cT { l_@@_hook_link_end_#1_seq }
+ \seq_if_exist:cT { l_@@_hook_link_#1_end_seq }
{
- \seq_use:cn { l_@@_hook_link_end_#1_seq }{}
+ \seq_use:cn { l_@@_hook_link_#1_end_seq }{}
}
}
% \end{macrocode}
@@ -2806,17 +2806,17 @@
% \begin{macrocode}
\cs_new_protected:Npn \pdf_link_begin_user:nnw #1 #2 %#1 type, #2 action spec
{
- \seq_if_exist:cT { l_@@_hook_link_begin_#1_seq }
+ \seq_if_exist:cT { l_@@_hook_link_#1_begin_seq }
{
- \seq_use:cn { l_@@_hook_link_begin_#1_seq }{}
+ \seq_use:cn { l_@@_hook_link_#1_begin_seq }{}
}
\exp_args:Nxx %xetex needs expansion
\@@_backend_link_begin_user:nnw
{
- \prop_if_exist:cT { l_@@_hook_link_begin_#1_attr_prop }
+ \prop_if_exist:cT { l_@@_hook_link_#1_attr_prop }
{
\prop_map_function:cN
- { l_@@_hook_link_begin_#1_attr_prop }
+ { l_@@_hook_link_#1_attr_prop }
\@@_dict_item:nn
}
}
@@ -2826,9 +2826,9 @@
\cs_new_protected:Nn \pdf_link_end:n %#1 type, e.g. url
{
\@@_backend_link_end:
- \seq_if_exist:cT {l_@@_hook_link_end_#1_seq}
+ \seq_if_exist:cT {l_@@_hook_link_#1_end_seq}
{
- \seq_use:cn { l_@@_hook_link_end_#1_seq }{}
+ \seq_use:cn { l_@@_hook_link_#1_end_seq }{}
}
}
% \end{macrocode}
@@ -2843,12 +2843,12 @@
% \begin{macrocode}
\cs_new_protected:Npn \pdf_link_goto_begin:nw #1 %#1 destination
{
- \seq_use:cn { l_@@_hook_link_begin_GoTo_seq }{}
+ \seq_use:cn { l_@@_hook_link_GoTo_begin_seq }{}
\exp_args:Nxx %xetex needs expansion
\@@_backend_link_begin_goto:nnw
{
\prop_map_function:cN
- { l_@@_hook_link_begin_GoTo_attr_prop }
+ { l_@@_hook_link_GoTo_attr_prop }
\@@_dict_item:nn
}
{ #1 }
@@ -2857,7 +2857,7 @@
\cs_new_protected:Nn \pdf_link_goto_end:
{
\@@_backend_link_end:
- \seq_use:cn { l_@@_hook_link_end_GoTo_seq }{}
+ \seq_use:cn { l_@@_hook_link_GoTo_end_seq }{}
}
% \end{macrocode}
diff --git a/testfiles-dvips/linkhook.pvt b/testfiles-dvips/linkhook.pvt
index e271238..506f109 100644
--- a/testfiles-dvips/linkhook.pvt
+++ b/testfiles-dvips/linkhook.pvt
@@ -25,31 +25,31 @@
\ExplSyntaxOn\makeatletter
\hook_put_left:nnn
{ pdf }
- { link_begin_URI }
+ { link_URI_begin }
{
begin~url
}
\hook_put:nnnn
{ pdf }
- { link_begin_URI_attr }
+ { link_URI_attr }
{ StructParent }
{ 123 }
\hook_put_right:nnn
{ pdf }
- { link_end_URI }
+ { link_URI_end }
{
end~url
}
\hook_put:nnnn
{ pdf }
- { link_begin_URI_attr }
+ { link_URI_attr }
{ Contents }
{ (url) }
\hook_put:nnnn
{ pdf }
- { link_begin_GoTo_attr }
+ { link_GoTo_attr }
{ Contents }
{ (ref) }
diff --git a/testfiles/linkhook.pvt b/testfiles/linkhook.pvt
index f0c7ecb..1f48361 100644
--- a/testfiles/linkhook.pvt
+++ b/testfiles/linkhook.pvt
@@ -17,31 +17,31 @@
\ExplSyntaxOn\makeatletter
\hook_put_left:nnn
{ pdf }
- { link_begin_URI }
+ { link_URI_begin }
{
begin~url
}
\hook_put:nnnn
{ pdf }
- { link_begin_URI_attr }
+ { link_URI_attr }
{ StructParent }
{ 123 }
\hook_put_right:nnn
{ pdf }
- { link_end_URI }
+ { link_URI_end }
{
end~url
}
\hook_put:nnnn
{ pdf }
- { link_begin_URI_attr }
+ { link_URI_attr }
{ Contents }
{ (url) }
\hook_put:nnnn
{ pdf }
- { link_begin_GoTo_attr }
+ { link_GoTo_attr }
{ Contents }
{ (ref) }
More information about the latex3-commits
mailing list.