<rt>

<rt> (ruby text) contains a ruby text, an annotation closely associated with a passage of the main text. [3.4.2 Ruby Annotations]
組件core — Elements Available in All TEI Documents
屬性att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) (att.global.source (@source)) att.typed (@type, @subtype) att.placement (@place) att.transcriptional (@status, @cause, @seq) (att.editLike (@evidence, @instant)) (att.written (@hand))
targetsupplies a pointer to the base being glossed by this ruby text.
狀態 非必備的
資料類型 teidata.pointer
SchematronEnforce that either target or both from and to (or none) are used, but not target in combination with either from or to.

<sch:report test="../@from | ../@to">When target= is
present, neither from= nor to= should be.</sch:report>
frompoints to the starting point of the span of text being glossed by this ruby text.
狀態 非必備的
資料類型 teidata.pointer
SchematronEnforce the presence of to iff there is a from.

<sch:assert test="../@to">When from= is present, the to=
attribute of <sch:name/> is required.</sch:assert>
topoints to the ending point of the span of text being glossed.
狀態 非必備的
資料類型 teidata.pointer
SchematronEnforce the presence of from iff there is a to.

<sch:assert test="../@from">When to= is present, the from=
attribute of <sch:name/> is required.</sch:assert>
可包含在於
core: ruby
可包含

Where the place attribute is not provided on the rt element, the default assumption is that the ruby gloss is above where the text is horizontal, and to the right of the text where it is vertical.

Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
宣告
<rng:element name="rt">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.typed.attributes"/>
 <rng:ref name="att.placement.attributes"/>
 <rng:ref name="att.transcriptional.attributes"/>
 <rng:ref name="att.editLike.attributes"/>
 <rng:ref name="att.written.attributes"/>
 <rng:optional>
  <rng:attribute name="target">
   <rng:ref name="teidata.pointer"/>
  </rng:attribute>
 </rng:optional>
 <xhtml:tr>
  <xhtml:td>[#rt-target-not-span]</xhtml:td>
  <xhtml:td>
   <xhtml:div id="index-egXML-d254084e1"
    class="pre egXML_valid">

    <xhtml:span class="element"><constraint></xhtml:span>
    <xhtml:br/>
    <xhtml:span class="element"><sch:report <xhtml:span class="attribute">test</xhtml:span>="<xhtml:span class="attributevalue">../@from | ../@to</xhtml:span>"></xhtml:span>When target= is<xhtml:br/> present, neither from= nor to= should be.<xhtml:span class="element"></sch:report></xhtml:span>
    <xhtml:br/>
    <xhtml:span class="element"></constraint></xhtml:span>
    <xhtml:div style="float: right;">
     <xhtml:a class="bookmarklink"
      href="#index-egXML-d254084e1">
</xhtml:a>
    </xhtml:div>
   </xhtml:div>
  </xhtml:td>
 </xhtml:tr>
 <rng:optional>
  <rng:attribute name="from">
   <rng:ref name="teidata.pointer"/>
  </rng:attribute>
 </rng:optional>
 <xhtml:tr>
  <xhtml:td>[#rt-from]</xhtml:td>
  <xhtml:td>
   <xhtml:div id="index-egXML-d254107e1"
    class="pre egXML_valid">

    <xhtml:span class="element"><constraint></xhtml:span>
    <xhtml:br/>
    <xhtml:span class="element"><sch:assert <xhtml:span class="attribute">test</xhtml:span>="<xhtml:span class="attributevalue">../@to</xhtml:span>"></xhtml:span>When from= is present, the to=<xhtml:br/> attribute of <xhtml:span class="element"><sch:name/></xhtml:span> is required.<xhtml:span class="element"></sch:assert></xhtml:span>
    <xhtml:br/>
    <xhtml:span class="element"></constraint></xhtml:span>
    <xhtml:div style="float: right;">
     <xhtml:a class="bookmarklink"
      href="#index-egXML-d254107e1">
</xhtml:a>
    </xhtml:div>
   </xhtml:div>
  </xhtml:td>
 </xhtml:tr>
 <rng:optional>
  <rng:attribute name="to">
   <rng:ref name="teidata.pointer"/>
  </rng:attribute>
 </rng:optional>
 <xhtml:tr>
  <xhtml:td>[#rt-to]</xhtml:td>
  <xhtml:td>
   <xhtml:div id="index-egXML-d254136e1"
    class="pre egXML_valid">

    <xhtml:span class="element"><constraint></xhtml:span>
    <xhtml:br/>
    <xhtml:span class="element"><sch:assert <xhtml:span class="attribute">test</xhtml:span>="<xhtml:span class="attributevalue">../@from</xhtml:span>"></xhtml:span>When to= is present, the from=<xhtml:br/> attribute of <xhtml:span class="element"><sch:name/></xhtml:span> is required.<xhtml:span class="element"></sch:assert></xhtml:span>
    <xhtml:br/>
    <xhtml:span class="element"></constraint></xhtml:span>
    <xhtml:div style="float: right;">
     <xhtml:a class="bookmarklink"
      href="#index-egXML-d254136e1">
</xhtml:a>
    </xhtml:div>
   </xhtml:div>
  </xhtml:td>
 </xhtml:tr>
 <rng:ref name="macro.phraseSeq"/>
</rng:element>
element rt
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.typed.attributes,
   att.placement.attributes,
   att.transcriptional.attributes,
   att.editLike.attributes,
   att.written.attributes,
   attribute target { teidata.pointer }?
   >>
   d254080e22:tr
   [
      "[#rt-target-not-span]"
      "<constraint>"
      "<sch:report "
      "test"
      """=""""
      "../@from | ../@to"
      """">"""
      "When target= is"
      " present, neither from= nor to= should be."
      "</sch:report>"
      "</constraint>"
      "⚓"
   ],
   attribute from { teidata.pointer }?
   >>
   d254080e22:tr
   [
      "[#rt-from]"
      "<constraint>"
      "<sch:assert "
      "test"
      """=""""
      "../@to"
      """">"""
      "When from= is present, the to="
      " attribute of "
      "<sch:name/>"
      " is required."
      "</sch:assert>"
      "</constraint>"
      "⚓"
   ],
   attribute to { teidata.pointer }?
   >>
   d254080e22:tr
   [
      "[#rt-to]"
      "<constraint>"
      "<sch:assert "
      "test"
      """=""""
      "../@from"
      """">"""
      "When to= is present, the from="
      " attribute of "
      "<sch:name/>"
      " is required."
      "</sch:assert>"
      "</constraint>"
      "⚓"
   ],
   macro.phraseSeq
}