RubyProperties class
Phonetic Guide Properties. When the object is serialized out as xml, its qualified name is w:rubyPr.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.RubyProperties
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
rubyPr (Phonetic Guide Properties)
This element specifies a set of properties which determine the behavior and appearance of a phonetic guide within the document.
[Example: Consider the following two runs, each containing a phonetic guide:
tō東tō東kyō京kyō京
The properties for both of these phonetic guides are as follows:
<w:r>
<w:ruby>
<w:rubyPr>
<w:rubyAlign w:val="distributeSpace" />
<w:hps w:val="16" />
<w:hpsRaise w:val="20" />
<w:hpsBaseText w:val="22" />
<w:lid w:val="ja-JP" />
</w:rubyPr>
… </w:ruby>
</w:r>The phonetic guide properties specify that the guide text must be:
Distributed across the top (using the rubyAlign element)
8 point font face (using the hps element)
10 points above the base text (using the hpaRaise element)
Japanese (using the lid element)
As well, the phonetic guide properties specify that the base text must be:
11 point font face (using the hpsBaseText element)
end example]
Parent Elements |
|---|
ruby (§17.3.3.25) |
Child Elements | Subclause |
|---|---|
dirty (Invalidated Field Cache) | §17.3.3.8 |
hps (Phonetic Guide Text Font Size) | §17.3.3.10 |
hpsBaseText (Phonetic Guide Base Text Font Size) | §17.3.3.11 |
hpsRaise (Distance Between Phonetic Guide Text and Phonetic Guide Base Text) | §17.3.3.12 |
lid (Language ID for Phonetic Guide) | §17.3.3.14 |
rubyAlign (Phonetic Guide Text Alignment) | §17.3.3.26 |
[Note: The W3C XML Schema definition of this element’s content model (CT_RubyPr) is located in §A.1. end note]
© ISO/IEC29500: 2008.