aboutsummaryrefslogtreecommitdiffstats
path: root/lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-05 00:33:51 +0000
committerDavid Robillard <d@drobilla.net>2012-03-05 00:33:51 +0000
commite95748284bcc77937824756fbbe4b2a9d57297e1 (patch)
treeee6fcd3a402a662c86f78fdeaee9d560eaa134b8 /lv2
parentf4744afff6c6975b57a50255c1c388c77cccd414 (diff)
downloadlv2-e95748284bcc77937824756fbbe4b2a9d57297e1.tar.xz
Update to support 2-character language codes with new lexvo URIs (courtesy of Gerard de Melo).
Diffstat (limited to 'lv2')
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/atom.ttl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lv2/lv2plug.in/ns/ext/atom/atom.ttl b/lv2/lv2plug.in/ns/ext/atom/atom.ttl
index 4d7c98e..63304b0 100644
--- a/lv2/lv2plug.in/ns/ext/atom/atom.ttl
+++ b/lv2/lv2plug.in/ns/ext/atom/atom.ttl
@@ -188,8 +188,9 @@ string in any language or a value of any type. A Literal has a
encoding. The length of the string data in bytes is <code>size -
sizeof(LV2_Atom_Literal)</code>, including the terminating NULL character. The
<code>lang</code> field SHOULD be a URI of the form
-&lt;http://lexvo.org/id/iso639-3/LANG&gt; where LANG is an <a
-href="http://www.loc.gov/standards/iso639-3/">ISO 693-3</a> language code.</p>
+&lt;http://lexvo.org/id/iso639-3/LANG&gt; or
+&lt;http://lexvo.org/id/iso639-1/LANG&gt; where LANG is a 3-character ISO 693-3
+language code, or a 2-character ISO 693-1 language code, respectively.</p>
<p>A Literal may have a <code>datatype</code> OR a <code>lang</code>, but never
both.</p>
@@ -200,7 +201,7 @@ void set_to_hello_in_english(LV2_Atom_Literal* lit) {
lit->atom.type = map(expand("atom:Literal"));
lit->atom.size = 14;
lit->datatype = 0;
- lit->lang = map("http://lexvo.org/id/iso639-3/eng");
+ lit->lang = map("http://lexvo.org/id/iso639-1/en");
memcpy(LV2_ATOM_CONTENTS(LV2_Atom_Literal, lit),
"Hello",
sizeof("Hello")); // Assumes enough space