<ruby>

<ruby> (ruby container) contains a passage of base text along with its associated ruby gloss(es). [3.4.2 Ruby Annotations]
Modulecore — Elements Available in All TEI Documents
Attributesatt.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)
Member of
Contained by
analysis: cl phr s
figures: cell
linking: ab seg
spoken: u writing
tagdocs: eg
textcrit: lem rdg wit witDetail
verse: rhyme
May contain
core: rb rt
Example

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>
Schema Declaration
<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: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,
   ( rb, rt+ )
}