commonMain.com.ashampoo.xmp.XMPConst.kt Maven / Gradle / Ivy
// =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2006 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it.
// =================================================================================================
package com.ashampoo.xmp
/**
* Common constants for the XMP Toolkit.
*/
public object XMPConst {
/**
* The XML namespace for XML.
*/
public const val NS_XML: String = "http://www.w3.org/XML/1998/namespace"
/**
* The XML namespace for RDF.
*/
public const val NS_RDF: String = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
/**
* The XML namespace for the Dublin Core schema.
*/
public const val NS_DC: String = "http://purl.org/dc/elements/1.1/"
/**
* The XML namespace for the IPTC Core schema.
*/
public const val NS_IPTC_CORE: String = "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
/**
* The XML namespace for the IPTC Extension schema.
*/
public const val NS_IPTC_EXT: String = "http://iptc.org/std/Iptc4xmpExt/2008-02-29/"
/**
* The XML namespace for the DICOM medical schema.
*/
public const val NS_DICOM: String = "http://ns.adobe.com/DICOM/"
/**
* The XML namespace for the PLUS (Picture Licensing Universal System, http://www.useplus.org)
*/
public const val NS_PLUS: String = "http://ns.useplus.org/ldf/xmp/1.0/"
public const val NS_MWG_RS: String = "http://www.metadataworkinggroup.com/schemas/regions/"
/**
* The XML namespace Adobe XMP Metadata.
*/
public const val NS_X: String = "adobe:ns:meta/"
public const val NS_IX: String = "http://ns.adobe.com/iX/1.0/"
/**
* The XML namespace for the XMP "basic" schema.
*/
public const val NS_XMP: String = "http://ns.adobe.com/xap/1.0/"
/**
* The XML namespace for the XMP copyright schema.
*/
public const val NS_XMP_RIGHTS: String = "http://ns.adobe.com/xap/1.0/rights/"
/**
* The XML namespace for the XMP digital asset management schema.
*/
public const val NS_XMP_MM: String = "http://ns.adobe.com/xap/1.0/mm/"
public const val NS_XMP_BJ: String = "http://ns.adobe.com/xap/1.0/bj/"
public const val NS_XMP_NOTE: String = "http://ns.adobe.com/xmp/note/"
public const val NS_PDF: String = "http://ns.adobe.com/pdf/1.3/"
public const val NS_PDFX: String = "http://ns.adobe.com/pdfx/1.3/"
public const val NS_PDFX_ID: String = "http://www.npes.org/pdfx/ns/id/"
public const val NS_PDFA_SCHEMA: String = "http://www.aiim.org/pdfa/ns/schema#"
public const val NS_PDFA_PROPERTY: String = "http://www.aiim.org/pdfa/ns/property#"
public const val NS_PDFA_TYPE: String = "http://www.aiim.org/pdfa/ns/type#"
public const val NS_PDFA_FIELD: String = "http://www.aiim.org/pdfa/ns/field#"
public const val NS_PDFA_ID: String = "http://www.aiim.org/pdfa/ns/id/"
public const val NS_PDFA_EXTENSION: String = "http://www.aiim.org/pdfa/ns/extension/"
/**
* The XML namespace for the Photoshop Album schema.
*/
public const val NS_PS_ALBUM: String = "http://ns.adobe.com/album/1.0/"
/**
* The XML namespace for Adobe's EXIF schema.
*/
public const val NS_EXIF: String = "http://ns.adobe.com/exif/1.0/"
/**
* NS for the CIPA XMP for Exif document v1.1
*/
public const val NS_EXIF_CIPA: String = "http://cipa.jp/exif/1.0/"
public const val NS_EXIF_AUX: String = "http://ns.adobe.com/exif/1.0/aux/"
public const val NS_TIFF: String = "http://ns.adobe.com/tiff/1.0/"
public const val NS_PNG: String = "http://ns.adobe.com/png/1.0/"
public const val NS_JPEG: String = "http://ns.adobe.com/jpeg/1.0/"
public const val NS_JP2K: String = "http://ns.adobe.com/jp2k/1.0/"
public const val NS_CAMERA_RAW: String = "http://ns.adobe.com/camera-raw-settings/1.0/"
public const val NS_ADOBE_STOCK_PHOTO: String = "http://ns.adobe.com/StockPhoto/1.0/"
public const val NS_CREATOR_ATOM: String = "http://ns.adobe.com/creatorAtom/1.0/"
public const val NS_ASF: String = "http://ns.adobe.com/asf/1.0/"
public const val NS_WAV: String = "http://ns.adobe.com/xmp/wav/1.0/"
/**
* BExt Schema
*/
public const val NS_BWF: String = "http://ns.adobe.com/bwf/bext/1.0/"
/**
* RIFF Info Schema
*/
public const val NS_RIFF_INFO: String = "http://ns.adobe.com/riff/info/"
public const val NS_SCRIPT: String = "http://ns.adobe.com/xmp/1.0/Script/"
/**
* Transform XMP
*/
public const val NS_TRANSFORM_XMP: String = "http://ns.adobe.com/TransformXMP/"
/**
* Adobe Flash SWF
*/
public const val NS_SWF: String = "http://ns.adobe.com/swf/1.0/"
// XMP namespaces that are Adobe private
public const val NS_DM: String = "http://ns.adobe.com/xmp/1.0/DynamicMedia/"
public const val NS_TRANSIENT: String = "http://ns.adobe.com/xmp/transient/1.0/"
/**
* legacy Dublin Core NS, will be converted to NS_DC
*/
public const val NS_DC_DEPRECATED: String = "http://purl.org/dc/1.1/"
// Namespaces of products
public const val NS_ASHAMPOO: String = "http://ns.ashampoo.com/xmp/1.0/"
public const val NS_ACDSEE: String = "http://ns.acdsee.com/iptc/1.0/"
public const val NS_DIGIKAM: String = "http://www.digikam.org/ns/1.0/"
public const val NS_MYLIO: String = "http://ns.mylollc.com/MyloEdit/"
public const val NS_NARRATIVE: String = "http://ns.narrative.so/narrative_select/1.0/"
public const val NS_MICROSOFT_PHOTO: String = "http://ns.microsoft.com/photo/1.0/"
public const val NS_LIGHTROOM: String = "http://ns.adobe.com/lightroom/1.0/"
public const val NS_PHOTOSHOP: String = "http://ns.adobe.com/photoshop/1.0/"
// XML namespace constants for qualifiers and structured property fields.
/**
* The XML namespace for qualifiers of the xmp:Identifier property.
*/
public const val TYPE_IDENTIFIERQUAL: String = "http://ns.adobe.com/xmp/Identifier/qual/1.0/"
/**
* The XML namespace for fields of the Dimensions type.
*/
public const val TYPE_DIMENSIONS: String = "http://ns.adobe.com/xap/1.0/sType/Dimensions#"
public const val TYPE_AREA: String = "http://ns.adobe.com/xmp/sType/Area#"
public const val TYPE_TEXT: String = "http://ns.adobe.com/xap/1.0/t/"
public const val TYPE_PAGED_FILE: String = "http://ns.adobe.com/xap/1.0/t/pg/"
public const val TYPE_GRAPHICS: String = "http://ns.adobe.com/xap/1.0/g/"
/**
* The XML namespace for fields of a graphical image. Used for the Thumbnail type.
*/
public const val TYPE_IMAGE: String = "http://ns.adobe.com/xap/1.0/g/img/"
public const val TYPE_FONT: String = "http://ns.adobe.com/xap/1.0/sType/Font#"
/**
* The XML namespace for fields of the ResourceEvent type.
*/
public const val TYPE_RESOURCE_EVENT: String = "http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
/**
* The XML namespace for fields of the ResourceRef type.
*/
public const val TYPE_RESOURCE_REF: String = "http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
/**
* The XML namespace for fields of the Version type.
*/
public const val TYPE_ST_VERSION: String = "http://ns.adobe.com/xap/1.0/sType/Version#"
/**
* The XML namespace for fields of the JobRef type.
*/
public const val TYPE_ST_JOB: String = "http://ns.adobe.com/xap/1.0/sType/Job#"
public const val TYPE_MANIFEST_ITEM: String = "http://ns.adobe.com/xap/1.0/sType/ManifestItem#"
// ---------------------------------------------------------------------------------------------
// Basic types and constants
/**
* The canonical true string value for Booleans in serialized XMP. Code that converts from the
* string to a bool should be case-insensitive, and even allow "1".
*/
public const val TRUE_STRING: String = "True"
/**
* The canonical false string value for Booleans in serialized XMP. Code that converts from the
* string to a bool should be case-insensitive, and even allow "0".
*/
public const val FALSE_STRING: String = "False"
/**
* Index that has the meaning to be always the last item in an array.
*/
public const val ARRAY_LAST_ITEM: Int = -1
/**
* Node name of an array item.
*/
public const val ARRAY_ITEM_NAME: String = "[]"
/**
* The x-default string for localized properties
*/
public const val X_DEFAULT: String = "x-default"
/**
* xml:lang qualfifier
*/
public const val XML_LANG: String = "xml:lang"
/**
* rdf:type qualfifier
*/
public const val RDF_TYPE: String = "rdf:type"
/**
* Processing Instruction (PI) for xmp packet
*/
public const val XMP_PI: String = "xpacket"
/**
* XMP meta tag version new
*/
public const val TAG_XMPMETA: String = "xmpmeta"
/**
* XMP meta tag version old
*/
public const val TAG_XAPMETA: String = "xapmeta"
/** GPSVersionID as written by default by ExifTool. */
public const val DEFAULT_GPS_VERSION_ID: String = "2.3.0.0"
public const val XMP_DC_SUBJECT: String = "subject"
public const val XMP_ACDSEE_KEYWORDS: String = "keywords"
public const val XMP_IPTC_EXT_PERSON_IN_IMAGE: String = "PersonInImage"
public const val XMP_MWG_RS_TYPE_FACE: String = "Face"
public const val XMP_MWG_RS_REGION_LIST: String = "Regions/mwg-rs:RegionList"
public const val XMP_MWG_RS_APPLIED_TO_DIMENSIONS: String = "Regions/mwg-rs:AppliedToDimensions"
/* xmpDM:pick="1" or xmpDM:pick="0" */
public const val FLAGGED_TAG_ADOBE_NAME: String = "pick"
public const val FLAGGED_TAG_ADOBE_TRUE: String = "1"
public const val FLAGGED_TAG_ADOBE_FALSE: String = "0"
/* True or False */
public const val FLAGGED_TAG_ACDSEE_NAME: String = "tagged"
public const val FLAGGED_TAG_ACDSEE_TRUE: String = TRUE_STRING
public const val FLAGGED_TAG_ACDSEE_FALSE: String = FALSE_STRING
/* MY:flag="true" or MY:flag="false" */
public const val FLAGGED_TAG_MYLIO_NAME: String = "flag"
public const val FLAGGED_TAG_MYLIO_TRUE: String = "true"
public const val FLAGGED_TAG_MYLIO_FALSE: String = "false"
/* narrative:Tagged="True" or narrative:Tagged="False" */
public const val FLAGGED_TAG_NARRATIVE_NAME: String = "Tagged"
public const val FLAGGED_TAG_NARRATIVE_TRUE: String = TRUE_STRING
public const val FLAGGED_TAG_NARRATIVE_FALSE: String = FALSE_STRING
public const val XMP_ASHAMPOO_ALBUMS: String = "albums"
}