summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx')
-rw-r--r--macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx34
1 files changed, 28 insertions, 6 deletions
diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx
index 720669e237..63697bf0b3 100644
--- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx
+++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx
@@ -2,7 +2,7 @@
%
%% File: l3pdfmeta.dtx
%
-% Copyright (C) 2018-2023 The LaTeX Project
+% Copyright (C) 2018-2024 The LaTeX Project
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -49,7 +49,7 @@
% }^^A
% }
%
-% \date{Version 0.96d, released 2023-12-09}
+% \date{Version 0.96e, released 2024-02-22}
%
% \maketitle
% \begin{documentation}
@@ -618,7 +618,7 @@
% \begin{macrocode}
%<@@=pdfmeta>
%<*header>
-\ProvidesExplPackage{l3pdfmeta}{2023-12-09}{0.96d}
+\ProvidesExplPackage{l3pdfmeta}{2024-02-22}{0.96e}
{PDF-Standards---LaTeX PDF management testphase bundle}
%</header>
% \end{macrocode}
@@ -1271,8 +1271,17 @@
{
\AddToDocumentProperties [document]{pdfstandard-UA}{{1}{}}
},
+% \end{macrocode}
+% currently it is not possible to merge requirements - these need some thoughts as
+% every standard has some common keys like the name or the yes.
+% We therefore add some requirements manually.
+% \begin{macrocode}
_pdfstandard / UA-2 .code:n =
- {\AddToDocumentProperties [document]{pdfstandard-UA}{{2}{2023}}},
+ {
+ \AddToDocumentProperties [document]{pdfstandard-UA}{{2}{2024}}
+ \AddToHook{begindocument/before}
+ {\prop_gput:Nnn \g__pdfmeta_standard_prop {Trailer_no_Info}{}}
+ },
xmp .bool_gset:N = \g_@@_xmp_bool
}
% \end{macrocode}
@@ -1716,8 +1725,21 @@
\clist_map_inline:nn {#4}
{
\@@_xmp_lang_get:nNN {##1}\l_@@_tmpa_tl\l_@@_tmpb_tl
- \@@_xmp_add_packet_line_attr:nneV
- {rdf}{li}{xml:lang="\l_@@_tmpa_tl" }\l_@@_tmpb_tl
+% \end{macrocode}
+% change 2024-02-22. There should be if possible a x-default
+% entry as some viewers need that. So if the language is equal to the
+% main language we use that. This assumes that the user hasn't marked
+% every entry as some other language!
+% \begin{macrocode}
+ \tl_if_eq:eeTF{\l_@@_tmpa_tl}{\l_@@_xmp_metalang_tl}
+ {
+ \@@_xmp_add_packet_line_attr:nneV
+ {rdf}{li}{xml:lang="x-default" }\l_@@_tmpb_tl
+ }
+ {
+ \@@_xmp_add_packet_line_attr:nneV
+ {rdf}{li}{xml:lang="\l_@@_tmpa_tl" }\l_@@_tmpb_tl
+ }
}
\@@_xmp_add_packet_close:nn{rdf}{#3}
\@@_xmp_add_packet_close:nn {#1}{#2}