as_lang_alt | R Documentation |
as_lang_alt()
coerces to an XMP "language alternative" structure
suitable for use with xmp()
objects.
as_lang_alt(x, ...)
## S3 method for class 'character'
as_lang_alt(x, ..., default_lang = getOption("xmpdf_default_lang"))
## S3 method for class 'lang_alt'
as_lang_alt(x, ...)
## S3 method for class 'list'
as_lang_alt(x, ..., default_lang = getOption("xmpdf_default_lang"))
x |
Object suitable for coercing |
... |
Ignored |
default_lang |
Language tag value to copy as the "x-default" |
A named list of class "lang_alt".
xmp()
, as_xmp()
, get_xmp()
, and set_xmp()
.
For more information about the XMP "language alternative" structure see
https://github.com/adobe/xmp-docs/blob/master/XMPNamespaces/XMPDataTypes/CoreProperties.md#language-alternative.
as_lang_alt("A single title")
as_lang_alt(c(en = "An English Title", fr = "A French Title"))
as_lang_alt(c(en = "An English Title", fr = "A French Title"), default_lang = "en")
as_lang_alt(list(en = "An English Title", fr = "A French Title"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.