diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-21 00:25:19 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-22 13:09:35 -0400 |
| commit | 515c44399843c62336a0102e933f9fbd7289743d (patch) | |
| tree | 97cb7a699872c7d235a5833933c415458aff074e /org/out_xmls.org | |
| parent | metadata: use document's language (diff) | |
odt: office:meta from the document, not the run
Three faults in four lines of the odt metadata.
meta:creation-date and dc:date were taken from generated_time, the run's
own clock, so two runs over unchanged markup produced different odt
bytes. They now carry the document's own instant, so an odt is a
function of its source. That was the last clock stamp in any writer:
every output format is now reproducible.
generated_time is a human-readable run stamp, of the form
"2026-9-17 [38/3] 18:39:35", with unpadded numbers and an iso week in
brackets. It is not a valid xsd:dateTime, which is what ODF asks for in
both of those fields, so what was written there was malformed as well as
unstable.
dc:language now carries the document's own language tag.
The instant is doc_matters.modified_utc, moved there from epub3.d
in this commit: epub3 needs the same value for its dcterms:modified,
and one definition cannot drift from the other. generated_time now
has no caller and is left in place.
(assisted by Claude-Code)
Diffstat (limited to 'org/out_xmls.org')
| -rw-r--r-- | org/out_xmls.org | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org index db031e2..37daadf 100644 --- a/org/out_xmls.org +++ b/org/out_xmls.org @@ -2851,6 +2851,17 @@ string _epub_publication_uuid(string _doc_uid) { #+NAME: output_epub3_last_modified_time #+BEGIN_SRC d +/+ ↓ the last modified time EPUB3 requires, exactly one dcterms:modified on + the package in UTC to the second, comes from doc_matters.modified_utc. + Set in spine rather than here because an odt's office:meta needs the + same instant, and a single definition cannot drift apart. ++/ +#+END_SRC + +**** time unused + +#+NAME: output_epub3_last_modified_time_UNUSED +#+BEGIN_SRC d /+ ↓ the last modified time, as EPUB3 requires it: exactly one dcterms:modified on the package, in UTC to the second, CCYY-MM-DDThh:mm:ssZ . @@ -3013,7 +3024,7 @@ string epub3_oebps_content(D,P)(D doc, P parts) { ? "" : xhtml_format.special_characters_plain_date(doc.matters.conf_make_meta.meta.date_published), (doc.matters.conf_make_meta.meta.rights_copyright.empty) ? "" : xhtml_format.special_characters_plain(doc.matters.conf_make_meta.meta.rights_copyright), - _epub_modified_utc(doc.matters.conf_make_meta.meta), + doc.matters.modified_utc, _epub_a11y_metadata(doc), (pth_epub3.fn_oebps_css).chompPrefix("OEBPS/"), ); |
