[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: moving to module files (8333495)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jul 7 19:15:32 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/8333495de8f463f662790bd8a03d37c3dfcb12e7

>---------------------------------------------------------------

commit 8333495de8f463f662790bd8a03d37c3dfcb12e7
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jun 11 01:04:24 2020 +0200

    moving to module files


>---------------------------------------------------------------

8333495de8f463f662790bd8a03d37c3dfcb12e7
 l3pdfdict.dtx    | 70 ++++++++++++++++++++++++++++++++++++++++++++++
 l3pdfgdict.dtx   | 28 ++++++++++++++++++-
 pdfresources.dtx | 85 --------------------------------------------------------
 3 files changed, 97 insertions(+), 86 deletions(-)

diff --git a/l3pdfdict.dtx b/l3pdfdict.dtx
index e04fff0..0c6f659 100644
--- a/l3pdfdict.dtx
+++ b/l3pdfdict.dtx
@@ -129,6 +129,47 @@
 %   \end{syntax}
 %   This shows the content of \Arg{dictionary} in the log and on the terminal.
 %\end{function}
+%\begin{function}[EXP, pTF,added = 2020-04-08]
+%   {\pdfdict_if_exist:n }
+%   \begin{syntax}
+%     \cs{pdfdict_if_exist:n}  \Arg{dictionary}
+%   \end{syntax}
+%   This tests if the dictionary exists.
+%\end{function}
+% \begin{function}[EXP, pTF,added = 2020-04-08]
+%   {\pdfdict_if_empty:n }
+%   \begin{syntax}
+%     \cs{pdfdict_if_empty:n}  \Arg{dictionary}
+%   \end{syntax}
+%   This tests if the dictionary is empty. The result is false if the
+%   dictionary doesn't exist.
+%\end{function}
+% \begin{function}[added = 2020-04-07]
+%   {\pdfdict_get:nn }
+%   \begin{syntax}
+%     \cs{pdfdict_get:nnN}  \Arg{dictionary} \Arg{name} \meta{tl var}
+%   \end{syntax}
+%   Recovers the \meta{value} stored by \cs{pdfdict_put:nnn}
+%   for \meta{name} and places this in the \meta{token list
+%   variable}. If \meta{name} is not found
+%   then the \meta{token list variable} is set
+%   to the special marker \cs{q_no_value}. The \meta{token list
+%   variable} is set within the current \TeX{} group.
+%\end{function}
+% \begin{function}[added = 2020-04-07]
+%   {
+%     \pdfdict_remove:nn,
+%   }
+%   \begin{syntax}
+%     \cs{pdfdict_remove:nn} \Arg{dictionary} \Arg{name}\\
+%   \end{syntax}
+%   Removes  |/|\meta{name} and its associated \meta{value} from
+%   the \Arg{dictionary}
+%   The removal is local.
+%   If \meta{name} is not found no change occurs,
+%   \emph{i.e}~there is no need to test for the existence of a name before
+%   trying to remove it.
+% \end{function}
 % \end{documentation}
 %
 % \begin{implementation}
@@ -357,6 +398,35 @@
   }
 %    \end{macrocode}
 %    \begin{macrocode}
