<ruby>

<ruby> (ruby container) contains a passage of base text along with its associated ruby gloss(es). [3.4.2 Ruby Annotations]
組件 core — Elements Available in All TEI Documents
屬性
俱乐部会员
可包含在於
analysis: cl phr s
cmc: post
figures: cell
linking: ab seg
spoken: u writing
tagdocs: eg
textcrit: lem rdg wit witDetail
verse: rhyme
可包含
core: rb rt
例子

The word 入学試験 nyūgakushiken (university entrance exam) is glossed with a hiragana phonation guide.

<p xml:lang="ja">
<!--...-->
 <ruby>
  <rb>入学試験</rb>
  <rt place="above">にゅうがくしけん</rt>
 </ruby>
<!--...-->
</p>
例子

This fictional example shows the initialism TEI glossed letter-by-letter with an IPA transcription.

<ruby>
 <rb>T</rb>
 <rt>ti:</rt>
</ruby>
<ruby>
 <rb>E</rb>
 <rt>i:</rt>
</ruby>
<ruby>
 <rb>I</rb>
 <rt></rt>
</ruby>
Content model
<content>
 <sequence>
  <elementRef key="rbminOccurs="1"
   maxOccurs="1"/>

  <elementRef key="rtminOccurs="1"
   maxOccurs="unbounded"/>

 </sequence>
</content>
宣告
<rng:element name="ruby">
 <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.cmc.attributes"/>
 <rng:group>
  <rng:ref name="rb"/>
  <rng:oneOrMore>
   <rng:ref name="rt"/>
  </rng:oneOrMore>
 </rng:group>
</rng:element>
element ruby
{
   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.cmc.attributes,
   ( rb, rt+ )
}