Document format fidelity
What Twip does with every WordprocessingML element: the w namespace of ECMA-376 and the Word 2010 to Word 2021
extensions (w14, w15, w16cex, w16cid, w16cur, w16se). DrawingML and VML are listed by feature, at the end.
The document model holds a document's content and formatting: what a reader sees or prints, and what Word's dialogs set. Settings that are about the application (saving, mail merge, the user interface, web page output, editing history ids) aren't part of the document model: they're kept on save as they were read, and have no API.
- API: in the model, and settable through the API.
- Model: in the model, but not settable yet. The chunk adds the API.
- Kept: saved as read while its paragraph isn't edited, but not in the model. The chunk puts it in the model, so edits keep it too.
- Lost: read, but lost on save, on some edits or on every save. The chunk fixes it.
- Laid out: in the model, because layout follows it, with no API because Word has no setting for it.
- Application: an application setting, kept on save as read. Not in the model by design.
- After 1.0: right-to-left or East Asian (see the roadmap). Kept on save.
- Not in 1.0: equations and charts. Kept on save, reported as unsupported content.
Chunk numbers are roadmap chunks.
Story structure
| Construct | Elements | Status |
|---|---|---|
| Parts and stories | w:document, w:body, w:hdr, w:ftr, w:footnotes, w:endnotes, w:comments, w:settings, w:styles, w:numbering, w:fonts, w:webSettings, w:glossaryDocument, w:txbxContent | API |
| Paragraphs and runs | w:p, w:r, w:pPr, w:rPr, w:t | API |
| Hyperlinks | w:hyperlink | API; a link rewritten as its HYPERLINK field keeps its ScreenTip (\o) and frame (\t), and drops history, which no field switch holds |
| Header and footer references | w:headerReference, w:footerReference | API (editing, setHeaderFooterLinked, removeHeaderFooter) |
| Section properties | w:sectPr | API (see Sections) |
| Unknown elements | anything not listed here | Between runs: Kept as an opaque node, moved with its text, and reported as unsupported content. Inside a run: Kept as a run of its own (the run's start tag and properties with it), moved and pasted with its text |
Run content
| Construct | Elements | Status |
|---|---|---|
| Text, tabs and breaks | w:t, w:tab, w:br, w:cr, w:noBreakHyphen, w:softHyphen | API |
| Absolute position tabs | w:ptab | API (insertAlignmentTab) |
| Symbols | w:sym | API |
| Symbol extensions | w16se:symEx | API (read as a symbol in its font) |
| Page number in a run | w:pgNum | Laid out; inserting one is API (insertPageNumber inserts a PAGE field) |
| Date blocks | w:dayShort, w:dayLong, w:monthShort, w:monthLong, w:yearShort, w:yearLong | Laid out; Word inserts them only from old documents |
| Deleted text | w:delText, w:delInstrText | API (track changes) |
| Ruby | w:ruby, w:rubyPr, w:rubyAlign, w:hps, w:hpsRaise, w:hpsBaseText, w:rubyBase, w:rt, w:lid, w:dirty | After 1.0 (laid out, not settable) |
| Rendered page breaks | w:lastRenderedPageBreak | Application (Word's layout cache) |
| Proofing marks | w:proofErr | Application (Word's spelling state) |
| Ink | w:contentPart, w14:contentPart, w14:nvContentPartPr, w14:cNvPr, w14:cNvContentPartPr, w14:xfrm | Drawn from its fallback picture; Kept, moved with its text |
| Movies (Word 97) | w:movie | Kept as a run of its own, moved and pasted with its text, as any element a run holds that the engine doesn't model (not in the schemas Word 2007 and later write) |
| Equations | w:oMath (the run property) | Not in 1.0 (an equation is kept as an opaque node and reported as unsupported content) |
Fields
| Construct | Elements | Status |
|---|---|---|
| Fields | w:fldChar, w:fldSimple, w:instrText | API (insertField, setField, updateFields; the engine computes the document property and variable fields). FILENAME (the name setFileName gives), NOTEREF (its note's number, as layout numbers it), LISTNUM (NumberDefault, OutlineDefault, LegalDefault), AUTONUM, = formulas (functions, table references, LEFT/ABOVE, bookmarks, \# pictures) and DATE and TIME in the host's time zone, in en-US names |
| Field data | w:fldData | Application (binary data Word keeps for a field) |
| Legacy form fields | w:ffData, w:name, w:enabled, w:calcOnExit, w:entryMacro, w:exitMacro, w:helpText, w:statusText, w:checkBox, w:size, w:sizeAuto, w:default, w:checked, w:ddList, w:result, w:listEntry, w:textInput, w:type, w:maxLength, w:format | API (insertFormField, setFormField, fillFormField; the selection's field in selection.context[].form); check box and drop-down drawn. Macros (w:entryMacro, w:exitMacro) are kept and settable, never run |
| Form field shading | w:doNotShadeFormData | API (setFormFieldShading); legacy form fields are shaded grey on screen, whatever the field shading option, and never in print or PDF |
| Document variables | w:docVars, w:docVar | API (setDocumentVariable, documentProperties; DOCVARIABLE shows them) |
Character formatting
| Construct | Elements | Status |
|---|---|---|
| Fonts and size | w:rFonts, w:sz | API |
| Bold, italic, caps, strike | w:b, w:i, w:caps, w:smallCaps, w:strike, w:dstrike | API |
| Colour, highlight, shading, border | w:color, w:highlight, w:shd, w:bdr | API; every shading pattern draws (stripes and crosses as Word's 12 tiles, which repeat on whole device pixels, and percentages as a flat blend), in PDF too |
| Position, spacing, super- and subscript | w:position, w:spacing, w:vertAlign | API |
| Hidden text | w:vanish | API |
| Underline | w:u | API (style and colour); every style drawn as Word draws it: dotted, dashed, long-dashed and dot-dash forms with Word's dash lengths, heavy forms twice as thick, waves (single, heavy, double) as curves, in the underline's own colour |
| Character style | w:rStyle | API (applyCharacterStyle, a linked style's character half too) |
| Scale and kerning | w:w, w:kern | API (setTypography) |
| Effects | w:emboss, w:imprint, w:outline, w:shadow | API (setCharacterEffects); drawn as Word draws them: emboss and engrave as light and dark copies under the text, outline as hollow glyphs, shadow as a grey copy down and right, over the run's underline too. Outlined runs keep their text in a PDF, as invisible text under the outlines |
| Do not check spelling | w:noProof | API (setLanguage); spell checking skips it |
| Language | w:lang | API (setLanguage; the East Asian and complex-script languages after 1.0) |
| Fit text | w:fitText | Laid out; Word sets it with the Asian layout tools, after 1.0 |
| OpenType features | w14:ligatures, w14:numForm, w14:numSpacing, w14:stylisticSets, w14:styleSet, w14:cntxtAlts | API (setTypography) |
| Text effects | w14:glow, w14:shadow, w14:reflection, w14:textOutline, w14:textFill, w14:scene3d, w14:props3d | API (setTextEffects, the Font dialog's text effects), through character styles too; drawn as Word draws them: a text fill (solid, gradient or none) as the letters' paint, the outline as their stroke, the shadow and glow as blurred copies under them, the reflection as a flipped copy faded by a gradient. Gradient-filled runs keep their text in a PDF. w14:scene3d and w14:props3d are kept and drawn flat |
| Text effect colours and lines | w14:solidFill, w14:gradFill, w14:noFill, w14:gsLst, w14:gs, w14:lin, w14:path, w14:fillToRect, w14:srgbClr, w14:schemeClr, w14:alpha, w14:tint, w14:shade, w14:hueMod, w14:sat, w14:satMod, w14:satOff, w14:lum, w14:lumMod, w14:lumOff, w14:prstDash, w14:round, w14:bevel, w14:miter, w14:camera, w14:lightRig, w14:rot, w14:bevelT, w14:bevelB, w14:extrusionClr, w14:contourClr | API (setTextEffects), with their effect; the 3-D elements kept |
| Text animation (Word 97) | w:effect | Kept: Word 2007 and later neither show nor set it |
| Hidden in web view | w:webHidden | Kept: only Web Layout hides it |
| Style separator | w:specVanish | Laid out; kept (Word sets it from the paragraph mark's Style Separator command, 4.1) |
| Complex scripts and right-to-left | w:bCs, w:iCs, w:szCs, w:cs, w:rtl, w:bdo, w:dir | After 1.0 |
| East Asian | w:eastAsianLayout, w:em, w:snapToGrid | After 1.0 |
Paragraph formatting
| Construct | Elements | Status |
|---|---|---|
| Style, alignment, indents, spacing | w:pStyle, w:jc, w:ind, w:spacing | API |
| Pagination | w:keepNext, w:keepLines, w:pageBreakBefore, w:widowControl | API |
| Borders and shading | w:pBdr, w:top, w:left, w:bottom, w:right, w:between, w:bar, w:start, w:end, w:shd | API; every shading pattern and border style draws: shadowed borders (a black shadow below and right), wave and doubleWave as stroked zigzags and dashDotStroked as slanted strokes, all in Word's fixed-size bands. Layout reserves the border's width for those three, so a thin one reads nearly straight |
| Tabs | w:tabs, w:tab | API |
| Lists | w:numPr, w:ilvl, w:numId | API |
| Frames and drop caps | w:framePr, w:suppressOverlap | API (setFrame, removeFrame; setDropCap and the Drop Cap dialog make, change and remove a drop cap, saved as a framed paragraph before its own) |
| Contextual spacing | w:contextualSpacing | API (setParagraphSpacing) |
| Mirror indents | w:mirrorIndents | API (setIndents) |
| Outline level | w:outlineLvl | API (setOutline) |
| Collapsed by default | w15:collapsed | API (setOutline) |
| Text direction | w:textDirection | API for paragraphs (setParagraphTextDirection); API for sections (setSectionTextDirection); API for cells (setCellProperties) |
| Text box tight wrap | w:textboxTightWrap | API (setParagraphFlow) |
| Don't hyphenate | w:suppressAutoHyphens | API (setParagraphFlow) |
| Line numbers | w:suppressLineNumbers | API (setParagraphFlow) |
| HTML divisions | w:divId, w:divs, w:div, w:divBdr, w:divsChild, w:blockQuote, w:bodyDiv, w:marLeft, w:marRight, w:marTop, w:marBottom | Laid out (from pasted HTML; Word has no setting for them) |
| Conditional formatting | w:cnfStyle | Application (Word's cache of the table style regions a paragraph, row or cell is in; kept as read, and Word recomputes it) |
| Bidirectional and East Asian | w:bidi, w:adjustRightInd, w:kinsoku, w:wordWrap, w:overflowPunct, w:topLinePunct, w:autoSpaceDE, w:autoSpaceDN, w:textAlignment | After 1.0 |
Styles and numbering
| Construct | Elements | Status |
|---|---|---|
| Styles | w:style, w:name, w:aliases, w:basedOn, w:next, w:link, w:autoRedefine, w:hidden, w:uiPriority, w:semiHidden, w:unhideWhenUsed, w:qFormat, w:locked, w:personal, w:personalCompose, w:personalReply, w:tblStylePr, w:tblStyleRowBandSize, w:tblStyleColBandSize | API (style dialog, setStyleMeta; band sizes in the Banding dialog) |
| Defaults | w:docDefaults, w:rPrDefault, w:pPrDefault | API (setDocumentDefaults) |
| Latent styles | w:latentStyles, w:lsdException | Application (the style gallery's list) |
| Lists | w:abstractNum, w:nsid, w:multiLevelType, w:tmpl, w:styleLink, w:numStyleLink, w:lvl, w:start, w:numFmt, w:lvlRestart, w:isLgl, w:suff, w:lvlText, w:lvlPicBulletId, w:lvlJc, w:num, w:abstractNumId, w:lvlOverride, w:startOverride, w:numPicBullet | API (setListDefinition) |
| Legacy list levels | w:legacy | Laid out (Word 97 lists; Word has no setting) |
| List cleanup id | w:numIdMacAtCleanup | Application |
Sections
| Construct | Elements | Status |
|---|---|---|
| Page size, margins, borders | w:pgSz, w:pgMar, w:pgBorders | API |
| Page borders around headers | w:bordersDoNotSurroundHeader, w:bordersDoNotSurroundFooter | API (setPageBorders) |
| Columns | w:cols, w:col | API (setColumns, unequal widths too) |
| Title page | w:titlePg | API |
| Odd and even headers | w:evenAndOddHeaders | API (setDifferentOddEvenPages) |
| Section type | w:type | API (setSectionBreakType, insertSectionBreak: the text before the break ends a new section with its own w:sectPr; Page Setup applies from this point forward) |
| Page numbering | w:pgNumType | API (setPageNumbering) |
| Line numbering | w:lnNumType | API (setLineNumbering) |
| Vertical alignment | w:vAlign | API (setPageVerticalAlignment; setCellAlignment for cells) |
| Mirror margins, book fold, gutter | w:mirrorMargins, w:bookFoldPrinting, w:bookFoldRevPrinting, w:bookFoldPrintingSheets, w:gutterAtTop | API (setMultiplePages; sheets per booklet is kept) |
| Notes in a section | w:footnotePr, w:endnotePr, w:pos, w:numStart, w:numRestart, w15:footnoteColumns | API (setNoteProperties, footnote columns too) |
| No endnotes | w:noEndnote | Laid out; kept (Word sets it only for sections in a master document) |
| Form protection | w:formProt | API (setDocumentProtection unprotectedSections, review.protection.unprotectedSections); enforced: an open section edits freely while forms are protected |
| Printer | w:paperSrc, w:printerSettings | Application |
| Document grid, gutter on the right | w:docGrid, w:rtlGutter | After 1.0 (line pitch laid out) |
Tables
| Construct | Elements | Status |
|---|---|---|
| Tables, rows, cells | w:tbl, w:tblPr, w:tblGrid, w:gridCol, w:tr, w:trPr, w:tc, w:tcPr | API; shading layers as Word layers it, a cell's over its row exception's over the table's (own or its style's). A table's and row's shading fills only around cells, so it shows with cell spacing |
| Table properties | w:tblStyle, w:tblW, w:tblInd, w:tblBorders, w:tblCellMar, w:tblLook, w:tblLayout, w:tblpPr, w:tblOverlap | API |
| Cell spacing | w:tblCellSpacing | API (setTableCellSpacing and Table Properties; a row's own through setRowProperties) |
| Alt text | w:tblCaption, w:tblDescription | API (setTableAltText, Table Properties' Alt Text tab) |
| Row properties | w:trHeight, w:cantSplit, w:tblHeader | API |
| Row grid | w:gridBefore, w:gridAfter, w:wBefore, w:wAfter | Laid out, kept |
| Hidden rows | w:hidden | API (setRowProperties: the row-end mark; the row hides when its text is hidden too) |
| Row exceptions | w:tblPrEx | API (setRowProperties: alignment, cell spacing, shading and borders); the width, indent, layout, margins and look a row overrides are laid out |
| Cell properties | w:tcW, w:gridSpan, w:vMerge, w:tcBorders, w:insideH, w:insideV, w:tcMar | API (setCellProperties sets the preferred width in points or percent) |
| Horizontal merge (Word 97) | w:hMerge | Laid out as a span; a rewritten row writes it as w:gridSpan |
| Diagonal borders | w:tl2br, w:tr2bl | API (setCellBorders with diagonalDown, diagonalUp); drawn |
| Cell text | w:noWrap, w:tcFitText, w:hideMark | API (setCellProperties; wrapping and fitting in Table Properties too) |
| Header cells | w:headers | Read with the cell's w:id: a PDF export lists them as the cell's headers (PDF/UA Headers). Kept with its cell: Word's schema doesn't have it, so the API doesn't write it |
| Default table style | w:defaultTableStyle | API (setDefaultTableStyle, Set as Default; new tables take it) |
| Right-to-left tables | w:bidiVisual | After 1.0 |
Notes and comments
| Construct | Elements | Status |
|---|---|---|
| Footnotes and endnotes | w:footnote, w:endnote, w:footnoteReference, w:endnoteReference, w:footnoteRef, w:endnoteRef, w:separator, w:continuationSeparator | API (insertNote with custom marks, setNoteProperties, convertNotes); notes move with cut and paste |
| Comments | w:comment, w:commentRangeStart, w:commentRangeEnd, w:commentReference, w:annotationRef, w15:commentsEx, w15:commentEx, w16cid:commentsIds, w16cid:commentId, w16cex:commentsExtensible, w16cex:commentExtensible, w16cex:extLst, w16cur:ext | API |
| People | w15:people, w15:person, w15:presenceInfo | API (authors) |
Revisions
| Construct | Elements | Status |
|---|---|---|
| Insertions, deletions, moves | w:ins, w:del, w:moveFrom, w:moveTo, w:moveFromRangeStart, w:moveFromRangeEnd, w:moveToRangeStart, w:moveToRangeEnd | API |
| Property changes | w:rPrChange, w:pPrChange, w:sectPrChange, w:tblPrChange, w:trPrChange, w:tcPrChange, w:tblPrExChange, w:tblGridChange, w:numberingChange | API |
| Cell revisions | w:cellIns, w:cellDel, w:cellMerge | API |
| Tracking settings | w:trackRevisions, w:doNotTrackMoves, w:doNotTrackFormatting, w:revisionView | API |
| Revision save ids | w:rsids, w:rsidRoot, w:rsid | Application |
Bookmarks and permissions
| Construct | Elements | Status |
|---|---|---|
| Bookmarks | w:bookmarkStart, w:bookmarkEnd | API (insertBookmark, deleteBookmark, goToBookmark, navigation.bookmarks with hidden ones, the Hyperlink dialog's bookmark picker, and the bookmarks view option); between blocks too. A table column bookmark's w:colFirst and w:colLast are dropped when its paragraph is rewritten |
| Editing permissions | w:permStart, w:permEnd | API (addEditableRange, removeEditableRanges; a protected document lets the author edit in the ranges for everyone or for them by name). Column ranges (w:colFirst, w:colLast) are kept, not enforced |
Content controls
| Construct | Elements | Status |
|---|---|---|
| Controls | w:sdt, w:sdtPr, w:sdtContent, w:sdtEndPr, w:alias, w:tag, w:id, w:lock, w:placeholder, w:docPart, w:showingPlcHdr | API |
| Kinds | w:text, w:richText, w:comboBox, w:dropDownList, w:listItem, w:date, w:dateFormat, w:storeMappedDataAs, w:calendar, w:picture, w:group, w14:checkbox, w14:checked, w14:checkedState, w14:uncheckedState, w15:repeatingSection, w15:repeatingSectionItem | API (check box symbols in setControl's options; a check box shows its new symbol when it is next toggled) |
| Building block galleries | w:docPartObj, w:docPartList, w:docPartGallery, w:docPartCategory, w:docPartUnique | API (a gallery control's buildingBlocks in its state; fillControl's buildingBlock puts one's content in it) |
| Citations, bibliography, equations | w:citation, w:bibliography, w:equation | Kept as the control kind; their content is ordinary content |
| Data binding | w:dataBinding, w15:dataBinding | API (setControl's binding): text, date and drop-down controls show their node from the custom XML part when opened and when the part is written, and editing one writes its node (XPaths of element steps by name and position, then an attribute or text(); others, check boxes and pictures, and w15:dataBinding are kept) |
| Temporary | w:temporary | API (setControl's temporary): the control goes when its content is edited, leaving the content |
| Appearance and colour | w15:appearance, w15:color | API (setControl's appearance and color; the selection's control in selection.context[].control) |
| Repeating section options | w15:sectionTitle, w15:doNotAllowInsertDeleteSection | API (setControl's options) |
| Entity picker | w14:entityPicker | Kept (SharePoint metadata) |
| Web extensions | w15:webExtensionCreated, w15:webExtensionLinked | Application |
Custom XML markup
Word 2010 and later remove custom XML markup when they open a document, so it is kept but not put in the model.
| Construct | Elements | Status |
|---|---|---|
| Custom XML elements | w:customXml, w:customXmlPr, w:attr | Kept (content inside is read as ordinary content); left behind when its text is cut, as Word removes custom XML markup on open |
| Custom XML revisions | w:customXmlInsRangeStart, w:customXmlInsRangeEnd, w:customXmlDelRangeStart, w:customXmlDelRangeEnd, w:customXmlMoveFromRangeStart, w:customXmlMoveFromRangeEnd, w:customXmlMoveToRangeStart, w:customXmlMoveToRangeEnd, w14:customXmlConflictInsRangeStart, w14:customXmlConflictInsRangeEnd, w14:customXmlConflictDelRangeStart, w14:customXmlConflictDelRangeEnd, w14:conflictIns, w14:conflictDel, w14:conflictMode | Kept as an opaque node |
Embedded content
| Construct | Elements | Status |
|---|---|---|
| Drawings | w:drawing, w:pict | API (see DrawingML and VML) |
| OLE objects | w:object, w:objectEmbed, w:objectLink | Preview picture API; the object (w:object with its o:OLEObject) is kept as read through every edit, moved and pasted with its text. Editing OLE objects is in the backlog |
| ActiveX controls | w:control | Kept, drawn from its preview picture, moved with its text |
| Imported content | w:altChunk, w:altChunkPr, w:matchSrc | Kept between unedited blocks, as an opaque block. Drawing it is deferred with HTML paste |
| Subdocuments | w:subDoc | Kept as an opaque node, reported as unsupported content. Drawing them is in the backlog |
| Page background | w:background, v:background, w:displayBackgroundShape | Drawn on screen: the colour (a theme colour with its tint or shade), and a gradient, pattern or tiled picture over it, as Word draws them; nothing without w:displayBackgroundShape, as in Word. Not in PDF export, as Word's own PDF leaves it out. API (setPageColor: a colour, a theme colour with its tint or shade, or Fill Effects' gradient, pattern, texture or picture; the Fill Effects dialog); kept as read until changed, then written from the model as Word writes it, a pattern with its tile picture |
Building blocks
| Construct | Elements | Status |
|---|---|---|
| Glossary entries | w:docParts, w:docPartPr, w:docPartBody, w:category, w:gallery, w:behaviors, w:behavior, w:description, w:types, w:guid | Model (placeholders and sub-templates); a gallery control inserts one (fillControl's buildingBlock) |
Document settings
| Construct | Elements | Status |
|---|---|---|
| Tabs and hyphenation | w:defaultTabStop, w:autoHyphenation, w:consecutiveHyphenLimit, w:hyphenationZone, w:doNotHyphenateCaps | API |
| Protection | w:documentProtection | API (setDocumentProtection, review.protection): read-only, comments, tracked changes, forms and formatting enforced; a password is stored as Word stores it: its legacy password key, salted, hashed with SHA-512 and spun. A password is checked against SHA-512, SHA-384, SHA-256 and Word 2007's SHA-1 hashes, from the legacy key or from the password itself |
| Save options | w:writeProtection, w:autoFormatOverride, w:styleLockTheme, w:styleLockQFSet | Application (read-only recommended and style set locks, kept as read) |
| Compatibility | w:compat, w:compatSetting and every option in the compatibility guide (w:adjustLineHeightInTable, w:alignTablesRowByRow, w:allowSpaceOfSameStyleInTable, w:applyBreakingRules, w:autofitToFirstFixedWidthCell, w:autoSpaceLikeWord95, w:balanceSingleByteDoubleByteWidth, w:cachedColBalance, w:convMailMergeEsc, w:displayHangulFixedWidth, w:doNotAutofitConstrainedTables, w:doNotBreakConstrainedForcedTable, w:doNotBreakWrappedTables, w:doNotExpandShiftReturn, w:doNotLeaveBackslashAlone, w:doNotSnapToGridInCell, w:doNotSuppressIndentation, w:doNotSuppressParagraphBorders, w:doNotUseEastAsianBreakRules, w:doNotUseHTMLParagraphAutoSpacing, w:doNotUseIndentAsNumberingTabStop, w:doNotVertAlignCellWithSp, w:doNotVertAlignInTxbx, w:doNotWrapTextWithPunct, w:footnoteLayoutLikeWW8, w:forgetLastTabAlignment, w:growAutofit, w:layoutRawTableWidth, w:layoutTableRowsApart, w:lineWrapLikeWord6, w:mwSmallCaps, w:noColumnBalance, w:noExtraLineSpacing, w:noLeading, w:noSpaceRaiseLower, w:noTabHangInd, w:printBodyTextBeforeHeader, w:printColBlack, w:selectFldWithFirstOrLastChar, w:shapeLayoutLikeWW8, w:showBreaksInFrames, w:spaceForUL, w:spacingInWholePoints, w:splitPgBreakAndParaMark, w:subFontBySize, w:suppressBottomSpacing, w:suppressSpacingAtTopOfPage, w:suppressSpBfAfterPgBrk, w:suppressTopSpacing, w:suppressTopSpacingWP, w:swapBordersFacingPages, w:truncateFontHeightsLikeWP6, w:ulTrailSpace, w:underlineTabInNumList, w:useAltKinsokuLineBreakRules, w:useAnsiKerningPairs, w:useFELayout, w:useNormalStyleForList, w:usePrinterMetrics, w:useSingleBorderforContiguousCells, w:useWord2002TableStyleRules, w:useWord97LineBreakRules, w:wpJustification, w:wpSpaceWidth, w:wrapTrailSpaces, w:uiCompat97To2003) | Laid out |
| Theme colour mapping | w:clrSchemeMapping | Laid out |
| Number separators | w:decimalSymbol, w:listSeparator | Model (read by = fields: the numbers and arguments a formula is written with) |
| East Asian settings | w:noPunctuationKerning, w:characterSpacingControl, w:strictFirstAndLastChars, w:noLineBreaksBefore, w:noLineBreaksAfter, w:themeFontLang | After 1.0 |
| Alignment of borders and edges | w:alignBordersAndEdges | Kept (backlog) |
| View and proofing | w:view, w:zoom, w:doNotDisplayPageBoundaries, w:hideSpellingErrors, w:hideGrammaticalErrors, w:activeWritingStyle, w:proofState, w:formsDesign, w:stylePaneFormatFilter, w:stylePaneSortMethod, w:clickAndTypeStyle, w:readModeInkLockDown, w:showEnvelope, w:showXMLTags, w:alwaysShowPlaceholderText | Application |
| Saving and privacy | w:removePersonalInformation, w:removeDateAndTime, w:embedTrueTypeFonts, w:embedSystemFonts, w:saveSubsetFonts, w:saveFormsData, w:savePreviewPicture, w:doNotAutoCompressPictures, w:doNotIncludeSubdocsInStats, w:forceUpgrade, w:summaryLength, w:updateFields | Application |
| Printing | w:printPostScriptOverText, w:printFractionalCharacterWidth, w:printFormsData, w:printTwoOnOne | Application |
| Templates and XML | w:attachedTemplate, w:linkStyles, w:documentType, w:attachedSchema, w:doNotValidateAgainstSchema, w:saveInvalidXml, w:ignoreMixedContent, w:doNotDemarcateInvalidXml, w:saveXmlDataOnly, w:useXSLTWhenSaving, w:saveThroughXslt, w:alwaysMergeEmptyNamespace | Application |
| Drawing grid | w:drawingGridHorizontalSpacing, w:drawingGridVerticalSpacing, w:displayHorizontalDrawingGridEvery, w:displayVerticalDrawingGridEvery, w:doNotUseMarginsForDrawingGridOrigin, w:drawingGridHorizontalOrigin, w:drawingGridVerticalOrigin | Application |
| Shape defaults | w:shapeDefaults, w:hdrShapeDefaults | Application |
| Captions | w:captions, w:caption, w:autoCaptions, w:autoCaption | Application (Insert Caption is 4.1) |
| Document ids and options | w14:docId, w15:docId, w14:defaultImageDpi, w14:discardImageEditingData, w15:chartTrackingRefBased, w14:extLst | Application |
| Mail merge | w:mailMerge, w:mainDocumentType, w:linkToQuery, w:dataType, w:connectString, w:query, w:dataSource, w:headerSource, w:doNotSuppressBlankLines, w:destination, w:addressFieldName, w:mailSubject, w:mailAsAttachment, w:viewMergedData, w:activeRecord, w:checkErrors, w:odso, w:udl, w:table, w:src, w:colDelim, w:fHdr, w:fieldMapData, w:column, w:mappedName, w:dynamicAddress, w:recipients, w:recipientData, w:active, w:uniqueTag | Application |
Fonts and web page settings
| Construct | Elements | Status |
|---|---|---|
| Font table | w:font, w:altName, w:panose1, w:charset, w:family, w:pitch, w:sig, w:notTrueType | Laid out (font categories for fallback) |
| Embedded fonts | w:embedRegular, w:embedBold, w:embedItalic, w:embedBoldItalic | Application (embedded fonts aren't planned: the host supplies fonts) |
| Web page options | w:optimizeForBrowser, w:relyOnVML, w:allowPNG, w:doNotRelyOnCSS, w:doNotSaveAsSingleFile, w:doNotOrganizeInFolder, w:doNotUseLongFileNames, w:pixelsPerInch, w:targetScreenSz, w:encoding | Application |
| Framesets | w:frameset, w:frame, w:framesetSplitbar, w:frameLayout, w:scrollbar, w:noResizeAllowed, w:linkedToFile, w:noBorder, w:flatBorders, w:marW, w:marH, w:sz, w:sourceFileName | Application (web page layout) |
Document properties
| Construct | Part | Status |
|---|---|---|
| Core, extended and custom properties | docProps/core.xml, docProps/app.xml, docProps/custom.xml | API (setDocumentProperties, documentProperties; DOCPROPERTY, AUTHOR, TITLE, SUBJECT, KEYWORDS, COMMENTS, LASTSAVEDBY, REVNUM, CREATEDATE, SAVEDATE and PRINTDATE show them). An edited document's last saved time and revision follow its save; the statistics (pages, words) are kept as read |
DrawingML and VML
| Feature | Status |
|---|---|
| Inline and floating pictures, shapes, text boxes, groups, canvases | API (changePicture replaces a picture's image; alignObjects aligns and distributes floating objects) |
Crop (a:srcRect) | API (setPictureCrop, and Crop from in the Picture Size dialog; inline and floating; kept when a picture is rewritten). Crop handles are not in 1.0 |
| Picture formats | PNG, JPEG, GIF, BMP, JPEG XR (the .wdp parts Office writes; 8-bit grey, RGB and RGBA, decoded by the separate jpeg-xr crate) and SVG; EMF and WMF drawn as vectors on screen and in PDF (shapes, pens and dashes, clips, regions, text in the document's fonts, bitmaps, gradients; EMF+ records too, in dual EMF and EMF+ files and in EMF+-only files, with path gradients exact; OLE object previews in either format draw at the object's size). Double-byte character sets (Shift-JIS, Korean, Chinese) in metafile text are not drawn |
Linked pictures (r:link) | Kept through every edit, moved and pasted with its text. A picture with only a link draws a light placeholder frame, on purpose: Twip does not fetch the file. One with r:embed too draws its embedded copy |
Set transparent colour (a:clrChange) | API (setPictureAdjust's transparentColor); drawn: pixels within one level of the colour in every channel become the new colour |
Picture brightness, contrast and washout (a:lum, VML gain and blacklevel), grayscale, black and white (v:imagedata@grayscale, @bilevel) | Drawn |
Reflection (a:reflection) | Drawn under pictures and shapes; kept and written back with the other effects. An inline picture's reflection stops at the bottom of its paragraph, as in Word; blur, glow, soft-edge and shadow radii and distances are drawn up to 200 pt |
Relative size and position (wp14:sizeRelH, wp14:pctPosHOffset, ...) | API (setObjectSize's relativeWidth and relativeHeight, setObjectPosition's percent) |
Text box columns and autofit (wps:bodyPr@numCol, a:normAutofit) | API (setShapeText's columns and shrinkText autofit); the text is laid out in one column for now |
A shape's VML fallback (mc:Fallback) | Kept, moved with the shape; a shape edited in Twip is saved without it (Word 2010 and later read the shape; see Not planned on the roadmap) |
Alternate content (mc:AlternateContent, Requires) | Laid out: the first choice whose namespaces the engine reads, else the fallback |
Charts (c:chart) | Not in 1.0 |
| SmartArt, WordArt | Drawn from their fallback; editing in the backlog |
Text watermarks and VML WordArt (v:textpath) | Drawn: the string's glyph outlines stretched to the shape's box (less 7.2 pt across and 3.6 pt down unless trim), in its fill, line, opacity and rotation, as Word draws them; a text path without fitshape draws nothing, as in Word. Text paths other than plain text draw unwarped (WordArt warps are not in 1.0). In PDF the text is paths, as in Word's |
Watermarks (PowerPlusWaterMarkObject, WordPictureWatermark shapes in headers) | API (setWatermark, removeWatermark, the Printed Watermark dialog): text with its font, language, size, colour, transparency (percent) and layout, or a picture with its scale and washout, in every header of every section (a section without one gets one), written as Word writes it so Word's Watermark dialog edits it |