<ruby>

<ruby> (ruby container) contains a passage of base text along with its associated ruby gloss(es). [3.4.2 Ruby Annotations]
Modulo core — Elements Available in All TEI Documents
Attributi
Membro del
Contenuto in
analysis: cl phr s
cmc: post
figures: cell
linking: ab seg
spoken: u writing
tagdocs: eg
textcrit: lem rdg wit witDetail
verse: rhyme
Può contenere
core: rb rt
Esempio

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>
Esempio

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>
Dichiarazione
<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+ )
}