+\prg_new_eq_conditional:NNn \pdfdict_if_exist:n \@@_if_exist:n
+  { TF , T , F , p }
+
+%    \end{macrocode}
+%    \begin{macrocode}
+\prg_new_eq_conditional:NNn \pdfdict_if_empty:n \@@_if_empty:n
+  { TF , T , F , p }
+%    \end{macrocode}
+%    \begin{macrocode}
+
+\cs_new_protected:Npn \pdfdict_get:nnN #1 #2 #3
+  {
+    \@@_get:nnN { #1 }{ #2 } #3
+  }
+
+%    \end{macrocode}
+%    \begin{macrocode}
+\cs_new_protected:Npn \pdfdict_remove:nn #1 #2
+  {
+    \@@_if_exist:nTF { #1 }
+      {
+        \prop_remove:cn { \@@_name:n { #1 } }{ #2 }
+      }
+      {
+        \msg_error:nnnn{pdfdict}{wrong-or-unknown-dict}{#1}{local}
+      }
+  }
+%    \end{macrocode}
+%    \begin{macrocode}
 %</package>
 %    \end{macrocode}
 %
diff --git a/l3pdfgdict.dtx b/l3pdfgdict.dtx
index 696d449..7981bfb 100644
--- a/l3pdfgdict.dtx
+++ b/l3pdfgdict.dtx
@@ -137,6 +137,21 @@
 %   as these are filled only at the end of the document. It is not reliable for
 %   page resources as these are filled a shipout.
 %\end{function}
+% \begin{function}[added = 2020-04-07]
+%   {
+%     \pdfgdict_gremove:nn,
+%   }
+%   \begin{syntax}
+%     \cs{pdfgdict_gremove:nn} \Arg{global dictionary} \Arg{name}
+%   \end{syntax}
+%   Removes  |/|\meta{name} and its associated \meta{value} from the \Arg{dictionary}
+%   The removal is global.
+%   If \meta{name} is not found no change occurs,
+%   \emph{i.e}~there is no need to test for the existence of a name before
+%   trying to remove it.
+%   Values from the special Catalog entries with arrays as values can not be
+%   removed.
+% \end{function}
 % \end{documentation}
 %
 % \begin{implementation}
@@ -449,7 +464,18 @@
     \@@_show:Nn \msg_show:nnxxxx {#1}
   }
 %    \end{macrocode}
-
+%    \begin{macrocode}
+\cs_new_protected:Npn \pdfgdict_gremove:nn #1 #2
+  {
+    \@@_if_exist:nTF { #1 }
+      {
+        \@@_handler_gremove:nn { #1 }{ #2 }
+      }
+      {
+        \msg_error:nnnn{pdfgdict}{wrong-or-unknown-dict}{#1}{core}
+      }
+  }
+%    \end{macrocode}
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}
diff --git a/pdfresources.dtx b/pdfresources.dtx
index b384baa..1c0be5c 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -371,91 +371,6 @@
 
 %    \end{macrocode}
 
-% \begin{function}[EXP, pTF,added = 2020-04-08]
-%   {\pdfdict_if_exist:n }
-%   \begin{syntax}
-%     \cs{pdfdict_if_exist:n}  \Arg{dictionary}
-%   \end{syntax}
-%   This tests if the dictionary exists.
-%\end{function}
-%    \begin{macrocode}
-\prg_new_eq_conditional:NNn \pdfdict_if_exist:n \@@_dict_if_exist:n
-  { TF , T , F , p }
-
-%    \end{macrocode}
-% \begin{function}[EXP, pTF,added = 2020-04-08]
-%   {\pdfdict_if_empty:n }
-%   \begin{syntax}
-%     \cs{pdfdict_if_empty:n}  \Arg{dictionary}
-%   \end{syntax}
-%   This tests if the dictionary is empty. The result is false if the
-%   dictionary doesn't exist.
-%\end{function}
-%    \begin{macrocode}
-\prg_new_eq_conditional:NNn \pdfdict_if_empty:n \@@_dict_if_empty:n
-  { TF , T , F , p }
-%    \end{macrocode}
-%
-% \begin{function}[added = 2020-04-07]
-%   {\pdfdict_get:nn }
-%   \begin{syntax}
-%     \cs{pdfdict_get:nnN}  \Arg{dictionary} \Arg{name} \meta{tl var}
-%   \end{syntax}
-%   Recovers the \meta{value} stored by \cs{pdfdict_put:nnn} or \cs{pdfdict_gput:nnn}
-%   for \meta{name} and places this in the \meta{token list
-%   variable}. If \meta{name} is not found
-%   then the \meta{token list variable} is set
-%   to the special marker \cs{q_no_value}. The \meta{token list
-%   variable} is set within the current \TeX{} group.
-%\end{function}
-%    \begin{macrocode}
-
-\cs_new_protected:Npn \pdfdict_get:nnN #1 #2 #3
-  {
-    \@@_dict_get:nnN {#1}{ #2 } #3
-  }
-
-%    \end{macrocode}
-% \begin{function}[added = 2020-04-07]
-%   {
-%     \pdfdict_remove:nn,
-%   }
-%   \begin{syntax}
-%     \cs{pdfdict_remove:nn} \Arg{local dictionary} \Arg{name}\\
-%     \cs{pdfdict_gremove:nn} \Arg{global dictionary} \Arg{name}
-%   \end{syntax}
-%   Removes  |/|\meta{name} and its associated \meta{value} from the \Arg{dictionary}
-%   The removal is local for local dictionaries, and global
-%   for global dictionaries.
-%   If \meta{name} is not found no change occurs,
-%   \emph{i.e}~there is no need to test for the existence of a name before
-%   trying to remove it.
-%   Values from the special Catalog entries with arrays as values can not be
-%   removed.
-% \end{function}
-%    \begin{macrocode}
-\cs_new_protected:Npn \pdfdict_remove:nn #1 #2
-  {
-    \@@_dict_if_local:nTF { #1 }
-      {
-        \@@_dict_handler_remove:nn { #1 }{ #2 }
-      }
-      {
-        \msg_error:nnnn{pdfdict}{wrong-or-unknown-dict}{#1}{local}
-      }
-  }
-
-\cs_new_protected:Npn \pdfdict_gremove:nn #1 #2
-  {
-    \@@_dict_if_global:nTF { #1 }
-      {
-        \@@_dict_handler_remove:nn { #1 }{ #2 }
-      }
-      {
-        \msg_error:nnnn{pdfdict}{wrong-or-unknown-dict}{#1}{global}
-      }
-  }
-%    \end{macrocode}
 % \subsection{Convenience local dictionaries}
 % A number of predefined small, local dictionaries, that are perhaps needed.
 % \subsubsection{page/Trans}





More information about the latex3-commits mailing list.