hyperref and hyperxmp metadata improvements #2365
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add remaining
\hypersetup
keywords and addxml:lang
ifpdfmetalang
orpdflang
were specified (and LaTeXML should probably usepdflang
as document language if not already specified elsewhere). Note that this also fixes the wrong mapping ofpdfsubject
– it should bedcterms:description
notdcterms:subject
.The metadata could then be used elsewhere (e.g. JATS #2354, EPUB), but this PR is only about preserving the data in the XML output.
Note that the implementation is incomplete: certain properties (such as authors) are implemented as lists by hyperxmp (
<rdf:Seq><rdf:li>...
, sometimes<rdf:Bag><rdf:li>...
, or<rdf:Alt><rdf:li>
for alternative languages). I haven't touched any of that as LaTeXML implements RDF essentially as strings.