<metDecl>

<metDecl> (metrical notation declaration) 在標記韻文時所用到的結構性元素(例:<lg><l>、或<seg>)當中,若使用metreal、或rhyme等屬性的屬性值來表示文章的韻律模式,則在此宣告標記韻律模式的方法。 6.5 Metrical Notation Declaration 6.3 Rhyme and Metrical Analysis
組件verse — 6 Verse
屬性 att.declarable (@default)
typeindicates whether the notation conveys the abstract metrical form, its actual prosodic realization, or the rhyme scheme, or some combination thereof.
狀態 可應用時必備的
資料類型 1–3 occurrences of
data.enumerated
以空白鍵隔開
Values are:
met
(met attribute) 屬性met
real
(real attribute) 屬性realTO BE TRANSLATED
rhyme
(rhyme attribute) declaration applies to the rhyme scheme recorded on the rhyme attribute
By default, the <metDecl> element documents the notation used for metrical pattern and realization. It may also be used to document the notation used for rhyme scheme information; if not otherwise documented, the rhyme scheme notation defaults to the traditional ‘abab’ notation.
pattern (regular expression pattern) TO BE TRANSLATED
狀態 非必備的
資料類型
data.pattern
the value must be a valid regular expression per the World Wide Web Consortium's XML Schema Part 2: Datatypes Second Edition, Appendix F
屬於 model.encodingPart
可包含
core: note p
linking: ab
textcrit: witDetail
verse: metSym
宣告
element metDecl
{
   att.global.attributes,
   att.declarable.attributes,
   attribute type
   {
      list { data.enumerated, data.enumerated?, data.enumerated? }
   }?,
   attribute pattern { data.pattern }?,
   ( ( model.pLike | model.noteLike )+ | metSym+ )
}
例子
<metDecl xml:id="iptype="metpattern="((SU|US)USUSUSUS/)">
 <metSym value="S">stressed syllable</metSym>
 <metSym value="U">unstressed syllable</metSym>
 <metSym value="/">metrical line boundary</metSym>
</metDecl>

This example is intended for the far more restricted case typified by the Shakespearean iambic pentameter. Only metrical patterns containing exactly ten syllables, alternately stressed and unstressed, (except for the first two which may be in either order) to each metrical line can be expressed using this notation.

The encoder may choose whether to define the notation formally or informally. However, the two methods may not be mixed. That is, <metDecl> may contain either a sequence of <metSym> elements or, alternately, a series of paragraphs or other components. If the pattern attribute is specified and <metSym> elements are used, then all the codes appearing within the pattern attribute should be documented.
Only usable within the header if the verse module is used.