diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index df3a748f93..b8c9965b10 100644
--- a/api/classes/index.AbstractNumbering.html
+++ b/api/classes/index.AbstractNumbering.html
@@ -35,7 +35,7 @@ Each abstract definition can contain up to 9 levels.
diff --git a/api/classes/index.Body.html b/api/classes/index.Body.html
index 471bb530b6..3c9f2d59db 100644
--- a/api/classes/index.Body.html
+++ b/api/classes/index.Body.html
@@ -37,7 +37,7 @@ section. The last section's properties are stored as a direct child of the body
diff --git a/api/classes/index.Bookmark.html b/api/classes/index.Bookmark.html
index 95587e6c61..e6b5db82be 100644
--- a/api/classes/index.Bookmark.html
+++ b/api/classes/index.Bookmark.html
@@ -31,7 +31,7 @@ of a start marker, content, and an end marker.
diff --git a/api/classes/index.BookmarkEnd.html b/api/classes/index.BookmarkEnd.html
index 5fa9bf7c6c..d7aff8f58a 100644
--- a/api/classes/index.BookmarkEnd.html
+++ b/api/classes/index.BookmarkEnd.html
@@ -35,7 +35,7 @@ taken from bookmarkUniqueNumericId (see BookmarkStart)
diff --git a/api/classes/index.BookmarkStart.html b/api/classes/index.BookmarkStart.html
index 98c3560f2b..7ca3ab2c4d 100644
--- a/api/classes/index.BookmarkStart.html
+++ b/api/classes/index.BookmarkStart.html
@@ -37,7 +37,7 @@ same as a Bookmark's.
diff --git a/api/classes/index.CellMerge.html b/api/classes/index.CellMerge.html
index 9c693ca387..2c80cf9a2a 100644
--- a/api/classes/index.CellMerge.html
+++ b/api/classes/index.CellMerge.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.CellMergeAttributes.html b/api/classes/index.CellMergeAttributes.html
index 492e39e46d..173a76a81a 100644
--- a/api/classes/index.CellMergeAttributes.html
+++ b/api/classes/index.CellMergeAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.CheckBoxSymbolElement.html b/api/classes/index.CheckBoxSymbolElement.html
index 7cc4e36b8e..1792d0fc0e 100644
--- a/api/classes/index.CheckBoxSymbolElement.html
+++ b/api/classes/index.CheckBoxSymbolElement.html
@@ -33,7 +33,7 @@ specifying the Unicode character and font to render.
diff --git a/api/classes/index.CheckBoxUtil.html b/api/classes/index.CheckBoxUtil.html
index fd680adf9d..56b558a64f 100644
--- a/api/classes/index.CheckBoxUtil.html
+++ b/api/classes/index.CheckBoxUtil.html
@@ -33,7 +33,7 @@ including its checked state and the symbols used for checked and unchecked state
diff --git a/api/classes/index.CommentRangeEnd.html b/api/classes/index.CommentRangeEnd.html
index ee79afc7f4..79ffc55c0f 100644
--- a/api/classes/index.CommentRangeEnd.html
+++ b/api/classes/index.CommentRangeEnd.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeStart with the same ID.
diff --git a/api/classes/index.CommentRangeStart.html b/api/classes/index.CommentRangeStart.html
index adaa8941fc..233319a44a 100644
--- a/api/classes/index.CommentRangeStart.html
+++ b/api/classes/index.CommentRangeStart.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeEnd with the same ID.
diff --git a/api/classes/index.CommentReference.html b/api/classes/index.CommentReference.html
index 0901176c17..77d6fb58a6 100644
--- a/api/classes/index.CommentReference.html
+++ b/api/classes/index.CommentReference.html
@@ -36,7 +36,7 @@ It should be placed after the CommentRangeEnd element.
diff --git a/api/classes/index.Comments.html b/api/classes/index.Comments.html
index 0a789d1d55..4e072587be 100644
--- a/api/classes/index.Comments.html
+++ b/api/classes/index.Comments.html
@@ -35,7 +35,7 @@ threading is activated and thread data is generated for commentsExtended.xml.
diff --git a/api/classes/index.CommentsIds.html b/api/classes/index.CommentsIds.html
index 715daf22f3..9232190c06 100644
--- a/api/classes/index.CommentsIds.html
+++ b/api/classes/index.CommentsIds.html
@@ -27,7 +27,7 @@ to a stable w16cid:durableId preserved by Word across edits.
diff --git a/api/classes/index.ConcreteHyperlink.html b/api/classes/index.ConcreteHyperlink.html
index 4e8a3c00ea..7970438a79 100644
--- a/api/classes/index.ConcreteHyperlink.html
+++ b/api/classes/index.ConcreteHyperlink.html
@@ -30,7 +30,7 @@ Use InternalHyperlink or ExternalHyperlink for creating hyperlinks in documents.
diff --git a/api/classes/index.DeletedTableCell.html b/api/classes/index.DeletedTableCell.html
index 6507ff1609..c589f2d53a 100644
--- a/api/classes/index.DeletedTableCell.html
+++ b/api/classes/index.DeletedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DeletedTableRow.html b/api/classes/index.DeletedTableRow.html
index ed812fc304..233b6d4e49 100644
--- a/api/classes/index.DeletedTableRow.html
+++ b/api/classes/index.DeletedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DocumentDefaults.html b/api/classes/index.DocumentDefaults.html
index 17456550ee..2d70841f81 100644
--- a/api/classes/index.DocumentDefaults.html
+++ b/api/classes/index.DocumentDefaults.html
@@ -34,7 +34,7 @@ paragraphs and runs in a document unless overridden by a style or direct formatt
diff --git a/api/classes/index.DrawingPatch.html b/api/classes/index.DrawingPatch.html
index c8ad657b8e..e71f892c51 100644
--- a/api/classes/index.DrawingPatch.html
+++ b/api/classes/index.DrawingPatch.html
@@ -27,7 +27,7 @@ is one: it replaces the data of a chart made in Word.
diff --git a/api/classes/index.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index 90bd14dfb8..0b1a8feff8 100644
--- a/api/classes/index.EndnoteIdReference.html
+++ b/api/classes/index.EndnoteIdReference.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.EndnoteReferenceRunAttributes.html b/api/classes/index.EndnoteReferenceRunAttributes.html
index 35d8bb06d1..329b0a8335 100644
--- a/api/classes/index.EndnoteReferenceRunAttributes.html
+++ b/api/classes/index.EndnoteReferenceRunAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.Endnotes.html b/api/classes/index.Endnotes.html
index 49b1fabd5d..d8d1d87095 100644
--- a/api/classes/index.Endnotes.html
+++ b/api/classes/index.Endnotes.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ExternalHyperlink.html b/api/classes/index.ExternalHyperlink.html
index 528840f9e0..0ceb6a2c80 100644
--- a/api/classes/index.ExternalHyperlink.html
+++ b/api/classes/index.ExternalHyperlink.html
@@ -37,7 +37,7 @@ is converted to a ConcreteHyperlink with the relationship ID.
diff --git a/api/classes/index.FileChild.html b/api/classes/index.FileChild.html
index 5394d9df7b..18d8901cc7 100644
--- a/api/classes/index.FileChild.html
+++ b/api/classes/index.FileChild.html
@@ -28,7 +28,7 @@ to the document body. Examples include Paragraph and Table.
diff --git a/api/classes/index.FootNotes.html b/api/classes/index.FootNotes.html
index 1718e28692..a1be444aab 100644
--- a/api/classes/index.FootNotes.html
+++ b/api/classes/index.FootNotes.html
@@ -36,7 +36,7 @@ line used when footnotes continue across pages.
diff --git a/api/classes/index.FooterWrapper.html b/api/classes/index.FooterWrapper.html
index 1c9cc07204..5f07c3b526 100644
--- a/api/classes/index.FooterWrapper.html
+++ b/api/classes/index.FooterWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple footers for different page types.
diff --git a/api/classes/index.FootnoteReference.html b/api/classes/index.FootnoteReference.html
index d4038f93a0..e819a577ce 100644
--- a/api/classes/index.FootnoteReference.html
+++ b/api/classes/index.FootnoteReference.html
@@ -27,7 +27,7 @@ and the footnote content by using a unique identifier.
diff --git a/api/classes/index.GridSpan.html b/api/classes/index.GridSpan.html
index 45f69bfd45..982e0e629b 100644
--- a/api/classes/index.GridSpan.html
+++ b/api/classes/index.GridSpan.html
@@ -34,7 +34,7 @@ in the table grid. This is used to merge cells horizontally (column span).
diff --git a/api/classes/index.HeaderWrapper.html b/api/classes/index.HeaderWrapper.html
index fff9cde057..46b9aea47e 100644
--- a/api/classes/index.HeaderWrapper.html
+++ b/api/classes/index.HeaderWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple headers for different page types.
diff --git a/api/classes/index.HpsMeasureElement.html b/api/classes/index.HpsMeasureElement.html
index 2d356d8b94..acb90f77dd 100644
--- a/api/classes/index.HpsMeasureElement.html
+++ b/api/classes/index.HpsMeasureElement.html
@@ -33,7 +33,7 @@ Values can be specified as numbers (interpreted as half-points) or with explicit
diff --git a/api/classes/index.IgnoreIfEmptyXmlComponent.html b/api/classes/index.IgnoreIfEmptyXmlComponent.html
index ea48f25b32..24ef030c45 100644
--- a/api/classes/index.IgnoreIfEmptyXmlComponent.html
+++ b/api/classes/index.IgnoreIfEmptyXmlComponent.html
@@ -39,7 +39,7 @@ to be excluded from the output.
diff --git a/api/classes/index.ImageRun.html b/api/classes/index.ImageRun.html
index e2c4544ac8..e551580694 100644
--- a/api/classes/index.ImageRun.html
+++ b/api/classes/index.ImageRun.html
@@ -33,7 +33,7 @@ including JPG, PNG, GIF, BMP, and SVG. Optionally wraps the run in
diff --git a/api/classes/index.ImportedXmlComponent.html b/api/classes/index.ImportedXmlComponent.html
index 76227a363b..07dabb727c 100644
--- a/api/classes/index.ImportedXmlComponent.html
+++ b/api/classes/index.ImportedXmlComponent.html
@@ -30,7 +30,7 @@ templates or when you need to include pre-existing XML fragments.
diff --git a/api/classes/index.InitializableXmlComponent.html b/api/classes/index.InitializableXmlComponent.html
index 58c7a2ba46..8ff76133bd 100644
--- a/api/classes/index.InitializableXmlComponent.html
+++ b/api/classes/index.InitializableXmlComponent.html
@@ -30,7 +30,7 @@ create a new component that shares or extends the children of an existing compon
diff --git a/api/classes/index.InsertedTableCell.html b/api/classes/index.InsertedTableCell.html
index c9cf6cbc2e..90e1e5fd1f 100644
--- a/api/classes/index.InsertedTableCell.html
+++ b/api/classes/index.InsertedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTableRow.html b/api/classes/index.InsertedTableRow.html
index 77b13ca58d..e1f21c7cc5 100644
--- a/api/classes/index.InsertedTableRow.html
+++ b/api/classes/index.InsertedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTextRun.html b/api/classes/index.InsertedTextRun.html
index d033013ac7..4eec3f2d8b 100644
--- a/api/classes/index.InsertedTextRun.html
+++ b/api/classes/index.InsertedTextRun.html
@@ -37,7 +37,7 @@ made the insertion and when.
diff --git a/api/classes/index.InternalHyperlink.html b/api/classes/index.InternalHyperlink.html
index 7d68ebd240..69ec59aa54 100644
--- a/api/classes/index.InternalHyperlink.html
+++ b/api/classes/index.InternalHyperlink.html
@@ -36,7 +36,7 @@ The bookmark must exist in the document for the hyperlink to function.
diff --git a/api/classes/index.LastRenderedPageBreak.html b/api/classes/index.LastRenderedPageBreak.html
index 48de030fc4..33c34f01f9 100644
--- a/api/classes/index.LastRenderedPageBreak.html
+++ b/api/classes/index.LastRenderedPageBreak.html
@@ -23,7 +23,7 @@ This is typically generated by Word and not created manually.
diff --git a/api/classes/index.MathDegree.html b/api/classes/index.MathDegree.html
index 4fcc54412f..098de39aff 100644
--- a/api/classes/index.MathDegree.html
+++ b/api/classes/index.MathDegree.html
@@ -28,7 +28,7 @@ For square roots, this element is typically hidden.
diff --git a/api/classes/index.MathFunctionName.html b/api/classes/index.MathFunctionName.html
index 691639cd53..6775946a2a 100644
--- a/api/classes/index.MathFunctionName.html
+++ b/api/classes/index.MathFunctionName.html
@@ -28,7 +28,7 @@ that appears before the function argument.
diff --git a/api/classes/index.MathFunctionProperties.html b/api/classes/index.MathFunctionProperties.html
index 2b04b4aec9..ae1bdc5dd1 100644
--- a/api/classes/index.MathFunctionProperties.html
+++ b/api/classes/index.MathFunctionProperties.html
@@ -28,7 +28,7 @@ such as function name alignment and spacing.
diff --git a/api/classes/index.MathLimitUpper.html b/api/classes/index.MathLimitUpper.html
index aa8c730504..3eb3f8575b 100644
--- a/api/classes/index.MathLimitUpper.html
+++ b/api/classes/index.MathLimitUpper.html
@@ -36,7 +36,7 @@ commonly used for mathematical notation like lim with conditions above.
diff --git a/api/classes/index.MathPreSubSuperScript.html b/api/classes/index.MathPreSubSuperScript.html
index f98032ffbf..d32e395ef9 100644
--- a/api/classes/index.MathPreSubSuperScript.html
+++ b/api/classes/index.MathPreSubSuperScript.html
@@ -36,7 +36,7 @@ positioned before (to the left of) the base, commonly used in tensor notation.
diff --git a/api/classes/index.MathRadicalProperties.html b/api/classes/index.MathRadicalProperties.html
index 9cead42d1a..6f953161d1 100644
--- a/api/classes/index.MathRadicalProperties.html
+++ b/api/classes/index.MathRadicalProperties.html
@@ -28,7 +28,7 @@ such as whether to hide the degree (for square roots).
diff --git a/api/classes/index.MathRun.html b/api/classes/index.MathRun.html
index 3f854ed5c4..6143f83e19 100644
--- a/api/classes/index.MathRun.html
+++ b/api/classes/index.MathRun.html
@@ -36,7 +36,7 @@ similar to how Run contains text in regular paragraphs.
diff --git a/api/classes/index.MathSubSuperScript.html b/api/classes/index.MathSubSuperScript.html
index d86d5a3fc0..349da95818 100644
--- a/api/classes/index.MathSubSuperScript.html
+++ b/api/classes/index.MathSubSuperScript.html
@@ -36,7 +36,7 @@ commonly used for tensor notation or indexed variables with exponents.
diff --git a/api/classes/index.Media.html b/api/classes/index.Media.html
index 5e14e13abc..bff8a9a2b4 100644
--- a/api/classes/index.Media.html
+++ b/api/classes/index.Media.html
@@ -24,7 +24,7 @@ is stored with a unique key for retrieval.
diff --git a/api/classes/index.NextAttributeComponent.html b/api/classes/index.NextAttributeComponent.html
index adc4dcc512..3b2d166c77 100644
--- a/api/classes/index.NextAttributeComponent.html
+++ b/api/classes/index.NextAttributeComponent.html
@@ -34,7 +34,7 @@ This gives more control but is more verbose than XmlAttributeComponent.
diff --git a/api/classes/index.OnOffElement.html b/api/classes/index.OnOffElement.html
index f892a9802a..a09bdc9dd5 100644
--- a/api/classes/index.OnOffElement.html
+++ b/api/classes/index.OnOffElement.html
@@ -34,7 +34,7 @@ it is explicitly disabled. When the value is true, the attribute is often omitte
diff --git a/api/classes/index.Packer.html b/api/classes/index.Packer.html
index f407825d96..7581e9724b 100644
--- a/api/classes/index.Packer.html
+++ b/api/classes/index.Packer.html
@@ -26,7 +26,7 @@ of the document structure into OOXML format and compression into a .docx ZIP arc
diff --git a/api/classes/index.PageBorders.html b/api/classes/index.PageBorders.html
index d8f1c845bd..9396770aab 100644
--- a/api/classes/index.PageBorders.html
+++ b/api/classes/index.PageBorders.html
@@ -34,7 +34,7 @@ including which pages display the borders and how they are positioned.
diff --git a/api/classes/index.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index 5cd9150fd2..6e091ecb73 100644
--- a/api/classes/index.PageTextDirection.html
+++ b/api/classes/index.PageTextDirection.html
@@ -30,7 +30,7 @@ for all pages in a section.
diff --git a/api/classes/index.Paragraph.html b/api/classes/index.Paragraph.html
index 01ea8dd981..8e212137cd 100644
--- a/api/classes/index.Paragraph.html
+++ b/api/classes/index.Paragraph.html
@@ -36,7 +36,7 @@ various inline elements such as text runs, images, hyperlinks, and bookmarks.
diff --git a/api/classes/index.ParagraphPropertiesChange.html b/api/classes/index.ParagraphPropertiesChange.html
index b0fb6679fc..c6bb1392de 100644
--- a/api/classes/index.ParagraphPropertiesChange.html
+++ b/api/classes/index.ParagraphPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ParagraphPropertiesDefaults.html b/api/classes/index.ParagraphPropertiesDefaults.html
index 83b98ca196..f9be4097fb 100644
--- a/api/classes/index.ParagraphPropertiesDefaults.html
+++ b/api/classes/index.ParagraphPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all paragraphs in the document unless overridden.
diff --git a/api/classes/index.PositionalTab.html b/api/classes/index.PositionalTab.html
index bf3740b435..27b4a12184 100644
--- a/api/classes/index.PositionalTab.html
+++ b/api/classes/index.PositionalTab.html
@@ -37,7 +37,7 @@ an exact alignment and position within the paragraph.
diff --git a/api/classes/index.RunPropertiesDefaults.html b/api/classes/index.RunPropertiesDefaults.html
index f92fcb3143..876cc1b3ec 100644
--- a/api/classes/index.RunPropertiesDefaults.html
+++ b/api/classes/index.RunPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all text runs in the document unless overridden by styles or direct formattin
diff --git a/api/classes/index.SectionProperties.html b/api/classes/index.SectionProperties.html
index bb9201677a..d595f343c0 100644
--- a/api/classes/index.SectionProperties.html
+++ b/api/classes/index.SectionProperties.html
@@ -35,7 +35,7 @@ A document can contain multiple sections with different properties.
diff --git a/api/classes/index.SectionPropertiesChange.html b/api/classes/index.SectionPropertiesChange.html
index 07386bdc5d..549825bc60 100644
--- a/api/classes/index.SectionPropertiesChange.html
+++ b/api/classes/index.SectionPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.SimpleField.html b/api/classes/index.SimpleField.html
index e6fb5c59c0..6f2ca5ad01 100644
--- a/api/classes/index.SimpleField.html
+++ b/api/classes/index.SimpleField.html
@@ -40,7 +40,7 @@ Simple fields are typically used for fields that don't require complex nesting.<
diff --git a/api/classes/index.SimpleMailMergeField.html b/api/classes/index.SimpleMailMergeField.html
index 7bf4028b94..f104910e05 100644
--- a/api/classes/index.SimpleMailMergeField.html
+++ b/api/classes/index.SimpleMailMergeField.html
@@ -30,7 +30,7 @@ It creates a MERGEFIELD that will be populated with data during mail merge.
diff --git a/api/classes/index.StringContainer.html b/api/classes/index.StringContainer.html
index dcde46b89d..dbe0131863 100644
--- a/api/classes/index.StringContainer.html
+++ b/api/classes/index.StringContainer.html
@@ -30,7 +30,7 @@ rather than an attribute.
diff --git a/api/classes/index.StringEnumValueElement.html b/api/classes/index.StringEnumValueElement.html
index b801ca2aea..0b89a8751d 100644
--- a/api/classes/index.StringEnumValueElement.html
+++ b/api/classes/index.StringEnumValueElement.html
@@ -33,7 +33,7 @@ type parameter to enforce type safety for enum values.
diff --git a/api/classes/index.StyleForParagraph.html b/api/classes/index.StyleForParagraph.html
index 7fff84e453..fd58e6cf9d 100644
--- a/api/classes/index.StyleForParagraph.html
+++ b/api/classes/index.StyleForParagraph.html
@@ -35,7 +35,7 @@ run-level properties (font, size, color) for text within the paragraph.
diff --git a/api/classes/index.StyleLevel.html b/api/classes/index.StyleLevel.html
index 9ae34a538b..eea22e45cc 100644
--- a/api/classes/index.StyleLevel.html
+++ b/api/classes/index.StyleLevel.html
@@ -20,7 +20,7 @@ custom styles to be included in the table of contents at specific levels.
diff --git a/api/classes/index.Styles.html b/api/classes/index.Styles.html
index a543e93841..bc0bb36aa6 100644
--- a/api/classes/index.Styles.html
+++ b/api/classes/index.Styles.html
@@ -35,7 +35,7 @@ a way to define consistent formatting across a document.
diff --git a/api/classes/index.TDirection.html b/api/classes/index.TDirection.html
index 5f18d493fb..e9396a23fd 100644
--- a/api/classes/index.TDirection.html
+++ b/api/classes/index.TDirection.html
@@ -34,7 +34,7 @@ useful for creating rotated text or supporting different writing systems.
diff --git a/api/classes/index.Table.html b/api/classes/index.Table.html
index dd3a630b14..93d515bb0e 100644
--- a/api/classes/index.Table.html
+++ b/api/classes/index.Table.html
@@ -36,7 +36,7 @@ Tables are used to organize content into a grid structure.
diff --git a/api/classes/index.TableCellBorders.html b/api/classes/index.TableCellBorders.html
index 3b891a2b2b..9a52d639ed 100644
--- a/api/classes/index.TableCellBorders.html
+++ b/api/classes/index.TableCellBorders.html
@@ -34,7 +34,7 @@ can be configured independently with different styles, colors, and widths.
diff --git a/api/classes/index.TableRow.html b/api/classes/index.TableRow.html
index 1c133b9c6d..6c99066fd6 100644
--- a/api/classes/index.TableRow.html
+++ b/api/classes/index.TableRow.html
@@ -36,7 +36,7 @@ one or more table cells that hold the actual content.
diff --git a/api/classes/index.TableRowProperties.html b/api/classes/index.TableRowProperties.html
index c3012ff082..11c337fdb0 100644
--- a/api/classes/index.TableRowProperties.html
+++ b/api/classes/index.TableRowProperties.html
@@ -30,7 +30,7 @@ whether it can split across pages, and whether it's a header row.
diff --git a/api/classes/index.TableRowPropertiesChange.html b/api/classes/index.TableRowPropertiesChange.html
index fdbeefa62e..1b7992bf61 100644
--- a/api/classes/index.TableRowPropertiesChange.html
+++ b/api/classes/index.TableRowPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.VerticalMerge.html b/api/classes/index.VerticalMerge.html
index 6adda011e1..f5c41a22f1 100644
--- a/api/classes/index.VerticalMerge.html
+++ b/api/classes/index.VerticalMerge.html
@@ -35,7 +35,7 @@ This is used to create row spans in tables.
diff --git a/api/classes/index.WpsShapeRun.html b/api/classes/index.WpsShapeRun.html
index 7b56617ee6..951103cfa7 100644
--- a/api/classes/index.WpsShapeRun.html
+++ b/api/classes/index.WpsShapeRun.html
@@ -28,7 +28,7 @@ options for fills, lines, effects and text layout, and can be any of the preset
diff --git a/api/classes/index.XmlAttributeComponent.html b/api/classes/index.XmlAttributeComponent.html
index 67b61afa33..3c7e98b3af 100644
--- a/api/classes/index.XmlAttributeComponent.html
+++ b/api/classes/index.XmlAttributeComponent.html
@@ -41,7 +41,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.XmlComponent.html b/api/classes/index.XmlComponent.html
index af97398b74..5401e872f9 100644
--- a/api/classes/index.XmlComponent.html
+++ b/api/classes/index.XmlComponent.html
@@ -129,7 +129,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/math.MathBrackets.html b/api/classes/math.MathBrackets.html
index 0c8752df49..1bec0457a2 100644
--- a/api/classes/math.MathBrackets.html
+++ b/api/classes/math.MathBrackets.html
@@ -29,7 +29,7 @@ with what they hold.
diff --git a/api/classes/math.MathLargeOperator.html b/api/classes/math.MathLargeOperator.html
index 6406fbe3c7..7ab992b754 100644
--- a/api/classes/math.MathLargeOperator.html
+++ b/api/classes/math.MathLargeOperator.html
@@ -28,7 +28,7 @@ it applies to. MathSum and MathIntegral are two of the
diff --git a/api/classes/math.MathMatrix.html b/api/classes/math.MathMatrix.html
index 53f82914e9..12358dea91 100644
--- a/api/classes/math.MathMatrix.html
+++ b/api/classes/math.MathMatrix.html
@@ -30,7 +30,7 @@ and Pages centre every column.
diff --git a/api/classes/math.MathPhantom.html b/api/classes/math.MathPhantom.html
index 624cb0f6fb..ad53ef2a6a 100644
--- a/api/classes/math.MathPhantom.html
+++ b/api/classes/math.MathPhantom.html
@@ -28,7 +28,7 @@ line things up with it. Or math that is seen but takes up no room, or less, as <
diff --git a/api/classes/shapes.ShapeCanvasRun.html b/api/classes/shapes.ShapeCanvasRun.html
index 31677f14c2..0b960fc14f 100644
--- a/api/classes/shapes.ShapeCanvasRun.html
+++ b/api/classes/shapes.ShapeCanvasRun.html
@@ -35,7 +35,7 @@ written in mc:AlternateContent, with the group as its fallback, unl
diff --git a/api/classes/shapes.ShapeGroupRun.html b/api/classes/shapes.ShapeGroupRun.html
index a5cdfe493a..fe9bca9313 100644
--- a/api/classes/shapes.ShapeGroupRun.html
+++ b/api/classes/shapes.ShapeGroupRun.html
@@ -35,7 +35,7 @@ when shapes are moved on a
diff --git a/api/classes/shapes.ShapeRun.html b/api/classes/shapes.ShapeRun.html
index 308b62a4f7..9f1f8ed379 100644
--- a/api/classes/shapes.ShapeRun.html
+++ b/api/classes/shapes.ShapeRun.html
@@ -33,7 +33,7 @@ and arrowheads, and text inside it. It sits inline with text unless floati
diff --git a/api/classes/watermarks.ImageWatermark.html b/api/classes/watermarks.ImageWatermark.html
index 66c02e5f19..612cb221c5 100644
--- a/api/classes/watermarks.ImageWatermark.html
+++ b/api/classes/watermarks.ImageWatermark.html
@@ -46,7 +46,7 @@ way as an ImageRun.
diff --git a/api/classes/watermarks.TextWatermark.html b/api/classes/watermarks.TextWatermark.html
index 01f8cfb306..6997edb884 100644
--- a/api/classes/watermarks.TextWatermark.html
+++ b/api/classes/watermarks.TextWatermark.html
@@ -44,7 +44,7 @@ recognizes it and can remove or replace it through that command.
\n option - causes the field result to be the paragraph number without trailing periods. No information about prior numbered levels is displayed unless it is included as part of the current level.
diff --git a/api/functions/index.convertToXmlComponent.html b/api/functions/index.convertToXmlComponent.html
index e02fc1fd60..13c865b527 100644
--- a/api/functions/index.convertToXmlComponent.html
+++ b/api/functions/index.convertToXmlComponent.html
@@ -36,7 +36,7 @@ of the original XML.
diff --git a/api/functions/index.createEmphasisMark.html b/api/functions/index.createEmphasisMark.html
index 7d3aaae33a..beb183e2e9 100644
--- a/api/functions/index.createEmphasisMark.html
+++ b/api/functions/index.createEmphasisMark.html
@@ -37,7 +37,7 @@ text to emphasize it. This is commonly used in East Asian typography.
diff --git a/api/functions/index.createFrameProperties.html b/api/functions/index.createFrameProperties.html
index 199331933b..6f364f9cf0 100644
--- a/api/functions/index.createFrameProperties.html
+++ b/api/functions/index.createFrameProperties.html
@@ -41,7 +41,7 @@ drop cap effects and various text wrapping options.
diff --git a/api/functions/index.createHorizontalPosition.html b/api/functions/index.createHorizontalPosition.html
index 96d60e2919..96369b7b83 100644
--- a/api/functions/index.createHorizontalPosition.html
+++ b/api/functions/index.createHorizontalPosition.html
@@ -40,7 +40,7 @@ object relative to a base element (page, margin, column, etc.).
diff --git a/api/functions/index.createMathAccentCharacter.html b/api/functions/index.createMathAccentCharacter.html
index b81bcb7267..8eb61d117f 100644
--- a/api/functions/index.createMathAccentCharacter.html
+++ b/api/functions/index.createMathAccentCharacter.html
@@ -31,7 +31,7 @@ such as summation (∑), integral (∫), or product (∏) symbols.
diff --git a/api/functions/index.createMathNAryProperties.html b/api/functions/index.createMathNAryProperties.html
index 54e15c31ea..ef5dc1529b 100644
--- a/api/functions/index.createMathNAryProperties.html
+++ b/api/functions/index.createMathNAryProperties.html
@@ -31,7 +31,7 @@ and integrals, including the operator character and limit positioning.
diff --git a/api/functions/index.createMathSubScriptElement.html b/api/functions/index.createMathSubScriptElement.html
index fae6ced465..9a3eeacc11 100644
--- a/api/functions/index.createMathSubScriptElement.html
+++ b/api/functions/index.createMathSubScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support subscripts.
diff --git a/api/functions/index.createMathSuperScriptElement.html b/api/functions/index.createMathSuperScriptElement.html
index 9e4f3ee705..f53372237d 100644
--- a/api/functions/index.createMathSuperScriptElement.html
+++ b/api/functions/index.createMathSuperScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support superscripts.
diff --git a/api/functions/index.createPageNumberType.html b/api/functions/index.createPageNumberType.html
index 2361fcf36f..b34a13bd0b 100644
--- a/api/functions/index.createPageNumberType.html
+++ b/api/functions/index.createPageNumberType.html
@@ -37,7 +37,7 @@ for all pages in a section.
diff --git a/api/functions/index.createSectionType.html b/api/functions/index.createSectionType.html
index f5e869dfd0..3b80965889 100644
--- a/api/functions/index.createSectionType.html
+++ b/api/functions/index.createSectionType.html
@@ -37,7 +37,7 @@ where the new section begins relative to the previous section.
diff --git a/api/functions/index.createTableFloatProperties.html b/api/functions/index.createTableFloatProperties.html
index 39ea28b5fd..5a06e322a3 100644
--- a/api/functions/index.createTableFloatProperties.html
+++ b/api/functions/index.createTableFloatProperties.html
@@ -38,7 +38,7 @@ The overlap option isn't part of it: the table properties write it as w:tblOverl
diff --git a/api/functions/index.createTableLook.html b/api/functions/index.createTableLook.html
index efcf8c77c9..795e0a7041 100644
--- a/api/functions/index.createTableLook.html
+++ b/api/functions/index.createTableLook.html
@@ -34,7 +34,7 @@ styles to apply special formatting to specific regions of the table.
diff --git a/api/functions/index.createTableRowHeight.html b/api/functions/index.createTableRowHeight.html
index 40bb88117e..9ca9be8702 100644
--- a/api/functions/index.createTableRowHeight.html
+++ b/api/functions/index.createTableRowHeight.html
@@ -38,7 +38,7 @@ determining how the height should be applied.
diff --git a/api/functions/index.createWrapNone.html b/api/functions/index.createWrapNone.html
index 05a219131d..527135939d 100644
--- a/api/functions/index.createWrapNone.html
+++ b/api/functions/index.createWrapNone.html
@@ -23,7 +23,7 @@ without wrapping around it.
diff --git a/api/functions/index.createWrapSquare.html b/api/functions/index.createWrapSquare.html
index 34ced65694..66af0b4a12 100644
--- a/api/functions/index.createWrapSquare.html
+++ b/api/functions/index.createWrapSquare.html
@@ -32,7 +32,7 @@ of the drawing on the specified side(s).
diff --git a/api/functions/index.createWrapThrough.html b/api/functions/index.createWrapThrough.html
index bd4f94658c..9126597480 100644
--- a/api/functions/index.createWrapThrough.html
+++ b/api/functions/index.createWrapThrough.html
@@ -36,7 +36,7 @@ fills any open space inside the drawing, such as the middle of a ring.
diff --git a/api/functions/index.createWrapTight.html b/api/functions/index.createWrapTight.html
index 9caee31107..a6c56b6543 100644
--- a/api/functions/index.createWrapTight.html
+++ b/api/functions/index.createWrapTight.html
@@ -36,7 +36,7 @@ of the drawing rather than its rectangular bounding box.
diff --git a/api/functions/index.dateTimeValue.html b/api/functions/index.dateTimeValue.html
index 7249efda69..cf42fcb2fc 100644
--- a/api/functions/index.dateTimeValue.html
+++ b/api/functions/index.dateTimeValue.html
@@ -36,7 +36,7 @@ This matches the xsd:dateTime format required by OOXML.
diff --git a/api/functions/index.fillPartPageNumbers.html b/api/functions/index.fillPartPageNumbers.html
index 976f2236ea..d18260d01f 100644
--- a/api/functions/index.fillPartPageNumbers.html
+++ b/api/functions/index.fillPartPageNumbers.html
@@ -35,7 +35,7 @@ are left as they are
diff --git a/api/functions/index.fillSequenceNumbers.html b/api/functions/index.fillSequenceNumbers.html
index 500200e710..63e7120e19 100644
--- a/api/functions/index.fillSequenceNumbers.html
+++ b/api/functions/index.fillSequenceNumbers.html
@@ -27,7 +27,7 @@ tables of contents are filled in from its headings, as Word leaves a heading's S
diff --git a/api/functions/index.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index c0b8b0b516..0a73895e83 100644
--- a/api/functions/index.hpsMeasureValue.html
+++ b/api/functions/index.hpsMeasureValue.html
@@ -36,7 +36,7 @@ HPS (half-points) are commonly used for font sizes.
diff --git a/api/functions/index.patchDocument.html b/api/functions/index.patchDocument.html
index 5b76ca50e7..192bfe61d4 100644
--- a/api/functions/index.patchDocument.html
+++ b/api/functions/index.patchDocument.html
@@ -42,7 +42,7 @@ the original document structure and optionally the original formatting.
diff --git a/api/functions/index.universalMeasureToTwips.html b/api/functions/index.universalMeasureToTwips.html
index 13454a9bda..f47f4c57ef 100644
--- a/api/functions/index.universalMeasureToTwips.html
+++ b/api/functions/index.universalMeasureToTwips.html
@@ -35,7 +35,7 @@ Strings are converted according to their unit suffix.
diff --git a/api/functions/layout.estimatePageNumbersWith.html b/api/functions/layout.estimatePageNumbersWith.html
index b86dec7896..cceb5aed39 100644
--- a/api/functions/layout.estimatePageNumbersWith.html
+++ b/api/functions/layout.estimatePageNumbersWith.html
@@ -32,7 +32,7 @@ options say. Give what it returns to a document as its pageNumbers,
diff --git a/api/functions/layout.layoutDocument.html b/api/functions/layout.layoutDocument.html
index c8dc412749..8c8aef37e0 100644
--- a/api/functions/layout.layoutDocument.html
+++ b/api/functions/layout.layoutDocument.html
@@ -40,7 +40,7 @@ text box, it stops, and gives the pages up to there, with why in stoppedAt
diff --git a/api/functions/layout.measureWithPretext.html b/api/functions/layout.measureWithPretext.html
index 43ea79259e..d27b551140 100644
--- a/api/functions/layout.measureWithPretext.html
+++ b/api/functions/layout.measureWithPretext.html
@@ -40,7 +40,7 @@ measures text in another, and Pretext keeps the widths it measured.
diff --git a/api/functions/math.latexToMath.html b/api/functions/math.latexToMath.html
index 1b90a23032..0ebec2dba1 100644
--- a/api/functions/math.latexToMath.html
+++ b/api/functions/math.latexToMath.html
@@ -44,7 +44,7 @@ cases and aligned equations, with \tag for their numbers. The math
diff --git a/api/interfaces/index.IXmlableObject.html b/api/interfaces/index.IXmlableObject.html
index fe7adb0da1..ed32877471 100644
--- a/api/interfaces/index.IXmlableObject.html
+++ b/api/interfaces/index.IXmlableObject.html
@@ -31,7 +31,7 @@ to generate the final XML output. Objects typically have a structure like:
diff --git a/api/types/charts.BarChartBaseOptions.html b/api/types/charts.BarChartBaseOptions.html
index d55a2a585f..42ce10fe3d 100644
--- a/api/types/charts.BarChartBaseOptions.html
+++ b/api/types/charts.BarChartBaseOptions.html
@@ -31,7 +31,7 @@ Default is Office's: -27 for column charts and 0 for bar charts. Stacked bars al
@@ -49,14 +49,14 @@ bar, line or area chart spaces them by date
Sales. 2025: Jan 10, Feb 20.", and none for a decorative chart. An empty description removes it
+
diff --git a/api/types/charts.CategoryChartOptions.html b/api/types/charts.CategoryChartOptions.html
index 464f70905c..fd93842fe4 100644
--- a/api/types/charts.CategoryChartOptions.html
+++ b/api/types/charts.CategoryChartOptions.html
@@ -59,7 +59,7 @@ in years, are labelled in rows, the groups below their categories
diff --git a/api/types/charts.ChartAxisCrossing.html b/api/types/charts.ChartAxisCrossing.html
index 3bb30d3672..238f032db0 100644
--- a/api/types/charts.ChartAxisCrossing.html
+++ b/api/types/charts.ChartAxisCrossing.html
@@ -20,7 +20,7 @@ the value is the category's number, from 1, or when the categories are dates, a
diff --git a/api/types/charts.ChartAxisGroup.html b/api/types/charts.ChartAxisGroup.html
index b685d5c702..d54287e5b4 100644
--- a/api/types/charts.ChartAxisGroup.html
+++ b/api/types/charts.ChartAxisGroup.html
@@ -19,7 +19,7 @@ chart's are along the bottom and the top.
diff --git a/api/types/charts.ChartCategoryGroup.html b/api/types/charts.ChartCategoryGroup.html
index 9dd87f220d..b47a5496a1 100644
--- a/api/types/charts.ChartCategoryGroup.html
+++ b/api/types/charts.ChartCategoryGroup.html
@@ -20,7 +20,7 @@ categories, or groups of its own, such as the months of each quarter of each yea
@@ -67,21 +67,21 @@ a point, and where they fit best on a pie. A chart's position is for the series
another way keep Office's, unless their own labels give one
diff --git a/api/types/charts.ChartDataPatchOptions.html b/api/types/charts.ChartDataPatchOptions.html
index 2e4b4d57e3..24daa9c9d8 100644
--- a/api/types/charts.ChartDataPatchOptions.html
+++ b/api/types/charts.ChartDataPatchOptions.html
@@ -19,7 +19,7 @@ series' points, or for a stock chart its prices.
diff --git a/api/types/charts.ChartErrorBarsAmount.html b/api/types/charts.ChartErrorBarsAmount.html
index 1ba6955134..12b88f2515 100644
--- a/api/types/charts.ChartErrorBarsAmount.html
+++ b/api/types/charts.ChartErrorBarsAmount.html
@@ -64,7 +64,7 @@ deviations, or the standard error.
diff --git a/api/types/charts.ChartLineDash.html b/api/types/charts.ChartLineDash.html
index 15c313eee9..095d54116b 100644
--- a/api/types/charts.ChartLineDash.html
+++ b/api/types/charts.ChartLineDash.html
@@ -19,7 +19,7 @@ and so on.
diff --git a/api/types/charts.ChartPointLabel.html b/api/types/charts.ChartPointLabel.html
index 23e820c899..45db40e29f 100644
--- a/api/types/charts.ChartPointLabel.html
+++ b/api/types/charts.ChartPointLabel.html
@@ -19,7 +19,7 @@ format and its font. Anything left out is as the series' labels have it.
diff --git a/api/types/charts.ChartTrendline.html b/api/types/charts.ChartTrendline.html
index 291555d189..2857f2df23 100644
--- a/api/types/charts.ChartTrendline.html
+++ b/api/types/charts.ChartTrendline.html
@@ -20,7 +20,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
@@ -57,7 +57,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
along the x axis. Default is 0. Not for moving averages
@@ -73,35 +73,35 @@ the x axis. Default is 0. Not for moving averages
linear, exponential and polynomial trendlines, and above 0 for exponential ones
+
diff --git a/api/types/charts.ChartValueAxis.html b/api/types/charts.ChartValueAxis.html
index 1e8f4bb209..0992fb9121 100644
--- a/api/types/charts.ChartValueAxis.html
+++ b/api/types/charts.ChartValueAxis.html
@@ -43,7 +43,7 @@ of 0 or less can't be shown. Default is a linear scale
diff --git a/api/types/charts.ComboChartSeriesType.html b/api/types/charts.ComboChartSeriesType.html
index 34d6479ada..f9a3aefdcb 100644
--- a/api/types/charts.ComboChartSeriesType.html
+++ b/api/types/charts.ComboChartSeriesType.html
@@ -19,7 +19,7 @@ or an area. A chart with series of more than one type is Word's "Combo"
@@ -59,14 +59,14 @@ with undefined, takes the next of the theme's accent colours
one for each slice in the order of the categories, where undefined leaves a slice in. Default is 0
+
diff --git a/api/types/charts.SplitPieChartBaseOptions.html b/api/types/charts.SplitPieChartBaseOptions.html
index e5303498bf..81a60da752 100644
--- a/api/types/charts.SplitPieChartBaseOptions.html
+++ b/api/types/charts.SplitPieChartBaseOptions.html
@@ -42,7 +42,7 @@ second pie or a stacked bar, joined to the slice of the pie that stands for them
diff --git a/api/types/index.AttributePayload.html b/api/types/index.AttributePayload.html
index 1f86fe8a8e..b90d8364d3 100644
--- a/api/types/index.AttributePayload.html
+++ b/api/types/index.AttributePayload.html
@@ -21,7 +21,7 @@ control over attribute name mapping.
Specifies the additional length, in EMUs, which shall be added to the bottom edge of the DrawingML object to determine its actual bottom edge including effects.
Specifies the additional length, in EMUs, which shall be added to the left edge of the DrawingML object to determine its actual left edge including effects.
Specifies the additional length, in EMUs, which shall be added to the right edge of the DrawingML object to determine its actual right edge including effects.
Specifies the additional length, in EMUs, which shall be added to the top edge of the DrawingML object to determine its actual top edge including effects.
@@ -63,14 +63,14 @@ name. The page references to a bookmark that isn't in it are left blank.
the first of them on may not be Word's. Nothing of them is written into the document.
+
@@ -88,7 +88,7 @@ those in headers, footers and notes.
in headers and footers only on its pages, show. Those of a section whose number is undefined are left blank.
+
diff --git a/api/types/index.GraphicMediaData.html b/api/types/index.GraphicMediaData.html
index 2a9f099776..945d5fe79c 100644
--- a/api/types/index.GraphicMediaData.html
+++ b/api/types/index.GraphicMediaData.html
@@ -25,7 +25,7 @@ graphic it is. This is how docx/shapes writes its shapes.
diff --git a/api/types/index.IContext.html b/api/types/index.IContext.html
index d61b8852f2..a894895a49 100644
--- a/api/types/index.IContext.html
+++ b/api/types/index.IContext.html
@@ -18,7 +18,7 @@ during the conversion of components to XML.
diff --git a/api/types/index.ICropOptions.html b/api/types/index.ICropOptions.html
index b800ff7418..b6bb7c2078 100644
--- a/api/types/index.ICropOptions.html
+++ b/api/types/index.ICropOptions.html
@@ -19,7 +19,7 @@ side of the image.
The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to each character on each row; or a grid which affects only the line pitch for the current section.
Specifies that the paragraph (or at least part of it) should be rendered on the same page as the next paragraph when possible. If multiple paragraphs are to be kept together but they exceed a page, then the set of paragraphs begin on a new page and page breaks are used thereafter as needed.
diff --git a/api/types/index.IRunOptions.html b/api/types/index.IRunOptions.html
index 370fa8f00c..6f5ad9e544 100644
--- a/api/types/index.IRunOptions.html
+++ b/api/types/index.IRunOptions.html
@@ -21,7 +21,7 @@ The children property can contain various inline content elements.
diff --git a/api/types/index.IRunStylePropertiesOptions.html b/api/types/index.IRunStylePropertiesOptions.html
index 51d84909dd..df8ab073bd 100644
--- a/api/types/index.IRunStylePropertiesOptions.html
+++ b/api/types/index.IRunStylePropertiesOptions.html
@@ -19,7 +19,7 @@ including font, size, bold, italic, underline, color, and other character format
@@ -140,117 +140,117 @@ including font, size, bold, italic, underline, color, and other character format
highlights all the run's text. docx used to write it as w:highlightCs, which is in no schema.
diff --git a/api/types/index.ITableCellBorders.html b/api/types/index.ITableCellBorders.html
index bc22281f8f..0eb0e513a8 100644
--- a/api/types/index.ITableCellBorders.html
+++ b/api/types/index.ITableCellBorders.html
@@ -22,7 +22,7 @@ can be specified for top, bottom, left, right, start, and end edges.
@@ -46,7 +46,7 @@ If relativeHorizontalPosition is also specified, then the absoluteHorizontalPosi
If the attribute is omitted, the value is assumed to be zero.
@@ -57,7 +57,7 @@ If relativeVerticalPosition is also specified, then the absoluteVerticalPosition
If the attribute is omitted, the value is assumed to be zero.
@@ -65,7 +65,7 @@ If the attribute is omitted, the value is assumed to be zero.
below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -85,7 +85,7 @@ If omitted, the value is assumed to be page.
to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -121,7 +121,7 @@ inline - the table should be vertically aligned in line with the surrounding tex
top - the table should be vertically aligned to the top edge of the anchor
+
@@ -129,7 +129,7 @@ top - the table should be vertically aligned to the top edge of the anchor
to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -137,7 +137,7 @@ to the right of the table. The value is in twentieths of a point. If omitted, th
above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -88,7 +88,7 @@ When true, horizontal banding (alternating row colors) is disabled.
When false or undefined, horizontal banding is enabled if defined in the table style.
+
@@ -97,7 +97,7 @@ When true, vertical banding (alternating column colors) is disabled.
When false or undefined, vertical banding is enabled if defined in the table style.
+
diff --git a/api/types/index.ITableOfContentsOptions.html b/api/types/index.ITableOfContentsOptions.html
index 06da04727b..52472a6832 100644
--- a/api/types/index.ITableOfContentsOptions.html
+++ b/api/types/index.ITableOfContentsOptions.html
@@ -23,7 +23,7 @@ Options correspond to field switches in the TOC field code.
@@ -59,7 +59,7 @@ The identifier designated by text in this switch's field-argument corresponds to
Use captionLabelIncludingNumbers (\c) to build a table of captions with labels and numbers.
@@ -85,7 +85,7 @@ the bookmark named by text in this switch's field-argument.
that separate an entry and its page number. The default is a tab with leader dots.
+
@@ -96,21 +96,21 @@ to the style with a style ID of HeadingX (e.g. 1 corresponds to Heading1).
If no heading range is specified, all heading levels used in the document are listed.
+
@@ -119,21 +119,21 @@ Page numbers are omitted from all levels unless a range of entry levels is speci
text in this switch's field-argument. A range is specified as for \l.
+
@@ -168,7 +168,7 @@ with each doublet being a comma-separated set of style name and table of content
text in this switch's field-argument (which is typically a letter).
+
@@ -178,14 +178,14 @@ where startLevel and endLevel are integers, and startLevel has a value equal-to
TC fields that assign entries to lower levels are skipped.
+
@@ -76,64 +76,64 @@ parent cell) when the document is packed, so the table renders the same in every
consumer. Supply explicit values to take full control of the grid.
diff --git a/api/types/index.IThemeColorsOptions.html b/api/types/index.IThemeColorsOptions.html
index 75d0e22cfb..017849eb0a 100644
--- a/api/types/index.IThemeColorsOptions.html
+++ b/api/types/index.IThemeColorsOptions.html
@@ -21,7 +21,7 @@ when the theme's colors change. The colors not given are Office's.
diff --git a/api/types/index.IXmlAttribute.html b/api/types/index.IXmlAttribute.html
index e9e3111321..310b3f8b22 100644
--- a/api/types/index.IXmlAttribute.html
+++ b/api/types/index.IXmlAttribute.html
@@ -17,7 +17,7 @@
numbers, or booleans, which will be converted to strings in the final XML.
diff --git a/api/types/index.MathRunStyle.html b/api/types/index.MathRunStyle.html
index e516d13aac..64e6aed4b5 100644
--- a/api/types/index.MathRunStyle.html
+++ b/api/types/index.MathRunStyle.html
@@ -23,7 +23,7 @@
alphabet other than roman is plain unless given a style, as LaTeX draws its alphabets upright.
diff --git a/api/types/index.OutputByType.html b/api/types/index.OutputByType.html
index ae618934b9..539a4d630b 100644
--- a/api/types/index.OutputByType.html
+++ b/api/types/index.OutputByType.html
@@ -24,7 +24,7 @@ format determines the return type. Based on JSZip's output types.
diff --git a/api/types/index.PageNumberEstimator.html b/api/types/index.PageNumberEstimator.html
index 6e79efc9b6..de3fb060c9 100644
--- a/api/types/index.PageNumberEstimator.html
+++ b/api/types/index.PageNumberEstimator.html
@@ -38,7 +38,7 @@ page counts can be written with it.
diff --git a/api/types/index.ParagraphChild.html b/api/types/index.ParagraphChild.html
index 844e314233..ece183537d 100644
--- a/api/types/index.ParagraphChild.html
+++ b/api/types/index.ParagraphChild.html
@@ -17,7 +17,7 @@ This union type represents all valid inline content elements that can appear
within a paragraph in WordprocessingML.
@@ -57,7 +57,7 @@ when it opens it, unzipped and read as the template is, by its path in the templ
(captureSpacesBetweenElements), as the spaces in a text element are its text
diff --git a/api/types/index.RelationshipType.html b/api/types/index.RelationshipType.html
index 5041662125..3fbfda0416 100644
--- a/api/types/index.RelationshipType.html
+++ b/api/types/index.RelationshipType.html
@@ -17,7 +17,7 @@
Each type corresponds to a specific kind of document component or resource.
diff --git a/api/types/index.TableRowsPatch.html b/api/types/index.TableRowsPatch.html
index 9a54e1859e..47212aded9 100644
--- a/api/types/index.TableRowsPatch.html
+++ b/api/types/index.TableRowsPatch.html
@@ -32,7 +32,7 @@ none. The other patches are applied after the rows are repeated, so a placeholde
@@ -55,14 +55,14 @@ A field's patch can repeat rows of a table in the copy in turn, whose fields are
repeated for each part, with its item's fields, and an item without parts has no row
diff --git a/api/types/index.TemplatePageNumberEstimator.html b/api/types/index.TemplatePageNumberEstimator.html
index 514e10d415..c1636b9c47 100644
--- a/api/types/index.TemplatePageNumberEstimator.html
+++ b/api/types/index.TemplatePageNumberEstimator.html
@@ -33,7 +33,7 @@ pages, are written with it.
Specifies the height of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the element left of it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the position of the bottom of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the right of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the top of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the type of positioning used to place an element. Default is static. When the element is contained inside a group, this property must be absolute.
Specifies relative horizontal position data for objects in WordprocessingML documents. This modifies the mso-position-horizontal property. Default is text.
Specifies relative vertical position data for objects in WordprocessingML documents. This modifies the mso-position-vertical property. Default is text.
Specifies the position of the top of the containing block of the shape relative to the element above it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the width of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the distance from the bottom of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the left side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the right side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the top of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies whether the wrap coordinates were customized by the user. If the wrap coordinates are generated by an editor, this property is true; otherwise they were customized by a user. Default is false.
@@ -45,7 +45,7 @@ file is measured with the upright one. The layout stops at a character a font's
it in another font. A font the document embeds is measured from the document's own file
@@ -60,7 +60,7 @@ nearest to Word's lays it out. It still stops where it has no guess, such as at
is off, so the numbers written are Word's, as near as the layout knows, or blank.
+
@@ -70,7 +70,7 @@ break, and tabs move to their stops, as Word lays them out, and lines are as tal
width tables, so the layout stops at text in a font that isn't in them and isn't given as a file or embedded.
+
@@ -67,21 +67,21 @@ drawing that text flows around. Its text is lined up in it as the paragraph's al
sides of a drawing is two lines with the same y, the left first
+
diff --git a/api/types/layout.MeasureWidth.html b/api/types/layout.MeasureWidth.html
index fd465a4ef2..8c642f59fc 100644
--- a/api/types/layout.MeasureWidth.html
+++ b/api/types/layout.MeasureWidth.html
@@ -33,7 +33,7 @@ between characters and the width of scaled text, which the document's formatting
diff --git a/api/types/shapes.ConnectorEnd.html b/api/types/shapes.ConnectorEnd.html
index 1db1dac07a..4bf56a1c51 100644
--- a/api/types/shapes.ConnectorEnd.html
+++ b/api/types/shapes.ConnectorEnd.html
@@ -38,7 +38,7 @@ bottom-left corner. On a shape without connection points, the connector ends at
diff --git a/api/types/shapes.CustomShapeGeometry.html b/api/types/shapes.CustomShapeGeometry.html
index f1bb27df03..bfc21dd7b7 100644
--- a/api/types/shapes.CustomShapeGeometry.html
+++ b/api/types/shapes.CustomShapeGeometry.html
@@ -50,7 +50,7 @@ fill the shape. Later paths are drawn over earlier ones
diff --git a/api/types/shapes.CustomShapePath.html b/api/types/shapes.CustomShapePath.html
index 6e84342d9f..e669a53ad6 100644
--- a/api/types/shapes.CustomShapePath.html
+++ b/api/types/shapes.CustomShapePath.html
@@ -20,7 +20,7 @@ own, so paths can overlap without cutting holes in each other.
diff --git a/api/types/shapes.CustomShapePathFill.html b/api/types/shapes.CustomShapePathFill.html
index b10df5f5ea..c1c54f040e 100644
--- a/api/types/shapes.CustomShapePathFill.html
+++ b/api/types/shapes.CustomShapePathFill.html
@@ -19,7 +19,7 @@ fill made lighter or darker, as Word's preset shapes shade the top of a cube or
diff --git a/api/types/shapes.IShapeCanvasOptions.html b/api/types/shapes.IShapeCanvasOptions.html
index fb274df596..c2c0354d11 100644
--- a/api/types/shapes.IShapeCanvasOptions.html
+++ b/api/types/shapes.IShapeCanvasOptions.html
@@ -64,7 +64,7 @@ The shapes are not scaled.
diff --git a/api/types/shapes.IShapeConnectorOptions.html b/api/types/shapes.IShapeConnectorOptions.html
index 57f25a2e78..98be3c9516 100644
--- a/api/types/shapes.IShapeConnectorOptions.html
+++ b/api/types/shapes.IShapeConnectorOptions.html
@@ -23,7 +23,7 @@ or several connectors join the same two shapes, their ends are spread out along
@@ -64,21 +64,21 @@ or several connectors join the same two shapes, their ends are spread out along
shape, so Word doesn't move it when the connector moves
diff --git a/api/types/shapes.IShapeGroupChildOptions.html b/api/types/shapes.IShapeGroupChildOptions.html
index 28f1f634d0..19e10fe789 100644
--- a/api/types/shapes.IShapeGroupChildOptions.html
+++ b/api/types/shapes.IShapeGroupChildOptions.html
@@ -20,7 +20,7 @@ in pixels, unless a layout places it, and id names it
diff --git a/api/types/shapes.IShapeGroupOptions.html b/api/types/shapes.IShapeGroupOptions.html
index 0997d4da57..ee2ebc7466 100644
--- a/api/types/shapes.IShapeGroupOptions.html
+++ b/api/types/shapes.IShapeGroupOptions.html
@@ -50,7 +50,7 @@ the box around the children. A different size scales every shape in the group.
diff --git a/api/types/shapes.IShapeNestedGroupOptions.html b/api/types/shapes.IShapeNestedGroupOptions.html
index 2919bcad7b..2f040da0be 100644
--- a/api/types/shapes.IShapeNestedGroupOptions.html
+++ b/api/types/shapes.IShapeNestedGroupOptions.html
@@ -47,7 +47,7 @@ box around the children, and a different size scales every child
diff --git a/api/types/shapes.IShapeOptions.html b/api/types/shapes.IShapeOptions.html
index 668606fb0c..9f086bbc6b 100644
--- a/api/types/shapes.IShapeOptions.html
+++ b/api/types/shapes.IShapeOptions.html
@@ -23,7 +23,7 @@ or startAngle and endAngle for a "pie"
diff --git a/api/types/shapes.PresetShapeAdjustments.html b/api/types/shapes.PresetShapeAdjustments.html
index 646a228b78..2e8e96bb3c 100644
--- a/api/types/shapes.PresetShapeAdjustments.html
+++ b/api/types/shapes.PresetShapeAdjustments.html
@@ -21,7 +21,7 @@ allows, so a value that is too large acts like the largest allowed value.
diff --git a/api/types/shapes.ShapeAdjustments.html b/api/types/shapes.ShapeAdjustments.html
index 3294bbcb37..71a3cd5c2e 100644
--- a/api/types/shapes.ShapeAdjustments.html
+++ b/api/types/shapes.ShapeAdjustments.html
@@ -23,7 +23,7 @@ It is never for shapes without handles, which take no adjustments.<
diff --git a/api/types/shapes.ShapeFlowLayout.html b/api/types/shapes.ShapeFlowLayout.html
index ef7b8a6527..dbf67aaa02 100644
--- a/api/types/shapes.ShapeFlowLayout.html
+++ b/api/types/shapes.ShapeFlowLayout.html
@@ -20,7 +20,7 @@ that connect to it, and the shapes on each level are ordered so connectors cross
@@ -52,26 +52,26 @@ with a lane goes in the band of that name, and shapes without one g
across the direction the flow runs in, each with a header at the start of the flow
diff --git a/api/types/shapes.ShapeHorizontalPosition.html b/api/types/shapes.ShapeHorizontalPosition.html
index c8fef870a2..080902a821 100644
--- a/api/types/shapes.ShapeHorizontalPosition.html
+++ b/api/types/shapes.ShapeHorizontalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/types/shapes.ShapeLayout.html b/api/types/shapes.ShapeLayout.html
index 4620b10b37..3735e65eb2 100644
--- a/api/types/shapes.ShapeLayout.html
+++ b/api/types/shapes.ShapeLayout.html
@@ -20,7 +20,7 @@ layout, which is placed around them. Connectors are routed after the shapes are
diff --git a/api/types/shapes.ShapeSize.html b/api/types/shapes.ShapeSize.html
index e9da74f6f8..60685d568f 100644
--- a/api/types/shapes.ShapeSize.html
+++ b/api/types/shapes.ShapeSize.html
@@ -19,7 +19,7 @@ percentage of the space between the page's margins, or of what floating.si
diff --git a/api/types/shapes.ShapeTextWarp.html b/api/types/shapes.ShapeTextWarp.html
index ada523ef65..eb19a8467c 100644
--- a/api/types/shapes.ShapeTextWarp.html
+++ b/api/types/shapes.ShapeTextWarp.html
@@ -19,7 +19,7 @@ The ...Filled arches, circle and button spread the text over the wh
diff --git a/api/types/shapes.ShapeThemeColor.html b/api/types/shapes.ShapeThemeColor.html
index 2dc7c0150a..7300c3a81e 100644
--- a/api/types/shapes.ShapeThemeColor.html
+++ b/api/types/shapes.ShapeThemeColor.html
@@ -20,7 +20,7 @@ same as docx's ThemeColor, which text, borders and sha
diff --git a/api/types/shapes.ShapeTransformation.html b/api/types/shapes.ShapeTransformation.html
index 9c29f7ed92..f43d9a0ca0 100644
--- a/api/types/shapes.ShapeTransformation.html
+++ b/api/types/shapes.ShapeTransformation.html
@@ -30,7 +30,7 @@ between the margins for a floating shape, such as "100%"<
diff --git a/api/types/shapes.ShapeTreeLayout.html b/api/types/shapes.ShapeTreeLayout.html
index d739848428..5b28da4872 100644
--- a/api/types/shapes.ShapeTreeLayout.html
+++ b/api/types/shapes.ShapeTreeLayout.html
@@ -20,7 +20,7 @@ children are placed side by side below their parent, which is centred over them.
diff --git a/api/types/shapes.ShapeVerticalPosition.html b/api/types/shapes.ShapeVerticalPosition.html
index 7315c5de79..46da02cb03 100644
--- a/api/types/shapes.ShapeVerticalPosition.html
+++ b/api/types/shapes.ShapeVerticalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/variables/index.CharacterSet.html b/api/variables/index.CharacterSet.html
index f416f68bd0..0c549c19aa 100644
--- a/api/variables/index.CharacterSet.html
+++ b/api/variables/index.CharacterSet.html
@@ -60,7 +60,7 @@ Maps character set names to their hexadecimal identifiers.
diff --git a/api/variables/index.DocumentAttributeNamespaces.html b/api/variables/index.DocumentAttributeNamespaces.html
index 6212d8e7cf..f8c790ba22 100644
--- a/api/variables/index.DocumentAttributeNamespaces.html
+++ b/api/variables/index.DocumentAttributeNamespaces.html
@@ -94,7 +94,7 @@ in a document, including WordprocessingML, DrawingML, VML, and others.
When this value is set, the input specified via the user interface may be restricted to the number of lines per page and characters per line, with the consumer or producer translating this information based on the current font data to get the resulting line and character pitch values
diff --git a/api/variables/index.DropCapType.html b/api/variables/index.DropCapType.html
index a77b0af5df..a0da50dabe 100644
--- a/api/variables/index.DropCapType.html
+++ b/api/variables/index.DropCapType.html
@@ -32,7 +32,7 @@ beginning of a paragraph. This enum defines how the drop cap should be positione
diff --git a/api/variables/index.EMPTY_OBJECT.html b/api/variables/index.EMPTY_OBJECT.html
index 9bec7f8ed0..b42322bf4c 100644
--- a/api/variables/index.EMPTY_OBJECT.html
+++ b/api/variables/index.EMPTY_OBJECT.html
@@ -20,7 +20,7 @@ has no children or attributes.
diff --git a/api/variables/index.EmphasisMarkType.html b/api/variables/index.EmphasisMarkType.html
index cf169cf6f3..fcb2ce6bce 100644
--- a/api/variables/index.EmphasisMarkType.html
+++ b/api/variables/index.EmphasisMarkType.html
@@ -31,7 +31,7 @@ Emphasis marks are commonly used in East Asian typography.
Specifies that this header or footer shall appear on the first page in this section. The appearance of this header or footer is contingent on the setting of the titlePg element (§2.10.6).
diff --git a/api/variables/index.LevelFormat.html b/api/variables/index.LevelFormat.html
index 29f4fa41d1..dba73e60e5 100644
--- a/api/variables/index.LevelFormat.html
+++ b/api/variables/index.LevelFormat.html
@@ -281,7 +281,7 @@ decimal, roman numerals, letters, and various international formats.
diff --git a/api/variables/index.PageTextDirectionType.html b/api/variables/index.PageTextDirectionType.html
index b3541cc097..2e11659ac7 100644
--- a/api/variables/index.PageTextDirectionType.html
+++ b/api/variables/index.PageTextDirectionType.html
@@ -28,7 +28,7 @@ vertically (top-to-bottom), commonly used for East Asian languages.
Top-to-bottom, right-to-left (vertical East Asian text flow)
diff --git a/api/variables/index.ShadingType.html b/api/variables/index.ShadingType.html
index 4b85b7a729..b95ad9f8a4 100644
--- a/api/variables/index.ShadingType.html
+++ b/api/variables/index.ShadingType.html
@@ -103,7 +103,7 @@ color and the pattern color.
diff --git a/api/variables/index.TextEffect.html b/api/variables/index.TextEffect.html
index dcf3f12555..aca4aca8d0 100644
--- a/api/variables/index.TextEffect.html
+++ b/api/variables/index.TextEffect.html
@@ -56,7 +56,7 @@ these effects are deprecated and may not be supported by all applications.
diff --git a/api/variables/index.VerticalAlign.html b/api/variables/index.VerticalAlign.html
index a3aa74231f..cdeec5375a 100644
--- a/api/variables/index.VerticalAlign.html
+++ b/api/variables/index.VerticalAlign.html
@@ -32,7 +32,7 @@ backward-compatibility and will be removed in the next major release.
diff --git a/api/variables/index.VerticalAlignTable.html b/api/variables/index.VerticalAlignTable.html
index 1618913b2d..3391cb346c 100644
--- a/api/variables/index.VerticalAlignTable.html
+++ b/api/variables/index.VerticalAlignTable.html
@@ -28,7 +28,7 @@ are valid according to ECMA-376 (§17.18.87 ST_VerticalJc within <w:tcP
diff --git a/api/variables/index.VerticalMergeType.html b/api/variables/index.VerticalMergeType.html
index 466c166d46..d88b6eddb3 100644
--- a/api/variables/index.VerticalMergeType.html
+++ b/api/variables/index.VerticalMergeType.html
@@ -29,7 +29,7 @@ This cell continues a vertical merge started by a cell above it.
This cell begins a new vertical merge region.
diff --git a/api/variables/index.bookmarkUniqueNumericId.html b/api/variables/index.bookmarkUniqueNumericId.html
index 5c6d26ac4c..78148f39d6 100644
--- a/api/variables/index.bookmarkUniqueNumericId.html
+++ b/api/variables/index.bookmarkUniqueNumericId.html
@@ -27,7 +27,7 @@ than a generator per instance.
diff --git a/api/variables/index.docPropertiesUniqueNumericId.html b/api/variables/index.docPropertiesUniqueNumericId.html
index b3f48633dc..0190e92d01 100644
--- a/api/variables/index.docPropertiesUniqueNumericId.html
+++ b/api/variables/index.docPropertiesUniqueNumericId.html
@@ -28,7 +28,7 @@ one counter rather than a generator per instance.
diff --git a/api/variables/layout.estimatePageNumbers.html b/api/variables/layout.estimatePageNumbers.html
index 05a9776b43..7ac2a4e71c 100644
--- a/api/variables/layout.estimatePageNumbers.html
+++ b/api/variables/layout.estimatePageNumbers.html
@@ -50,7 +50,7 @@ written, and the numbers left blank stay blank, without asking to update the fie
diff --git a/live-examples/lib/layout.iife.js b/live-examples/lib/layout.iife.js
index dd4ef986d0..884d68bad3 100644
--- a/live-examples/lib/layout.iife.js
+++ b/live-examples/lib/layout.iife.js
@@ -3466,7 +3466,7 @@ var docxLayout = (function(exports) {
};
var stringOf = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
var scaled = (value, divisor) => value === void 0 ? void 0 : value / divisor;
- var POINTS_PER_UNIT = {
+ var POINTS_PER_UNIT$1 = {
mm: 72 / 25.4,
cm: 72 / 2.54,
in: 72,
@@ -3491,7 +3491,7 @@ var docxLayout = (function(exports) {
const measure = typeof value === "string" ? MEASURE.exec(value) : null;
if (!measure) return scaled(numberOf(value), perPoint);
const [, minus, whole, fraction = "", unit] = measure;
- const inUnits = ((minus ? -Number(whole) : Number(whole)) + Number(`0${fraction}`)) * POINTS_PER_UNIT[unit] * perPoint;
+ const inUnits = ((minus ? -Number(whole) : Number(whole)) + Number(`0${fraction}`)) * POINTS_PER_UNIT$1[unit] * perPoint;
return (METRIC.has(unit) ? Math.round(inUnits) : Math.floor(inUnits + ROUNDING)) / perPoint;
};
/**
@@ -3755,20 +3755,22 @@ var docxLayout = (function(exports) {
var _stringOf2;
const children = childrenOf(child["w:style"]);
const attributes = attributesOf(child["w:style"]);
- const numbering = childrenOf(find(childrenOf(find(children, "w:pPr")), "w:numPr"));
+ const paragraphProperties = childrenOf(find(children, "w:pPr"));
+ const numbering = childrenOf(find(paragraphProperties, "w:numPr"));
+ const frame = find(paragraphProperties, "w:framePr");
const list = attributesOf(find(numbering, "w:numId"))["w:val"];
const level = numberOf(attributesOf(find(numbering, "w:ilvl"))["w:val"]);
const name = valueOf(children, "w:name");
return {
id: stringOf(attributes["w:styleId"]),
isDefault: attributes["w:default"] !== void 0 && !isOff(attributes["w:default"]),
- definition: _objectSpread2(_objectSpread2(_objectSpread2({ type: (_stringOf2 = stringOf(attributes["w:type"])) !== null && _stringOf2 !== void 0 ? _stringOf2 : "paragraph" }, name === void 0 ? {} : { name }), {}, { basedOn: valueOf(children, "w:basedOn") }, list === void 0 && level === void 0 ? {} : { numbering: withoutUndefined({
+ definition: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ type: (_stringOf2 = stringOf(attributes["w:type"])) !== null && _stringOf2 !== void 0 ? _stringOf2 : "paragraph" }, name === void 0 ? {} : { name }), {}, { basedOn: valueOf(children, "w:basedOn") }, list === void 0 && level === void 0 ? {} : { numbering: withoutUndefined({
id: list === void 0 ? void 0 : String(list),
level
}) }), {}, {
run: readRunFormat(find(children, "w:rPr"), themeFonts),
paragraph: readParagraphFormat(find(children, "w:pPr"))
- }, attributes["w:type"] === "table" ? readTableStyle(children, themeFonts) : {})
+ }, frame === void 0 ? {} : { frame }), attributes["w:type"] === "table" ? readTableStyle(children, themeFonts) : {})
};
}).filter((style) => style.id !== void 0);
const defaultStyle = (type) => {
@@ -6728,7 +6730,7 @@ var docxLayout = (function(exports) {
width
}, space > 0 ? { space } : {});
};
- var SIDES$1 = [
+ var SIDES$2 = [
["top", ["w:top"]],
["bottom", ["w:bottom"]],
["left", ["w:start", "w:left"]],
@@ -6742,7 +6744,7 @@ var docxLayout = (function(exports) {
*/
var readBorderSet = (element) => {
const children = childrenOf(element);
- return Object.fromEntries(SIDES$1.flatMap(([side, names]) => {
+ return Object.fromEntries(SIDES$2.flatMap(([side, names]) => {
const given = names.map((name) => find(children, name)).find((border) => border !== void 0);
return given === void 0 ? [] : [[side, readBorder(given)]];
}));
@@ -7011,6 +7013,288 @@ var docxLayout = (function(exports) {
});
};
//#endregion
+ //#region src/layout/text-frames.ts
+ /**
+ * Reads text frames (`w:framePr`): paragraphs Word takes out of the text and puts in a box of their own, placed on the
+ * page as a drawing is, which the text after them flows around, such as docx's `frame` and drop caps.
+ *
+ * Word's PDFs of scripts/layout-probes/word-frames.ts showed a frame laid out as a drawing that text flows around is, at
+ * the place and with the distances its properties give: against the page, the margins, the column, or the paragraph
+ * after it, at the top of that paragraph's space before (FM7 to FM10, FM11). A drop cap is a frame like any other, as wide
+ * as its letter, and the lines beside it are those its box is beside, whatever its number of lines (FM14).
+ *
+ * @module
+ */
+ /** What a frame is placed against across the page (`w:hAnchor`) and down it (`w:vAnchor`), as drawings name them */
+ var ACROSS$1 = {
+ page: "page",
+ margin: "margin",
+ text: "column"
+ };
+ var DOWN$1 = {
+ page: "page",
+ margin: "margin",
+ text: "paragraph"
+ };
+ var ACROSS_ALIGNS$1 = /* @__PURE__ */ new Set([
+ "left",
+ "center",
+ "right",
+ "inside",
+ "outside"
+ ]);
+ var DOWN_ALIGNS$1 = /* @__PURE__ */ new Set([
+ "top",
+ "center",
+ "bottom",
+ "inside",
+ "outside"
+ ]);
+ var HEIGHT_RULES = /* @__PURE__ */ new Set([
+ "auto",
+ "atLeast",
+ "exact"
+ ]);
+ var twips$1 = (value) => pointsOf(value, 20);
+ /**
+ * Where a frame is across or down the page: what it is placed against, lined up with it or at a distance from it, or why
+ * it isn't known
+ */
+ var positionOf$1 = (anchor, align, offset, names, aligns) => {
+ var _twips;
+ const from = anchor === void 0 ? void 0 : names[String(anchor)];
+ if (from === void 0) return anchor === void 0 ? "a text frame that doesn't say what it is placed against" : "a text frame placed against what isn't followed yet";
+ if (align !== void 0) return aligns.has(String(align)) ? {
+ from,
+ align: String(align)
+ } : "a text frame lined up in a way not yet followed";
+ return {
+ from,
+ offset: (_twips = twips$1(offset)) !== null && _twips !== void 0 ? _twips : 0
+ };
+ };
+ /** Reads a paragraph's frame properties (`w:framePr`), or why the frame can't be laid out */
+ var readFrameProperties = (element) => {
+ var _twips2, _twips3, _twips4;
+ const attributes = attributesOf(element);
+ const { "w:w": width, "w:h": height, "w:hRule": heightRule = "atLeast", "w:hAnchor": hAnchor, "w:vAnchor": vAnchor, "w:xAlign": xAlign, "w:yAlign": yAlign, "w:x": x, "w:y": y, "w:wrap": wrap, "w:hSpace": hSpace, "w:vSpace": vSpace } = attributes;
+ const horizontal = positionOf$1(hAnchor, xAlign, x, ACROSS$1, ACROSS_ALIGNS$1);
+ const vertical = positionOf$1(vAnchor, yAlign, y, DOWN$1, DOWN_ALIGNS$1);
+ if (!HEIGHT_RULES.has(String(heightRule))) return "a text frame of a height rule not yet followed";
+ if (typeof horizontal === "string" || typeof vertical === "string") return typeof horizontal === "string" ? horizontal : vertical;
+ const given = twips$1(width);
+ return _objectSpread2(_objectSpread2(_objectSpread2({ key: JSON.stringify(Object.entries(attributes).sort(([one], [other]) => one.localeCompare(other))) }, given === void 0 || given === 0 ? {} : { width: given }), {}, {
+ height: (_twips2 = twips$1(height)) !== null && _twips2 !== void 0 ? _twips2 : 0,
+ heightRule: String(heightRule),
+ horizontal,
+ vertical
+ }, wrap === void 0 ? {} : { wrap: String(wrap) }), {}, {
+ across: (_twips3 = twips$1(hSpace)) !== null && _twips3 !== void 0 ? _twips3 : 0,
+ down: (_twips4 = twips$1(vSpace)) !== null && _twips4 !== void 0 ? _twips4 : 0
+ });
+ };
+ //#endregion
+ //#region src/layout/vml-drawings.ts
+ /**
+ * Reads VML drawings (`w:pict`), which docx writes for its text boxes and documents made by older versions of Word have
+ * for their shapes and pictures: the box one in the line takes, and where one that text flows around is, as the floating
+ * drawings of DrawingML are laid out.
+ *
+ * @module
+ */
+ var SHAPES = /* @__PURE__ */ new Set([
+ "v:shape",
+ "v:rect",
+ "v:roundrect",
+ "v:oval",
+ "v:line",
+ "v:polyline",
+ "v:arc",
+ "v:curve",
+ "v:image",
+ "v:group"
+ ]);
+ var POINTS_PER_UNIT = {
+ pt: 1,
+ in: 72,
+ cm: 72 / 2.54,
+ mm: 72 / 25.4,
+ pc: 12
+ };
+ /** Whether a VML true or false value is false: "f", "false", or 0 */
+ var isVmlFalse = (value) => [
+ "f",
+ "false",
+ "0"
+ ].includes(String(value).trim().toLowerCase());
+ /** The properties of a VML style, such as `width:100pt;position:absolute`, by their names in lower case */
+ var readVmlStyle = (style) => new Map(String(style !== null && style !== void 0 ? style : "").split(";").map((declaration) => declaration.split(":")).filter((parts) => parts.length === 2 && parts[0].trim() !== "").map(([name, value]) => [name.trim().toLowerCase(), value.trim()]));
+ /**
+ * A length of a VML style in points, or why it isn't known: one in pixels, ems or a share of something, or a number with
+ * no unit, which isn't 0. Undefined when it isn't given.
+ */
+ var vmlLength = (value) => {
+ var _length$2$toLowerCase;
+ if (value === void 0) return;
+ const length = /^(-?\d*\.?\d+)([a-z%]*)$/i.exec(value.trim());
+ const amount = Number(length === null || length === void 0 ? void 0 : length[1]);
+ const unit = (_length$2$toLowerCase = length === null || length === void 0 ? void 0 : length[2].toLowerCase()) !== null && _length$2$toLowerCase !== void 0 ? _length$2$toLowerCase : "";
+ if (length === null || Number.isNaN(amount)) return "a VML drawing with a length that isn't a number";
+ if (unit === "" && amount === 0) return 0;
+ return unit in POINTS_PER_UNIT ? amount * POINTS_PER_UNIT[unit] : "a VML drawing with a length in units not yet followed";
+ };
+ /**
+ * The shape a VML drawing (`w:pict`) draws, past the types of shapes it defines (`v:shapetype`), or why it can't be laid
+ * out: none, or more than one
+ */
+ var vmlShapeOf = (pict) => {
+ const shapes = childrenOf(pict).filter((child) => SHAPES.has(Object.keys(child)[0]));
+ if (shapes.length !== 1) return shapes.length === 0 ? "a VML drawing with no shape" : "a VML drawing of more than one shape";
+ const [element] = shapes;
+ const [name] = Object.keys(element);
+ const textbox = find(childrenOf(element[name]), "v:textbox");
+ const content = find(childrenOf(textbox), "w:txbxContent");
+ return _objectSpread2(_objectSpread2({
+ element,
+ style: readVmlStyle(attributesOf(element[name]).style)
+ }, textbox === void 0 ? {} : { textStyle: readVmlStyle(attributesOf(textbox).style) }), content === void 0 ? {} : { text: childrenOf(content).filter(isObject) });
+ };
+ /** What a VML shape is placed against across the page (`mso-position-horizontal-relative`), as DrawingML names it */
+ var ACROSS = /* @__PURE__ */ new Map([
+ ["margin", "margin"],
+ ["page", "page"],
+ ["text", "column"],
+ ["char", "character"],
+ ["left-margin-area", "leftMargin"],
+ ["right-margin-area", "rightMargin"],
+ ["inner-margin-area", "insideMargin"],
+ ["outer-margin-area", "outsideMargin"]
+ ]);
+ /**
+ * What a VML shape is placed against down the page (`mso-position-vertical-relative`), as DrawingML names it. Word places
+ * one against "paragraph", which VML writes as "text", against its paragraph (`word-vml.docx` VM9, VM10)
+ */
+ var DOWN = /* @__PURE__ */ new Map([
+ ["margin", "margin"],
+ ["page", "page"],
+ ["text", "paragraph"],
+ ["paragraph", "paragraph"],
+ ["line", "line"],
+ ["top-margin-area", "topMargin"],
+ ["bottom-margin-area", "bottomMargin"],
+ ["inner-margin-area", "insideMargin"],
+ ["outer-margin-area", "outsideMargin"]
+ ]);
+ var ACROSS_ALIGNS = /* @__PURE__ */ new Set([
+ "left",
+ "center",
+ "right",
+ "inside",
+ "outside"
+ ]);
+ var DOWN_ALIGNS = /* @__PURE__ */ new Set([
+ "top",
+ "center",
+ "bottom",
+ "inside",
+ "outside"
+ ]);
+ /**
+ * The wrapping of the text round a VML shape (`w10:wrap`'s type), as DrawingML names it, of those Word has been seen to lay
+ * out as DrawingML's: square, and above and below only. Word wraps tightly round a rectangle closer than square wrapping
+ * does, in a way not yet followed (`word-vml.docx` VM14)
+ */
+ var WRAPS$1 = {
+ square: "square",
+ topAndBottom: "topAndBottom"
+ };
+ /** The sides of a VML shape the text goes on (`w10:wrap`'s side), as DrawingML names them */
+ var SIDES$1 = {
+ both: "bothSides",
+ left: "left",
+ right: "right",
+ largest: "largest"
+ };
+ /**
+ * Where a VML shape is across or down the page, from its style: what it is placed against, which is the column and the
+ * paragraph when it doesn't say, lined up with it, or at a distance from it, its margin-left or margin-top. Or why it
+ * isn't known
+ */
+ var positionOf = (style, direction, anchor) => {
+ var _ref, _style$get, _style$get2, _style$get3;
+ const names = direction === "horizontal" ? ACROSS : DOWN;
+ const relative = (_ref = (_style$get = style.get(`mso-position-${direction}-relative`)) !== null && _style$get !== void 0 ? _style$get : anchor) !== null && _ref !== void 0 ? _ref : "text";
+ const from = names.get(relative);
+ const align = (_style$get2 = style.get(`mso-position-${direction}`)) !== null && _style$get2 !== void 0 ? _style$get2 : "absolute";
+ if (from === void 0) return "a VML drawing placed against what isn't followed yet";
+ if (align !== "absolute") return (direction === "horizontal" ? ACROSS_ALIGNS : DOWN_ALIGNS).has(align) ? {
+ from,
+ align
+ } : "a VML drawing lined up in a way not yet followed";
+ const side = direction === "horizontal" ? "left" : "top";
+ if (style.has(side)) return "a VML drawing placed by its left or top";
+ const offset = vmlLength((_style$get3 = style.get(`margin-${side}`)) !== null && _style$get3 !== void 0 ? _style$get3 : "0");
+ return typeof offset === "string" ? offset : {
+ from,
+ offset
+ };
+ };
+ /**
+ * Reads a VML shape that text flows around, from its style and its wrapping (`w10:wrap`), or why it can't be followed:
+ * one turned, sized by a share of something, or placed or wrapped in a way not yet followed. The text keeps 9 points from
+ * it on the left and right, and none above and below, as VML has it, where its style doesn't say (`word-vml.docx` VM9).
+ */
+ var readVmlFloating = (shape, wrap, width, height) => {
+ var _attributes$side, _style$get4, _attributesOf$oAllow;
+ const { style } = shape;
+ const attributes = attributesOf(wrap);
+ const type = WRAPS$1[String(attributes.type)];
+ const side = SIDES$1[String((_attributes$side = attributes.side) !== null && _attributes$side !== void 0 ? _attributes$side : "both")];
+ if (type === void 0 || side === void 0) return "a VML drawing that text flows around in a way not yet followed";
+ if (Number((_style$get4 = style.get("rotation")) !== null && _style$get4 !== void 0 ? _style$get4 : 0) !== 0) return "a turned VML drawing that text flows around";
+ if (style.has("mso-width-percent") || style.has("mso-height-percent")) return "a VML drawing sized by a share of what it is placed against";
+ const horizontal = positionOf(style, "horizontal", attributes.anchorx === void 0 ? void 0 : String(attributes.anchorx));
+ const vertical = positionOf(style, "vertical", attributes.anchory === void 0 ? void 0 : String(attributes.anchory));
+ const distance = (name, otherwise) => {
+ var _vmlLength;
+ return (_vmlLength = vmlLength(style.get(`mso-wrap-distance-${name}`))) !== null && _vmlLength !== void 0 ? _vmlLength : otherwise;
+ };
+ const distances = [
+ distance("top", 0),
+ distance("bottom", 0),
+ distance("left", 9),
+ distance("right", 9)
+ ];
+ const unknown = [
+ horizontal,
+ vertical,
+ ...distances
+ ].find((value) => typeof value === "string");
+ if (unknown !== void 0) return unknown;
+ const [top, bottom, left, right] = distances;
+ return {
+ wrap: type,
+ side,
+ width,
+ height,
+ effects: {
+ top: 0,
+ bottom: 0,
+ left: 0,
+ right: 0
+ },
+ distances: {
+ top,
+ bottom,
+ left,
+ right
+ },
+ horizontal,
+ vertical,
+ mayOverlap: !isVmlFalse((_attributesOf$oAllow = attributesOf(shape.element[Object.keys(shape.element)[0]])["o:allowoverlap"]) !== null && _attributesOf$oAllow !== void 0 ? _attributesOf$oAllow : "t")
+ };
+ };
+ //#endregion
//#region src/layout/read-document.ts
var _excluded = ["text"];
var _excluded2 = [
@@ -7324,13 +7608,102 @@ var docxLayout = (function(exports) {
}];
}
if (!!childrenOf(drawing["wp:anchor"]).some((child) => "wp:wrapNone" in child) || reader.inHeader) return [];
- if (reader.inCell || reader.inNote) return "a drawing that text flows around in a table cell, footnote or endnote";
+ if (reader.inCell || reader.inNote || reader.inTextBox) return "a drawing that text flows around in a table cell, footnote, endnote or text box";
const floating = readFloating(drawing["wp:anchor"]);
return typeof floating === "string" ? floating : [{
type: "drawing",
drawing: floating
}];
};
+ /**
+ * Reads a VML drawing (`w:pict`), as Word lays it out (scripts/layout-probes/word-vml.ts). A shape in the line is a box of
+ * its size, with its run's font, standing on the baseline, as a picture is (VM7), and a text box in it is a box sized to
+ * its text (VM1 to VM5). One placed on the page (`position:absolute`) that text flows around (`w10:wrap`) is a drawing
+ * that text flows around, as a DrawingML one is (VM9 to VM11, VM15), and one with no wrapping is in front of the text or
+ * behind it, and takes no room (VM6), in a header or footer too, as docx's watermarks are. It says why where Word's way
+ * with it isn't known: a picture, which Word drew at a size other than its own (VM8), a shape with an outline, which
+ * takes room around it (VM1), tight or through wrapping, which Word doesn't wrap as square wrapping (VM14), one in a
+ * header or footer that text flows around, which the body's text goes round too (VM13), and one in a header's line, whose
+ * room there doesn't follow the body's (VM12).
+ */
+ var readVml = (pict, font, reader) => {
+ var _attributes$stroked;
+ const shape = vmlShapeOf(pict);
+ if (typeof shape === "string") return shape;
+ const { style, element } = shape;
+ const children = childrenOf(element[nameOf$1(element)]);
+ const attributes = attributesOf(element[nameOf$1(element)]);
+ const width = vmlLength(style.get("width"));
+ const height = vmlLength(style.get("height"));
+ const outlined = !isVmlFalse((_attributes$stroked = attributes.stroked) !== null && _attributes$stroked !== void 0 ? _attributes$stroked : "t") && style.get("visibility") !== "hidden";
+ const unsized = () => typeof width === "string" ? width : typeof height === "string" ? height : "a VML drawing with no size";
+ if (style.get("position") === "absolute") {
+ const wrap = find(children, "w10:wrap");
+ if (wrap === void 0 || attributesOf(wrap).type === "none") return [];
+ const reason = reader.inHeader ? "a VML drawing that text flows around in a header or footer" : reader.inCell || reader.inNote || reader.inTextBox ? "a drawing that text flows around in a table cell, footnote, endnote or text box" : shape.text !== void 0 ? "a text box that text flows around" : find(children, "v:imagedata") !== void 0 ? "a VML picture" : outlined ? "a VML drawing with an outline that text flows around" : typeof width !== "number" || typeof height !== "number" ? unsized() : void 0;
+ if (reason !== void 0) return reason;
+ const floating = readVmlFloating(shape, wrap, width, height);
+ return typeof floating === "string" ? floating : [{
+ type: "drawing",
+ drawing: floating
+ }];
+ }
+ const sized = (reason) => typeof width === "number" && typeof height === "number" ? guessedOr(reader, reason, () => [{
+ type: "box",
+ width,
+ height,
+ font
+ }]) : reason;
+ if (reader.inHeader || reader.inTextBox) return sized("a VML drawing in the line of a header, footer or text box");
+ if (shape.text !== void 0) return readTextBox(shape, width, font, outlined, reader);
+ if (find(children, "v:imagedata") !== void 0) return sized("a VML picture");
+ if (outlined) return sized("a VML shape with an outline in the line");
+ return typeof width !== "number" || typeof height !== "number" ? unsized() : [{
+ type: "box",
+ width,
+ height,
+ font
+ }];
+ };
+ var TEXT_BOX_INSETS = {
+ left: 7.2,
+ top: 3.6,
+ right: 7.2,
+ bottom: 3.6
+ };
+ var TEXT_BOX_FIT = .72;
+ var TEXT_BOX_OUTLINE = .72;
+ /**
+ * Reads a text box in the line (docx's `Textbox`): its paragraphs, and the box they are in, which Word sizes to them, as
+ * docx writes it to be (`mso-fit-shape-to-text`), whatever height it gives (`word-vml.docx` VM3). The bookmarks and fields
+ * in it are where it is, in the paragraph it is in. Or why it can't be laid out: one Word doesn't size to its text, one
+ * with insets of its own or an outline of another weight, which Word hasn't been seen with, and one with notes or lists
+ * in it, which Word may number in an order not yet followed
+ */
+ var readTextBox = (shape, width, font, outlined, reader) => {
+ var _shape$textStyle, _blocks$map$find;
+ const attributes = attributesOf(shape.element[nameOf$1(shape.element)]);
+ const textbox = find(childrenOf(shape.element[nameOf$1(shape.element)]), "v:textbox");
+ const references = elementsIn$1(shape.text, (name) => name === "w:footnoteReference" || name === "w:endnoteReference");
+ const reason = typeof width !== "number" ? width !== null && width !== void 0 ? width : "a VML drawing with no size" : ((_shape$textStyle = shape.textStyle) === null || _shape$textStyle === void 0 ? void 0 : _shape$textStyle.get("mso-fit-shape-to-text")) !== "t" ? "a text box not sized to its text" : attributesOf(textbox).inset !== void 0 ? "a text box with insets of its own" : attributes.strokeweight !== void 0 ? "a text box with an outline of its own" : references.length > 0 ? "a footnote or endnote in a text box" : void 0;
+ if (reason !== void 0) return reason;
+ const blocks = readBlocks(shape.text, _objectSpread2(_objectSpread2({}, reader), {}, { inTextBox: true }));
+ const unsupported = (_blocks$map$find = blocks.map(({ unsupported: why }) => why).find((why) => why !== void 0)) !== null && _blocks$map$find !== void 0 ? _blocks$map$find : blocks.some((block) => block.type === "paragraph" && block.list !== void 0) ? "a list in a text box" : void 0;
+ if (unsupported !== void 0) return unsupported;
+ const outline = outlined ? TEXT_BOX_OUTLINE : 0;
+ const { left, right, top, bottom } = TEXT_BOX_INSETS;
+ return [...markersIn(blocks).map((name) => ({
+ type: "marker",
+ name
+ })), {
+ type: "textBox",
+ width: width + outline,
+ textWidth: width - left - right,
+ room: top + bottom + TEXT_BOX_FIT + outline,
+ blocks,
+ font
+ }];
+ };
var WRAPS = {
"wp:wrapSquare": "square",
"wp:wrapTight": "tight",
@@ -7587,8 +7960,8 @@ var docxLayout = (function(exports) {
const choice = childrenOf(child["mc:AlternateContent"]).find((option) => "mc:Choice" in option);
return choice && !format.hidden ? readRun({ "w:r": [...childrenOf(choice["mc:Choice"])] }, paragraphRun, reader, removed) : [];
}
- case "w:pict":
- case "w:object": return reader.inHeader ? [] : "a VML drawing";
+ case "w:pict": return format.hidden ? [] : font.border ? guessedOr(reader, "a picture in text with a border", () => readVml(child["w:pict"], font, reader)) : readVml(child["w:pict"], font, reader);
+ case "w:object": return format.hidden ? [] : "an embedded object";
case "w:dayShort":
case "w:dayLong":
case "w:monthShort":
@@ -7912,6 +8285,26 @@ var docxLayout = (function(exports) {
return (format.alignment === "justified" || format.alignment === "distributed") && texts.some(({ text }) => / /.test(text)) ? "a justified line with spaces down the page" : void 0;
};
/**
+ * The text frame a paragraph is in (`w:framePr`), its own or its style's, or why it can't be laid out: one in a table
+ * cell, a footnote, an endnote, a header or a footer, one given by both the paragraph and its style differently, and one
+ * with a note's reference in it, which aren't followed yet. Undefined when it isn't in one.
+ */
+ var readFrameOf = (paragraph, properties, paragraphStyles, reader) => {
+ var _paragraphStyles$find;
+ const own = find(properties, "w:framePr");
+ const fromStyle = (_paragraphStyles$find = paragraphStyles.findLast((style) => style.frame !== void 0)) === null || _paragraphStyles$find === void 0 ? void 0 : _paragraphStyles$find.frame;
+ const element = own !== null && own !== void 0 ? own : fromStyle;
+ if (element === void 0) return;
+ if (reader.inCell || reader.inNote || reader.inHeader || reader.inTextBox) return "a text frame in a table cell, footnote, endnote, header, footer or text box";
+ const frame = readFrameProperties(element);
+ if (typeof frame === "string") return frame;
+ if (own !== void 0 && fromStyle !== void 0) {
+ const styled = readFrameProperties(fromStyle);
+ if (typeof styled === "string" || styled.key !== frame.key) return "a text frame given by both a paragraph and its style";
+ }
+ return elementsIn$1(contentOf$3(paragraph), (name) => name === "w:footnoteReference" || name === "w:endnoteReference").length > 0 ? "a footnote or endnote in a text frame" : frame;
+ };
+ /**
* Reads a paragraph (`w:p`), in the formatting of its styles, and of its table's style when it is in a table.
*/
var readParagraph = (element, reader, tableFormats = []) => {
@@ -7959,14 +8352,15 @@ var docxLayout = (function(exports) {
var _item$font$characterS;
return item.type === "text" && ((_item$font$characterS = item.font.characterSpacing) !== null && _item$font$characterS !== void 0 ? _item$font$characterS : 0) !== 0 && item.font.snapToGrid !== false;
}) ? "text spaced out by its run on a grid that snaps to characters" : void 0;
- const unsupported = (_ref4 = (_ref5 = (_ref6 = (_list$unsupported = list.unsupported) !== null && _list$unsupported !== void 0 ? _list$unsupported : unknownOnGrid) !== null && _ref6 !== void 0 ? _ref6 : reader.down === true && reader.inNote === true ? "a footnote or endnote on text that runs down the page" : void 0) !== null && _ref5 !== void 0 ? _ref5 : reader.down === true ? unknownDownOf(own, combined, borders) : void 0) !== null && _ref4 !== void 0 ? _ref4 : find(properties, "w:framePr") !== void 0 ? "a text frame" : otherDecimalSymbol ? "a decimal tab stop in a document whose decimal symbol isn't a full stop" : find(properties, "w:divId") !== void 0 ? "a paragraph in an HTML division" : combined.alignment === "mediumKashida" || combined.alignment === "highKashida" ? "a paragraph justified for Arabic with a medium or high kashida" : forThaiOrArabic && typeof items !== "string" && items.some((item) => item.type === "text" && THAI_OR_ARABIC.test(item.text)) ? "Thai or Arabic text justified for it" : (_ref7 = (_unknownLengthIn = unknownLengthIn(element)) !== null && _unknownLengthIn !== void 0 ? _unknownLengthIn : typeof format === "string" ? format : void 0) !== null && _ref7 !== void 0 ? _ref7 : typeof borders === "string" ? borders : void 0;
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
+ const frame = readFrameOf(element, properties, styleChain(styles, style, "paragraph"), reader);
+ const unsupported = (_ref4 = (_ref5 = (_ref6 = (_list$unsupported = list.unsupported) !== null && _list$unsupported !== void 0 ? _list$unsupported : unknownOnGrid) !== null && _ref6 !== void 0 ? _ref6 : reader.down === true && reader.inNote === true ? "a footnote or endnote on text that runs down the page" : void 0) !== null && _ref5 !== void 0 ? _ref5 : reader.down === true ? unknownDownOf(own, combined, borders) : void 0) !== null && _ref4 !== void 0 ? _ref4 : typeof frame === "string" ? frame : otherDecimalSymbol ? "a decimal tab stop in a document whose decimal symbol isn't a full stop" : find(properties, "w:divId") !== void 0 ? "a paragraph in an HTML division" : combined.alignment === "mediumKashida" || combined.alignment === "highKashida" ? "a paragraph justified for Arabic with a medium or high kashida" : forThaiOrArabic && typeof items !== "string" && items.some((item) => item.type === "text" && THAI_OR_ARABIC.test(item.text)) ? "Thai or Arabic text justified for it" : (_ref7 = (_unknownLengthIn = unknownLengthIn(element)) !== null && _unknownLengthIn !== void 0 ? _unknownLengthIn : typeof format === "string" ? format : void 0) !== null && _ref7 !== void 0 ? _ref7 : typeof borders === "string" ? borders : void 0;
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
type: "paragraph",
items: content,
format: typeof format === "string" ? combined : format,
tabStops,
markFont
- }, unsupported === void 0 && typeof items !== "string" && children.some((child) => isObject(child) && LEFT_OUT in child) ? { hidden: true } : {}), list.list ? { list: list.list } : {}), list.alignment ? { numberAlignment: list.alignment } : {}), typeof borders === "object" ? { borders } : {}), paragraphGrid !== void 0 && Object.keys(paragraphGrid).length > 0 ? { grid: paragraphGrid } : {}), {}, { style }, headingLevel === void 0 ? {} : { heading: _objectSpread2({ level: Number(headingLevel) }, withoutUndefined({ chapter: list.from === "style" ? list.chapter : void 0 })) }), typeof items === "string" || guessed || unsupported ? { unsupported: typeof items === "string" ? items : guessed !== null && guessed !== void 0 ? guessed : unsupported } : {});
+ }, unsupported === void 0 && typeof items !== "string" && children.some((child) => isObject(child) && LEFT_OUT in child) ? { hidden: true } : {}), list.list ? { list: list.list } : {}), list.alignment ? { numberAlignment: list.alignment } : {}), typeof borders === "object" ? { borders } : {}), paragraphGrid !== void 0 && Object.keys(paragraphGrid).length > 0 ? { grid: paragraphGrid } : {}), typeof frame === "object" ? { frame } : {}), {}, { style }, headingLevel === void 0 ? {} : { heading: _objectSpread2({ level: Number(headingLevel) }, withoutUndefined({ chapter: list.from === "style" ? list.chapter : void 0 })) }), typeof items === "string" || guessed || unsupported ? { unsupported: typeof items === "string" ? items : guessed !== null && guessed !== void 0 ? guessed : unsupported } : {});
};
/**
* Why a cell's properties (`w:tcPr`) change how its text is laid out in a way not yet followed, when they do: cells merged
@@ -8797,6 +9191,109 @@ var docxLayout = (function(exports) {
}
return blocks;
};
+ /**
+ * How the text goes round a text frame (`w:wrap`), as Word lays it out: beside it on both sides, with no wrapping given,
+ * and around it, tightly, through it and automatically alike (`word-frames.docx` FM1, FM6), or above and below it only,
+ * when it isn't beside it, or not at all, when it has none, as the frame is in front of the text (FM6b, FM6c)
+ */
+ var FRAME_WRAPS = {
+ around: "square",
+ tight: "square",
+ through: "square",
+ auto: "square",
+ notBeside: "topAndBottom",
+ none: "none"
+ };
+ /**
+ * A text frame as a drawing that text flows around, placed and sized by its properties and its paragraphs, nothing when
+ * it is in front of the text, or why it can't be laid out: one with borders, which take room beside it in a way not yet
+ * followed (FM13)
+ */
+ var frameDrawing = (frame, blocks) => {
+ var _frame$wrap;
+ const wrap = FRAME_WRAPS[(_frame$wrap = frame.wrap) !== null && _frame$wrap !== void 0 ? _frame$wrap : "around"];
+ if (wrap === void 0) return "a text frame that text flows around in a way not yet followed";
+ if (blocks.some(({ borders }) => borders !== void 0)) return "a text frame with borders";
+ if (wrap === "none") return;
+ const { width = 0, height, heightRule, horizontal, vertical, across, down } = frame;
+ return {
+ wrap,
+ side: "bothSides",
+ width,
+ height,
+ effects: {
+ top: 0,
+ bottom: 0,
+ left: 0,
+ right: 0
+ },
+ distances: {
+ top: down,
+ bottom: down,
+ left: across,
+ right: across
+ },
+ horizontal,
+ vertical,
+ mayOverlap: false,
+ frame: {
+ blocks,
+ heightRule,
+ fitsWidth: frame.width === void 0
+ }
+ };
+ };
+ /**
+ * Takes the paragraphs in text frames out of the body's text, and anchors each frame in the paragraph after it, as a
+ * drawing that text flows around, at its start. Frames elsewhere stop the layout as they are read. The paragraphs of a frame are those next to each other with the same frame. The
+ * bookmarks and fields in a frame are where its anchor is, as the frame is on its page. A frame with no paragraph after it
+ * in its section, such as one before a table, isn't followed yet, so the layout stops there.
+ */
+ var anchorFrames = (entries, withBlock) => {
+ const isFramed = (block) => block.type === "paragraph" && block.frame !== void 0 && block.unsupported === void 0;
+ const anchored = [];
+ let framed = [];
+ for (const entry of entries) {
+ const { block } = entry;
+ if (isFramed(block)) {
+ framed = [...framed, entry];
+ continue;
+ }
+ if (framed.length === 0) {
+ anchored.push(entry);
+ continue;
+ }
+ if (block.type !== "paragraph" || block.sectionBreak || entry.section !== framed[0].section) {
+ anchored.push(...unanchored(framed, withBlock), entry);
+ framed = [];
+ continue;
+ }
+ const paragraphs = framed.map((one) => one.block);
+ const drawings = paragraphs.reduce((all, paragraph, index) => index > 0 && paragraphs[index - 1].frame.key === paragraph.frame.key ? [...all.slice(0, -1), [...all[all.length - 1], paragraph]] : [...all, [paragraph]], []).map((blocks) => frameDrawing(blocks[0].frame, blocks));
+ const unsupported = drawings.find((drawing) => typeof drawing === "string");
+ const markers = markersIn(paragraphs).map((name) => ({
+ type: "marker",
+ name
+ }));
+ const laidOut = drawings.flatMap((drawing) => drawing === void 0 || typeof drawing === "string" ? [] : [{
+ type: "drawing",
+ drawing
+ }]);
+ anchored.push(withBlock(entry, _objectSpread2(_objectSpread2({}, block), {}, { items: [
+ ...markers,
+ ...laidOut,
+ ...block.items
+ ] }, unsupported !== void 0 && block.unsupported === void 0 ? { unsupported } : {})));
+ framed = [];
+ }
+ anchored.push(...unanchored(framed, withBlock));
+ return anchored;
+ };
+ /**
+ * The paragraphs of text frames with no paragraph after them in their section to be anchored in, as they are in the text,
+ * the first stopping the layout, which Word lays out in a way not yet followed
+ */
+ var unanchored = (framed, withBlock) => framed.map((entry, index) => index === 0 ? withBlock(entry, _objectSpread2(_objectSpread2({}, entry.block), {}, { unsupported: "a text frame with no paragraph after it in its section" })) : entry);
var START_TYPES = /* @__PURE__ */ new Set([
"nextPage",
"continuous",
@@ -9498,6 +9995,7 @@ var docxLayout = (function(exports) {
if (sectionProperties !== void 0) addSection(sectionProperties);
}
}
+ blocks.splice(0, blocks.length, ...anchorFrames(blocks, (entry, block) => _objectSpread2(_objectSpread2({}, entry), {}, { block })));
const final = blocks[blocks.length - 1];
const ending = hidden.length > 0 && final !== void 0 ? endingWith(final.block, bookmarks) : void 0;
if (ending !== void 0) blocks[blocks.length - 1] = _objectSpread2(_objectSpread2({}, final), {}, { block: ending });
@@ -9556,6 +10054,7 @@ var docxLayout = (function(exports) {
}];
};
var TOLERANCE = .01;
+ var TEXT_BOX_DOUBT = .72;
var AUTOMATIC_SPACE = 14;
/**
* The lines of paragraphs without page references, by the measurer and widths they were laid out with. They are the same
@@ -9604,7 +10103,13 @@ var docxLayout = (function(exports) {
content
}));
/** The headings in a block: a paragraph's own, and those in a table's cells, whose chapter numbers aren't known yet */
- var headingsIn = (block) => block.type === "paragraph" ? block.heading ? [block.heading] : [] : block.rows.flatMap(({ cells }) => cells.flatMap((cell) => cell.blocks.flatMap(headingsIn))).map(({ level }) => ({
+ var headingsIn = (block) => block.type === "paragraph" ? [...block.items.flatMap((item) => {
+ var _item$drawing$frame$b, _item$drawing$frame;
+ return item.type === "drawing" ? (_item$drawing$frame$b = (_item$drawing$frame = item.drawing.frame) === null || _item$drawing$frame === void 0 ? void 0 : _item$drawing$frame.blocks) !== null && _item$drawing$frame$b !== void 0 ? _item$drawing$frame$b : [] : [];
+ }).flatMap(headingsIn).map(({ level }) => ({
+ level,
+ unsupported: "a chapter heading in a text frame"
+ })), ...block.heading ? [block.heading] : []] : block.rows.flatMap(({ cells }) => cells.flatMap((cell) => cell.blocks.flatMap(headingsIn))).map(({ level }) => ({
level,
unsupported: "a chapter heading in a table"
}));
@@ -9848,6 +10353,11 @@ var docxLayout = (function(exports) {
type: "marker",
name: drawingMarker(index),
after: true
+ } : item.type === "textBox" ? {
+ type: "box",
+ width: item.width,
+ height: textBoxHeight(item),
+ font: item.font
} : isPageField(item) ? {
type: "text",
text: resultText(item),
@@ -9875,6 +10385,18 @@ var docxLayout = (function(exports) {
}).find(Boolean);
};
/**
+ * How tall a text box in the line is: its paragraphs, and the room above and below them. Where its text starts across
+ * the box, Word's PDFs show to within a little less than the room it adds to its height (`word-vml.docx` VM1, VM5), so
+ * it stops where its lines would break differently in that much more or less room, or, guessing, takes them as they
+ * break in the room its insets leave
+ */
+ const textBoxHeight = (box) => {
+ const { room, textWidth: inside, blocks: inBox } = box;
+ const [narrower, wider] = [inside - TEXT_BOX_DOUBT, inside + TEXT_BOX_DOUBT].map((width) => stackHeight(inBox, width, true));
+ if (Math.abs(narrower - wider) > TOLERANCE) stopAt("a line in a text box that only just fits");
+ return room + stackHeight(inBox, inside, true);
+ };
+ /**
* A paragraph's content, as it is measured, which stops the layout at a character whose width the measurer doesn't
* know, such as a mathematical symbol in Calibri, which Word draws in Cambria Math, and at kerning and ligatures it
* doesn't know. Guessing, they are measured as the measurer measures them, a character as an average letter of the
@@ -11340,6 +11862,22 @@ var docxLayout = (function(exports) {
position = Math.min(...beside.map(({ keepOut }) => keepOut.bottom));
}
};
+ /**
+ * A text frame at the size its paragraphs give it: as wide as their widest line when it has no width of its own, and
+ * as tall as they are, at least its own height, or its own height exactly, as its height rule says. Another drawing
+ * is as it is
+ */
+ const sizedFrame = (drawing) => {
+ const { frame } = drawing;
+ if (frame === void 0) return drawing;
+ const width = frame.fitsWidth ? contentWidths(frame.blocks).max : drawing.width;
+ const ofText = stackHeight(frame.blocks, width, false);
+ const height = frame.heightRule === "exact" ? drawing.height : frame.heightRule === "atLeast" ? Math.max(drawing.height, ofText) : ofText;
+ return _objectSpread2(_objectSpread2({}, drawing), {}, {
+ width,
+ height
+ });
+ };
/** Whether a drawing that text flows around on the page goes down below where the next line goes */
const besideDrawing = () => drawings.some(({ keepOut }) => keepOut.bottom > position + TOLERANCE);
/**
@@ -11407,8 +11945,9 @@ var docxLayout = (function(exports) {
const { indentLeft = 0, indentRight = 0, firstLineIndent = 0 } = block.format;
const columnEnd = linesBottom();
/** Places one of its own drawings, against its paragraph's top, or the top of a line from `lineTop`, `height` tall */
- const place = ({ drawing, index, table }, line, lineTop, height) => {
+ const place = ({ drawing: unsized, index, table }, line, lineTop, height) => {
var _pinned$get5;
+ const drawing = sizedFrame(unsized);
if (drawing.horizontal.from === "character") throw new Unsupported("a drawing placed against where it is anchored along its line");
const anchor = table === void 0 ? `${at} ${index}` : `${table.index} table`;
const withTable = table === void 0 ? {} : { table };
diff --git a/live-examples/lib/shapes.iife.js b/live-examples/lib/shapes.iife.js
index 5ba1d06dfe..97deb80b2f 100644
--- a/live-examples/lib/shapes.iife.js
+++ b/live-examples/lib/shapes.iife.js
@@ -4189,20 +4189,22 @@ var docxShapes = (function(exports, docx) {
var _stringOf2;
const children = childrenOf(child["w:style"]);
const attributes = attributesOf(child["w:style"]);
- const numbering = childrenOf(find(childrenOf(find(children, "w:pPr")), "w:numPr"));
+ const paragraphProperties = childrenOf(find(children, "w:pPr"));
+ const numbering = childrenOf(find(paragraphProperties, "w:numPr"));
+ const frame = find(paragraphProperties, "w:framePr");
const list = attributesOf(find(numbering, "w:numId"))["w:val"];
const level = numberOf(attributesOf(find(numbering, "w:ilvl"))["w:val"]);
const name = valueOf(children, "w:name");
return {
id: stringOf(attributes["w:styleId"]),
isDefault: attributes["w:default"] !== void 0 && !isOff(attributes["w:default"]),
- definition: _objectSpread2(_objectSpread2(_objectSpread2({ type: (_stringOf2 = stringOf(attributes["w:type"])) !== null && _stringOf2 !== void 0 ? _stringOf2 : "paragraph" }, name === void 0 ? {} : { name }), {}, { basedOn: valueOf(children, "w:basedOn") }, list === void 0 && level === void 0 ? {} : { numbering: withoutUndefined({
+ definition: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ type: (_stringOf2 = stringOf(attributes["w:type"])) !== null && _stringOf2 !== void 0 ? _stringOf2 : "paragraph" }, name === void 0 ? {} : { name }), {}, { basedOn: valueOf(children, "w:basedOn") }, list === void 0 && level === void 0 ? {} : { numbering: withoutUndefined({
id: list === void 0 ? void 0 : String(list),
level
}) }), {}, {
run: readRunFormat(find(children, "w:rPr"), themeFonts),
paragraph: readParagraphFormat(find(children, "w:pPr"))
- }, attributes["w:type"] === "table" ? readTableStyle(children, themeFonts) : {})
+ }, frame === void 0 ? {} : { frame }), attributes["w:type"] === "table" ? readTableStyle(children, themeFonts) : {})
};
}).filter((style) => style.id !== void 0);
const defaultStyle = (type) => {
diff --git a/usage/layout.md b/usage/layout.md
index e52cbf1ff2..696ffa5fb2 100644
--- a/usage/layout.md
+++ b/usage/layout.md
@@ -144,10 +144,10 @@ Lengths are in pixels, 96 to the inch, from the top left corner of the page. The
The layout of the document, `DocumentLayout`:
-| Property | Type | What it is |
-| ----------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `pages` | `readonly PageLayout[]` | The pages, in order |
-| `stoppedAt` | `string` or `undefined` | What the layout [stopped at](#what-it-leaves-blank), such as `"a text box"`. The pages are those up to there, the last of them with what was laid out on it. With `{ guess: true }`, what it has no guess for |
+| Property | Type | What it is |
+| ----------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `pages` | `readonly PageLayout[]` | The pages, in order |
+| `stoppedAt` | `string` or `undefined` | What the layout [stopped at](#what-it-leaves-blank), such as `"a table that text flows around"`. The pages are those up to there, the last of them with what was laid out on it. With `{ guess: true }`, what it has no guess for |
Each page, `PageLayout`:
@@ -210,6 +210,8 @@ The pages are laid out with the widths and heights of the characters of the font
- pictures in the line, which stand on the baseline, so a line with text in it is as tall as the picture and the text below the baseline, as Word makes it. A line with a picture is at least as tall as a line of the picture's run's font, and its multiple line spacing adds a share of that, as Word's does
- pictures, shapes and charts that text wraps around (`floating` with a `wrap`), as Word lays the text out around them. A line beside a drawing has the room beside it, with the drawing's distances from the text (`margins`) and the room its effects take, such as a shape's line or shadow, and a line with no room beside it goes below it. Square, tight and through wrapping put the text beside the drawing's box, on the side or sides its wrapping's `side` says, the left first, and Word puts as many words in the room on a side as fit there, however narrow it is, and none when the next word doesn't fit. Top and bottom wrapping puts the lines below the drawing. Drawings that overlap keep the text out of all their room. A drawing in a margin, where there is no text, leaves the lines as they are. A line beside a drawing starts at the drawing's edge or the paragraph's left indent, whichever is further in, and its first line is indented from there. A drawing is placed against the page, its margins, the column, or the paragraph or line it is anchored in, as its `horizontalPosition` and `verticalPosition` say: at an offset, which places the drawing without its effects, lined up with them, with its effects, or at a percentage of them, as `docx/shapes` places shapes, and its percentage sizes are a share of the page or its margins. Placed against its paragraph, it is at the top of the paragraph, below the space after the paragraph before, which is that paragraph's, and above its own space before, and no higher than the top of the page's text. Where it would go past the bottom of the page's text, the paragraph moves to the next column or page with it, and a paragraph whose first line goes below a drawing with top and bottom wrapping keeps its own space before above that line. Placed against its line, it is at the line its anchor is on before the text goes round it, though the text going round it can move the anchor on to the next line. One anchored in a line that goes on to the next page goes there with it, against the top of the paragraph's part on that page. The text before a drawing's paragraph on its page goes round it too, as Word lays the page out again with it, and the drawing stays where it was first placed, though its paragraph moves down: with top and bottom wrapping, the lines before it that its distance above it reaches go below it. A table that fits beside a drawing at its indent goes beside it, as does one without an indent that fits past a drawing on its left, and one that doesn't fit goes below it. Paragraphs kept with the next are kept with as many of the next paragraph's lines beside a drawing as they would be without it, and move to the next page with a paragraph that moves there with its drawing. Columns are evened out with the drawings in them. A turned picture wraps the text around its box as it is before it is turned. Drawings in headers and footers, and those behind or in front of the text, don't move the body's lines
- tables that text wraps around (a table's `float`), as Word lays the text out around them: the text after the table goes beside it, as beside a picture with square wrapping, kept from it by its distances from the text (`leftFromText`, `rightFromText`, `topFromText` and `bottomFromText`). A table is placed across against the page, its margins or the column (`horizontalAnchor`), and down against the page, its margins or the top of the paragraph after it (`verticalAnchor`), at a distance (`absoluteHorizontalPosition`, `absoluteVerticalPosition`) or lined up with them (`relativeHorizontalPosition`, `relativeVerticalPosition`). Its room is as wide as its rows with the halves of its borders left and right, or 0.75 points wider than its rows without borders there, and as tall as its rows, and its indent doesn't move it. It is below the space after the paragraph before, and the paragraph after it has all of its space before below that, as after a table. Tables one after the other before a paragraph each go round it, and the paragraphs after it go round it too while they are beside it
+- text frames (a paragraph's `frame`) and drop caps, as Word lays them out: the paragraph is taken out of the text and put in a box of its own, which the paragraph after it is anchored in, and the text goes round the box as it goes round a picture with square wrapping. The box is placed against the page, its margins, the column, or the paragraph after it, at the place or lined up as `position` or `alignment` says, and its `space` keeps the text from it, `horizontal` left and right and `vertical` above and below. It is as wide as `width`, or its text when it has none, and as tall as `height` exactly with the rule `HeightRule.EXACT`, its text with `HeightRule.AUTO`, and at least `height` otherwise, as Word takes a height with no rule. Paragraphs next to each other with the same frame are in one box, with the space before the first and after the last in it. With `wrap` none, the box is in front of the text and takes no room, and with not beside, the text goes above and below it; around, tight, through and auto are all around it. A drop cap is a frame like any other, as wide as its letter, and the lines of the next paragraph beside it are those its box is beside, as Word lays it out. The bookmarks and fields in a frame are on its anchor's page. The text in frames isn't among the lines of `layoutDocument`'s pages
+- VML drawings (`w:pict`), as Word lays them out. A text box (`Textbox`) in the line is sized to its text, as Word sizes it whatever `height` it has: its paragraphs, broken in its `width` less 0.2 inches for the room between its edges and its text, with 0.1 inches above and below them and 0.72 points more, and its outline, which takes 0.72 points across and down, or none when it is hidden. It stands on the baseline, as a picture does. A text box placed on the page (`position: "absolute"`) takes no room, as Word puts it in front of the text, as do docx's watermarks. In [templates](#templates), a shape in the line without an outline is a box of its size, and one placed on the page with square or top and bottom wrapping (`w10:wrap`) is laid out as a picture with that wrapping, with VML's distances from the text, 9 points left and right, where it gives none
- tracked changes, as Word lays them out with its markup in balloons beside the page, or in Simple Markup. Deleted text (`DeletedTextRun`), and deleted pictures, tabs and breaks, take no room, nor does text moved elsewhere, and inserted text (`InsertedTextRun`) does. A paragraph whose mark is deleted (`run: { deletion }`) is joined to the next, all in the next one's formatting, style and list, and a section whose break is deleted goes on into the next, on its pages. A paragraph with no paragraph after it to join, before a table or at the end of a table cell or of the document, stays as it is. A footnote whose reference is deleted isn't laid out, but Word still counts it, so the footnotes after it keep their numbers. A deleted table row (`TableRow`'s `deletion`) takes no room, nor does the space between cells around it, and the rows around it have one border between them, which is the deleted row's own when it has borders of its own. Nor does a table all of whose rows are deleted take room. A table style's formatting for the first and last rows and for bands of rows goes by each row's place among all the rows, the deleted ones too, so with the first row deleted the second isn't formatted as the first. Word still sizes the columns of a table to their text, or widens them for long words, by its deleted rows and deleted text. Deleted and inserted cells, comments and changes of formatting don't move the lines. A document that asks Word to hide its insertions and deletions, or its markup (`w:revisionView`), is laid out the same, as Word for Mac opens it in its own view
- tables, with their columns' widths (`columnWidths`, or their cells' widths), their rows' heights, cell margins and borders. The columns of a table given no widths are sized to their text, as Word sizes them: each as wide as its longest line, or narrower when they don't all fit, but never narrower than its longest word, and a column whose cells give it a width keeps it. A cell merged across columns (`columnSpan`) widens them where its longest line needs more room, each in proportion to how wide it is, and a table in a cell counts as wide as its columns. In a table whose cells all have widths, a column with a word longer than its cells give it is widened to fit the word, and the other columns are narrowed to make room, as Word does, unless the table's layout is fixed. A table with a width of its own in twips is fitted to it, as Word fits it: when its columns are narrower, they are widened in proportion, and when they are wider, they are narrowed toward their longest words, or, when its layout is fixed, whatever is in them, each by the same share of the room for its text. When a word is longer than the table, its column is as wide as the word, and the table goes past the margin. Where the rows of a table give a column different widths, each column is as wide as the widest a row gives it, and a cell merged across columns that is wider than they are widens the last of them, before they are fitted to the table's width, or, without one, narrowed to the room, unless its layout is fixed. A word in a cell merged across columns that is longer than they are wide is shared among them in proportion to each column's longest word and its longest line, or its width, added together, as Word shares it, and those columns keep its width when the others are narrowed. Rows break across pages between the lines of their cells, as Word breaks them, keeping to widow and orphan control and lines kept together, and with room on the page for the space after a cell's paragraph that ends there. They move to the next page whole when a cell would have none of its lines on the page, when they are kept whole (`cantSplit`), and when the page hasn't room for the height they are set to. A row kept whole, or whose paragraph is kept together, that is taller than a page moves to a new page and breaks there as other rows do, and a row set to a height taller than a page takes a page of its own, cut off at its bottom, as Word lays them out. Where a table breaks across pages, Word draws its bottom border below the last of it on the page, which takes room there too, or its cells' own bottom borders. Header rows are repeated at the top of each page and column a table is on. The text of a cell merged down rows (`verticalMerge`) goes down from the top of its first row across the others, and makes the last of them taller when it needs the room. Where one of its rows breaks across pages, its text breaks with the row, as far down the page as its lines go, keeping to widow control, as Word breaks it, and the rest of it goes on from the top of its rows on the next page. A table in a cell breaks with its row, between its own rows and in them between the lines of their cells, as Word breaks it: as a table in the text breaks, keeping to widow control, with its bottom border below the last of it on the page and its cells' margins around their lines on each page, and with its rows kept whole, or of a set height, moving to the next page whole. On the next page, Word draws its top border above the rest of it
- table formatting, as Word lays it out. Borders come from the table's style and the table (`borders`), side by side, from its cells (`TableCell`'s `borders`), and from the parts of its style for some of its cells. Where two cells meet, Word draws the wider of their borders, and each row is as much taller as the widest border above its cells. Double, triple and the other styles of border take the room Word gives them, such as three times their width for a double border, and a border's `space` adds to it. A cell's text is as far in from a border beside it as its margin, or half the border when that is more. A row is as tall as its tallest cell's text, with the largest margins above and below of its cells, which needn't be the same cell's. Space between cells (`cellSpacing`) goes around each cell and inside the table's edges, and the table keeps its width, its columns narrowed for the space as Word narrows them. A row whose first cell's first paragraph is kept with the next (`keepNext`) is kept on the page with the next row, or, for the last row, with the paragraph after the table, and rows kept together that don't fit on a page of their own start a new page and break where it ends. Text that runs up or down a cell (`textDirection`) makes its row only as tall as a line of its paragraph mark, as Word breaks it into lines as long as the row is tall. A table sized to its text that is indented (`indent`) is sized in the room the indent leaves. The parts of a table style for some cells, such as its first row, its last column or its bands of rows, apply where the table turns them on (`tableLook`), and where it doesn't say, as Word turns them on: its first row and column and its bands of rows. A header of several rows (`tableHeader`) is the table's first row, all of it, and the bands of rows start below it, as Word applies them. In [templates](#templates), an empty last paragraph of a cell whose mark is hidden (`w:hideMark`) takes no room
@@ -221,8 +223,9 @@ The pages are laid out with the widths and heights of the characters of the font
It stops at the first thing it can't lay out yet, and the page numbers of the headings and bookmarks after it are left blank, until the fields are updated in Word (see [Opening the document in Word](#opening-the-document-in-word)):
-- a text box, or a text frame
- a table that text wraps around (a table's `float`) where Word's way with it hasn't been seen: one in a table cell, a header, a footer or a note, one without a paragraph after it in its section, one placed without what it is placed against (`horizontalAnchor`, `verticalAnchor`) or lined up with the line it would be in, one with a footnote in it or a border on one side only, one kept with the next paragraph or before a paragraph kept with the next, two that may not overlap (`overlap: OverlapType.NEVER`) and do, and one that would go past the bottom of the page, which Word breaks across pages, with the paragraph after it on the last
+- a text frame where Word's way with it hasn't been seen: one with borders, which take room beside it that their width doesn't explain, one in a header, footer, table cell, footnote, endnote or text box, one with no paragraph after it in its section, such as one before a table, one with a footnote or endnote in it, one whose paragraph and style give it different frames, and one placed against something other than the page, the margins, the column and the paragraph, or lined up in line with the text
+- a VML drawing where Word's way with it hasn't been seen: a text box whose line would break differently in 0.72 points more or less room, one not sized to its text, with insets or an outline of its own, with a footnote, a list or a drawing in it, in a header or footer, or placed on the page with wrapping; a picture (`v:imagedata`), which Word draws at a size other than its own, a shape in the line with an outline, one placed on the page with tight or through wrapping, an outline, or in a header or footer, which the body's text goes round, a shape sized in pixels, ems or a share, one turned, and an embedded object (`w:object`)
- a picture, shape or chart that text wraps around where Word's way with it hasn't been seen: drawings that may not overlap (`allowOverlap: false`) and do, which Word moves out of the way, one in a table cell, a footnote or an endnote, one beside a table sized to its text, or beside an indented table it would move to the right, one beside paragraphs kept with the next that have drawings of their own or are kept with a table, one in columns evened out after being laid out again for a drawing beside text before it, and one beside the footnotes at the bottom of a page. So does one placed against where its anchor is along its line (`HorizontalPositionRelativeFrom.CHARACTER`), or by its simple position, one that would go above the page's text with a distance from the text above it, and one that would go past the bottom of the page's text at the top of a page or a column, above footnotes, or only by its distance from the text below it. So does one whose anchor's page changes as the text goes round it, and a page whose text going round a drawing moves the drawing's paragraph to the next page, or that has to be laid out again for its drawings more than 5 times
- an equation
- a footnote that continues on the next page where it would break in a table row whose lines could go on both pages, which Word breaks as the text's, or in paragraphs kept with the next from the start of its part on a page; one that continues from a paragraph kept with a paragraph that starts a new page; one that starts on the page after its reference's, before a continuous section that starts on that page; a footnote line, or a line and the start of its footnote, taller than a page; and footnotes after one that starts on the page after its reference's that don't fit below its end
@@ -258,7 +261,7 @@ It stops at the first thing it can't lay out yet, and the page numbers of the he
- a border around text of a style or width Word hasn't been seen to draw, as for paragraphs above, or with a shadow or a frame, a tab or picture in text with a border, text with a border lined up with a right or centered tab stop, and a word with a border that is longer than its line
- a paragraph justified for Arabic with a medium or high kashida (`MEDIUM_KASHIDA` and `HIGH_KASHIDA`), and Thai or Arabic text in one justified for Thai or with a low kashida, whose lines Word hasn't been seen breaking, and a justified or distributed line that only fits with its spaces squeezed when it has an en, em or ideographic space, which Word hasn't been seen squeezing
- page numbers in Thai and Hindi words (`thaiCounting` and `hindiCounting`), and page numbers Word writes as an error: any in `none`, 0 in Hebrew, Arabic, Thai and Hindi digits and Chicago's symbols, and those past where a format's letters run out, such as 781 in letters. Page numbers in Hebrew past 100, and in Hindi letters past 75 (`hindiVowels`) and 37 (`hindiConsonants`), haven't been checked in Word yet
-- a chapter number from a heading in a table
+- a chapter number from a heading in a table or a text frame
- a list number whose text or place Word hasn't shown: one in a format not yet written, such as Thai and Hindi words (`thaiCounting`, `hindiCounting`), or past where Word's lists start over, such as 32768 in roman numerals; one that shows a level its list doesn't have, or a level not counted yet that its list starts at a number of its own; a centred number followed by a space; a number with a border or emphasis marks, or raised or lowered; the tab after a number aligned to the right that ends at a tab stop of the paragraph's own, or, without a hanging indent, at the left indent off the default tab stops, or at a default stop past it; a line with nothing but a number of another size or font than its paragraph's mark; and a number taller than its line's text, with multiple line spacing. So do bullets that are pictures, numbers laid out as Word 6 laid them out, lists defined by a list style, and numbers aligned other than to the left, the centre or the right, which `docx` doesn't write
- tracked changes Word hasn't been seen laying out: a field only part of which is deleted, a paragraph mark moved elsewhere, a deleted paragraph mark at the edge of a content control, a deleted section break before a table, or between sections that start, number their pages or have headers and footers differently, a deleted endnote reference and a moved note reference, a list or a note in a deleted table row, a cell merged down from a deleted row with something in it, a deleted row whose borders above and below it take different room, or, at the top or bottom of the table, other room than the table's own top or bottom border would, a deleted row in a table with borders and space between its cells, and a deleted row in a header of several rows (`tableHeader`) whose table style formats some of its rows by where they are, such as its first row or its bands. So are a deleted picture, tab, break or note reference, and a deleted paragraph mark between paragraphs of text, in a table whose columns Word sizes to their text or widens for long words, as it does docx's tables unless their `layout` is `TableLayoutType.FIXED`
- a date or time (a `DATE` or `TIME` field, or a `DayLong`, `MonthLong`, `YearLong` and the like) in the text, a footnote or an endnote, as Word writes the date and time it opens the document, whose width changes with them. One in a header or footer is laid out as it is written
The unique identifier for this abstract numbering definition.