summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperxmp
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-03 13:03:25 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-08-03 13:03:25 +0000
commitf53d41771bd380e3a5c63ff43cc0350764e62b13 (patch)
treefce4a2ab346790b91e5bcb20593a74ee44d31b63 /Master/texmf-dist/tex/latex/hyperxmp
parentb9f872020f9b231de20afe30533a2c8b8c8dff29 (diff)
hyperxmp 2011/06/12 v1.4
git-svn-id: svn://tug.org/texlive/trunk@23378 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperxmp')
-rw-r--r--Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty29
1 files changed, 19 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty
index 19ea78638f9..ba39d4a3e94 100644
--- a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty
+++ b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{hyperxmp}
- [2011/04/30 v1.3 Store hyperref metadata in XMP format]
+ [2011/06/12 v1.4 Store hyperref metadata in XMP format]
\edef\hyxmp@dq@code{\the\catcode`\"}
\catcode`\"=12
\RequirePackage{keyval}
@@ -62,7 +62,7 @@ metadata values to hyperxmp}%
{%
\ifx\@pdfmetalang\@empty
\ifx\@pdflang\@empty
- \def\@pdfmetalang{x-default}%
+ \let\@pdfmetalang=\hyxmp@x@default
\else
\edef\@pdfmetalang{\@pdflang}%
\fi
@@ -346,6 +346,7 @@ __________________________________________________^^J%
\else
\xdef\hyxmp@today{\hyxmp@today-\the\day}%
\fi
+\newcommand*{\hyxmp@x@default}{x-default}
\newcommand*{\hyxmp@pdf@schema}{%
\let\hyxmp@have@any=!%
\ifx\@pdfkeywords\@empty
@@ -385,7 +386,15 @@ ______</rdf:Description>^^J%
\hyxmp@add@to@xml{%
_________<dc:#1>^^J%
____________<rdf:Alt>^^J%
+ }%
+ \ifx\@pdfmetalang\hyxmp@x@default
+ \else
+ \hyxmp@add@to@xml{%
_______________<rdf:li xml:lang="\@pdfmetalang">\hyxmp@xmlified</rdf:li>^^J%
+ }%
+ \fi
+ \hyxmp@add@to@xml{%
+_______________<rdf:li xml:lang="\hyxmp@x@default">\hyxmp@xmlified</rdf:li>^^J%
____________</rdf:Alt>^^J%
_________</dc:#1>^^J%
}%
@@ -434,15 +443,15 @@ _________<dc:format>application/pdf</dc:format>^^J%
______</rdf:Description>^^J%
}%
}
-\newcommand*{\hyxmp@xapRights@schema}{%
+\newcommand*{\hyxmp@xmpRights@schema}{%
\ifx\@pdflicenseurl\@empty
\else
\hyxmp@xmlify{\@pdflicenseurl}%
\hyxmp@add@to@xml{%
______<rdf:Description rdf:about=""^^J%
-___________xmlns:xapRights="http://ns.adobe.com/xap/1.0/rights/">^^J%
-_________<xapRights:Marked>True</xapRights:Marked>^^J%
-_________<xapRights:WebStatement>\hyxmp@xmlified</xapRights:WebStatement>^^J%
+___________xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/">^^J%
+_________<xmpRights:Marked>True</xmpRights:Marked>^^J%
+_________<xmpRights:WebStatement>\hyxmp@xmlified</xmpRights:WebStatement>^^J%
______</rdf:Description>^^J%
}%
\fi
@@ -452,9 +461,9 @@ ______</rdf:Description>^^J%
\hyxmp@def@InstanceID
\hyxmp@add@to@xml{%
______<rdf:Description rdf:about=""^^J%
-____________xmlns:xapMM="http://ns.adobe.com/xap/1.0/mm/">^^J%
-_________<xapMM:DocumentID>\hyxmp@DocumentID</xapMM:DocumentID>^^J%
-_________<xapMM:InstanceID>\hyxmp@InstanceID</xapMM:InstanceID>^^J%
+____________xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">^^J%
+_________<xmpMM:DocumentID>\hyxmp@DocumentID</xmpMM:DocumentID>^^J%
+_________<xmpMM:InstanceID>\hyxmp@InstanceID</xmpMM:InstanceID>^^J%
______</rdf:Description>^^J%
}%
}
@@ -500,7 +509,7 @@ ______</rdf:Description>^^J%
___<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns\hyxmp@hash">^^J%
}%
\hyxmp@pdf@schema
- \hyxmp@xapRights@schema
+ \hyxmp@xmpRights@schema
\hyxmp@dc@schema
\hyxmp@photoshop@schema
\hyxmp@mm@schema