summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/novel/lualatex/novel-pdfx.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-17 03:01:13 +0000
committerNorbert Preining <norbert@preining.info>2024-02-17 03:01:13 +0000
commit8886ad587a305595ce543a74b0fc779f0732a6e9 (patch)
tree25f6e576a52343cad4a3b56b2f669e09432211b8 /macros/luatex/latex/novel/lualatex/novel-pdfx.sty
parenta6e02d45ad0d10cfc3256fc91abe80d6228325a4 (diff)
CTAN sync 202402170301
Diffstat (limited to 'macros/luatex/latex/novel/lualatex/novel-pdfx.sty')
-rw-r--r--macros/luatex/latex/novel/lualatex/novel-pdfx.sty36
1 files changed, 30 insertions, 6 deletions
diff --git a/macros/luatex/latex/novel/lualatex/novel-pdfx.sty b/macros/luatex/latex/novel/lualatex/novel-pdfx.sty
index 0295f1cc70..5c91a405b0 100644
--- a/macros/luatex/latex/novel/lualatex/novel-pdfx.sty
+++ b/macros/luatex/latex/novel/lualatex/novel-pdfx.sty
@@ -1,5 +1,5 @@
%% This is file `novel-pdfx.sty', part of `novel' document class.
-%% Copyright (c) 2017-2023 Robert Allgeyer.
+%% Copyright (c) 2017-2024 Robert Allgeyer.
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, version 1.3c.
@@ -16,7 +16,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{novel-pdfx.sty}%
-[2024/01/31 v1.86 LaTeX file (PDF/X support for novel class)]
+[2024/02/16 v2.00 LaTeX file (PDF/X support for novel class)]
% This package supports, and is part of, class `novel'.
% No support for anything but LuaLaTeX.
@@ -170,8 +170,33 @@
%% ----------------------------------------------------------------------------
%
% Create hashes that will be used for uuid data. Does not need to be fancy:
-\edef\xmp@docid{\pdfx@mdfivesum{jobname.pdf}}
-\edef\xmp@instid{\pdfx@mdfivesum{\pdfcreationdate}}
+\def\tweak@temp@s{
+ \lowercase\expandafter{% Per 'egreg' tex.stackexchange.com q.351065.
+ \expandafter\def\expandafter\temp@s\expandafter{\temp@s}%
+ }
+ \StrLeft{\temp@s}{8}[\temp@n]
+ \StrRight{\temp@s}{24}[\temp@d]
+ \edef\temp@s{\temp@n-\temp@d}
+ \StrLeft{\temp@s}{13}[\temp@n]
+ \StrRight{\temp@s}{19}[\temp@d] % Omit character, becomes 4.
+ \edef\temp@s{\temp@n-4\temp@d}
+ \StrLeft{\temp@s}{18}[\temp@n]
+ \StrRight{\temp@s}{15}[\temp@d] % Omit character, becomes 8.
+ \edef\temp@s{\temp@n-8\temp@d}
+ \StrLeft{\temp@s}{23}[\temp@n]
+ \StrRight{\temp@s}{12}[\temp@d]
+ \edef\temp@s{\temp@n-\temp@d}
+}
+\edef\temp@s{\pdf@mdfivesum{\jobname\@title\@author novel}}
+\tweak@temp@s
+\edef\@documentID{uuid:\temp@s}
+\edef\temp@s{\pdf@mdfivesum{\pdffeedback creationdate}}
+\tweak@temp@s
+\edef\@instanceID{uuid:\temp@s}
+%%
+
+
+
%
%% End general PDF in internal metadata preparation.
@@ -223,8 +248,7 @@
}
}
%
-\def\@documentID{uuid:\xmp@docid}
-\def\@instanceID{uuid:\xmp@instid}
+
%
\def\@pdfVersion{1.\the\pdfminorversion}
%