<caps>
(Display All Characters As Capital Letters)
This element specifies that any lowercase characters in this text run shall be formatted for display only as their capital letter character equivalents. This property does not affect any non-alphabetic character in this run, and does not change the Unicode character for lowercase text, only the method in which it is displayed.
This formatting property is a toggle property, which specifies that its behavior differs between its use within a style definition and its use as direct formatting. When used as part of a style definition, setting this property shall toggle the current state of that property as specified up to this point in the hierarchy (i.e. applied to not applied, and vice versa). Setting it to false
(or an equivalent) shall result in the current setting remaining unchanged. However, when used as direct formatting, setting this property to true
or false
shall set the absolute state of the resulting property.
If this element is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this element is never applied in the style hierarchy, then the characters are not formatted as capital letters.
This element shall not be present with the <smallCaps>
(§2.3.2.31) property on the same run, since they are mutually exclusive in terms of appearance.
<w:r> <w:rPr> <w:caps w:val="true" /> </w:rPr> <w:t>Hello World</w:t> </w:r>
This run will display as HELLO WORLD
, even though the lowercase characters are used in the run contents due to the use of the <caps>
element. If this property is removed, the original character forms will be displayed (they are not lost). ]
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies a binary value for the property defined by the parent XML element. A value of A value of <w:… w:val="off"/> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_OnOff">
<attribute name="val" type="ST_OnOff"/>
</complexType>