[latex3-commits] [git/LaTeX3-latex3-pdfresources] testxmp: avoid empty bags (9e3e164)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Sep 9 16:19:30 CEST 2022
Repository : https://github.com/latex3/pdfresources
On branch : testxmp
Link : https://github.com/latex3/pdfresources/commit/9e3e1649e41562e41fdfe818d8cc90ba730fd1e6
>---------------------------------------------------------------
commit 9e3e1649e41562e41fdfe818d8cc90ba730fd1e6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Sep 9 16:19:30 2022 +0200
avoid empty bags
>---------------------------------------------------------------
9e3e1649e41562e41fdfe818d8cc90ba730fd1e6
l3pdfmeta.dtx | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 77e6f1e..f42964f 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -1618,7 +1618,7 @@
% The rdf namespaces
% \begin{macrocode}
\@@_xmp_add_packet_open_attr:nne
- {rdf}{Description}{rdf:about="" \g_@@_xmp_xmlns_tl}
+ {rdf}{Description}{rdf:about=""~xml:lang="\l_@@_xmp_metalang_tl" \g_@@_xmp_xmlns_tl}
% \end{macrocode}
% The extensions
% \begin{macrocode}
@@ -2223,7 +2223,7 @@
\int_compare:nNnT {0\pdfmeta_standard_item:n{level}}={1}
{ \pdfmanagement_remove:nn{Info}{Keywords} }
% \end{macrocode}
-% pdftype/dc:type, commas must be protected so we test first
+% pdftype/dc:type
% \begin{macrocode}
\tl_if_blank:eTF { \GetDocumentProperties{hyperref/pdftype} }
{
@@ -2234,20 +2234,16 @@
{ { \GetDocumentProperties{hyperref/pdftype} }}
}
% \end{macrocode}
-% pdfpublisher/dc:publisher, commas are protected
+% pdfpublisher/dc:publisher
% \begin{macrocode}
- \@@_xmp_add_packet_list:nnne {dc}{publisher}{Bag}
- {{ \GetDocumentProperties{hyperref/pdfpublisher} }}
+ \@@_xmp_add_packet_list:nnne {dc}{publisher}{Bag}
+ { \GetDocumentProperties{hyperref/pdfpublisher} }
% \end{macrocode}
% pdfsubject/dc:description
% \begin{macrocode}
- \@@_xmp_add_packet_open:nn {dc}{description}
- \@@_xmp_add_packet_open:nn {rdf}{Alt}
- \@@_xmp_add_packet_line_attr:nnee
- {rdf}{li}{xml:lang="\l_@@_xmp_metalang_tl"}
- {\GetDocumentProperties{hyperref/pdfsubject}}
- \@@_xmp_add_packet_close:nn {rdf}{Alt}
- \@@_xmp_add_packet_close:nn {dc}{description}
+ \@@_xmp_add_packet_list:nnne
+ {dc}{description}{Alt}
+ {\GetDocumentProperties{hyperref/pdfsubject}}
% \end{macrocode}
% lang/pdflang/dc:language
% \begin{macrocode}
More information about the latex3-commits
mailing list.