Skip to main content

Compatibility options

A document's compatibility mode (w:compatSetting compatibilityMode in its settings) says which version of Word's layout it was made for: 15 is Word 2013 and later, 14 Word 2010, 12 Word 2007 and 11 Word 2003. Twip lays out mode 15 one way and modes 14 and below another, as Word does. A document without the setting is mode 12. Word clears most of the options below when it opens a mode 15 document, and so does Twip: those options act only in modes 14 and below.

Every w:compat child and w:compatSetting is read and kept: a document saves with the options it was opened with. The table says what each one does to layout.

  • Laid out: Twip lays the document out as Word does with the option.
  • No effect in Word: Word reads the option but no line, row or page moves for it (it is for printing, mail merge, the user interface, or Word drops it).
  • Not laid out yet: the option changes Word's layout and Twip ignores it.
  • East Asian, after 1.0: the option changes East Asian text, which comes after 1.0 (see the roadmap).

w:compat options​

OptionWhat Twip does
adjustLineHeightInTableLaid out: lines in table cells snap to the document grid.
alignTablesRowByRowLaid out: each row of a centred or right-aligned table is aligned by its own cells.
allowSpaceOfSameStyleInTableLaid out, modes 14 and below: contextual spacing doesn't apply in table cells.
applyBreakingRulesLaid out: East Asian line-breaking rules in modes 12 and below (always on from mode 14).
autofitToFirstFixedWidthCellNo effect in Word.
autoSpaceLikeWord95East Asian, after 1.0.
balanceSingleByteDoubleByteWidthLaid out: runs of spaces widen to the East Asian font's character width.
cachedColBalanceNo effect in Word.
convMailMergeEscNo effect in Word (mail merge).
displayHangulFixedWidthEast Asian, after 1.0.
doNotAutofitConstrainedTablesLaid out, modes 14 and below: an autofit table beside a float keeps its column width instead of fitting the room beside the float.
doNotBreakConstrainedForcedTableNo effect in Word.
doNotBreakWrappedTablesLaid out, modes 14 and below: a floating table isn't split across pages.
doNotExpandShiftReturnLaid out, mode 15: a justified line ending in a line break isn't justified (in modes 14 and below it never is).
doNotLeaveBackslashAloneEast Asian, after 1.0.
doNotSnapToGridInCellEast Asian, after 1.0.
doNotSuppressIndentationLaid out, modes 14 and below: a line beside a float drops the indent of the side the float cuts.
doNotSuppressParagraphBordersNo effect in Word.
doNotUseEastAsianBreakRulesEast Asian, after 1.0.
doNotUseHTMLParagraphAutoSpacingLaid out: automatic paragraph spacing is 5pt and the spaces between paragraphs add up.
doNotUseIndentAsNumberingTabStopLaid out, modes 14 and below: the hanging indent is no tab stop after a list number.
doNotVertAlignCellWithSpLaid out, modes 14 and below: a cell holding a float is top-aligned.
doNotVertAlignInTxbxNo effect in Word.
doNotWrapTextWithPunctEast Asian, after 1.0.
footnoteLayoutLikeWW8Not laid out yet: notes are placed by the mode's usual rules.
forgetLastTabAlignmentNo effect in Word.
growAutofitLaid out: an autofit table may grow wider than the room it is in.
layoutRawTableWidthLaid out: a table fits beside a float by its cells' width, without its indent and its last cell's right margin.
layoutTableRowsApartNo effect in Word.
lineWrapLikeWord6East Asian, after 1.0.
mwSmallCapsLaid out, modes 14 and below: small capitals at the Macintosh sizes.
noColumnBalanceLaid out, modes 14 and below: a section before a continuous break isn't balanced.
noExtraLineSpacingLaid out: an exact line's baseline sits at the line's ascent.
noLeadingLaid out, modes 14 and below: lines take no external leading.
noSpaceRaiseLowerLaid out, modes 14 and below: raised and lowered text doesn't make its line taller.
noTabHangIndLaid out, modes 14 and below: the hanging indent is no tab stop.
printBodyTextBeforeHeaderNo effect in Word (printing).
printColBlackNo effect in Word (printing).
selectFldWithFirstOrLastCharNo effect in Word (selection).
shapeLayoutLikeWW8No effect in Word.
showBreaksInFramesLaid out, modes 14 and below: page and column breaks in a frame end its line.
spaceForULEast Asian, after 1.0.
spacingInWholePointsLaid out, modes 14 and below: character spacing in whole points.
splitPgBreakAndParaMarkLaid out, modes 14 and below: the mark after a paragraph's last page break starts the next page as an empty line.
subFontBySizeEast Asian, after 1.0.
suppressBottomSpacingLaid out: an exact line's room below its text isn't needed at the bottom of a page.
suppressSpacingAtTopOfPageLaid out, modes 14 and below: an at-least line at the top of a page loses its height beyond the text.
suppressSpBfAfterPgBrkLaid out, modes 14 and below: the text after a paragraph's leading page break loses its space before.
suppressTopSpacingLaid out: an exact or at-least line at the top of a page rises.
suppressTopSpacingWPLaid out, modes 14 and below: line heights of Latin fonts from the font size.
swapBordersFacingPagesNot laid out yet: paragraph borders aren't swapped on facing pages. Lines don't move for it.
truncateFontHeightsLikeWP6Not laid out yet: line heights from untruncated font heights.
ulTrailSpaceLaid out: trailing spaces are underlined.
underlineTabInNumListNot laid out yet: the tab after an underlined list number isn't underlined. Lines don't move for it.
useAltKinsokuLineBreakRulesEast Asian, after 1.0.
useAnsiKerningPairsNo effect in Word.
useFELayoutNo effect in Word (Word drops it).
useNormalStyleForListNo effect in Word (list formatting in the user interface).
usePrinterMetricsNo effect in Word.
useSingleBorderforContiguousCellsLaid out, modes 14 and below: a shared cell edge takes one cell's border without comparing them.
useWord2002TableStyleRulesLaid out, modes 14 and below: table styles apply as in Word 2002.
useWord97LineBreakRulesLaid out, modes 14 and below: East Asian runs are measured as Word 97 measured them.
wpJustificationLaid out, modes 14 and below: justified lines as WordPerfect justifies them.
wpSpaceWidthNo effect in Word.
wrapTrailSpacesNo effect in Word.

w:compatSetting​

SettingWhat Twip does
compatibilityModeLaid out: the mode, above.
overrideTableStyleFontSizeAndJustificationLaid out: turns off the modes 14 and below table style size and alignment exceptions.
enableOpenTypeFeaturesLaid out: the run's OpenType features (ligatures, number forms and spacing, stylistic sets) in modes 14 and below; mode 15 always has them.
doNotFlipMirrorIndentsNo effect in Word.
differentiateMultirowTableHeadersNo effect in Word.
allowHyphenationAtTrackBottomNo effect in Word.
useWord2013TrackBottomHyphenationNot laid out yet: automatic hyphenation of a column's last line.
allowTextAfterFloatingTableBreakNot laid out yet: text beside the part of a floating table split onto the next page.