[latex3-commits] [git/LaTeX3-latex3-pdfresources] verify: remove xmpmetadata code and move to external file for now (5dc67da)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Feb 17 14:23:14 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : verify
Link : https://github.com/latex3/pdfresources/commit/5dc67da5a53163f42425f331c4ccce7f30e7d969
>---------------------------------------------------------------
commit 5dc67da5a53163f42425f331c4ccce7f30e7d969
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Feb 17 14:23:14 2021 +0100
remove xmpmetadata code and move to external file for now
>---------------------------------------------------------------
5dc67da5a53163f42425f331c4ccce7f30e7d969
l3pdfmeta.dtx | 59 ++++-------------------------------------
newpackages/new-xmpmetadata.sty | 51 +++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 54 deletions(-)
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index ee5f2b4..ef61e20 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -2,7 +2,7 @@
%
%% File: l3pdfmeta.dtx
%
-% Copyright (C) 2018-2020 The LaTeX3 Project
+% Copyright (C) 2018-2021 The LaTeX3 Project
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -50,8 +50,8 @@
%
% \section{\pkg{l3pdfmeta} documentation}
% This module sets up some tools and commands needed
-% for pdf standards in general.The goal is to collect the requirements and
-% to provide code to check and fulfill them.
+% for PDF standards in general.
+% The goal is to collect the requirements and to provide code to check and fulfill them.
%
% In future is will probably also contain
% code to setup XMP-metadata needed by the various standards in special.
@@ -61,7 +61,8 @@
% but for \pkg{hyperxmp} some patches are provided.
%
% \begin{NOTE}{UF}
-% This package should not replace both packages. Regarding XMP-metadata its goal
+% This package should not replace both packages.
+% Regarding XMP-metadata its goal
% is to create a skeleton metadata stream, add some core default values
% and to define interfaces that allows other packages
% to add data to this metadata and so to extend them.
@@ -341,57 +342,7 @@
}
}
% \end{macrocode}
-% \section{XMP-metadata (work in progress)}
-% We need a command to write a BOM to the pdf:
-% \begin{macrocode}
-%
-\str_const:Nx\c_@@_bom_str
- {
- \bool_if:nTF
- {
- \sys_if_engine_luatex_p: || \sys_if_engine_xetex_p:
- }
- {
- \char_generate:nn {65279}{12}
- }
- {
- \char_generate:nn {239}{12}
- \char_generate:nn {187}{12}
- \char_generate:nn {191}{12}
- }
- }
-% writing the stream:
-\str_new:N \g_@@_xmppacket_str
-
-\str_gset:Nx \g_@@_xmppacket_str
- {<?xpacket~begin="\c_@@_bom_str"~id="W5M0MpCehiHzreSzNTczkc9d"?>\iow_newline:}
-\str_gput_right:Nx \g_@@_xmppacket_str
- {<x:xmpmeta~xmlns:x="adobe:ns:meta/">\iow_newline:}
-%here more contents ...
-\str_gput_right:Nx \g_@@_xmppacket_str { </x:xmpmeta> \iow_newline: }
-%here padding??
-\str_gput_right:Nn \g_@@_xmppacket_str { <?xpacket~end="w"?> }
-%
-% \end{macrocode}
-% \subsection{The stream object}
-% This code is currently not activated.
-% \begin{macrocode}
-
-%\hook_gput_code:nnn {shipout/lastpage}{pdf}
-% {
-% \bool_if:NT \g_pdfmeta_xmp_bool
-% {
-% \pdf_object_new:nn {__pdf_Metadata} {stream}
-% \pdf_object_write:nx {__pdf_Metadata}
-% {
-% { /Type /Metadata /Subtype /XML }
-% {\g_@@_xmppacket_str}
-% }
-% }
-% }
-% \end{macrocode}
-%
% \begin{macrocode}
%</package>
% \end{macrocode}
diff --git a/newpackages/new-xmpmetadata.sty b/newpackages/new-xmpmetadata.sty
new file mode 100644
index 0000000..e02e4d1
--- /dev/null
+++ b/newpackages/new-xmpmetadata.sty
@@ -0,0 +1,51 @@
+% \section{XMP-metadata (work in progress)}
+% This part of code is currently not activated.
+% \begin{macrocode}
+%
+% \str_const:Nx\c_@@_bom_str
+% {
+% \bool_if:nTF
+% {
+% \sys_if_engine_luatex_p: || \sys_if_engine_xetex_p:
+% }
+% {
+% \char_generate:nn {65279}{12}
+% }
+% {
+% \char_generate:nn {239}{12}
+% \char_generate:nn {187}{12}
+% \char_generate:nn {191}{12}
+% }
+% }
+% % writing the stream:
+% \str_new:N \g_@@_xmppacket_str
+%
+% \str_gset:Nx \g_@@_xmppacket_str
+% {<?xpacket~begin="\c_@@_bom_str"~id="W5M0MpCehiHzreSzNTczkc9d"?>\iow_newline:}
+% \str_gput_right:Nx \g_@@_xmppacket_str
+% {<x:xmpmeta~xmlns:x="adobe:ns:meta/">\iow_newline:}
+%
+% %here more contents ...
+% \str_gput_right:Nx \g_@@_xmppacket_str { </x:xmpmeta> \iow_newline: }
+% %here padding??
+% \str_gput_right:Nn \g_@@_xmppacket_str { <?xpacket~end="w"?> }
+
+% \end{macrocode}
+% \subsection{The stream object}
+% This code is currently not activated.
+% \begin{macrocode}
+
+%\hook_gput_code:nnn {shipout/lastpage}{pdf}
+% {
+% \bool_if:NT \g_pdfmeta_xmp_bool
+% {
+% \pdf_object_new:nn {__pdf_Metadata} {stream}
+% \pdf_object_write:nx {__pdf_Metadata}
+% {
+% { /Type /Metadata /Subtype /XML }
+% {\g_@@_xmppacket_str}
+% }
+% }
+% }
+% \end{macrocode}
+%
More information about the latex3-commits
mailing list.