From 67e8fdf0c52653c7559b4665070a96c9c97d0d25 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 2 Apr 2019 21:12:27 +0000 Subject: hyperxmp (2apr19) git-svn-id: svn://tug.org/texlive/trunk@50713 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty | 586 +++++++++++++++------- 1 file changed, 415 insertions(+), 171 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty index ff8d81bd246..e76fa1e8799 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} - [2019/02/25 v3.5a Store hyperref metadata in XMP format] + [2019/03/31 v4.0 Store hyperref metadata in XMP format] \edef\hyxmp@dq@code{\the\catcode`\"} \catcode`\"=12 \def\hyxmp@driver{hpdftex} @@ -90,6 +90,36 @@ \define@key{Hyp}{pdfdocumentid}{\hyxmp@pdfstringdef\hyxmp@DocumentID{#1}} \def\hyxmp@InstanceID{} \define@key{Hyp}{pdfinstanceid}{\hyxmp@pdfstringdef\hyxmp@InstanceID{#1}} +\def\@pdfversionid{} +\define@key{Hyp}{pdfversionid}{\hyxmp@pdfstringdef\@pdfversionid{#1}} +\def\@pdfpublication{} +\define@key{Hyp}{pdfpublication}{\hyxmp@pdfstringdef\@pdfpublication{#1}} +\def\@pdfpubtype{} +\define@key{Hyp}{pdfpubtype}{\hyxmp@pdfstringdef\@pdfpubtype{#1}} +\def\@pdfbytes{} +\define@key{Hyp}{pdfbytes}{\hyxmp@pdfstringdef\@pdfbytes{#1}} +\def\@pdfnumpages{} +\define@key{Hyp}{pdfnumpages}{\hyxmp@pdfstringdef\@pdfnumpages{#1}} +\def\@pdfissn{} +\define@key{Hyp}{pdfissn}{\hyxmp@pdfstringdef\@pdfissn{#1}} +\def\@pdfeissn{} +\define@key{Hyp}{pdfeissn}{\hyxmp@pdfstringdef\@pdfeissn{#1}} +\def\@pdfisbn{} +\define@key{Hyp}{pdfisbn}{\hyxmp@pdfstringdef\@pdfisbn{#1}} +\def\@pdfbookedition{} +\define@key{Hyp}{pdfbookedition}{\hyxmp@pdfstringdef\@pdfbookedition{#1}} +\def\@pdfvolumenum{} +\define@key{Hyp}{pdfvolumenum}{\hyxmp@pdfstringdef\@pdfvolumenum{#1}} +\def\@pdfissuenum{} +\define@key{Hyp}{pdfissuenum}{\hyxmp@pdfstringdef\@pdfissuenum{#1}} +\def\@pdfpagerange{} +\define@key{Hyp}{pdfpagerange}{\hyxmp@pdfstringdef\@pdfpagerange{#1}} +\def\@pdfdoi{} +\define@key{Hyp}{pdfdoi}{\hyxmp@pdfstringdef\@pdfdoi{#1}} +\def\@pdfurl{} +\define@key{Hyp}{pdfurl}{\hyxmp@pdfstringdef\@pdfurl{#1}} +\def\@pdfsubtitle{} +\define@key{Hyp}{pdfsubtitle}{\hyxmp@pdfstringdef\@pdfsubtitle{#1}} \def\@pdfcontactaddress{} \define@key{Hyp}{pdfcontactaddress}{% \let\xmpcomma=\hyxmp@comma @@ -112,6 +142,12 @@ \define@key{Hyp}{pdfcontactemail}{\hyxmp@pdfstringdef\@pdfcontactemail{#1}} \def\@pdfcontacturl{} \define@key{Hyp}{pdfcontacturl}{\hyxmp@pdfstringdef\@pdfcontacturl{#1}} +\def\hyxmp@suppress@pdf@metadata{% + \global\let\PDF@FinishDoc=\@empty +} +\define@key{Hyp}{keeppdfinfo}[true]{% + \gdef\hyxmp@suppress@pdf@metadata{}% +} \def\hyxmp@pdfauthor{} \def\hyxmp@pdfkeywords{} \newcommand*{\hyxmp@redefine@Hyp}{% @@ -169,6 +205,8 @@ \@baseurl \@pdfauthor \@pdfauthortitle + \@pdfbookedition + \@pdfbytes \@pdfcaptionwriter \@pdfcontactaddress \@pdfcontactcity @@ -181,14 +219,27 @@ \@pdfcopyright \@pdfcreationdate \@pdfdatetime + \@pdfdoi + \@pdfeissn + \@pdfisbn + \@pdfissn + \@pdfissuenum \@pdfkeywords \@pdflang \@pdflicenseurl \@pdfmetadatetime \@pdfmoddate + \@pdfnumpages + \@pdfpagerange + \@pdfpublication + \@pdfpubtype \@pdfsubject + \@pdfsubtitle \@pdftitle \@pdftype + \@pdfurl + \@pdfversionid + \@pdfvolumenum }% \ifx\hyxmp@concated@metadata\@empty \PackageWarningNoLine{hyperxmp}{% @@ -228,6 +279,7 @@ provide metadata values to hyperxmp}% }% {}% \hyxmp@at@end{% + \hyxmp@suppress@pdf@metadata \hyxmp@find@metadata \hyxmp@embed@packet }% @@ -270,6 +322,11 @@ disabled}% \gdef\xmptilde{~}% \egroup \newcommand{\XMPTruncateList}[1]{{% + \PackageWarning{hyperxmp}{% + \noexpand\XMPTruncateList has been deprecated since\MessageBreak + hyperxmp 4.0 and may be removed in future\MessageBreak + versions of the package. \noexpand\XMPTruncateList\MessageBreak + was found}% \edef\hyxmp@temp@str{\csname hyxmp@#1\endcsname}% \hyxmp@commas@to@list{\hyxmp@temp@list}{\hyxmp@temp@str}% \def\@elt##1{% @@ -772,10 +829,6 @@ _______________________________________________________________^^J% \xdef\hyxmp@padding{\hyxmp@padding\hyxmp@padding} \newcommand*{\hyxmp@x@default}{x-default} \newcommand*{\hyxmp@pdf@schema}{% - \hyxmp@add@to@xml{% -______^^J% - }% \hyxmp@add@simple@var{pdf:Keywords}{@pdfkeywords}% \hyxmp@add@simple@var{pdf:Producer}{@pdfproducer}% \@ifundefined{pdfvariable}{% @@ -786,29 +839,48 @@ ___________xmlns:pdf="http://ns.adobe.com/pdf/1.3/">^^J% }{% \hyxmp@add@simple{pdf:PDFVersion}{1.\the\pdfvariable minorversion}% }% - \hyxmp@add@to@xml{% -______^^J% - }% } +\newcommand*{\hyxmp@extra@indent}{} \newcommand*{\hyxmp@add@simple}[2]{% - \edef\hyxmp@string{#2}% - \ifx\hyxmp@string\@empty - \else - \hyxmp@xmlify{\hyxmp@string}% + \@ifnotmtargexp{#2}{% + \hyxmp@xmlify{#2}% \hyxmp@add@to@xml{% -_________<#1>\hyxmp@xmlified^^J% + \hyxmp@extra@indent______<#1>\hyxmp@xmlified^^J% }% - \fi + }% } \newcommand*{\hyxmp@add@simple@var}[2]{% \expandafter\ifx\csname#2\endcsname\relax \else \hyxmp@xmlify{\csname#2\endcsname}% \hyxmp@add@to@xml{% -_________<#1>\hyxmp@xmlified^^J% + \hyxmp@extra@indent______<#1>\hyxmp@xmlified^^J% }% \fi } +\newcommand*{\hyxmp@add@simple@lang}[2]{% + \@ifnotmtarg{#2}{% + \hyxmp@xmlify{#2}% + \expandafter\hyxmp@add@simple@lang@i\hyxmp@xmlified\relax{#1}% + }% +} +\newcommand*{\hyxmp@add@simple@lang@i}{% + \@ifnextchar[\hyxmp@add@simple@lang@ii{\hyxmp@add@simple@lang@ii[]}% +} +\def\hyxmp@add@simple@lang@ii[#1]#2\relax#3{% + \@ifnotmtarg{#2}{% + \hyxmp@xmlify{#2}% + \@ifmtarg{#1}{% + \hyxmp@add@to@xml{% +______<#3>\hyxmp@xmlified^^J% + }% + }{% + \hyxmp@add@to@xml{% +______<#3 xml:lang="#1">\hyxmp@xmlified^^J% + }% + }% + }% +} \newcommand*{\hyxmp@rdf@dc}[3][\iffalse]{% \@ifmtargexp{#3}{\@tempswafalse}{\@tempswatrue}% #1 @@ -818,29 +890,29 @@ _________<#1>\hyxmp@xmlified^^J% \hyxmp@xmlify{#3}% \let\hyxmp@value=\hyxmp@xmlified \hyxmp@add@to@xml{% -_________^^J% -____________^^J% +______^^J% +________^^J% }% \ifx\@pdfmetalang\hyxmp@x@default \else \hyxmp@xmlify{\@pdfmetalang}% \hyxmp@add@to@xml{% -_______________\hyxmp@value^^J% +__________\hyxmp@value^^J% }% \fi \hyxmp@add@to@xml{% -_______________\hyxmp@value^^J% +__________\hyxmp@value^^J% }% \def\do##1##2{ \hyxmp@xmlify{##2}% \hyxmp@add@to@xml{% -_______________\hyxmp@xmlified^^J% +__________\hyxmp@xmlified^^J% }% }% \csname hyxmp@alt@#2\endcsname \hyxmp@add@to@xml{% -____________^^J% -_________^^J% +________^^J% +______^^J% }% \fi }% @@ -851,31 +923,27 @@ _________^^J% \fi \if@tempswa \hyxmp@add@to@xml{% -_________^^J% -____________^^J% +______^^J% +________^^J% }% \bgroup \hyxmp@xmlify{#4}% \hyxmp@commas@to@list\hyxmp@list{\hyxmp@xmlified}% \def\@elt##1{% \hyxmp@add@to@xml{% -_______________##1^^J% +__________##1^^J% }% }% \hyxmp@list \egroup \hyxmp@add@to@xml{% -____________^^J% -_________^^J% +________^^J% +______^^J% }% \fi } \newcommand*{\hyxmp@dc@schema}{% - \hyxmp@add@to@xml{% -______^^J% -_________application/pdf^^J% - }% + \hyxmp@add@simple{dc:format}{application/pdf}% \hyxmp@rdf@dc[\ifHy@pdfa]{title}{\@pdftitle}% \hyxmp@rdf@dc[\ifHy@pdfa]{description}{\@pdfsubject}% \hyxmp@rdf@dc{rights}{\@pdfcopyright}% @@ -888,9 +956,6 @@ _________application/pdf^^J% \else \hyxmp@add@simple{dc:source}{\@pdfsource}% \fi - \hyxmp@add@to@xml{% -______^^J% - }% } \newcommand*{\hyxmp@xmpRights@schema}{% \let\hyxmp@rights=\@empty @@ -904,34 +969,19 @@ ______^^J% \fi \ifx\hyxmp@rights\@empty \else - \hyxmp@add@to@xml{% -______^^J% - }% \ifx\@pdfcopyright\@empty \else - \hyxmp@add@to@xml{% -_________True^^J% - }% + \hyxmp@add@simple{xmpRights:Marked}{True}% \fi \hyxmp@add@simple{xmpRights:WebStatement}{\@pdflicenseurl}% - \hyxmp@add@to@xml{% -______^^J% - }% \fi } \gdef\hyxmp@mm@schema{% \@ifmtargexp{\hyxmp@DocumentID}{\hyxmp@def@DocumentID}{}% \@ifmtargexp{\hyxmp@InstanceID}{\hyxmp@def@InstanceID}{}% - \hyxmp@add@to@xml{% -______^^J% - }% \hyxmp@add@simple{xmpMM:DocumentID}{\hyxmp@DocumentID}% \hyxmp@add@simple{xmpMM:InstanceID}{\hyxmp@InstanceID}% - \hyxmp@add@to@xml{% -______^^J% - }% + \hyxmp@add@simple{xmpMM:VersionID}{\@pdfversionid}% } \newcommand*{\hyxmp@define@createdate}{% \@ifundefined{pdffeedback}{% @@ -945,10 +995,6 @@ ______^^J% }% } \newcommand*{\hyxmp@xmp@basic@schema}{% - \hyxmp@add@to@xml{% -______^^J% - }% \hyxmp@define@createdate \@ifundefined{@pdfcreationdate}{% \hyxmp@add@simple{xmp:CreateDate}{\hyxmp@createdate}% @@ -977,26 +1023,16 @@ ____________xmlns:xmp="http://ns.adobe.com/xap/1.0/">^^J% \fi \hyxmp@add@simple{xmp:CreatorTool}{\@pdfcreator}% \hyxmp@add@simple{xmp:BaseURL}{\@baseurl}% - \hyxmp@add@to@xml{% -______^^J% - }% } \gdef\hyxmp@photoshop@schema{% \edef\hyxmp@photoshop@data{\@pdfauthortitle\@pdfcaptionwriter}% - \ifx\hyxmp@photoshop@data\@empty - \else - \hyxmp@add@to@xml{% -______^^J% - }% - \fi \hyxmp@add@simple{photoshop:AuthorsPosition}{\@pdfauthortitle}% \hyxmp@add@simple{photoshop:CaptionWriter}{\@pdfcaptionwriter}% - \ifx\hyxmp@photoshop@data\@empty - \else - \hyxmp@add@to@xml{% -______^^J% - }% +} +\newcommand*{\hyxmp@pdfa@id@schema}{% + \ifHy@pdfa + \hyxmp@add@simple{pdfaid:part}{\@pdfapart}% + \hyxmp@add@simple{pdfaid:conformance}{\@pdfaconformance}% \fi } \begingroup @@ -1008,7 +1044,7 @@ ______^^J% \@ifnotmtargexp{#2}{% \bgroup \hyxmp@add@to@xml{% -_________<#1>% + \hyxmp@extra@indent______<#1>% }% \def\@elt@first##1{% \hyxmp@add@to@xml{##1}% @@ -1025,8 +1061,51 @@ _________<#1>% \egroup }% } -\gdef\hyxmp@photometa@schema{% - \edef\hyxmp@photometa@data{% +\gdef\hyxmp@iptc@schema{% + \ifx\hyxmp@iptc@data\@empty + \else + \hyxmp@add@to@xml{% +______^^J% + }% + \bgroup + \edef\hyxmp@extra@indent{\hyxmp@extra@indent\space\space}% + \hyxmp@list@to@lines{Iptc4xmpCore:CiAdrExtadr}{\@pdfcontactaddress}% + \hyxmp@add@simple{Iptc4xmpCore:CiAdrCity}{\@pdfcontactcity}% + \hyxmp@add@simple{Iptc4xmpCore:CiAdrRegion}{\@pdfcontactregion}% + \hyxmp@add@simple{Iptc4xmpCore:CiAdrPcode}{\@pdfcontactpostcode}% + \hyxmp@add@simple{Iptc4xmpCore:CiAdrCtry}{\@pdfcontactcountry}% + \def\xmplinesep{,}% + \hyxmp@list@to@lines{Iptc4xmpCore:CiTelWork}{\@pdfcontactphone}% + \hyxmp@list@to@lines{Iptc4xmpCore:CiEmailWork}{\@pdfcontactemail}% + \hyxmp@list@to@lines{Iptc4xmpCore:CiUrlWork}{\@pdfcontacturl}% + \egroup + \hyxmp@add@to@xml{% +______^^J% + }% + \fi +} +\newcommand*{\hyxmp@prism@schema}{% + \ifx\hyxmp@prism@data\@empty + \else + \hyxmp@add@simple{prism:complianceProfile}{three}% + \fi + \hyxmp@add@simple@lang{prism:subtitle}{\@pdfsubtitle}% + \hyxmp@add@simple@lang{prism:publicationName}{\@pdfpublication}% + \hyxmp@add@simple{prism:aggregationType}{\@pdfpubtype}% + \hyxmp@add@simple@lang{prism:bookEdition}{\@pdfbookedition}% + \hyxmp@add@simple{prism:volume}{\@pdfvolumenum}% + \hyxmp@add@simple{prism:number}{\@pdfissuenum}% + \hyxmp@add@simple{prism:pageRange}{\@pdfpagerange}% + \hyxmp@add@simple{prism:isbn}{\@pdfisbn}% + \hyxmp@add@simple{prism:issn}{\@pdfissn}% + \hyxmp@add@simple{prism:eIssn}{\@pdfeissn}% + \hyxmp@add@simple{prism:doi}{\@pdfdoi}% + \hyxmp@add@simple{prism:url}{\@pdfurl}% + \hyxmp@add@simple{prism:byteCount}{\@pdfbytes}% + \hyxmp@add@simple{prism:pageCount}{\@pdfnumpages}% +} +\newcommand*{\hyxmp@check@iptc@data}{% + \edef\hyxmp@iptc@data{% \@pdfcontactaddress \@pdfcontactcity \@pdfcontactregion @@ -1036,109 +1115,253 @@ _________<#1>% \@pdfcontactemail \@pdfcontacturl }% - \ifx\hyxmp@photometa@data\@empty - \else - \hyxmp@iptc@extensions - \hyxmp@add@to@xml{% -______^^J% -_______^^J% - }% - \fi - \hyxmp@list@to@lines{Iptc4xmpCore:CiAdrExtadr}{\@pdfcontactaddress}% - \hyxmp@add@simple{Iptc4xmpCore:CiAdrCity}{\@pdfcontactcity}% - \hyxmp@add@simple{Iptc4xmpCore:CiAdrRegion}{\@pdfcontactregion}% - \hyxmp@add@simple{Iptc4xmpCore:CiAdrPcode}{\@pdfcontactpostcode}% - \hyxmp@add@simple{Iptc4xmpCore:CiAdrCtry}{\@pdfcontactcountry}% - \bgroup - \def\xmplinesep{,}% - \hyxmp@list@to@lines{Iptc4xmpCore:CiTelWork}{\@pdfcontactphone}% - \hyxmp@list@to@lines{Iptc4xmpCore:CiEmailWork}{\@pdfcontactemail}% - \hyxmp@list@to@lines{Iptc4xmpCore:CiUrlWork}{\@pdfcontacturl}% - \egroup - \ifx\hyxmp@photometa@data\@empty - \else - \hyxmp@add@to@xml{% -_______^^J% -______^^J% - }% - \fi +}% +\newcommand*{\hyxmp@check@prism@data}{% + \edef\hyxmp@prism@data{% + \@pdfbookedition + \@pdfbytes + \@pdfdoi + \@pdfeissn + \@pdfisbn + \@pdfissn + \@pdfissuenum + \@pdfnumpages + \@pdfpagerange + \@pdfpublication + \@pdfpubtype + \@pdfsubtitle + \@pdfurl + \@pdfvolumenum + }% +}% +\newcommand*{\hyxmp@begin@extension@decls}{% + \hyxmp@add@to@xml{% +______^^J% +________^^J% + }% } -\newcommand*{\hyxmp@iptc@extensions}{% +\newcommand*{\hyxmp@end@extension@decls}{% + \hyxmp@add@to@xml{% +________^^J% +______^^J% + }% +} +\newcommand*{\hyxmp@begin@ext@decl}[3]{% \hyxmp@add@to@xml{% -______^^J% -________^^J% -__________^^J% -____________^^J% -______________IPTC Core Schema^^J% -______________http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/^^J% -______________Iptc4xmpCore^^J% -______________^^J% -________________^^J% -__________________^^J% -____________________CreatorContactInfo^^J% -____________________contactinfo^^J% -____________________external^^J% -____________________contact information for the document's creator^^J% -__________________^^J% -________________^^J% -______________^^J% -______________^^J% -________________^^J% -__________________^^J% -____________________contactinfo^^J% -____________________http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/^^J% -____________________Iptc4xmpCore^^J% -____________________contact information^^J% -____________________^^J% -______________________^^J% +__________^^J% +____________#1^^J% +____________#2^^J% +____________#3^^J% +____________^^J% +______________^^J% }% - \hyxmp@text@resource{CiAdrExtadr}{contact address}% - \hyxmp@text@resource{CiAdrCity}{contact city}% - \hyxmp@text@resource{CiAdrRegion}{contact region}% - \hyxmp@text@resource{CiAdrPcode}{contact postal code}% - \hyxmp@text@resource{CiAdrCtry}{contact country}% - \hyxmp@text@resource{CiTelWork}{contact telephone number}% - \hyxmp@text@resource{CiEmailWork}{contact email address}% - \hyxmp@text@resource{CiUrlWork}{contact url}% +}% +\newcommand*{\hyxmp@end@ext@decl}{% + \hyxmp@add@to@xml{% +______________^^J% +____________^^J% +__________^^J% + }% +}% +\newcommand{\hyxmp@declare@property}[4][Text]{% + \hyxmp@add@to@xml{% +________________^^J% +__________________#2^^J% +__________________#1^^J% +__________________#3^^J% +__________________#4^^J% +________________^^J% + }% +}% +\newcommand{\hyxmp@declare@field}[3][Text]{% \hyxmp@add@to@xml{% -______________________^^J% -____________________^^J% -__________________^^J% -________________^^J% -______________^^J% -____________^^J% -__________^^J% -________^^J% -______^^J% +______________________^^J% +________________________#2^^J% +________________________#1^^J% +________________________#3^^J% +______________________^^J% }% } -\newcommand*{\hyxmp@text@resource}[2]{% +\newcommand*{\hyxmp@mm@extensions}{% + \hyxmp@begin@ext@decl + {XMP Media Management Schema}% + {xmpMM}% + {http://ns.adobe.com/xap/1.0/mm/}% + \hyxmp@declare@property + [URI] + {DocumentID}% + {internal}% + {UUID based identifier for all versions and renditions of a document}% + \hyxmp@declare@property + [URI] + {InstanceID}% + {internal}% + {UUID based identifier for specific incarnation of a document}% + \hyxmp@declare@property + {VersionID}% + {internal}% + {Document version identifier}% + \hyxmp@end@ext@decl +}% +\newcommand*{\hyxmp@pdfa@id@extensions}{% + \hyxmp@begin@ext@decl + {PDF/A Identification Schema}% + {pdfaid}% + {http://www.aiim.org/pdfa/ns/id/}% + \hyxmp@declare@property + [Integer]% + {part}% + {internal}% + {Part of PDF/A standard}% + \hyxmp@declare@property + {conformance}% + {internal}% + {Conformance level of PDF/A standard}% + \hyxmp@end@ext@decl +}% +\newcommand*{\hyxmp@iptc@extensions}{% + \hyxmp@begin@ext@decl + {IPTC Core Schema}% + {Iptc4xmpCore}% + {http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/}% + \hyxmp@declare@property + [ContactInfo] + {CreatorContactInfo} + {external} + {Document creator's contact information} \hyxmp@add@to@xml{% -________________________^^J% -__________________________#1^^J% -__________________________Text^^J% -__________________________#2^^J% -________________________^^J% - } +______________^^J% +____________^^J% +____________^^J% +______________^^J% +________________^^J% +__________________ContactInfo^^J% +__________________http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/^^J% +__________________Iptc4xmpCore^^J% +__________________% + Basic set of information to get in contact with a person% + ^^J% +__________________^^J% +____________________^^J% + }% + \hyxmp@declare@field + {CiAdrCity}% + {Contact information city}% + \hyxmp@declare@field + {CiAdrCtry}% + {Contact information country}% + \hyxmp@declare@field + {CiAdrExtadr}% + {Contact information address}% + \hyxmp@declare@field + {CiAdrPcode}% + {Contact information local postal code}% + \hyxmp@declare@field + {CiAdrRegion}% + {Contact information regional information such as state or province}% + \hyxmp@declare@field + {CiEmailWork}% + {Contact information email address(es)}% + \hyxmp@declare@field + {CiTelWork}% + {Contact information telephone number(s)}% + \hyxmp@declare@field + {CiUrlWork}% + {Contact information Web URL(s)}% + \hyxmp@add@to@xml{% +____________________^^J% +__________________^^J% +________________^^J% +______________^^J% +____________^^J% +__________^^J% + }% } -\newcommand*{\hyxmp@pdfa@id@schema}{% +\newcommand*{\hyxmp@prism@extensions}{% + \hyxmp@begin@ext@decl + {PRISM Basic Metadata}% + {prism}% + {http://prismstandard.org/namespaces/basic/2.1/}% + \hyxmp@declare@property + {complianceProfile}% + {internal}% + {PRISM specification compliance profile to which this document adheres}% + \hyxmp@declare@property + {publicationName}% + {external}% + {Publication name}% + \hyxmp@declare@property + {aggregationType}% + {external}% + {Publication type}% + \hyxmp@declare@property + {bookEdition}% + {external}% + {Edition of the book in which the document was published}% + \hyxmp@declare@property + {volume}% + {external}% + {Publication volume number}% + \hyxmp@declare@property + {number}% + {external}% + {Publication issue number within a volume}% + \hyxmp@declare@property + {pageRange}% + {external}% + {Page range for the document within the print version of its publication}% + \hyxmp@declare@property + {issn}% + {external}% + {ISSN for the printed publication in which the document was published}% + \hyxmp@declare@property + {eIssn}% + {external}% + {ISSN for the electronic publication in which the document was published}% + \hyxmp@declare@property + {isbn}% + {external}% + {ISBN for the publication in which the document was published}% + \hyxmp@declare@property + {doi}% + {external}% + {Digital Object Identifier for the document}% + \hyxmp@declare@property + [URL] + {url}% + {external}% + {URL at which the document can be found}% + \hyxmp@declare@property + [Integer] + {byteCount}% + {internal}% + {Approximate file size in octets}% + \hyxmp@declare@property + [Integer] + {pageCount}% + {internal}% + {Number of pages in the print version of the document}% + \hyxmp@declare@property + {subtitle}% + {external}% + {Document's subtitle}% + \hyxmp@end@ext@decl +}% +\newcommand*{\hyxmp@declare@extensions}{% + \hyxmp@begin@extension@decls + \hyxmp@mm@extensions \ifHy@pdfa - \hyxmp@add@to@xml{% -______^^J% - }% - \hyxmp@add@simple{pdfaid:part}{\@pdfapart}% - \hyxmp@add@simple{pdfaid:conformance}{\@pdfaconformance}% - \hyxmp@add@to@xml{% -______^^J% - }% + \hyxmp@mm@extensions + \fi + \ifx\hyxmp@iptc@data\@empty + \else + \hyxmp@iptc@extensions + \fi + \ifx\hyxmp@prism@data\@empty + \else + \hyxmp@prism@extensions \fi + \hyxmp@end@extension@decls } \begingroup \ifhyxmp@unicodetex @@ -1157,20 +1380,41 @@ ______^^J% \gdef\hyxmp@xml{}% \hyxmp@add@to@xml{^^J% -^^J% -___^^J% +__^^J% +____^^J% }% + \hyxmp@check@iptc@data + \hyxmp@check@prism@data + \hyxmp@declare@extensions \hyxmp@pdf@schema \hyxmp@xmpRights@schema \hyxmp@dc@schema \hyxmp@photoshop@schema - \hyxmp@photometa@schema \hyxmp@xmp@basic@schema \hyxmp@pdfa@id@schema \hyxmp@mm@schema + \hyxmp@iptc@schema + \hyxmp@prism@schema \hyxmp@add@to@xml{% -___^^J% +____^^J% +__^^J% ^^J% \hyxmp@padding ^^J% -- cgit v1.2.3