[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

characterSpacingControl (Character-Level Whitespace Compression)

This element specifies how full-width characters in the current WordprocessingML document should be compressed to remove additional whitespace when the contents of this document are displayed, specifically by specifying the set(s) of characters which may be compressed to remove additional whitespace. [Note: The behavior of this element is functionally identical to the CSS text-justify-trim property. end note]

If this element is omitted, then the default value shall be dontCompress.

[Example: Consider the WordprocessingML below:    

<w:characterSpacingControl w:val="dontCompress" />

The characterSpacingControl element has a val attribute value of dontCompress, which specifies that no character compression shall be applied to any character when the document is displayed. end example]

Parent Elements

settings2.15.1.78)

 

Attributes

Description

val (Value)

Specifies the set(s) of characters which should be compressed when the contents of this document are displayed.

 

[Example: Consider a WordprocessingML document for which only full-width punctuation characters shall have their whitespace compression applied. This requirement would be specified using the following WordprocessingML:

 

<w:characterSpacingControl w:val="compressPunctuation"/>

 

The val attribute value of compressPunctuation specifies that character compression shall be applied to full-width punctuation characters only when the document is displayed. end example]

 

The possible values for this attribute are defined by the ST_CharacterSpacing simple type2.18.10).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_CharacterSpacing">

   <attribute name="val" type="ST_CharacterSpacing" use="required"/>

</complexType>