The starting point of the line may be identified in absolute output coordinate terms using the x and y attributes. The attributes in the att.visualOffset class may be used to record horizontal, vertical, or time offsets from these absolute coordinates or from the location of the element reference in the startid attribute. Similarly, the terminal point of the line may be recorded using the x2 and y2 attributes. Attributes in the att.visualOffset2 class maybe used to record the offsets of the ending point. Textual content of the line element, e.g., 'gliss.', may be rendered with the line. The appearance of the line is captured in the color, form and width attributes.
<elementSpec ident="line" module="MEI.usersymbols">
<desc xml:lang="en">A visual line that cannot be represented by a more specific;
<abbr>i.e.</abbr>, semantic,
element.</desc>
<classes>
<memberOf key="att.common"/>
<memberOf key="att.facsimile"/>
<memberOf key="att.line.anl"/>
<memberOf key="att.line.ges"/>
<memberOf key="att.line.log"/>
<memberOf key="att.line.vis"/>
<memberOf key="model.graphicPrimitiveLike"/>
</classes>
<content>
<rng:zeroOrMore>
</rng:zeroOrMore>
</content>
<constraintSpec ident="line_start-_and_end-type_attributes_required" scheme="schematron">
<constraint>
<sch:rule context="mei:line[ancestor::mei:symbolDef]">
<sch:assert test="@startid or (@x and @y)">When used in the symbolDef context, must have
either a startid attribute or x and y attributes.</sch:assert>
<sch:assert test="@endid or (@x2 and @y2)">When used in the symbolDef context, must have
either an endid attribute or both x2 and y2 attributes.</sch:assert>
</sch:rule>
<sch:rule context="mei:line[not(ancestor::mei:symbolDef)]">
<sch:assert test="@startid or @tstamp or @tstamp.ges or @tstamp.real or (@x and @y)">When
used in the score context, must have a startid, tstamp, tstamp.ges or tstamp.real
attribute or both x and y attributes.</sch:assert>
<sch:assert test="@dur or @dur.ges or @endid or @tstamp2 or (@x2 and @y2)">When used in
the score context, must have an endid, dur, dur.ges, or tstamp2 attribute or both
x2 and
y2 attributes.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<remarks xml:lang="en">
<p>The starting point of the line may be identified in absolute output coordinate terms
using
the <att>x</att> and <att>y</att> attributes. The attributes in the att.visualOffset class
may be used to record horizontal, vertical, or time offsets from these absolute coordinates
or from the location of the element reference in the <att>startid</att> attribute.
Similarly, the terminal point of the line may be recorded using the <att>x2</att> and
<att>y2</att> attributes. Attributes in the att.visualOffset2 class maybe used to record the
offsets of the ending point. Textual content of the <gi scheme="MEI">line</gi> element,
<abbr>e.g.</abbr>,
'gliss.', may be rendered with the line. The appearance of the line is captured in
the
color, <att>form</att> and <att>width</att> attributes.</p>
</remarks>
</elementSpec>