From b439ac096d4b61bc5522ec29e5fb8260463e06a9 Mon Sep 17 00:00:00 2001
From: David Robillard
Date: Sat, 5 Nov 2011 00:09:48 +0000
Subject: Fix invalid markup.
---
ext/pui-event.lv2/pui-event.ttl | 1 +
ext/pui.lv2/pui.ttl | 26 +++++++++++++-------------
ext/reference.lv2/reference.ttl | 2 +-
lv2specgen/lv2specgen.py | 11 ++++++-----
4 files changed, 21 insertions(+), 19 deletions(-)
diff --git a/ext/pui-event.lv2/pui-event.ttl b/ext/pui-event.lv2/pui-event.ttl
index 6133b38..031b9e5 100644
--- a/ext/pui-event.lv2/pui-event.ttl
+++ b/ext/pui-event.lv2/pui-event.ttl
@@ -80,4 +80,5 @@ puiev:events a pui:PortProtocol;
the same run() call or distributed over multiple calls.
The data pointer in the LV2_Feature object for this feature should be
NULL.
+
""".
diff --git a/ext/pui.lv2/pui.ttl b/ext/pui.lv2/pui.ttl
index 8c289bc..98db919 100644
--- a/ext/pui.lv2/pui.ttl
+++ b/ext/pui.lv2/pui.ttl
@@ -51,7 +51,7 @@
lv2:documentation """
This extension defines an interface that can be used to create UIs for
plugins. The UIs are code that reside in shared object files in an LV2
-bundle and are referenced in the RDF data using the triples
+bundle and are referenced in the RDF data using the triples:
@prefix pui: <http://lv2plug.in/ns/ext/pui#> .
@prefix pui-gtk: <http://lv2plug.in/ns/ext/pui-gtk#> .
@@ -59,7 +59,7 @@ bundle and are referenced in the RDF data using the triples
lv2:appliesTo <http://example.org/my-plugin> ;
pui:binary <my-ui.so> .
-where http://example.org/my-plugin
is the URI of the plugin,
+... where http://example.org/my-plugin
is the URI of the plugin,
http://example.org/my-ui
is the URI of the plugin UI and
my-ui.so
is the relative URI to the shared object file. While it
is possible to have the plugin UI and the plugin in the same shared object file
@@ -103,20 +103,20 @@ pui:UI a rdfs:Class;
The class which represents an LV2 plugin UI.
-To be used by a host a UI MUST have at least the following properties:
+
To be used by a host a UI MUST have at least the following properties:
- rdf:type (with object a proper subclass of pui:UI)
- doap:name (one without language tag)
- lv2:binary (with a shared object file as object)
- lv2:appliesTo (with a LV2 plugin as object)
-
-The rdf:type of an UI is used by the host to decide whether it supports the
+
+
+The rdf:type of an UI is used by the host to decide whether it supports the
UI and how to handle the LV2_PUI_Widget object that is returned by the UIs
-get_widget() function. For example, a type of pui-gtk:GtkGUI might tell the host
-that LV2_PUI_Widget is a pointer to an object of a type defined in the Gtk+
-library. No UI types are defined in this extension, that is intentionally
-left for other extensions.
-
+get_widget() function. For example, a type of pui-gtk:GtkGUI might tell the
+host that LV2_PUI_Widget is a pointer to an object of a type defined in the
+Gtk+ library. No UI types are defined in this extension, that is intentionally
+left for other extensions.
The doap:name property should be at most a few words in length using title
capitalization, e.g. "Flashy Mixer GUI". Use lv2:documentation for more
@@ -148,14 +148,14 @@ and plugin. PortProtocols can be specified in additional extensions, and
those extensions MUST specify:
-
+
- Which plugin port types the buffer type is valid for
- When the host should call port_event() in LV2_PUI_Descriptor
- The format of the data in the buffer passed to port_event()
- The format of the data in the buffer passed to write_port()
- What happens when the UI calls write_port() in LV2_PUI_Host_Descriptor
- What data (if any) should be passed in the LV2_Feature data pointer.
-
+
For an example, see pui:floatControl or pui:floatPeakRMS.
@@ -210,7 +210,7 @@ period.
However, UIs MUST NOT depend on either the regularity of the calls or the
contiguity of the measurement periods; hosts may change the call rate
or skip calls for performance or other reasons. Measurement periods for
- different calls to port_event() for the same port MUST NOT overlap.
+ different calls to port_event() for the same port MUST NOT overlap.
The format of the data in the buffer passed to port_event() is a single
LV2_PUI_Peak_RMS_Data object, and the buffer size is
sizeof(LV2_PUI_Peak_RMS_Data).
diff --git a/ext/reference.lv2/reference.ttl b/ext/reference.lv2/reference.ttl
index fae31d3..e59e0ae 100644
--- a/ext/reference.lv2/reference.ttl
+++ b/ext/reference.lv2/reference.ttl
@@ -71,7 +71,7 @@ LV2_Blob_Support.
reference:Blob a rdfs:Class ;
rdfs:label "Blob" ;
lv2:documentation """
-Base class for all dynamically allocated blobs. An Base class for all dynamically allocated blobs. An LV2_Blob is an opaque
pointer to host data. The type and data of a blob can be accessed via
host-provided functions in LV2_Blob_Support. The type of a blob can be any URI
that describes a data format. Blobs are always allocated by the host, and
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 822f539..d81e500 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -299,36 +299,37 @@ def rdfsPropertyInfo(term, m):
# Domain stuff
domains = findStatements(m, term, rdfs.domain, None)
domainsdoc = ""
+ first = True
for d in domains:
union = findOne(m, getObject(d), owl.unionOf, None)
if union:
uris = parseCollection(m, getObject(union))
- first = True
for uri in uris:
domainsdoc += getProperty(getTermLink(uri, term, rdfs.domain), first)
add(classdomains, uri, term)
- first = False
else:
if not isBlank(getObject(d)):
- domainsdoc += getProperty(getTermLink(getObject(d), term, rdfs.domain))
+ domainsdoc += getProperty(getTermLink(getObject(d), term, rdfs.domain), first)
+ first = False
if (len(domainsdoc) > 0):
doc += "Domain | %s" % domainsdoc
# Range stuff
ranges = findStatements(m, term, rdfs.range, None)
rangesdoc = ""
+ first = True
for r in ranges:
union = findOne(m, getObject(r), owl.unionOf, None)
if union:
uris = parseCollection(m, getObject(union))
- first = True
for uri in uris:
rangesdoc += getProperty(getTermLink(uri, term, rdfs.range), first)
add(classranges, uri, term)
first = False
else:
if not isBlank(getObject(r)):
- rangesdoc += getProperty(getTermLink(getObject(r), term, rdfs.range))
+ rangesdoc += getProperty(getTermLink(getObject(r), term, rdfs.range), first)
+ first = False
if (len(rangesdoc) > 0):
doc += "
---|
Range | %s" % rangesdoc
--
cgit v1.2.1
---|