5.4 Ruby
A ruby is additional text that is displayed above or below
some base text. The purpose of ruby is to annotate the base text or provide
information about its pronunciation.
There are two elements that can be contained in the <text:ruby>
element:
�
Ruby base
�
Ruby text
The <text:ruby-base> element contains the text that
is to be annotated. It contains any paragraph element content, like text spans.
The element's text:style-name attribute references
a ruby style that specifies further formatting attributes of the ruby. See
section 14.8.4 for details.
The <text:ruby-text > element contains the
annotation text. It may contain only plain text. The element's text:style-name attribute references a text style that
specifies further formatting attributes used for the text.
<define name="paragraph-content"
combine="choice">
<element
name="text:ruby">
<optional>
<attribute
name="text:style-name">
<ref
name="styleNameRef"/>
</attribute>
</optional>
<element
name="text:ruby-base">
<ref
name="paragraph-content"/>
</element>
<element
name="text:ruby-text">
<optional>
<attribute
name="text:style-name">
<ref
name="styleNameRef"/>
</attribute>
</optional>
<text/>
</element>
</element>
</define>