-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hyperref and hyperxmp metadata improvements #2365
base: master
Are you sure you want to change the base?
Conversation
This all looks plausible; I don't use XMP myself, but this should probably help those who do. @dginev do you have any thoughts on this? (other than not being an XMP fan, as I recall :> ) |
I have a classic comment: it would be nice to have a test, which will have the additional effect of self-documenting how these XMP enhancements can be used by authors. I haven't used hyperxmp.sty myself, so I trust @xworld21 knows more than me here. |
I am also new to PRISM, but so far I find it palatable - there is a W3C Member Submission with a reasonable W3C Team Comment. One observation while quickly skimming that, the PRISM Namespaces section lists the URI added in this PR as a |
Excellent idea, and it's making me discover details I'd missed (e.g. only some properties respect Is it ok if I include the sample document included in the hyperxmp documentation? Would there be license issues with that? |
570f1c0
to
78509b7
Compare
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.