[latex3-commits] [git/LaTeX3-latex3-pdfresources] pdfdictchange: move trans dictionary to hyperref driver (cb8eafb)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Dec 4 18:56:33 CET 2020
Repository : https://github.com/latex3/pdfresources
On branch : pdfdictchange
Link : https://github.com/latex3/pdfresources/commit/cb8eafb748e0fcc255d3058bedb176d7f79e5120
>---------------------------------------------------------------
commit cb8eafb748e0fcc255d3058bedb176d7f79e5120
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Dec 4 18:56:33 2020 +0100
move trans dictionary to hyperref driver
>---------------------------------------------------------------
cb8eafb748e0fcc255d3058bedb176d7f79e5120
hgeneric-experimental.def | 21 ++++++++++++---------
l3pdfdict.dtx | 15 +--------------
2 files changed, 13 insertions(+), 23 deletions(-)
diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index 40831d1..eac8e28 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -304,6 +304,9 @@
\ *\Z
}
+% module dictionary for trans:
+\pdfdict_new:n {l__hyp_page/Trans}
+
% this need sorting out later. pdf standards should be handled outside the driver.
% pdfa forces the flag /F 4 in some places.
\AtBeginDocument
@@ -1676,7 +1679,7 @@
\keys_set:nn { hyp / trans }{style=R,#1}
\pdf_object_now:nx { dict }
{
- \pdfdict_use:n {l_page/Trans}
+ \pdfdict_use:n {l__hyp_page/Trans}
}
\pdfmanagement_add:nnx {Page}{Trans}{\pdf_object_last:}
\group_end:
@@ -1687,7 +1690,7 @@
{
,style .choices:nn =
{Split,Blinds,Box,Wipe,Dissolve,Glitter,R,Fly,Push,Cover,Uncover,Fade}
- { \pdfdict_put:nnn {l_page/Trans}{ S }{/#1} }
+ { \pdfdict_put:nnn {l__hyp_page/Trans}{ S }{/#1} }
,style / unknown .code:n =
{
\msg_warning:nnxxx { hyp } { unknown-choice }
@@ -1697,16 +1700,16 @@
}
,duration .code:n =
{
- \pdfdict_put:nnn {l_page/Trans}{ D }{#1}
+ \pdfdict_put:nnn {l__hyp_page/Trans}{ D }{#1}
}
,direction .choices:nn =
{H,V}
- { \pdfdict_put:nnn {l_page/Trans}{ S }{/#1} }
+ { \pdfdict_put:nnn {l__hyp_page/Trans}{ S }{/#1} }
,direction .choices:nn =
{0,90,180,270,315}
- { \pdfdict_put:nnn {l_page/Trans}{ DI }{ #1 } }
+ { \pdfdict_put:nnn {l__hyp_page/Trans}{ DI }{ #1 } }
,direction / None .code:n =
- { \pdfdict_put:nnn {l_page/Trans}{ DI }{ /None } }
+ { \pdfdict_put:nnn {l__hyp_page/Trans}{ DI }{ /None } }
,direction / unknown .code:n =
{
\msg_warning:nnxxx { hyp } { unknown-choice }
@@ -1725,7 +1728,7 @@
}
,motion .choices:nn =
{I,O}
- { \pdfdict_put:nnn {l_page/Trans}{ M }{/#1} }
+ { \pdfdict_put:nnn {l__hyp_page/Trans}{ M }{/#1} }
,motion / unknown .code:n =
{
\msg_warning:nnxxx { hyp } { unknown-choice }
@@ -1734,9 +1737,9 @@
{ \exp_not:n {#1} }
}
,scale .code:n =
- { \pdfdict_put:nnn { l_page/Trans }{ SS }{ #1 } }
+ { \pdfdict_put:nnn { l__hyp_page/Trans }{ SS }{ #1 } }
,opaque .choices:nn = {true,false}
- { \pdfdict_put:nnn { l_page/Trans }{ B } { #1} }
+ { \pdfdict_put:nnn { l__hyp_page/Trans }{ B } { #1} }
,opaque / unknown .code:n =
{
\msg_warning:nnxxx { hyp } { unknown-choice }
diff --git a/l3pdfdict.dtx b/l3pdfdict.dtx
index 9ebb6eb..cde322c 100644
--- a/l3pdfdict.dtx
+++ b/l3pdfdict.dtx
@@ -212,6 +212,7 @@
% \begin{NOTE}{UF}
% Check which (local) dictionaries should be predefined.
% Check also if the reset idea makes sense. (Removed for now)
+% Move page/Trans to hyperref driver. Belongs imho there
% \end{NOTE}
%
% \medskip
@@ -223,9 +224,6 @@
% l_annot/Link/GotoR &F (Flag)& used in GoToR links (file references) \tabularnewline
% l_annot/Link/Named &F (Flag)& used in Named actions (menu calls) \tabularnewline
% l_annot/Link/Launch &F (Flag)& used in Launch links (application calls) \tabularnewline
-% l_page/Trans& /Type /Trans & for transitions dictionaries. Other keys:
-% /S (name), /D integer, /Dm (name),
-% /M (name), /SS number /B boolean.
% \end{tabular}
% \end{documentation}
@@ -616,17 +614,6 @@
% \end{macro}
%
% \subsection{Predeclared dictionaries}
-% \begin{variable}{page/Trans}
-% \begin{macrocode}
-%<*package>
-\pdfdict_new:n {l_page/Trans}
-\pdfdict_put:nnn {l_page/Trans}{Type}{/Trans}
-% keys: /S (name), /D integer, /Dm (name), /M (name), /SS number /B boolean.
-% decribes transition *to* the page.
-%</package>
-% \end{macrocode}
-% \end{variable}
-
% \end{implementation}
%
% \PrintIndex
More information about the latex3-commits
mailing list.