w:autoSpaceDE (Automatic Spacing Between East Asian and Latin Text)
Automatically inserts a small amount of space between East Asian (CJK) and Latin characters within a paragraph.
Parent elements
Description
w:autoSpaceDE (auto-space Double-byte and English) is a toggle property that instructs the processor to automatically add a small half-width space between contiguous East Asian (CJK) and Latin text segments. This improves readability when two scripts are mixed in a paragraph.
It is defined in ECMA-376 Part 1 §17.3.1.2.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_OnOff |
true, false, 1, 0, on, off |
Enables automatic spacing between CJK and Latin runs. Omit to inherit. |
Examples
<w:p>
<w:pPr>
<w:autoSpaceDE/>
</w:pPr>
<w:r><w:t xml:space="preserve">日本語とEnglishが混在するテキスト。</w:t></w:r>
</w:p>
using DocumentFormat.OpenXml.Wordprocessing;
var para = new Paragraph(
new ParagraphProperties(
new AutoSpaceDE()
),
new Run(new Text("日本語とEnglishが混在するテキスト。"))
);
Notes
w:autoSpaceDEapplies between CJK characters and Latin letters/symbols.w:autoSpaceDNcontrols spacing between CJK characters and Arabic numerals. Both properties are typically enabled together.- The amount of space inserted is defined by the processor; it is usually one quarter of the CJK em width.