[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: preliminary support for 2a and 3a standard (36486db)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Aug 2 23:49:14 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/36486db76bebc69b2d3b40abda7903ff2d87d211

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

commit 36486db76bebc69b2d3b40abda7903ff2d87d211
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Aug 2 23:49:14 2021 +0200

    preliminary support for 2a and 3a standard


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

36486db76bebc69b2d3b40abda7903ff2d87d211
 l3pdfmeta.dtx | 30 +++++++++++++++++++++++++++++-
 ltdocinit.dtx |  7 ++++---
 2 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 3ca574f..2410abd 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -223,6 +223,8 @@
 % \item[|unicode|] that is set in the U-standards, A-2u and A-3u and means that
 % every text should be in unicode. This is not something that can be enforced or
 % tested from TeX, but in a current LaTeX normally ToUnicode are set for all fonts.
+% \item[|tagged|] that is set in A-2a and A-3a and means that the pdf must be
+% tagged. This is currently neither tested not enforced somewhere.
 % \end{description}
 %
 % \subsubsection{Tests with values and special handlers}
@@ -515,8 +517,10 @@
 %  be found in info/pdfstandard.tex.
 %  \begin{variable}{
 %   \g_@@_standard_pdf/A-1B_prop ,
+%   \g_@@_standard_pdf/A-2A_prop ,
 %   \g_@@_standard_pdf/A-2B_prop ,
 %   \g_@@_standard_pdf/A-2U_prop ,
+%   \g_@@_standard_pdf/A-3A_prop ,
 %   \g_@@_standard_pdf/A-3B_prop ,
 %   \g_@@_standard_pdf/A-3U_prop ,
 %   }
@@ -606,6 +610,19 @@
 \prop_gput:cnn
   { g_@@_standard_pdf/A-2U_prop }{unicode}{}
 
+%A-2a ==============
+\prop_new:c { g_@@_standard_pdf/A-2A_prop }
+\prop_gset_eq:cc
+  { g_@@_standard_pdf/A-2A_prop }
+  { g_@@_standard_pdf/A-2B_prop }
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-2A_prop }{name}{pdf/A-2A}
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-2A_prop }{conformance}{A}
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-2A_prop }{tagged}{}
+
+
 %A-3b ==============
 \prop_new:c { g_@@_standard_pdf/A-3B_prop }
 \prop_gset_eq:cc
@@ -621,7 +638,6 @@
 \prop_gremove:cn
   { g_@@_standard_pdf/A-3B_prop }
   { embed_content}
-
 %A-3u ==============
 \prop_new:c { g_@@_standard_pdf/A-3U_prop }
 \prop_gset_eq:cc
@@ -633,6 +649,18 @@
   { g_@@_standard_pdf/A-3U_prop }{conformance}{U}
 \prop_gput:cnn
   { g_@@_standard_pdf/A-3U_prop }{unicode}{}
+
+%A-3a ==============
+\prop_new:c { g_@@_standard_pdf/A-3A_prop }
+\prop_gset_eq:cc
+  { g_@@_standard_pdf/A-3A_prop }
+  { g_@@_standard_pdf/A-3B_prop }
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-3A_prop }{name}{pdf/A-3A}
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-3A_prop }{conformance}{A}
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-3A_prop }{tagged}{}
 %    \end{macrocode}
 % \end{variable}
 %
diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index 4e7eecc..48d96e5 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -103,12 +103,13 @@
 %    \item[\texttt{lang}] to set the Lang entry in the Catalog.
 %    E.g. \texttt{lang=de-DE}. The initial value is |en-US|
 %    \item[\texttt{pdfstandard}] Choice key to set the pdf standard.
-%      Currently |A-1b|, |A-2b|, |A-2u|, |A-3b| and |A-3u| are accepted as
+%      Currently |A-1b|, |A-2a|, |A-2b|, |A-2u|, |A-3a|, |A-3b| and |A-3u| are accepted as
 %      values. The casing is irrelevant, |a-1b| works too.
 %      The underlying code to ensure the requirements (as far as they
 %      can be ensured) is incomplete, but a color profile is included and the
 %      /OutputIntent is set. The |u| variants for example do not force unicode,
-%      but they will pass the information to hyperref and hyperxmp.
+%      but they will pass the information to hyperref and hyperxmp. The |a| variants
+%      do \emph{not} enforce (or even test) a tagged pdf yet. 
 %      More information can be found in the documentation
 %      of \pkg{l3pdfmeta}.
 %    \item[\texttt{colorprofiles}] This allows to load icc-colorprofiles. Details
@@ -355,7 +356,7 @@
         \keys_set:nn {document / metadata} {_pdfstandard=\str_uppercase:n{#1}}
       }
     ,_pdfstandard .choices:nn =
-      {A-1B,A-2B,A-2U,A-3B,A-3U}
+      {A-1B,A-2A,A-2B,A-2U,A-3A,A-3B,A-3U}
       {
         \prop_if_exist:cT { g__pdfmeta_standard_pdf/#1_prop }
           {





More information about the latex3-commits mailing list.