w:autoSpaceDN (Automatic Spacing Between East Asian and Numeric Text)
Automatically inserts a small amount of space between East Asian (CJK) characters and Arabic numerals within a paragraph.
Parent elements
Description
w:autoSpaceDN (auto-space Double-byte and Numbers) is a toggle property that instructs the processor to automatically insert a small half-width space between contiguous East Asian (CJK) characters and Arabic numeral runs. This improves readability in documents that mix CJK text with numbers.
It is defined in ECMA-376 Part 1 §17.3.1.3.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_OnOff |
true, false, 1, 0, on, off |
Enables automatic spacing between CJK and numeral runs. Omit to inherit. |
Examples
<w:p>
<w:pPr>
<w:autoSpaceDN/>
</w:pPr>
<w:r><w:t>第3章のサンプル2024年度版</w:t></w:r>
</w:p>
using DocumentFormat.OpenXml.Wordprocessing;
var para = new Paragraph(
new ParagraphProperties(
new AutoSpaceDN()
),
new Run(new Text("第3章のサンプル2024年度版"))
);
Notes
- Typically enabled alongside
w:autoSpaceDEin East Asian document templates. - The space amount is processor-defined, generally a quarter of an em width.