From f53d41771bd380e3a5c63ff43cc0350764e62b13 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Wed, 3 Aug 2011 13:03:25 +0000 Subject: hyperxmp 2011/06/12 v1.4 git-svn-id: svn://tug.org/texlive/trunk@23378 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty | 29 +++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist/tex') 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 @@ ______^^J% \hyxmp@add@to@xml{% _________^^J% ____________^^J% + }% + \ifx\@pdfmetalang\hyxmp@x@default + \else + \hyxmp@add@to@xml{% _______________\hyxmp@xmlified^^J% + }% + \fi + \hyxmp@add@to@xml{% +_______________\hyxmp@xmlified^^J% ____________^^J% _________^^J% }% @@ -434,15 +443,15 @@ _________application/pdf^^J% ______^^J% }% } -\newcommand*{\hyxmp@xapRights@schema}{% +\newcommand*{\hyxmp@xmpRights@schema}{% \ifx\@pdflicenseurl\@empty \else \hyxmp@xmlify{\@pdflicenseurl}% \hyxmp@add@to@xml{% ______^^J% -_________True^^J% -_________\hyxmp@xmlified^^J% +___________xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/">^^J% +_________True^^J% +_________\hyxmp@xmlified^^J% ______^^J% }% \fi @@ -452,9 +461,9 @@ ______^^J% \hyxmp@def@InstanceID \hyxmp@add@to@xml{% ______^^J% -_________\hyxmp@DocumentID^^J% -_________\hyxmp@InstanceID^^J% +____________xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">^^J% +_________\hyxmp@DocumentID^^J% +_________\hyxmp@InstanceID^^J% ______^^J% }% } @@ -500,7 +509,7 @@ ______^^J% ___^^J% }% \hyxmp@pdf@schema - \hyxmp@xapRights@schema + \hyxmp@xmpRights@schema \hyxmp@dc@schema \hyxmp@photoshop@schema \hyxmp@mm@schema -- cgit v1.2.3