Reference materials for implementing the DOCX editor.
reference/
├── quick-ref/ # Human-readable quick references
│ ├── wordprocessingml.md # Paragraphs, runs, formatting
│ └── themes-colors.md # Theme colors, fonts
└── ecma-376/
├── overview.pdf # High-level OOXML overview
├── part1/
│ ├── *.pdf # Full spec (~5000 pages)
│ └── schemas/
│ ├── wml.xsd # WordprocessingML schema
│ └── dml-main.xsd # DrawingML (colors, themes)
└── part4/
└── *.pdf # Transitional features
| File | Use For |
|---|---|
wml.xsd |
Document structure: <w:p>, <w:r>, <w:t>, <w:rPr>, <w:pPr> |
dml-main.xsd |
Colors, themes, fonts: <a:clrScheme>, <a:fontScheme> |
overview.pdf |
Quick intro to OOXML concepts |
| Part 1 PDF | Definitive reference for all elements |
- ECMA-376 Official: https://ecma-international.org/publications-and-standards/standards/ecma-376/
- Microsoft Open Specs: https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/
- OfficeOpenXML.com: http://officeopenxml.com/ (human-readable element docs)
- Open XML SDK: https://learn.microsoft.com/en-us/office/open-xml/open-xml-sdk
<w:document> <!-- Root document -->
<w:body> <!-- Document body -->
<w:p> <!-- Paragraph -->
<w:pPr> <!-- Paragraph properties -->
<w:jc w:val="center"/> <!-- Alignment -->
<w:spacing w:line="360"/> <!-- Line spacing -->
</w:pPr>
<w:r> <!-- Run (text with formatting) -->
<w:rPr> <!-- Run properties -->
<w:b/> <!-- Bold -->
<w:i/> <!-- Italic -->
<w:sz w:val="24"/> <!-- Font size (half-points) -->
<w:color w:val="FF0000"/> <!-- Text color -->
</w:rPr>
<w:t>Text</w:t> <!-- Actual text content -->
</w:r>
</w:p>
</w:body>
</w:document><a:clrScheme name="Office">
<a:dk1>...</a:dk1> <!-- Dark 1 (usually black) -->
<a:lt1>...</a:lt1> <!-- Light 1 (usually white) -->
<a:dk2>...</a:dk2> <!-- Dark 2 -->
<a:lt2>...</a:lt2> <!-- Light 2 -->
<a:accent1>...</a:accent1> <!-- Accent colors 1-6 -->
...
</a:clrScheme><w:style w:type="paragraph" w:styleId="Heading1">
<w:name w:val="heading 1"/>
<w:basedOn w:val="Normal"/>
<w:pPr>...</w:pPr> <!-- Paragraph formatting -->
<w:rPr>...</w:rPr> <!-- Character formatting -->
</w:style>- Quick lookup: Check this README or
quick-ref/markdown files - Schema validation: Use
.xsdfiles to understand valid attributes - Deep dive: Search the Part 1 PDF for specific element documentation
- Real-world behavior: Check Microsoft Open Specs for implementation details