Opt-in modules implementing the coverage guide. Each one wraps the core OOXML parsers with extra typed fields without modifying core. Loaded individually or via a bundle.
See the getting-started guide for the .use() pattern.
Naming rule. Sub-path imports use the kebab-case FILE name (@awacloud/ooxml/extra/wml-run-formatting); the module's export, its ModuleRuntime resolve key and the names in the tables below use the camelCase EXPORT name (wmlRunFormatting):
import { wmlRunFormatting } from '@awacloud/ooxml/extra/wml-run-formatting';
// runtime.resolve('wmlRunFormatting')
| Module |
Phase |
Source |
Role |
wmlRunFormatting |
1 |
src/extra/wml-run-formatting.js |
Typed <w:rPr> (caps, kern, lang, shd, …) |
wmlParagraphFormatting |
2 |
src/extra/wml-paragraph-formatting.js |
Typed <w:pPr> (tabs, framePr, kinsoku, …) |
wmlTableProperties |
3 |
src/extra/wml-table-properties.js |
Typed tblPr / trPr / tcPr |
wmlNumberingDetails |
4 |
src/extra/wml-numbering-details.js |
numbering.xml advanced |
wmlDocumentDetails |
4c |
src/extra/wml-document-details.js |
body, sections and settings details (shading, borders, property changes, sections, mathPr, toggles) |
wmlStyleDetails |
4b |
src/extra/wml-style-details.js |
styles.xml details (style flags, tblStylePr, latentStyles) |
wmlSettings |
5 |
src/extra/wml-settings.js |
settings.xml advanced |
wmlFields |
6 |
src/extra/wml-fields.js |
Field instruction tokenizer |
wmlTrackedChanges |
7 |
src/extra/wml-tracked-changes.js |
moveFrom / rPrChange / cellIns / … |
wmlVmlLegacy |
8 |
src/extra/wml-vml-legacy.js |
<w:pict> / <w:object> / <w:control> |
wmlMisc |
misc |
src/extra/wml-misc.js |
Long-tail sweeper |
DrawingML shared / shapes / wp / xdr
| Module |
Phase |
Source |
Role |
dmlEffects |
24 |
src/extra/dml-effects.js |
effectLst / effectDag / 3D scene |
dmlFillsAdvanced |
25 |
src/extra/dml-fills-advanced.js |
gradFill / blipFill / pattFill |
dmlTextDetails |
25b |
src/extra/dml-text-details.js |
pptx text details: run fills, effects and fonts, paragraph spacing, bullets and tabs, endParaRPr, the theme's script fonts |
pmlPartDetails |
25c |
src/extra/pml-part-details.js |
pptx part-level elements: a slide's, layout's or master's transition, timing and header / footer flags |
pmlPackageParts |
25d |
src/extra/pml-package-parts.js |
pptx parts the core leaves unmodelled: notes slides, the notes and handout masters with their themes, the layouts no slide uses |
dmlShapesAdvanced |
26 |
src/extra/dml-shapes-advanced.js |
Custom geometry |
dmlWpPositioning |
27 |
src/extra/dml-wp-positioning.js |
wp:anchor + wrap |
dmlXdrAdvanced |
28 |
src/extra/dml-xdr-advanced.js |
Connectors + groups |
dmlWpDrawing |
— |
src/extra/dml-wp-drawing.js |
docx drawing edits written into the kept source; typed frame, layout, picture, shape, group, canvas |
dmlMainMisc |
misc |
src/extra/dml-main-misc.js |
Long-tail dml sweeper |
Cross-cutting
Common pattern
import { xml as xmlMod } from '@awacloud/fw/io/codec/xml.js';
import { docxProperties } from '@awacloud/ooxml';
import { docx } from '@awacloud/ooxml/docx';
import { wmlRunFormatting } from '@awacloud/ooxml/extra/wml-run-formatting';
const xml = xmlMod.factory();
const props = docxProperties.factory(xml);
const word = docx.factory(/* … */);
word.use(wmlRunFormatting.factory(xml, props));
// → docx.read(...) now exposes typed run-properties.
See also