diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index 9cbc7bc9d2..2a84b32613 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 43568fd01e..ee555c168a 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 ffe3034944..432cd72b0a 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 832bb4fb6a..41b05ad702 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 115ba5d96c..658eeaff6c 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 b8a2c7baea..f2a7b8270c 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 e462900547..481e1c1632 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 09faab8ce0..ffe6e8b57c 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 46be23209e..47e6698718 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 953b6fc253..934ca72091 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 79aff56334..d5d8550c90 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 6512c0343e..91dbaaeb5b 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 5d8e10401b..5666fa240a 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 0a89b83610..3bc5d9c1f1 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 8a5f68d51c..f945a848ee 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 d108fbae2f..5c5b5f072b 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 81ea3e3508..c1c338edd2 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 91da743e04..c7137b18f4 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 e77bf86012..a011337cf9 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 8c8e1cf1d7..f855ca5230 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 9ab69f0af5..0e5569411c 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 8e67784c83..0287caf2d2 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 2ddab070dc..b5f2adfa7e 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 92b24938ef..3b6c7ada39 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 465575ee9d..68ae5e1382 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 e71322de5d..3b07fc7549 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 4fb45b783f..4c6e55512c 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 08acc4d7d1..153e4651e3 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 3a5fc1bb38..22787fd0f5 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 de8c7dce12..d3df98d093 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 828159954d..b7b0d91b15 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 1ff8c3f3b9..91f9bcfda1 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 75aa8bea9f..fc7dd7ff62 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 8a56f673ea..0206bc38a3 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 441351743c..614e7ed20f 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 ad16645566..f5f8b3b321 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 23b8cf469a..550537efa1 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 f46a60fb4c..575e505229 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 c1e7648318..6d818af609 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 50ce663228..90ebedbf8d 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 ddd87304f0..389d9b2bb6 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 bd214213a2..d40d3acb73 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 252033865d..411388a46a 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 829130469c..f2865c1f01 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 57f867e1b1..b2eb3cb4ab 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 b432bce2eb..92a0960c1e 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 0229d7324f..882a76cd29 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 cd9aa3d926..be39acca5e 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 a406d8327b..343540e3e5 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 7c1dd5f89e..4e31e18d3c 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 7a968f8b6e..9ff26793a9 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 8eda291911..ab64ac55ae 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 e7a0cb7527..6d80f07559 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 dc0c891b4f..b2bf585919 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 7511debe87..9da3b9c0dd 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 b0c936248c..8e26863c14 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 95248f5e41..4012fbf6a6 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 cc5629ff42..50e92315cf 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 4b8bd9a03a..396c2dfa96 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 142fdfbc6f..988f09b8f3 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 35febf90cd..ffdc8761f1 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 8d6dc27b70..a7ab12de50 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 ec4a5ac321..7757606225 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 9e57d7463d..ed2ec5915f 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 b27fc2a024..86d05e0ae6 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 9b96845524..fc878cb926 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 5dd6654913..61ab498a56 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 76ac424192..7c2de452f3 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 7dba392296..d96e5589bc 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 fcd49f1df7..8d85fc09a4 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 940bbe1531..7d55f1bff6 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 f35cd07953..a851a7699c 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 bd8c015ac5..1c0126176d 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 61693f5c97..8054c9e8f4 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 d7c0c7219a..4f914b8db7 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 1996fcfd9d..aa22c7fd88 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 220c72469f..635acf4771 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 5d9fd8e0ab..36c70bd09c 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 b9ce8e3b2d..c925b2cb3b 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 0be30b5917..80086de7fe 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 fb14647269..dcba483100 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 f7d06cfc41..54b06c899a 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 fc98f2aec6..977b1edac8 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 d277f8cc4f..82fdfac664 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 48640b264e..df7d984523 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 ec9de73925..9a078752ca 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 c7ef798089..6941d6cf82 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 af44975b00..ddd3d8a918 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 0eb862fd52..21432603dd 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 86f8e4d7c7..df31576cc9 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 cfb9db5566..6d9d9cb2ca 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 d278df6237..2b75749b29 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 5c9d804108..402cfa4e69 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 4fbb5a9783..d0cf3cff6f 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 10bd0c680c..50cb14ae73 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 c266c08ce0..8abd7f3e5c 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 27788b77a5..0fbc0a2c55 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 e712f83989..60b8cf7d03 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 6bb82f86b6..4a5ea76a9a 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 19570b15eb..d162f56528 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 ff539a9cf4..ccce88b38a 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 393c9ace31..0baa8669aa 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 90b713f6a0..0edd40d0ea 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 7a1840acb3..2f638190f0 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 2e4f13da3f..3f2ae3f286 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 1fe6891dda..b91f1ab3bf 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 3df27b10d3..69af4be3b9 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 b545907cce..213b3e25ab 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 59b073e920..3dc3796d43 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 71317e716c..826cce1298 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 a7f952612c..345ca7bbb9 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 a9f76a1dfb..8aeb8e5423 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 edf339f44d..f59607c021 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 4a0832a588..d13151cea9 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 986f29c7fa..7167a363fb 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 a950b0d4cb..ffed653933 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 ab3cd77fd7..f9e04806f3 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 8ba4ac9fbf..0aa8ecbed3 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 25601c114b..32b130a301 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 84497ea4e7..b0a7c6b75d 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 2416bc3841..34e7f5062f 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 cf3b7edf98..4a22ea92f6 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 9a5b7f845e..077472157a 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 ec53087270..b0495d6009 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 912ca968c0..f78cf98470 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 b3eb7a4bf3..8549d586b4 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 a9f130c428..5d949c6a26 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 89b66d1007..2739af2982 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 eab96eba19..3f45f55ad4 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 d3d345b7eb..7ea5600c5b 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 1e6fd49abb..b3c027fa83 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 c2dbf2e736..6d0bac5439 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 88a478aaff..47f0c18e61 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 0200a24569..ea8c377fcd 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 836a89e2ed..169a055159 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 3c0b23ebe6..7e5b7a8f25 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 be77c3ff29..3e66abca0f 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 5f5b79f5f8..62a779f126 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 8895ed9b8d..ed6559a096 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 80507260c7..21fc066a38 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 f5e1f60449..7f36bc54c7 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 2dd2ea9548..6aedfee90c 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 1bcf3c7722..ff03901d27 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 017d488cd2..489e2e302a 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.
@@ -63,7 +63,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.
+
@@ -73,7 +73,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.
+
diff --git a/api/types/layout.MeasureWidth.html b/api/types/layout.MeasureWidth.html
index 93b03fea9e..97e35376c4 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 73f86e5683..e8ee6b8f36 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 62858feaa6..6e18816c86 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 064cf737df..64c8810f6b 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 e198de8371..07dcf27a0d 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 e3386304b7..75df858584 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 a0cc8de07a..c51957460d 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 f4e52b40b7..33934abee8 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 0194b5f93f..71157687c9 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 f3ab88afec..3fe1871bda 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 75becc06de..85217f686e 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 7e14978568..f9f1e10f5f 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 edd66c6fb6..5f9ac66277 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 178a314079..4998ddc0af 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 38e1864b6f..7740a3935c 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 0616dd6faf..91cdc5d3f1 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 4f8e9c75f5..6586da34d4 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 b7d51c9c7d..0fb52ce7fb 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 bf4e3a91df..27eb3cadba 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 840f896a6a..c6cfa9ca4c 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 f1b8056cdb..1612ebfe5f 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 040d6ab066..65cf9cf41b 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 362907356c..4f4f4f2cb6 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 5527644a2d..02806211f8 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 753dc73b72..4cd2d122bf 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 1b6887637a..45a88b212e 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 c2fb982080..22aa87eae2 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 2e529db6bf..1ad7f1cf47 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 bb16b248b9..6438b7ea13 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 c6bc6babd5..4f6155f9da 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 a755076408..f79491b89f 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 d6f4572915..b2da0f2051 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 f60c7cd170..a58491f8ca 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 c55ee4d73c..d4c31d4941 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 44cb15b042..1b9d883a62 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 29822bd9c7..4d027a079c 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 d3c0e404ab..56a7966e8b 100644
--- a/api/variables/layout.estimatePageNumbers.html
+++ b/api/variables/layout.estimatePageNumbers.html
@@ -51,7 +51,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 db225f90f6..a7f3be4e8f 100644
--- a/live-examples/lib/layout.iife.js
+++ b/live-examples/lib/layout.iife.js
@@ -7720,18 +7720,21 @@ var docxLayout = (function(exports) {
* How wide a run's border is as Word draws it, in eighths of a point: as a paragraph's of its style. A border of no style
* ("none") takes its space still, but no width (scripts/layout-probes/word-run-formatting.ts RF7h). An art border's size
* is in points, so apples of 12 take 12 points (scripts/layout-probes/stops2/word-stops-text.ts RF25c), and Word draws a
- * single border of an eighth of a point, and a double one of none, as given (RF25f, RF25e). A shadow doubles a single
- * line, as a paragraph's (`word-paragraph-formats.docx` B6), and one drawn as a frame is as wide: one of 1.5 points 2
- * points from the text takes 100 twips beside and above and below it with a shadow, and 70 as a frame
- * (scripts/layout-probes/stops2/word-stops-text2.ts RF24c, RF24d). Undefined when Word hasn't been seen to draw it.
+ * single border of an eighth of a point, and a double one of none, as given (RF25f, RF25e). A shadow doubles the line as
+ * Word draws it, whatever its style, as a paragraph's (`word-paragraph-formats.docx` B6), and one drawn as a frame is as
+ * wide: a single line of 1.5 points 2 points from the text takes 100 twips beside and above and below it with a shadow, and
+ * 70 as a frame, a double line of half a point, which Word draws 1.5 wide, 100 with a shadow, and a dotted one of 1.5 70 as
+ * a frame (scripts/layout-probes/stops2/word-stops-text2.ts RF24c, RF24d, stops2/word-stops-text3.ts RF24e, RF24f).
+ * Undefined when Word hasn't been seen to draw it, as with a shadow or frame on an art border, a line of no style or one
+ * narrower than Word draws.
*/
var runBorderWidth = ({ style, size, shadow, frame }) => {
var _BORDER_WIDTHS$style, _BORDER_WIDTHS$style2, _SEEN_RUN_BORDERS$sty;
if (size === void 0) return style === "none" && !shadow && !frame ? 0 : void 0;
- if (shadow || frame) return style === "single" && size >= 2 && size <= 96 ? (shadow ? 2 : 1) * size : void 0;
- if (isArtBorder(style)) return size >= 1 && size <= 31 ? size * EIGHTHS_PER_POINT$2 : void 0;
- if (style === "single" && size === 1 || style === "double" && size === 0) return BORDER_WIDTHS[style](size);
- return style === "none" ? 0 : size < 2 || size > 96 ? void 0 : (_BORDER_WIDTHS$style = (_BORDER_WIDTHS$style2 = BORDER_WIDTHS[style]) === null || _BORDER_WIDTHS$style2 === void 0 ? void 0 : _BORDER_WIDTHS$style2.call(BORDER_WIDTHS, size)) !== null && _BORDER_WIDTHS$style !== void 0 ? _BORDER_WIDTHS$style : (_SEEN_RUN_BORDERS$sty = SEEN_RUN_BORDERS[style]) === null || _SEEN_RUN_BORDERS$sty === void 0 ? void 0 : _SEEN_RUN_BORDERS$sty[size];
+ if (isArtBorder(style)) return size >= 1 && size <= 31 && !shadow && !frame ? size * EIGHTHS_PER_POINT$2 : void 0;
+ const drawn = style === "single" && size === 1 || style === "double" && size === 0 ? BORDER_WIDTHS[style](size) : style === "none" ? 0 : size < 2 || size > 96 ? void 0 : (_BORDER_WIDTHS$style = (_BORDER_WIDTHS$style2 = BORDER_WIDTHS[style]) === null || _BORDER_WIDTHS$style2 === void 0 ? void 0 : _BORDER_WIDTHS$style2.call(BORDER_WIDTHS, size)) !== null && _BORDER_WIDTHS$style !== void 0 ? _BORDER_WIDTHS$style : (_SEEN_RUN_BORDERS$sty = SEEN_RUN_BORDERS[style]) === null || _SEEN_RUN_BORDERS$sty === void 0 ? void 0 : _SEEN_RUN_BORDERS$sty[size];
+ if (shadow || frame) return drawn === void 0 || style === "none" || size < 2 ? void 0 : (shadow ? 2 : 1) * drawn;
+ return drawn;
};
/**
* The room a run's border takes, beside the run and above and below it: its space and its width, as Word gives it room (a
@@ -7774,15 +7777,14 @@ var docxLayout = (function(exports) {
};
/**
* Why a run's formatting can't be laid out as Word lays it out, when it can't: OpenType features other than ligatures,
- * whose widths the width tables don't have, a border of a style, width or space Word hasn't been seen to draw, or of a style
- * other than single with a shadow or drawn as a frame, and emphasis marks of a kind the schema doesn't have.
+ * whose widths the width tables don't have, a border of a style, width or space Word hasn't been seen to draw, and emphasis
+ * marks of a kind the schema doesn't have.
*/
var unknownRunFormatting = ({ font, bold, italic, border, emphasisMark, numberForm, numberSpacing, stylisticSets, contextualAlternates }) => {
var _DEFAULT_FIGURES$toLo;
const forms = `${numberForm !== null && numberForm !== void 0 ? numberForm : "default"} ${numberSpacing !== null && numberSpacing !== void 0 ? numberSpacing : "default"}`;
if (forms !== "default default" && (bold === true || italic === true || !((_DEFAULT_FIGURES$toLo = DEFAULT_FIGURES[(font !== null && font !== void 0 ? font : "").toLowerCase()]) === null || _DEFAULT_FIGURES$toLo === void 0 ? void 0 : _DEFAULT_FIGURES$toLo.includes(forms)))) return "OpenType number forms or spacing";
if (stylisticSets === true || contextualAlternates === true) return "OpenType stylistic sets or contextual alternates";
- if (border !== void 0 && border.style !== "nil" && border.style !== "single" && (border.shadow || border.frame)) return "a run border of a style other than single with a shadow or drawn as a frame";
if (border !== void 0 && border.style !== "nil" && runBorderWidth(border) === void 0) return "a run border of a style, width or space not yet followed";
return emphasisMark === void 0 || emphasisMark === "none" || EMPHASIS[emphasisMark] !== void 0 ? void 0 : "emphasis marks of a kind that isn't known";
};
@@ -8139,6 +8141,15 @@ var docxLayout = (function(exports) {
/** The border of the start or end of pieces of text */
var firstBorder = (pieces) => pieces[0].font.border;
var lastBorder = (pieces) => pieces[pieces.length - 1].font.border;
+ /** The border of the start or end of a word or spaces, or of a picture in a border of its run, whose box it is in too */
+ var startBorderOf = (token) => {
+ var _token$font;
+ return token.type === "word" || token.type === "space" ? firstBorder(token.pieces) : token.type === "box" ? (_token$font = token.font) === null || _token$font === void 0 ? void 0 : _token$font.border : void 0;
+ };
+ var endBorderOf = (token) => {
+ var _token$font2;
+ return token.type === "word" || token.type === "space" ? lastBorder(token.pieces) : token.type === "box" ? (_token$font2 = token.font) === null || _token$font2 === void 0 ? void 0 : _token$font2.border : void 0;
+ };
/** Whether pieces of text in the same font are measured together: when they are kerned, or join letters */
var shaped = (font) => isKerned(font) || hasLigatures(font);
/**
@@ -8165,27 +8176,22 @@ var docxLayout = (function(exports) {
/**
* A paragraph's text in the pieces it is measured in: text next to text in the same font, kerned or with ligatures, as one,
* across bookmarks between them, as its pairs of characters are kerned and its letters joined across runs, and other text
- * on its own. So kerning and ligatures a measurer doesn't know are found across runs too. Kerned text either side of a soft
- * hyphen is measured apart, as Word doesn't kern across one (scripts/layout-probes/stops2/word-stops-text2.ts KE9a), and
- * text with ligatures across one, which Word hasn't been seen joining or leaving apart, is marked.
+ * on its own. So kerning and ligatures a measurer doesn't know are found across runs too. Text either side of a soft hyphen
+ * is measured apart, as Word neither kerns across one (scripts/layout-probes/stops2/word-stops-text2.ts KE9a) nor joins
+ * letters into a ligature across one: with a soft hyphen between the f's of "office", its "fi" is joined, and with one
+ * between the second f and the i of "efficient", its "ff", where "ffi" is without them (stops2/word-stops-text3.ts SH18e).
*/
var textMeasuredTogether = (items) => {
const pieces = [];
let joins = false;
- let hyphen = false;
for (const item of items) {
if (item.type === "marker") continue;
const last = pieces[pieces.length - 1];
- if (item.type === "softHyphen") {
- hyphen = joins && last.text.length > 0 && hasLigatures(last.font);
- joins = hyphen;
- continue;
- }
if (item.type !== "text") joins = false;
- else if (joins && shaped(last.font) && sameFont(last.font, item.font)) pieces[pieces.length - 1] = _objectSpread2({
+ else if (joins && shaped(last.font) && sameFont(last.font, item.font)) pieces[pieces.length - 1] = {
text: last.text + item.text,
font: last.font
- }, hyphen || last.besideSoftHyphen === true ? { besideSoftHyphen: true } : {});
+ };
else {
pieces.push({
text: item.text,
@@ -8193,7 +8199,6 @@ var docxLayout = (function(exports) {
});
joins = true;
}
- hyphen = false;
}
return pieces;
};
@@ -8317,7 +8322,7 @@ var docxLayout = (function(exports) {
if (spacing === void 0) return { height: natural };
if (spacing.rule !== "multiple") return { height: spacing.rule === "exact" ? spacing.height : Math.max(natural, spacing.height) };
const spacingBelow = (spacing.multiple - 1) * tallest;
- return _objectSpread2(_objectSpread2({ height: natural + spacingBelow }, spacingBelow > 0 ? { spacingBelow } : {}), heights.borderedPicture === true && spacing.multiple !== 1 ? { unsupported: "a picture in a border in a line with multiple line spacing" } : {});
+ return _objectSpread2({ height: natural + spacingBelow }, spacingBelow > 0 ? { spacingBelow } : {});
};
/**
* How tall a line on a document grid's lines is: as many of them as its own height needs, from the first fraction of a
@@ -8377,8 +8382,8 @@ var docxLayout = (function(exports) {
const kerning = kerningBefore(tokens, measurer);
return tokens.reduce(({ total, border }, token, index) => {
if (token.type === "box") return {
- total: total + roomBetween(border, void 0) + token.width,
- border: void 0
+ total: total + roomBetween(border, startBorderOf(token)) + token.width,
+ border: endBorderOf(token)
};
return token.type === "word" || token.type === "space" ? {
total: total + roomBetween(border, firstBorder(token.pieces)) + kerning[index] + widthOf(token.pieces, measurer),
@@ -8465,11 +8470,11 @@ var docxLayout = (function(exports) {
* Word hasn't been seen to line it up.
*/
var shiftAt = (alignment, tokens, measurer, border) => {
- var _lastBorder$room, _lastBorder;
+ var _endBorderOf$room, _endBorderOf;
if (alignment === "left") return 0;
if (alignment === "decimal") return widthBeforeDecimal(tokens, measurer, border);
const last = textAfterTab(tokens).findLast((token) => token.type === "word" || token.type === "space" || token.type === "box");
- const after = widthAfterTab(tokens, measurer, border) + (last === void 0 || last.type === "box" ? 0 : (_lastBorder$room = (_lastBorder = lastBorder(last.pieces)) === null || _lastBorder === void 0 ? void 0 : _lastBorder.room) !== null && _lastBorder$room !== void 0 ? _lastBorder$room : 0);
+ const after = widthAfterTab(tokens, measurer, border) + (last === void 0 ? 0 : (_endBorderOf$room = (_endBorderOf = endBorderOf(last)) === null || _endBorderOf === void 0 ? void 0 : _endBorderOf.room) !== null && _endBorderOf$room !== void 0 ? _endBorderOf$room : 0);
return alignment === "center" ? after / 2 : after;
};
/** The tokens after a tab, up to the next tab or the end of the part */
@@ -8527,7 +8532,7 @@ var docxLayout = (function(exports) {
const beforeStart = numberShift(items, numberAlignment, measurer);
const numberTab = numberAlignment === "right" && ((_items$ = items[1]) === null || _items$ === void 0 ? void 0 : _items$.type) === "tab";
const hyphenating = hyphenation !== void 0 && format.suppressAutoHyphens !== true ? hyphenation : void 0;
- const { min, max, whole } = segmentsOf(items, rulesOf(format, breakRules)).reduce((widths, { tokens }, segmentIndex) => {
+ const { min, max, whole } = segmentsOf(measuredBoxes(items, measurer), rulesOf(format, breakRules)).reduce((widths, { tokens }, segmentIndex) => {
var _endBorder$room;
const first = segmentIndex === 0;
const lineStart = first ? indentLeft + firstLineIndent - beforeStart : indentLeft;
@@ -8538,7 +8543,7 @@ var docxLayout = (function(exports) {
let endBorder;
const kerning = kerningBefore(tokens, measurer);
for (const [index, token] of tokens.entries()) {
- var _border$room2, _firstBorder$room, _firstBorder;
+ var _border$room2, _startBorderOf$room, _startBorderOf;
if (token.type === "marker") continue;
if (token.type === "space") {
position += roomBetween(border, firstBorder(token.pieces)) + kerning[index] + widthOf(token.pieces, measurer);
@@ -8546,8 +8551,8 @@ var docxLayout = (function(exports) {
continue;
}
const keepsBox = token.type === "tab" && token.font.border !== void 0 && token.font.border.key === (border === null || border === void 0 ? void 0 : border.key);
- const lead = token.type === "word" ? roomBetween(border, firstBorder(token.pieces)) : keepsBox ? 0 : roomBetween(border, void 0);
- border = token.type === "word" ? lastBorder(token.pieces) : keepsBox ? border : void 0;
+ const lead = keepsBox ? 0 : roomBetween(border, startBorderOf(token));
+ border = keepsBox ? border : endBorderOf(token);
endBorder = border;
if (token.type === "tab") {
var _ref, _shiftAt;
@@ -8560,7 +8565,7 @@ var docxLayout = (function(exports) {
}
const tokenWidth = token.type === "box" ? token.width : widthOf(token.pieces, measurer);
const close = (_border$room2 = border === null || border === void 0 ? void 0 : border.room) !== null && _border$room2 !== void 0 ? _border$room2 : 0;
- const start = end === lineStart ? position + lead : indentLeft + (token.type === "word" ? (_firstBorder$room = (_firstBorder = firstBorder(token.pieces)) === null || _firstBorder === void 0 ? void 0 : _firstBorder.room) !== null && _firstBorder$room !== void 0 ? _firstBorder$room : 0 : 0);
+ const start = end === lineStart ? position + lead : indentLeft + ((_startBorderOf$room = (_startBorderOf = startBorderOf(token)) === null || _startBorderOf === void 0 ? void 0 : _startBorderOf.room) !== null && _startBorderOf$room !== void 0 ? _startBorderOf$room : 0);
narrowest = Math.max(narrowest, start + tokenWidth + close + indentRight);
if (token.type === "box" || !hyphenating || !dictionaryOf(token.pieces, hyphenating)) wholeWords = Math.max(wholeWords, start + tokenWidth + close + indentRight);
position += lead + kerning[index] + tokenWidth;
@@ -8653,10 +8658,26 @@ var docxLayout = (function(exports) {
return isGridCharacter([...textOf$2(next.pieces)][0]) ? "grid" : "word";
};
/**
- * A paragraph's content with its text set across in text that runs down the page as pieces of room of their own, as long
- * along the line as a line of their font is tall, and with its ascent and descent across it.
+ * A paragraph's content with each box as wide as its text measured: the widest of its text and the other text in it, in
+ * their fonts, as text with a phonetic guide over it is as wide as the wider of the two: kana of 5.5 points 990 twips wide
+ * over two ideographs of 11, and two ideographs of 11 under kana of 5.5, 440 wide (scripts/layout-probes/stops2/word-stops-text2.ts
+ * RF31b, stops2/word-stops-text3.ts RF31e).
*/
- var withAcross = (items, measurer) => items.map((item) => {
+ var measuredBoxes = (items, measurer) => items.map((item) => {
+ var _item$text, _item$font, _item$otherText;
+ if (item.type !== "box" || item.asWideAsText !== true) return item;
+ const texts = [{
+ text: (_item$text = item.text) !== null && _item$text !== void 0 ? _item$text : "",
+ font: (_item$font = item.font) !== null && _item$font !== void 0 ? _item$font : {}
+ }, ...(_item$otherText = item.otherText) !== null && _item$otherText !== void 0 ? _item$otherText : []];
+ return _objectSpread2(_objectSpread2({}, item), {}, { width: Math.max(...texts.map(({ text, font }) => measurer.measureWidth(text, font))) });
+ });
+ /**
+ * A paragraph's content with its text set across in text that runs down the page as pieces of room of their own, as long
+ * along the line as a line of their font is tall, and with its ascent and descent across it, and its boxes as wide as their
+ * text measured (see {@link measuredBoxes}).
+ */
+ var withAcross = (items, measurer) => measuredBoxes(items, measurer).map((item) => {
if (item.type !== "text" || item.across !== true) return item;
const descent = measurer.measureDescent(item.font);
return {
@@ -8850,8 +8871,8 @@ var docxLayout = (function(exports) {
return (_markHeights = markHeights) !== null && _markHeights !== void 0 ? _markHeights : markHeights = withFont(NOTHING, emptyLineFont, measurer);
};
const numberOnly = content.every((item) => {
- var _item$font;
- return item.type === "marker" || (item.type === "text" || item.type === "tab") && ((_item$font = item.font) === null || _item$font === void 0 ? void 0 : _item$font.listNumber) !== void 0;
+ var _item$font2;
+ return item.type === "marker" || (item.type === "text" || item.type === "tab") && ((_item$font2 = item.font) === null || _item$font2 === void 0 ? void 0 : _item$font2.listNumber) !== void 0;
});
const withMarkOf = (heights) => {
if (!onlyNumber(heights)) return heights;
@@ -8864,16 +8885,19 @@ var docxLayout = (function(exports) {
};
/** The heights of a line with the text of the token on it too */
const withToken = (heights, token) => {
- if (token.type === "box" && token.text !== void 0) return withFont(heights, token.font, measurer, token.text);
+ if (token.type === "box" && token.text !== void 0) {
+ var _token$otherText;
+ const own = withFont(heights, token.font, measurer, token.text);
+ return ((_token$otherText = token.otherText) !== null && _token$otherText !== void 0 ? _token$otherText : []).reduce((all, { text, font }) => withFont(all, font, measurer, text), own);
+ }
if (token.type === "box") {
- const tallest = token.font ? Math.max(heights.tallest, measurer.measureLineHeight(token.font)) : heights.tallest;
+ var _token$below;
+ const room = (_token$below = token.below) !== null && _token$below !== void 0 ? _token$below : 0;
+ const tallest = token.font ? Math.max(heights.tallest, measurer.measureLineHeight(token.font) + 2 * room) : heights.tallest;
return token.descent === void 0 ? _objectSpread2(_objectSpread2({}, heights), {}, {
picture: Math.max(heights.picture, token.height),
tallest
- }, token.below === void 0 ? {} : {
- descent: Math.max(heights.descent, token.below),
- borderedPicture: true
- }) : _objectSpread2(_objectSpread2({}, heights), {}, {
+ }, token.below === void 0 ? {} : { descent: Math.max(heights.descent, token.below) }) : _objectSpread2(_objectSpread2({}, heights), {}, {
ascent: Math.max(heights.ascent, token.height),
descent: Math.max(heights.descent, token.descent),
tallest: Math.max(tallest, token.height + token.descent)
@@ -8942,6 +8966,18 @@ var docxLayout = (function(exports) {
const between = state.spaces - (state.position - state.end);
return between <= 0 || slack / between >= STRETCH_TO_SQUEEZE * (over / state.spaces);
};
+ /**
+ * Whether Word squeezes a line's spaces to fit a longer part of a word before a soft hyphen, whose hyphen ends `longer`
+ * past the end of the line, rather than take a shorter part that fits as it is, with its hyphen: when the spaces, and
+ * on a distributed line the letters, would stretch twice as far with the shorter part as they'd be squeezed for the
+ * longer, as {@link squeezesIn} weighs a word against leaving it to the next line
+ */
+ const squeezesForPart = (state, shorter, longer) => {
+ const over = longer - limitOf();
+ const slack = limitOf() - shorter.withHyphen;
+ const letters = state.letters + lengthOf(shorter.before) + 1;
+ return alignment === "distributed" ? slack * SPACE_TO_LETTER / (SPACE_TO_LETTER * state.spaceCount + letters) >= STRETCH_TO_SQUEEZE * (over / state.spaceCount) : slack >= STRETCH_TO_SQUEEZE * over;
+ };
const hyphenating = hyphenation !== void 0 && format.suppressAutoHyphens !== true ? hyphenation : void 0;
/**
* Whether Word may hyphenate a word that goes past the end of a line, putting a part of it and a hyphen on the line.
@@ -8964,31 +9000,27 @@ var docxLayout = (function(exports) {
};
/**
* Whether a word or picture past the end of a justified line could be squeezed in at a four-per-em space, which Word
- * hasn't been seen with, or at the ordinary spaces beside en, em or ideographic spaces, which Word doesn't squeeze, and
- * how it weighs them then hasn't been seen. Past the end by more than a quarter of the ordinary spaces' width, it isn't
- * squeezed in, though they and the others are four times as wide (scripts/layout-probes/stops2/word-stops-text2.ts JU4a,
- * JU4b: 10 spaces and 6 en spaces, and "lighthouse" past the end by 27% and 35% of the spaces' width)
+ * hasn't been seen with. Beside en, em or ideographic spaces, which Word doesn't squeeze, it squeezes the ordinary
+ * spaces as elsewhere, by up to a quarter of their width: "lighthouse" past the end by 12% and 20% of 10 ordinary spaces'
+ * width, beside 6 en spaces, is squeezed in, and past it by 27% and 35% it isn't, though the en spaces are four times as
+ * wide (scripts/layout-probes/stops2/word-stops-text3.ts JU5a, JU5b, stops2/word-stops-text2.ts JU4a, JU4b)
*/
- const unsure = (state, tokenWidth) => {
- if (!squeezes || older || state.otherSpaces === 0) return false;
- const over = state.position + tokenWidth - limitOf();
- const ordinary = state.spaces - state.otherSpaces;
- return state.text.includes(" ") ? over <= MOST_SQUEEZE * state.spaces : ordinary > TOLERANCE$2 && over <= MOST_SQUEEZE * ordinary;
- };
+ const unsure = (state, tokenWidth) => squeezes && !older && state.otherSpaces > 0 && state.text.includes(" ") && state.position + tokenWidth - limitOf() <= MOST_SQUEEZE * state.spaces;
/**
* Why where Word puts the text after a tab to one of the paragraph's own stops past the end of the line isn't
* known, when it isn't. Its probes had no right indent past the margin; a left stop after text, with first line and
- * hanging indents too (scripts/layout-probes/stops2/word-stops-tabs.ts TA1a, TA1b), and at the start of a line in a
- * paragraph indented on the left or right (stops2/word-stops-edges.ts TA9a, TA9b), but not on the first line of one
- * with a first line indent, nor on any line of one with a hanging indent; and a right indent only with a right stop
- * after text. Right, centred and decimal stops line their text up with the end of the line whatever the left, first
- * line and hanging indents, at the start of a line and after text (TA3a to TA3d, stops2/word-stops-text2.ts TA10a
- * to TA10f, TA10h, TA10i)
+ * hanging indents too (scripts/layout-probes/stops2/word-stops-tabs.ts TA1a, TA1b), at the start of a line in a
+ * paragraph indented on the left or right (stops2/word-stops-edges.ts TA9a, TA9b), and at the start of the first line
+ * of one with a first line indent (stops2/word-stops-text3.ts TA12k), but not at the start of a line of one with a
+ * hanging indent. Right, centred and decimal stops line their text up with the end of the line whatever the left,
+ * first line and hanging indents, at the start of a line and after text (TA3a to TA3d, stops2/word-stops-text2.ts
+ * TA10a to TA10f, TA10h, TA10i), and in a paragraph indented on the right right and centred ones do too (word-stops-text3.ts
+ * TA12i, TA12j), where a decimal one hasn't been seen
*/
- const pastEndUnknown = ({ alignment: kind }, started, firstLine) => {
+ const pastEndUnknown = ({ alignment: kind }, started) => {
if (indentRight < 0) return "a tab stop past the end of the line in a paragraph indented past the margin";
- if (kind === "left") return !started && (firstLineIndent < 0 || firstLine && firstLineIndent > 0) ? "a left tab stop past the end of the line at the start of a line in a paragraph with a first line or hanging indent" : void 0;
- return indentRight === 0 || kind === "right" && started ? void 0 : "a centred or decimal tab stop past the end of the line in a paragraph indented on the right, or a right one at the start of a line there";
+ if (kind === "left") return !started && firstLineIndent < 0 ? "a left tab stop past the end of the line at the start of a line in a paragraph with a hanging indent" : void 0;
+ return indentRight === 0 || kind !== "decimal" ? void 0 : "a decimal tab stop past the end of the line in a paragraph indented on the right";
};
const beforeStart = numberShift(content, numberAlignment, measurer);
let numberTab = numberAlignment === "right" && ((_content$ = content[1]) === null || _content$ === void 0 ? void 0 : _content$.type) === "tab";
@@ -9022,7 +9054,7 @@ var docxLayout = (function(exports) {
const marked = state.started ? withMarkOf(state.heights) : markHeightsOf();
const heights = typeof marked === "string" ? state.heights : marked;
const _ref4 = linePitch === void 0 ? heightOf(heights, spacing) : gridHeightOf(heights, spacing, linePitch), { unsupported: unknownHeight } = _ref4, height = _objectWithoutProperties(_ref4, _excluded$1);
- const unsupported = state.unknown ? "a justified line that only fits squeezed at a four-per-em space, or at an en, em or ideographic space beside ordinary spaces" : (_ref5 = (_state$unsupported = state.unsupported) !== null && _state$unsupported !== void 0 ? _state$unsupported : state.unbroken && state.end > 941.41 ? "text after a tab past the end of the line that goes further past the margin than Word was seen keeping it on the line, in a document in compatibility mode" : void 0) !== null && _ref5 !== void 0 ? _ref5 : markMatters(withNumber(heights)) ? "a picture alone in a line of a paragraph whose mark is larger, with multiple line spacing" : typeof marked === "string" ? marked : unknownHeight;
+ const unsupported = state.unknown ? "a justified line that only fits squeezed at a four-per-em space" : (_ref5 = (_state$unsupported = state.unsupported) !== null && _state$unsupported !== void 0 ? _state$unsupported : state.unbroken && state.end > 941.41 ? "text after a tab past the end of the line that goes further past the margin than Word was seen keeping it on the line, in a document in compatibility mode" : void 0) !== null && _ref5 !== void 0 ? _ref5 : markMatters(withNumber(heights)) ? "a picture alone in a line of a paragraph whose mark is larger, with multiple line spacing" : typeof marked === "string" ? marked : unknownHeight;
lines.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, height), {}, { markers: [...state.markers, ...state.pending] }, breakAfter ? { breakAfter } : {}), {}, {
text: state.text,
textWidth: Math.max(0, state.end - state.start)
@@ -9078,13 +9110,13 @@ var docxLayout = (function(exports) {
* before it on the line by `kern`, unless it starts the next line
*/
const placeWord = (token, kern = 0, after = 0, unsureAfter = false) => {
- var _lastBorder$room2, _lastBorder2, _token$hyphens;
+ var _endBorderOf$room2, _endBorderOf2, _token$hyphens;
const kernOn = (state) => state.latin === void 0 ? 0 : kern;
/** How wide the token is on the line, which on a grid that snaps to characters depends on the text before it */
const widthOn = (state) => token.type === "box" ? !snapping ? token.width : cellsOf(token.width) : !snapping ? widthOf(token.pieces, measurer) : snapped(state, token.pieces, kernOn(state)).position - state.position;
let tokenWidth = widthOn(line);
- const leadOf = (state, wrapped = false) => (token.type === "word" ? roomBetween(state.border, firstBorder(token.pieces)) : 0) + (wrapped || snapping ? 0 : kern);
- const boxEnd = token.type === "word" ? (_lastBorder$room2 = (_lastBorder2 = lastBorder(token.pieces)) === null || _lastBorder2 === void 0 ? void 0 : _lastBorder2.room) !== null && _lastBorder$room2 !== void 0 ? _lastBorder$room2 : 0 : 0;
+ const leadOf = (state, wrapped = false) => roomBetween(state.border, startBorderOf(token)) + (wrapped || snapping ? 0 : kern);
+ const boxEnd = (_endBorderOf$room2 = (_endBorderOf2 = endBorderOf(token)) === null || _endBorderOf2 === void 0 ? void 0 : _endBorderOf2.room) !== null && _endBorderOf$room2 !== void 0 ? _endBorderOf$room2 : 0;
const needs = leadOf(line) + tokenWidth + boxEnd + (unsureAfter ? 0 : after);
if (unsureAfter && line.position + needs <= endOf(line) + TOLERANCE$2 && line.position + needs + after > endOf(line) + TOLERANCE$2) {
var _line$unsupported2;
@@ -9103,25 +9135,21 @@ var docxLayout = (function(exports) {
placeWord(rest, 0, after, unsureAfter);
return;
}
- if (line.tabsOnly === true) {
- var _line$unsupported4;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported4 = line.unsupported) !== null && _line$unsupported4 !== void 0 ? _line$unsupported4 : "a word with soft hyphens that doesn't fit after a tab that starts its line" });
- }
- if (line.started) {
+ if (line.started && line.tabsOnly !== true) {
line = wrap(line);
placeWord(token, 0, after, unsureAfter);
return;
}
}
const beyond = line.position + needs > endOf(line) + TOLERANCE$2;
- if (beyond && line.tabsOnly === true && token.type === "box") {
- var _line$unsupported5;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported5 = line.unsupported) !== null && _line$unsupported5 !== void 0 ? _line$unsupported5 : "a picture that doesn't fit after a tab that starts its line" });
+ if (beyond && line.afterNumber === true && token.type === "word" && startOf(lines.length + 1, false) + needs <= limitOf(lines.length + 1) + TOLERANCE$2) {
+ var _line$unsupported4;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported4 = line.unsupported) !== null && _line$unsupported4 !== void 0 ? _line$unsupported4 : "a word that doesn't fit after a list number's tab, and would fit on the next line" });
}
const overflows = line.started && beyond && (line.tabsOnly !== true || token.type === "box");
if (token.type === "box" && token.unbroken !== void 0 && beyond) {
- var _line$unsupported6;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported6 = line.unsupported) !== null && _line$unsupported6 !== void 0 ? _line$unsupported6 : token.unbroken });
+ var _line$unsupported5;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported5 = line.unsupported) !== null && _line$unsupported5 !== void 0 ? _line$unsupported5 : token.unbroken });
}
const neverSqueezed = snapping && (alignment === "justified" || alignment === "distributed");
if (overflows && !neverSqueezed && unsure(line, needs)) line = _objectSpread2(_objectSpread2({}, line), {}, { unknown: true });
@@ -9129,35 +9157,31 @@ var docxLayout = (function(exports) {
if (squeezable && snapping) line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: "a line justified for Thai or with a kashida on a grid that snaps to characters that only fits squeezed" });
const squeezed = squeezable && !snapping;
if (overflows && (!squeezed || alignment !== "justified") && token.type === "word" && mayHyphenate(line, token, leadOf(line))) {
- var _line$unsupported7;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported7 = line.unsupported) !== null && _line$unsupported7 !== void 0 ? _line$unsupported7 : MAY_HYPHENATE });
+ var _line$unsupported6;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported6 = line.unsupported) !== null && _line$unsupported6 !== void 0 ? _line$unsupported6 : MAY_HYPHENATE });
}
if (overflows && !squeezed) {
line = wrap(line);
skipRooms(needs, hyphens.length > 0);
tokenWidth = widthOn(line);
}
- if (token.type === "box" && token.text !== void 0 && !squeezed && line.position + tokenWidth > endOf(line) + TOLERANCE$2) {
- var _line$unsupported8;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported8 = line.unsupported) !== null && _line$unsupported8 !== void 0 ? _line$unsupported8 : "text fitted to a width wider than its line" });
- }
line = _objectSpread2(_objectSpread2({}, place(line)), {}, { position: line.position + leadOf(line, skipped || overflows && !squeezed) });
if (token.type === "word" && !squeezed && line.position + tokenWidth > endOf(line) + TOLERANCE$2 && limitOf() - startOf(lines.length, false) > 0) {
let placed = false;
let partStart = line.position;
if (mayHyphenate(line, token, 0)) {
- var _line$unsupported9;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported9 = line.unsupported) !== null && _line$unsupported9 !== void 0 ? _line$unsupported9 : MAY_HYPHENATE });
+ var _line$unsupported7;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported7 = line.unsupported) !== null && _line$unsupported7 !== void 0 ? _line$unsupported7 : MAY_HYPHENATE });
}
if (token.pieces.some(({ font }) => hasLigatures(font))) {
- var _line$unsupported10;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported10 = line.unsupported) !== null && _line$unsupported10 !== void 0 ? _line$unsupported10 : "a word longer than its line with ligatures" });
+ var _line$unsupported8;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported8 = line.unsupported) !== null && _line$unsupported8 !== void 0 ? _line$unsupported8 : "a word longer than its line with ligatures" });
}
let onLine = [];
let from = line.position;
for (const character of charactersOf(token.pieces)) {
- var _lastBorder$room3, _lastBorder3;
- const room = (_lastBorder$room3 = (_lastBorder3 = lastBorder(character)) === null || _lastBorder3 === void 0 ? void 0 : _lastBorder3.room) !== null && _lastBorder$room3 !== void 0 ? _lastBorder$room3 : 0;
+ var _lastBorder$room, _lastBorder;
+ const room = (_lastBorder$room = (_lastBorder = lastBorder(character)) === null || _lastBorder === void 0 ? void 0 : _lastBorder.room) !== null && _lastBorder$room !== void 0 ? _lastBorder$room : 0;
if (placed && from + widthOf([...onLine, ...character], measurer) + room > endOf(line) + TOLERANCE$2 && limitOf(lines.length + 1) - startOf(lines.length + 1, false) > 0) {
line = wrap(_objectSpread2(_objectSpread2({}, line), {}, {
heights: withToken(line.heights, token),
@@ -9204,8 +9228,9 @@ var docxLayout = (function(exports) {
between: line.spaceCount,
heights: withToken(line.heights, token),
started: true,
- border: token.type === "word" ? lastBorder(token.pieces) : void 0,
- tabsOnly: false
+ border: endBorderOf(token),
+ tabsOnly: false,
+ afterNumber: false
});
};
/**
@@ -9235,15 +9260,10 @@ var docxLayout = (function(exports) {
for (const [index, { hyphen, before, after, withHyphen, fits }] of splits.entries()) {
const squeezed = !fits && line.started && squeezesIn(line, withHyphen - line.position);
const shorter = squeezed ? splits.slice(index + 1).find((other) => other.fits) : void 0;
- if (shorter !== void 0 && alignment === "justified" && limitOf() - shorter.withHyphen < STRETCH_TO_SQUEEZE * (withHyphen - limitOf())) continue;
- if (shorter !== void 0) {
- var _line$unsupported11;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported11 = line.unsupported) !== null && _line$unsupported11 !== void 0 ? _line$unsupported11 : "a line that fits a soft hyphen's part squeezed, and a shorter one as it is with twice as much room or more" });
- }
- const { font: partFont } = before[before.length - 1];
- if ((fits || squeezed) && isKerned(partFont) && sameFont(partFont, hyphen.font)) {
- var _line$unsupported12;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported12 = line.unsupported) !== null && _line$unsupported12 !== void 0 ? _line$unsupported12 : "a line that breaks at a soft hyphen in kerned text, whose hyphen Word may kern" });
+ if (shorter !== void 0 && !squeezesForPart(line, shorter, withHyphen)) continue;
+ if (shorter !== void 0 && alignment === "distributed") {
+ var _line$unsupported9;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported9 = line.unsupported) !== null && _line$unsupported9 !== void 0 ? _line$unsupported9 : "a distributed line that fits a soft hyphen's part squeezed, rather than a shorter one as it is" });
}
if (fits || squeezed) {
const placed = place(line);
@@ -9268,7 +9288,7 @@ var docxLayout = (function(exports) {
}
};
for (const [index, token] of tokens.entries()) {
- var _line$border2;
+ var _line$border;
if (token.type === "marker") {
var _tokens;
const before = (_tokens = tokens[index - 1]) === null || _tokens === void 0 ? void 0 : _tokens.type;
@@ -9287,26 +9307,17 @@ var docxLayout = (function(exports) {
});
continue;
}
- if (token.type === "box" && token.below !== void 0) {
- var _line$border, _firstBorder2;
- const { key } = token.font.border;
- const following = tokens.slice(index + 1).find((other) => other.type !== "marker");
- if (((_line$border = line.border) === null || _line$border === void 0 ? void 0 : _line$border.key) === key || ((following === null || following === void 0 ? void 0 : following.type) === "word" || (following === null || following === void 0 ? void 0 : following.type) === "space") && ((_firstBorder2 = firstBorder(following.pieces)) === null || _firstBorder2 === void 0 ? void 0 : _firstBorder2.key) === key) {
- var _line$unsupported13;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported13 = line.unsupported) !== null && _line$unsupported13 !== void 0 ? _line$unsupported13 : "a picture in a border beside text in the same border" });
- }
- }
- line = token.type === "word" || token.type === "tab" && token.font.border !== void 0 && token.font.border.key === ((_line$border2 = line.border) === null || _line$border2 === void 0 ? void 0 : _line$border2.key) ? line : _objectSpread2(_objectSpread2({}, line), {}, {
+ line = token.type === "word" || token.type === "box" || token.type === "tab" && token.font.border !== void 0 && token.font.border.key === ((_line$border = line.border) === null || _line$border === void 0 ? void 0 : _line$border.key) ? line : _objectSpread2(_objectSpread2({}, line), {}, {
position: line.position + roomBetween(line.border, void 0),
border: void 0
});
if (snapping && token.type === "box" && token.descent !== void 0) {
- var _line$unsupported14;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported14 = line.unsupported) !== null && _line$unsupported14 !== void 0 ? _line$unsupported14 : "an equation on a grid that snaps to characters" });
+ var _line$unsupported10;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported10 = line.unsupported) !== null && _line$unsupported10 !== void 0 ? _line$unsupported10 : "an equation on a grid that snaps to characters" });
}
if (snapping && token.type !== "word") line = _objectSpread2(_objectSpread2({}, line), {}, { latin: void 0 });
if (token.type === "tab") {
- var _nextStop, _line$unsupported20;
+ var _nextStop, _line$unsupported14;
const numbered = numberTab ? { stop: numberTabStop(line.position, firstLineStops, format, defaultTabStop, limitOf()) } : void 0;
numberTab = false;
const given = line.first ? firstLineStops : stops;
@@ -9316,10 +9327,10 @@ var docxLayout = (function(exports) {
const own = !numbered && !olderPast && given.includes(next);
const pastIndent = own && indentRight > 0 && next.position > limitOf() + TOLERANCE$2 && next.position <= marginOf() + TOLERANCE$2;
const pastEnd = own && next.position > Math.max(limitOf(), marginOf()) + TOLERANCE$2 ? next : void 0;
- const unknown = pastIndent && squeezes && alignment !== "justified" ? "a tab stop past the paragraph's right indent in a distributed line" : pastIndent && next.alignment === "left" && next.position + widthAfterTab(rest, measurer) > marginOf() + TOLERANCE$2 ? "text after a tab stop past the paragraph's right indent that goes past the margin" : pastEnd === void 0 ? void 0 : pastEndUnknown(pastEnd, line.started, line.first);
+ const unknown = pastIndent && next.alignment === "left" && next.position + widthAfterTab(rest, measurer) > marginOf() + TOLERANCE$2 ? "text after a tab stop past the paragraph's right indent that goes past the margin" : pastEnd === void 0 ? void 0 : pastEndUnknown(pastEnd, line.started);
if (unknown !== void 0) {
- var _line$unsupported15;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported15 = line.unsupported) !== null && _line$unsupported15 !== void 0 ? _line$unsupported15 : unknown });
+ var _line$unsupported11;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported11 = line.unsupported) !== null && _line$unsupported11 !== void 0 ? _line$unsupported11 : unknown });
}
if ((pastEnd === null || pastEnd === void 0 ? void 0 : pastEnd.alignment) === "left" && unknown === void 0) {
const below = line.started ? wrap(line) : line;
@@ -9337,13 +9348,13 @@ var docxLayout = (function(exports) {
alignment: "right"
} : pastIndent ? next : (_nextStop = nextStop(line.position, given, defaultTabStop, limitOf())) !== null && _nextStop !== void 0 ? _nextStop : line.started ? nextStop(startOf(lines.length + 1, false), stops, defaultTabStop, limitOf(lines.length + 1)) : void 0;
if (stop === void 0) {
- var _line$unsupported16;
+ var _line$unsupported12;
line = _objectSpread2(_objectSpread2({}, line), {}, {
end: line.position,
text: `${line.text}\t`,
heights: withToken(line.heights, token),
started: true
- }, !snapping ? {} : { unsupported: (_line$unsupported16 = line.unsupported) !== null && _line$unsupported16 !== void 0 ? _line$unsupported16 : GRID_TAB });
+ }, !snapping ? {} : { unsupported: (_line$unsupported12 = line.unsupported) !== null && _line$unsupported12 !== void 0 ? _line$unsupported12 : GRID_TAB });
continue;
}
if (!numbered && stop.position <= line.position + TOLERANCE$2) line = wrap(line);
@@ -9359,45 +9370,38 @@ var docxLayout = (function(exports) {
* 6 ideographs at a right stop at 6000 start at 4646.1, and at a centred one at 4000 at 3323.1 (GR16c). Other
* text at those, and text at a decimal stop, haven't been seen there
*/
- const startAt = (at, { position: from, border }) => {
+ const startAt = (at, state) => {
+ const { position: from, border } = state;
const shifted = shiftAt(at.alignment, rest, measurer, border);
const textWidth = inCells(at) ? cellsAfterTab(rest) : shifted !== null && shifted !== void 0 ? shifted : widthAfterTab(rest, measurer);
- const stopped = Math.max(from, at.position - (inCells(at) && at.alignment === "center" ? textWidth / 2 : textWidth));
+ const pastEndAt = at.alignment === "center" && !inCells(at) ? endOf(state) - 2 * textWidth : Infinity;
+ const stopped = Math.max(from, Math.min(pastEndAt, at.position - (inCells(at) && at.alignment === "center" ? textWidth / 2 : textWidth)));
const cell = cellOn(lines.length);
- return {
+ const pastEndAtDecimal = at.alignment === "decimal" && shifted !== void 0 && stopped + widthAfterTab(rest, measurer, border) > endOf(state) + TOLERANCE$2;
+ return _objectSpread2({
lineUp: shifted,
position: cell === void 0 || inCells(at) ? stopped : Math.ceil(stopped / cell - GRID_ROUNDING) * cell
- };
+ }, pastEndAtDecimal ? { unsupported: "text at a decimal tab stop that goes past the end of the line" } : {});
};
const after = rest.find((other) => other.type !== "marker");
if (!numbered && !olderPast && token.font.listNumber !== "separator" && !aligned && !pastIndent && line.started && line.tabsOnly !== true && ((after === null || after === void 0 ? void 0 : after.type) === "word" || (after === null || after === void 0 ? void 0 : after.type) === "box")) {
- var _after$hyphens, _lastBorder$room4, _lastBorder4, _tokens$slice$findLas;
+ var _after$hyphens, _endBorderOf$room3, _endBorderOf3, _lastBorder$room2, _lastBorder2;
const hyphen = after.type === "word" ? (_after$hyphens = after.hyphens) === null || _after$hyphens === void 0 ? void 0 : _after$hyphens.find(({ at }) => at > 0 && at < lengthOf(after.pieces)) : void 0;
- const needs = after.type === "box" ? after.width : roomBetween(line.border, firstBorder(after.pieces)) + (hyphen === void 0 ? widthOf(after.pieces, measurer) + ((_lastBorder$room4 = (_lastBorder4 = lastBorder(after.pieces)) === null || _lastBorder4 === void 0 ? void 0 : _lastBorder4.room) !== null && _lastBorder$room4 !== void 0 ? _lastBorder$room4 : 0) : widthOf(splitPieces(after.pieces, hyphen.at)[0], measurer) + measurer.measureWidth("-", hyphen.font));
+ const needs = roomBetween(line.border, startBorderOf(after)) + (after.type === "box" ? after.width + ((_endBorderOf$room3 = (_endBorderOf3 = endBorderOf(after)) === null || _endBorderOf3 === void 0 ? void 0 : _endBorderOf3.room) !== null && _endBorderOf$room3 !== void 0 ? _endBorderOf$room3 : 0) : hyphen === void 0 ? widthOf(after.pieces, measurer) + ((_lastBorder$room2 = (_lastBorder2 = lastBorder(after.pieces)) === null || _lastBorder2 === void 0 ? void 0 : _lastBorder2.room) !== null && _lastBorder$room2 !== void 0 ? _lastBorder$room2 : 0) : widthOf(splitPieces(after.pieces, hyphen.at)[0], measurer) + measurer.measureWidth("-", hyphen.font));
const nextLine = nextStop(startOf(lines.length + 1, false), stops, defaultTabStop, limitOf(lines.length + 1));
- const inRow = ((_tokens$slice$findLas = tokens.slice(0, index).findLast((before) => before.type !== "marker")) === null || _tokens$slice$findLas === void 0 ? void 0 : _tokens$slice$findLas.type) === "tab";
if (startAt(stop, line).position + needs > endOf(line) + TOLERANCE$2 && nextLine !== void 0) {
- if (after.type === "box" || inRow) {
- var _line$unsupported17;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported17 = line.unsupported) !== null && _line$unsupported17 !== void 0 ? _line$unsupported17 : inRow ? "a word that doesn't fit after tabs in a row" : "a picture that doesn't fit after a tab" });
- } else {
- if (hyphen !== void 0) {
- var _line$unsupported18;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported18 = line.unsupported) !== null && _line$unsupported18 !== void 0 ? _line$unsupported18 : "a word with soft hyphens whose first part doesn't fit after a tab" });
- }
- line = wrap(line);
- stop = nextLine;
- }
+ line = wrap(line);
+ stop = nextLine;
}
}
line = _objectSpread2(_objectSpread2(_objectSpread2({}, place(line)), pastIndent ? { pastIndent } : {}), olderPast ? { unbroken: olderPast } : {});
- const { lineUp, position } = startAt(stop, line);
- const misaligned = lineUp === void 0 ? "text at a decimal tab stop that Word hasn't been seen lining up" : void 0;
+ const { lineUp, position, unsupported: pastEndAtStop } = startAt(stop, line);
+ const misaligned = lineUp === void 0 ? "text at a decimal tab stop that Word hasn't been seen lining up" : pastEndAtStop;
if (snapping && !inCells(stop) && (stop.alignment !== "left" || starting === void 0)) {
- var _line$unsupported19;
- line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported19 = line.unsupported) !== null && _line$unsupported19 !== void 0 ? _line$unsupported19 : GRID_TAB });
+ var _line$unsupported13;
+ line = _objectSpread2(_objectSpread2({}, line), {}, { unsupported: (_line$unsupported13 = line.unsupported) !== null && _line$unsupported13 !== void 0 ? _line$unsupported13 : GRID_TAB });
}
- line = _objectSpread2(_objectSpread2({}, line), {}, {
+ line = _objectSpread2(_objectSpread2(_objectSpread2({}, line), {}, {
position,
end: position,
text: `${line.text}\t`,
@@ -9408,8 +9412,8 @@ var docxLayout = (function(exports) {
letters: 0,
otherSpaces: 0,
started: true,
- tabsOnly: !line.started || line.tabsOnly === true
- }, misaligned === void 0 ? {} : { unsupported: (_line$unsupported20 = line.unsupported) !== null && _line$unsupported20 !== void 0 ? _line$unsupported20 : misaligned });
+ tabsOnly: !line.started || line.tabsOnly === true || token.font.listNumber === "separator"
+ }, token.font.listNumber === "separator" ? { afterNumber: true } : {}), misaligned === void 0 ? {} : { unsupported: (_line$unsupported14 = line.unsupported) !== null && _line$unsupported14 !== void 0 ? _line$unsupported14 : misaligned });
continue;
}
const [space, nextWord] = token.type === "word" && format.rightToLeft !== true ? nextTwo(tokens, index) : [];
@@ -35527,9 +35531,10 @@ var docxLayout = (function(exports) {
/**
* Reads a drawing in a run (`w:drawing`): a picture in the line is a box, with its run's font, and one that text doesn't
* flow around, such as one behind the text, takes up no room. A picture in the line in a border of its run has its border's
- * room around it, beside it and above and below it: one of 20 points with a border of 1.5 points 2 points away takes 400
- * and 70 twips each side across the line, 470 above the baseline and 70 below it (scripts/layout-probes/stops2/word-stops-text2.ts
- * RF32b).
+ * room above it and below the baseline, and its box's room each side across the line as a word in the border has, which
+ * goes on round text in the same border beside it: one of 20 points with a border of 1.5 points 2 points away takes 470
+ * twips above the baseline and 70 below it, and 70 each side, or none beside text in the same border
+ * (scripts/layout-probes/stops2/word-stops-text2.ts RF32b, stops2/word-stops-text3.ts RF32d).
*/
var readDrawing = (element, font, reader) => {
const [drawing] = childrenOf(element["w:drawing"]);
@@ -35547,7 +35552,7 @@ var docxLayout = (function(exports) {
const room = (_font$border$room = (_font$border = font.border) === null || _font$border === void 0 ? void 0 : _font$border.room) !== null && _font$border$room !== void 0 ? _font$border$room : 0;
return [_objectSpread2({
type: "box",
- width: emus(extent.cx, effect.l, effect.r, around.distL, around.distR) / EMUS_PER_POINT + 2 * room,
+ width: emus(extent.cx, effect.l, effect.r, around.distL, around.distR) / EMUS_PER_POINT,
height: emus(extent.cy, effect.t, effect.b, around.distT, around.distB) / EMUS_PER_POINT + room,
font
}, room > 0 ? { below: room } : {})];
@@ -36119,7 +36124,7 @@ var docxLayout = (function(exports) {
font
}];
}
- case "w:ruby": return guessedOr(reader, "text with a phonetic guide", () => readInline(childrenOf(find(childrenOf(child["w:ruby"]), "w:rubyBase")), paragraphRun, reader, removed));
+ case "w:ruby": return readRuby(child, paragraphRun, reader, removed);
case "w:contentPart": return "a content part, such as ink";
default: return [];
}
@@ -36128,6 +36133,62 @@ var docxLayout = (function(exports) {
const fitText = find(childrenOf(properties), "w:fitText");
return typeof runItems === "string" || format.hidden || fitText === void 0 ? runItems : fittedOf(runItems, attributesOf(fitText), reader);
};
+ /**
+ * Text with a phonetic guide over it (`w:ruby`): its base, with the guide, as a box a line doesn't break. Word makes it as
+ * wide as the wider of the two, with the narrower spread across it or centred on it as its alignment says: kana of 5.5
+ * points 990 twips wide over two ideographs of 11, spread with half a share of the room at each end, over two of 20 points,
+ * 800 wide, and two ideographs of 11 under kana of 5.5, 440 wide, and under kana of 11, 660 (scripts/layout-probes/stops2/word-stops-text2.ts
+ * RF31b to RF31d, stops2/word-stops-text3.ts RF31e, RF31i). Its line is as tall as its base makes it, and as the guide
+ * raised over the base's baseline by its raise (`w:hpsRaise`), as text raised that far: kana of 5.5 points raised 15 make
+ * a line of Calibri 11 475 twips, kana of 8 raised 10 427, kana of 11 raised 10 484, and "guide" in Calibri 5.5 raised 10
+ * 365, and kana of 5.5 raised 0 or 5 make it no taller than their base of MS Mincho 11 does, 283 (RF31e to RF31l). Or why
+ * it can't be laid out: a guide or base with other than text in it, in more than one font, or of another size than the
+ * guide's properties give (`w:hps`, `w:hpsBaseText`), or a guide without a raise, which haven't been seen. Guessing, its
+ * base alone
+ */
+ var readRuby = (element, paragraphRun, reader, removed) => {
+ var _guideText$font$size, _baseText$font$size, _guideText$font$raise;
+ const children = childrenOf(element["w:ruby"]);
+ const properties = childrenOf(find(children, "w:rubyPr"));
+ const base = readInline(childrenOf(find(children, "w:rubyBase")), paragraphRun, reader, removed);
+ const guide = readInline(childrenOf(find(children, "w:rt")), paragraphRun, reader, removed);
+ if (typeof base === "string" || typeof guide === "string") return typeof base === "string" ? base : guide;
+ /** The text of the guide or its base, in its one font, or why it isn't that */
+ const textOf = (items) => {
+ const texts = items.filter((item) => item.type === "text");
+ if (texts.length === 0 || items.some((item) => item.type !== "text" && item.type !== "marker")) return "a phonetic guide, or its base, with other than text in it";
+ return texts.some(({ font }) => !sameFont(font, texts[0].font)) ? "a phonetic guide, or its base, in more than one font" : {
+ text: texts.map(({ text }) => text).join(""),
+ font: texts[0].font
+ };
+ };
+ const baseText = textOf(base);
+ const guideText = textOf(guide);
+ const baseAlone = () => base;
+ if (typeof baseText === "string") return guessedOr(reader, baseText, baseAlone);
+ if (typeof guideText === "string") return guessedOr(reader, guideText, baseAlone);
+ const sizeOf = (name) => {
+ const halfPoints = numberOf(attributesOf(find(properties, name))["w:val"]);
+ return halfPoints === void 0 ? void 0 : halfPoints / 2;
+ };
+ const raise = sizeOf("w:hpsRaise");
+ if (raise === void 0) return guessedOr(reader, "a phonetic guide without a raise", baseAlone);
+ if ([[sizeOf("w:hps"), (_guideText$font$size = guideText.font.size) !== null && _guideText$font$size !== void 0 ? _guideText$font$size : 10], [sizeOf("w:hpsBaseText"), (_baseText$font$size = baseText.font.size) !== null && _baseText$font$size !== void 0 ? _baseText$font$size : 10]].some(([property, own]) => property !== void 0 && Math.abs(property - own) > SIZE_TOLERANCE)) return guessedOr(reader, "a phonetic guide, or its base, of another size than the guide's properties give", baseAlone);
+ const guideFont = _objectSpread2(_objectSpread2({}, guideText.font), {}, { raise: ((_guideText$font$raise = guideText.font.raise) !== null && _guideText$font$raise !== void 0 ? _guideText$font$raise : 0) + raise });
+ return [...[...base, ...guide].filter((item) => item.type === "marker"), {
+ type: "box",
+ width: 0,
+ height: 0,
+ font: baseText.font,
+ text: baseText.text,
+ otherText: [{
+ text: guideText.text,
+ font: guideFont
+ }],
+ asWideAsText: true
+ }];
+ };
+ var SIZE_TOLERANCE = .01;
/** The id of the region of text fitted to a width that each box of it is in, when it has one */
var FITTED = /* @__PURE__ */ new WeakMap();
/**
@@ -36155,14 +36216,14 @@ var docxLayout = (function(exports) {
/**
* A paragraph's items with the text of runs fitted to a width with the same id (`w:id`), one after the other, in one box,
* as Word fits them to their width together: "fitted " and a bold "text", fitted to 2000 twips, are 2000 wide
- * (scripts/layout-probes/stops2/word-stops-text2.ts RF29c). Or why they can't be laid out: ones of other sizes or fonts,
- * whose line Word hasn't been seen to size. Guessing, those are fitted apart
+ * (scripts/layout-probes/stops2/word-stops-text2.ts RF29c), and "fitted " of 11 points and "text" of 16, fitted to 3000,
+ * are 3000 wide, in a line as tall as Calibri 16's (stops2/word-stops-text3.ts RF29f).
*/
- var withFitted = (read, reader) => {
+ var withFitted = (read) => {
if (typeof read === "string") return read;
const all = [];
for (const item of read) {
- var _FITTED$get, _FITTED$get2;
+ var _FITTED$get, _FITTED$get2, _before$otherText;
const id = (_FITTED$get = FITTED.get(item)) === null || _FITTED$get === void 0 ? void 0 : _FITTED$get.id;
const at = all.findLastIndex((other) => other.type !== "marker");
if (id === void 0 || at === -1 || ((_FITTED$get2 = FITTED.get(all[at])) === null || _FITTED$get2 === void 0 ? void 0 : _FITTED$get2.id) !== id) {
@@ -36170,13 +36231,10 @@ var docxLayout = (function(exports) {
continue;
}
const [before, after] = [all[at], item];
- if (before.font.font !== after.font.font || before.font.size !== after.font.size) {
- const reason = "text fitted to a width in runs of other sizes or fonts";
- if (!reader.guess) return reason;
- all.push(guessMarker(reason), item);
- continue;
- }
- const joined = _objectSpread2(_objectSpread2({}, before), {}, { text: `${before.text}${after.text}` });
+ const joined = _objectSpread2(_objectSpread2({}, before), {}, { text: `${before.text}${after.text}` }, sameFont(before.font, after.font) ? {} : { otherText: [...(_before$otherText = before.otherText) !== null && _before$otherText !== void 0 ? _before$otherText : [], {
+ text: after.text,
+ font: after.font
+ }] });
FITTED.set(joined, { id });
all[at] = joined;
}
@@ -36674,7 +36732,7 @@ var docxLayout = (function(exports) {
...list.level ? [list.level.paragraph] : [],
readParagraphFormat(properties)
];
- const read = withEquations(withFitted(readInline(children, paragraphRun, reader), reader), list.items.length > 0, reader);
+ const read = withEquations(withFitted(readInline(children, paragraphRun, reader)), list.items.length > 0, reader);
const guessed = typeof read === "string" ? void 0 : read.map(guessOf).find((reason) => reason !== void 0);
const items = typeof read === "string" ? read : read.filter((item) => guessOf(item) === void 0);
const ownFormat = combine(formats);
@@ -39556,17 +39614,13 @@ var docxLayout = (function(exports) {
}) ? UNKNOWN_CHARACTER : void 0;
/**
* Why how Word kerns a paragraph's text, or joins its letters into ligatures, isn't known to the measurer, when it
- * isn't. Text in the same font, kerned or with ligatures, is measured across runs, and so is checked across them. Kerned
- * text isn't kerned across a soft hyphen (see `textMeasuredTogether`), but whether Word joins letters into ligatures
- * across one hasn't been seen
+ * isn't. Text in the same font, kerned or with ligatures, is measured across runs, and so is checked across them, but
+ * not across a soft hyphen, which Word neither kerns nor joins letters across (see `textMeasuredTogether`)
*/
- const unknownShapingIn = (inline) => {
- const together = textMeasuredTogether(inline);
- return together.some(({ besideSoftHyphen }) => besideSoftHyphen) ? "ligatures beside a soft hyphen" : together.map(({ text, font }) => {
- var _measurer$unknownShap;
- return (_measurer$unknownShap = measurer.unknownShaping) === null || _measurer$unknownShap === void 0 ? void 0 : _measurer$unknownShap.call(measurer, text, font);
- }).find(Boolean);
- };
+ const unknownShapingIn = (inline) => textMeasuredTogether(inline).map(({ text, font }) => {
+ var _measurer$unknownShap;
+ return (_measurer$unknownShap = measurer.unknownShaping) === null || _measurer$unknownShap === void 0 ? void 0 : _measurer$unknownShap.call(measurer, text, font);
+ }).find(Boolean);
/**
* How tall a text box in the line is: its paragraphs, broken in the room for its text, which is its width less its
* insets and its outline (`word-stops-floats2.docx` TX1a to TX1k), and the room above and below them; or its own
@@ -39704,13 +39758,10 @@ var docxLayout = (function(exports) {
});
};
const linesHeight = (lines) => sum(lines.map(({ height }) => height));
- /** The space below the text of the last line of what is kept together, which may go below the page, and whether a grid leaves it */
+ /** The space below the text of the last line of what is kept together, which may go below the page */
const belowOf = (last) => {
var _last$spacingBelow;
- return {
- spacingBelow: (_last$spacingBelow = last === null || last === void 0 ? void 0 : last.spacingBelow) !== null && _last$spacingBelow !== void 0 ? _last$spacingBelow : 0,
- belowOnGrid: (last === null || last === void 0 ? void 0 : last.belowOnGrid) === true
- };
+ return { spacingBelow: (_last$spacingBelow = last === null || last === void 0 ? void 0 : last.spacingBelow) !== null && _last$spacingBelow !== void 0 ? _last$spacingBelow : 0 };
};
/** How tall lines are on a page, at the bottom of which the multiple spacing of their last can go below it */
const heightToFit = (lines) => {
@@ -39721,7 +39772,7 @@ var docxLayout = (function(exports) {
* Whether what is kept together, `height` tall from `from`, fits above `end`, with its last line's multiple spacing
* below it when that can be (`hangsBelow`)
*/
- const fitsAbove = (from, { height, spacingBelow, belowOnGrid }, end, aboveNotes) => from + height <= end + TOLERANCE || from + height - spacingBelow <= end + TOLERANCE && hangsBelow(aboveNotes, false, belowOnGrid === true);
+ const fitsAbove = (from, { height, spacingBelow }, end, aboveNotes) => from + height <= end + TOLERANCE || from + height - spacingBelow <= end + TOLERANCE && hangsBelow(aboveNotes);
/**
* How narrow and how wide the paragraphs and tables in a table cell can be, and whether Word may hyphenate a word as
* wide as the narrowest of them
@@ -40102,14 +40153,13 @@ var docxLayout = (function(exports) {
* below the bottom of the page, as Word lets it (`word-mixed-heights.docx` MH1c, `word-grid.docx` G1), for a line that
* fits only without it, and below the bottom of columns evened out by a continuous section break (scripts/layout-probes/stops2/word-stops-text.ts
* PB7b: the last of four lines at double spacing at the foot of the second column, as it would be without its space
- * below counted). Above footnotes, multiple spacing's can't go into them: a line at double spacing that fits above the
- * page's footnote only without its space below goes on to the next page (stops2/word-stops-text2.ts PB7e). Stops where
- * Word hasn't shown it: a grid's room above footnotes, and room above a paragraph's border below. Guessing, it goes
- * there
+ * below counted). Above footnotes, neither can go into them: a line at double spacing that fits above the page's
+ * footnote only without its space below goes on to the next page (stops2/word-stops-text2.ts PB7e), and so does a line
+ * on a grid of 360 twips whose room below its text would go a twip to 41 into them (stops2/word-stops-text3.ts PB7h to
+ * PB7j). Stops where Word hasn't shown it: room above a paragraph's border below. Guessing, it goes there
*/
- const hangsBelow = (aboveNotes, aboveBorder = false, onGrid = false) => {
- if (aboveNotes && !onGrid) return false;
- if (aboveNotes) stopAt("a line whose room a document grid leaves below its text goes below it into the footnotes");
+ const hangsBelow = (aboveNotes, aboveBorder = false) => {
+ if (aboveNotes) return false;
if (aboveBorder) stopAt("a line whose room below its text goes below the page, above its paragraph's border");
return true;
};
@@ -42006,7 +42056,7 @@ var docxLayout = (function(exports) {
const room = linesBottom() - position - space;
const ends = index + linesUpTo(rows.length) === lines.length;
const notesOnPage = noteArea > 0 || reserved() > 0;
- const hangs = (upTo) => hangsBelow(notesOnPage || notesOf(upTo).length > 0, ends && upTo === remaining.length && paragraph.borderBelow > 0, remaining[upTo - 1].belowOnGrid === true);
+ const hangs = (upTo) => hangsBelow(notesOnPage || notesOf(upTo).length > 0, ends && upTo === remaining.length && paragraph.borderBelow > 0);
const { fits, count: kept } = linesThatFit(remaining, room, paragraph, isFirstLine, (upTo) => noteCost(leastNoteRoom(notesOf(upTo))) + (ends && upTo === remaining.length ? paragraph.borderBelow : 0), hangs);
const moved = movedFromPage();
const movedLine = remaining.findIndex(({ markers }) => markers.some((marker) => moved.includes(marker)));
diff --git a/live-examples/lib/shapes.iife.js b/live-examples/lib/shapes.iife.js
index 351c9b4626..5fa0d5fa67 100644
--- a/live-examples/lib/shapes.iife.js
+++ b/live-examples/lib/shapes.iife.js
@@ -5105,18 +5105,21 @@ var docxShapes = (function(exports, docx) {
* How wide a run's border is as Word draws it, in eighths of a point: as a paragraph's of its style. A border of no style
* ("none") takes its space still, but no width (scripts/layout-probes/word-run-formatting.ts RF7h). An art border's size
* is in points, so apples of 12 take 12 points (scripts/layout-probes/stops2/word-stops-text.ts RF25c), and Word draws a
- * single border of an eighth of a point, and a double one of none, as given (RF25f, RF25e). A shadow doubles a single
- * line, as a paragraph's (`word-paragraph-formats.docx` B6), and one drawn as a frame is as wide: one of 1.5 points 2
- * points from the text takes 100 twips beside and above and below it with a shadow, and 70 as a frame
- * (scripts/layout-probes/stops2/word-stops-text2.ts RF24c, RF24d). Undefined when Word hasn't been seen to draw it.
+ * single border of an eighth of a point, and a double one of none, as given (RF25f, RF25e). A shadow doubles the line as
+ * Word draws it, whatever its style, as a paragraph's (`word-paragraph-formats.docx` B6), and one drawn as a frame is as
+ * wide: a single line of 1.5 points 2 points from the text takes 100 twips beside and above and below it with a shadow, and
+ * 70 as a frame, a double line of half a point, which Word draws 1.5 wide, 100 with a shadow, and a dotted one of 1.5 70 as
+ * a frame (scripts/layout-probes/stops2/word-stops-text2.ts RF24c, RF24d, stops2/word-stops-text3.ts RF24e, RF24f).
+ * Undefined when Word hasn't been seen to draw it, as with a shadow or frame on an art border, a line of no style or one
+ * narrower than Word draws.
*/
var runBorderWidth = ({ style, size, shadow, frame }) => {
var _BORDER_WIDTHS$style, _BORDER_WIDTHS$style2, _SEEN_RUN_BORDERS$sty;
if (size === void 0) return style === "none" && !shadow && !frame ? 0 : void 0;
- if (shadow || frame) return style === "single" && size >= 2 && size <= 96 ? (shadow ? 2 : 1) * size : void 0;
- if (isArtBorder(style)) return size >= 1 && size <= 31 ? size * EIGHTHS_PER_POINT : void 0;
- if (style === "single" && size === 1 || style === "double" && size === 0) return BORDER_WIDTHS[style](size);
- return style === "none" ? 0 : size < 2 || size > 96 ? void 0 : (_BORDER_WIDTHS$style = (_BORDER_WIDTHS$style2 = BORDER_WIDTHS[style]) === null || _BORDER_WIDTHS$style2 === void 0 ? void 0 : _BORDER_WIDTHS$style2.call(BORDER_WIDTHS, size)) !== null && _BORDER_WIDTHS$style !== void 0 ? _BORDER_WIDTHS$style : (_SEEN_RUN_BORDERS$sty = SEEN_RUN_BORDERS[style]) === null || _SEEN_RUN_BORDERS$sty === void 0 ? void 0 : _SEEN_RUN_BORDERS$sty[size];
+ if (isArtBorder(style)) return size >= 1 && size <= 31 && !shadow && !frame ? size * EIGHTHS_PER_POINT : void 0;
+ const drawn = style === "single" && size === 1 || style === "double" && size === 0 ? BORDER_WIDTHS[style](size) : style === "none" ? 0 : size < 2 || size > 96 ? void 0 : (_BORDER_WIDTHS$style = (_BORDER_WIDTHS$style2 = BORDER_WIDTHS[style]) === null || _BORDER_WIDTHS$style2 === void 0 ? void 0 : _BORDER_WIDTHS$style2.call(BORDER_WIDTHS, size)) !== null && _BORDER_WIDTHS$style !== void 0 ? _BORDER_WIDTHS$style : (_SEEN_RUN_BORDERS$sty = SEEN_RUN_BORDERS[style]) === null || _SEEN_RUN_BORDERS$sty === void 0 ? void 0 : _SEEN_RUN_BORDERS$sty[size];
+ if (shadow || frame) return drawn === void 0 || style === "none" || size < 2 ? void 0 : (shadow ? 2 : 1) * drawn;
+ return drawn;
};
/**
* The room a run's border takes, beside the run and above and below it: its space and its width, as Word gives it room (a
diff --git a/usage/layout.md b/usage/layout.md
index 8c24462bad..d17a618c29 100644
--- a/usage/layout.md
+++ b/usage/layout.md
@@ -206,7 +206,7 @@ The pages are laid out with the widths and heights of the characters of the font
- keeping a paragraph with the next, keeping its lines together, widow and orphan control, and page breaks
- numbered and bulleted lists, including those a paragraph's style numbers it in, counted as Word counts them: lists made from the same definition count on from one another, and a list's own first number for a level, which `docx` writes for each `instance` of a list, starts that level there at the list's first paragraph of that level. A level starts again after any level above it, or only after the level it gives, or never (`w:lvlRestart`), and a legal level (`isLegalNumberingStyle`) writes every level's number in decimal. A number is in its paragraph mark's formatting (`run` on a `Paragraph`), but for what its level gives it (`style.run`), and makes its line taller only above the baseline, with multiple line spacing a share of its text's line more, as Word lays it out. Its emphasis marks, and a number raised or lowered, take room as text's do. A line with nothing but a number is as tall as its paragraph's mark, or as the number above the baseline where that is taller. A number aligned to the right (`AlignmentType.END` or `RIGHT`) ends at the start of its paragraph's first line, and a centred one, with the space after it, is centred there, so a wide number can go into the margin, as Word puts it, and the text after it goes on from its end, at the hanging indent or the next tab stop after it. After a number aligned to the right, the tab goes to the next stop past its end, or, without a first line or hanging indent, to the left indent, where the number ends. Word measures the space after a number (`LevelSuffix.SPACE`) in Arial, and so does the layout. Word writes Thai and Hindi words (`thaiCounting`, `hindiCounting`) from 1 to 5. A level whose text shows a level its list doesn't have, or aligned as justified text is (`w:lvlJc` both), Word leaves out, as though it weren't there: its paragraphs have no number, nor the level's indent, and another level's number shows nothing for it
- footnotes, which take room at the bottom of the page their reference is on, and endnotes, which follow the text. A footnote that doesn't fit below its reference continues at the bottom of the next page, as Word continues it: it breaks between its paragraphs and table rows, and inside a paragraph keeping to its widow and orphan control, and its reference's line moves to the next page with it when too little of it would stay. A first paragraph kept together, or kept with the next, stays with its reference whole, with the first lines of what it is kept with. A footnote breaks before a later paragraph kept together, and before paragraphs kept with the next with what they are kept with, as the text does, unless they start its part on the page, which would leave none of it, where it breaks as without them, as the text does at the top of a page. It breaks before a table row whose lines widow control keeps together, and in a row whose lines could go on both pages, between its cells' lines, as a row of the text breaks, with the rest of the row at the top of the next page's footnotes, as Word breaks it. A footnote or endnote that ends with a table has a line below it for the empty paragraph Word puts after the table. A table's header rows aren't repeated above the rest of a footnote on the next page, nor left alone at the bottom of a page, as the table goes on the next page then. The footnote of a line kept with a longer paragraph goes below the first lines of it that the line is kept with, and of one kept with a table, below its first row, and the rest goes on the next page. One longer than a page fills the pages after it, and the text goes on above its end. Before the next section, whether it starts on a new page or not, and before a paragraph with a page break before it, the rest of a footnote goes on pages of its own, which belong to the section its reference is in, and the new section or paragraph starts after them. Before a continuous section, those pages show that section's header and footer, as Word shows them, and in columns, the rest is evened out in the columns of its last page. After a footnote that continues from the page before, the text after a page break at the start of a paragraph goes on the page the footnote ends on, as Word puts it. Before a continuous section numbered afresh, Word numbers each of those pages with the section's first number, and so does `docx/layout`. Before a continuous section, the number of pages of the section the footnote is in isn't worked out, as Word counts it its own way, and the next section's is its own pages, as Word counts them. A line whose footnote can't go on a page with it, such as one that starts with a paragraph kept together that is taller than a page, goes at the top of a page, with the text after it, from the top of a later column too, and the footnote starts on the next page, with those referred to after it after it, the last of those going on to the next page as far as it doesn't fit below its end. So does the last of a line's footnotes that doesn't fit below the others, and the footnote of a table row at the top of a page that fits there, but not with it. In columns, a line referring to a footnote below one that continues on the next page goes on the next page with it. A table row refers to footnotes as a line does: it moves to the next page with a footnote that doesn't fit below it, and one that breaks across pages has each line's footnote on the page the line is on, and breaks after a line whose footnote continues. A table row in a footnote breaks across as many pages as it takes, as Word breaks it, and moves to the next page whole where a cell of it would have none of its lines on the page. Where its footnotes fit whole below fewer of its lines, with the lines that refer to them, it breaks there instead, as Word breaks a row with a table in a cell beside a line whose footnote would otherwise continue. In columns, the footnotes of a page are laid out in the columns too, as Word lays them out: one after the other from the first column, evened out, each part broken at the width of the column it is in, and every column ends above them. Footnotes from another section on the page go on in the columns of its first footnote's. A line or table row in columns whose footnotes don't fit below it moves to the next column, or the next page, with all of them, as Word moves it, and the page is left as it was when a reference moves on as its columns are laid out again for its footnote. At the top of the page's columns, or of the column a section starts in after the section before's, a line stays, and its footnote goes on the page as far as it fits below the lines of every column, with the text going on above it, and continues at the foot of the next page's columns. At the top of a later column, the columns before it are laid out again above as much of the footnote as leaves the line on the page, as Word lays them out: a footnote of 120 lines referred to from line 11 of the first of 2 columns takes 44 lines of each, the columns above it 6, and its reference goes on in the second. The separator above the endnotes goes on the page of their first line, and on each page after the first they are on, the continuation separator is above them, as Word puts them. Each is a line of its paragraph style's text tall, at single spacing, whatever its own spacing, line spacing, size, text and paragraphs, as Word lays them out. A footnote's paragraph borders take room as in the text. Below the continuation separator, as many lines of endnotes go on the page as fit on it without it, so the last can go past the bottom margin by as much as the separator takes, as Word puts them. Footnotes and endnotes are numbered as Word numbers them, 1, 2, 3 and i, ii, iii, or in the format and from the number a document or its sections give, afresh in each section when they say so, and footnotes afresh on each page. A section's own start number adds to the number of notes before it, as Word adds it: after 27 footnotes, a section numbered from 5 numbers its first 32. A footnote or endnote with a mark of its own in place of its number isn't counted, footnotes numbered afresh on each page are numbered on from those of the page numbered so in another section, and a section's footnotes can go just below the text of their page, rather than at its bottom, below the space after a section's last paragraph and the rest of one continued from the page before too, or in columns of their own, evened out, as Word puts them. Word puts the endnotes of a section that says they go at the end of it at the end of the document, unless the document's settings say so too, when each section's go after it, after a separator of their own, but for a section that suppresses its own, whose go after the next's, and so does `docx/layout`. After text in columns, the text is evened out above the endnotes, which are laid out in the columns below their separator, in the first column, the continuation separator at the top of the first column only on the next page, and evened out in the columns they end in, as Word lays them out
-- run formatting that changes how much room text takes, as Word lays it out. Superscript and subscript (`superScript`, `subScript`) are drawn at 65% of the text's size, to the nearest half-point and down from a quarter, so 7 points at 11 and 9.5 at 15, and small capitals (`smallCaps`) at 80%, so 9 points at 11; both take up the line of their run's own size, so they never make a line taller. Raised and lowered text (`position`) raises the line's top or lowers its bottom by as much as it goes past the rest of the line: a word raised 6 points makes a line of Calibri 11 120 twips taller, and a smaller word raised a little none. Emphasis marks (`emphasisMark`) take a quarter of their line, over it, or under it for dots below, and both on a line with marks over and under it, with a picture in the line counted in it; line spacing that gives a line less room than a quarter of it adds it below the marks' room, and spacing that gives it at least that, such as 1.25 lines, holds the marks, and spacing of less than a line makes the line and the marks' room that share of themselves. A border around text (`border` on a `TextRun`) takes its space and its width on each side of the text, and above and below it, as wide as a paragraph's border of its style, an art border its size in points, and a space past 31 points only what is left over 32: two runs next to each other with the same border are in one box, a box that goes on to the next line starts again there, also in a word broken across lines, and a line keeps room for its box to end after its last word. A shadow doubles a single border's width, and one drawn as a frame takes the room it takes without (`w:shadow`, `w:frame`, in documents Word made), and a picture in the line in a run with a border has its border's room around it, beside it and above and below it. Text fitted to a width (`w:fitText`, in documents Word made) is one box of that width, which goes on to the next line whole when it doesn't fit, and runs one after the other fitted with the same id are one box. Two lines in one (`w:eastAsianLayout` with `w:combine`) of text that isn't Chinese, Japanese or Korean is drawn at half its size on one row, as Word draws it
+- run formatting that changes how much room text takes, as Word lays it out. Superscript and subscript (`superScript`, `subScript`) are drawn at 65% of the text's size, to the nearest half-point and down from a quarter, so 7 points at 11 and 9.5 at 15, and small capitals (`smallCaps`) at 80%, so 9 points at 11; both take up the line of their run's own size, so they never make a line taller. Raised and lowered text (`position`) raises the line's top or lowers its bottom by as much as it goes past the rest of the line: a word raised 6 points makes a line of Calibri 11 120 twips taller, and a smaller word raised a little none. Emphasis marks (`emphasisMark`) take a quarter of their line, over it, or under it for dots below, and both on a line with marks over and under it, with a picture in the line counted in it; line spacing that gives a line less room than a quarter of it adds it below the marks' room, and spacing that gives it at least that, such as 1.25 lines, holds the marks, and spacing of less than a line makes the line and the marks' room that share of themselves. A border around text (`border` on a `TextRun`) takes its space and its width on each side of the text, and above and below it, as wide as a paragraph's border of its style, an art border its size in points, and a space past 31 points only what is left over 32: two runs next to each other with the same border are in one box, a box that goes on to the next line starts again there, also in a word broken across lines, and a line keeps room for its box to end after its last word. A shadow doubles a border's width as Word draws it, whatever its style, and one drawn as a frame takes the room it takes without (`w:shadow`, `w:frame`, in documents Word made), and a picture in the line in a run with a border has its border's room around it, beside it and above and below it, in one box with text in the same border either side of it, and multiple line spacing adds its share of the run's line with the border's room above and below. Text fitted to a width (`w:fitText`, in documents Word made) is one box of that width, which goes on to the next line whole when it doesn't fit, or takes a line of its own and goes past its end when it is wider than the line, and runs one after the other fitted with the same id are one box, as tall as the tallest of their lines. Text with a phonetic guide over it (`w:ruby`, in documents Word made) is one box as wide as the wider of the guide and its base, and its line is as tall as the base makes it and as the guide raised over the base's baseline by its raise (`w:hpsRaise`), as text raised that far. Two lines in one (`w:eastAsianLayout` with `w:combine`) of text that isn't Chinese, Japanese or Korean is drawn at half its size on one row, as Word draws it
- 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. A line of only a picture isn't as tall as a larger paragraph mark, at single spacing
- 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, and none when the next word doesn't fit, nor in a room narrower than 18 points, so a line with no wider room goes below the drawing. 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: the inside and outside margins are those it is placed against on its page. Lined up inside or outside against the margins, it is lined up with them, and against the page, down it, it is at the top of the page, inside on odd pages and outside on even ones, half the header's distance from the page's top below it, and at the bottom otherwise, half the footer's distance above it. One placed by its simple position is placed from the page's top left corner by that. 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, above footnotes too, 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. Where that moves the paragraph on to the next page, it starts there with the drawing, and the page is laid out again without it. Of two drawings that may not overlap (`allowOverlap: false`), the later is moved out of the way across the page, at the height it was placed at: to the right of the other, their boxes side by side, or to the left of it when it is lined up at the right. A table that fits beside a drawing at its indent goes beside it, as does one that fits past a drawing on its left, with its indent from there, and one that doesn't fit goes below it; one sized to its text goes beside it as wide as it is in the column. 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. Those with drawings of their own move to the next page with the next, and their drawings with them, and those kept with a table stay where they are when the next starts on their page. 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. A drawing that text wraps around in a header or footer, placed against the page or its margins, is on each page that shows the header or footer, and the body's text goes round it as round its own, as Word lays it out. So is one in the first line of a header's first paragraph placed against its paragraph or line, which is the top of the header, and one placed against a column of a section of several by a distance from its left, which is the left margin, and the header's lines go round its drawings, as the body's do. Drawings behind or in front of the text don't move the body's lines. A drawing beside the page's footnotes leaves their lines as they are
- 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`), and at least half a point from it across the page, as Word keeps it: half a point with none given, or with a smaller one. 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`). Without `horizontalAnchor` it is placed against the column, and without `verticalAnchor` against the margins, and lined up inline against the text (`RelativeVerticalPosition.INLINE`), it is at the top of the paragraph after it. Its room is as wide as its rows with the halves of its borders left and right, on one side or both, or 0.75 points wider than its rows without any borders, which borders between its rows alone count as, 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. It is placed against the top of what comes after it: a paragraph, the empty paragraph that ends its section, which takes a line after it then, and whose next section on the page goes round it too, a table, or the empty paragraph Word adds after it at the end of the document. 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. Its footnotes are on its page. Of two that may not overlap (`overlap: OverlapType.NEVER`), the later moves to the right until the room it keeps the text out of is beside the other's, or to the left of the other when it has no room on the right, or is lined up at the right. One that goes past the bottom of the page is broken between its rows: those that fit stay where it was placed, the rest go at the top of the next pages, below its header rows, which go there again, and the paragraph after it starts beside its last rows. One in a footnote or an endnote is laid out in the note's text, as a table that doesn't float. One before a table that moves on to the next page stays where it was placed, as does one anchored in a paragraph kept with the next that moves on to the next page with the next
@@ -238,7 +238,7 @@ It stops at the first thing it can't lay out yet, and the page numbers of the he
- a line in a table cell taller than a page, a row set to at least a height taller than a page whose text is taller than a page too, with a footnote, and one set to a height taller than a page with footnotes below others on its page, or with the text of a cell merged down into it that ends in it and doesn't fit in it, and a table whose header row is set to a height taller than a page at the end of its section
- a table in a table cell where it breaks across pages between the rows of a cell merged down them whose text goes on past the first of them, or with space between its cells
- the text of a cell merged down table rows that goes on across pages from a table's header rows, or with a footnote in it, or across columns
-- a line whose multiple line spacing would go below the bottom of the page in a table row that breaks across pages, or above its paragraph's border below, a line whose room on a document grid would go into the footnotes at the bottom of the page, and a line of only pictures in a paragraph at multiple line spacing whose mark is in a larger font than the pictures' runs
+- a line whose multiple line spacing would go below the bottom of the page in a table row that breaks across pages, or above its paragraph's border below, and a line of only pictures in a paragraph at multiple line spacing whose mark is in a larger font than the pictures' runs
- a footnote in a table row that holds back lines of a cell beside it, which would fit on the page above the footnote without it, and a table row that fits on an empty page, but not with its footnote
- a table border in a style Word's PDFs haven't shown, such as a wave or 3D border of a width Word doesn't offer, or an art border wider than 31 points, and an art border left or right of a cell's text, which Word keeps from it by less than it takes above and below; two cells' borders that meet of which Word draws the wider, or the next cell's over none of the cell before, beside text whose margin is less than half of either, where which of the two Word keeps the text before them from hasn't been seen
- a table row with space between its cells that breaks across pages below the table's header rows repeated on the next, and table rows of different space between their cells in a table sized to its text or with no width of its own, or beside rows with none
@@ -248,24 +248,24 @@ It stops at the first thing it can't lay out yet, and the page numbers of the he
- a long word in a cell merged across columns, which Word makes room for in a way not yet followed: a word longer than those columns' longest words together, with or without more text beside it, when a table given no widths is narrowed to fit, and one whose share would leave a column narrower than its longest line or its width
- text in a font that isn't in the width tables, isn't given as a file (see [Measuring fonts from their files](#measuring-fonts-from-their-files)) and isn't embedded in the document, such as Garamond, Segoe UI or Roboto, so its lines may not be where Word puts them: Word draws it with the font's own widths, or in another font when it doesn't have it, such as Cambria on the Mac. Bold text in a font given or embedded without a bold face stops too: Word makes the bold face itself, each character 20 thousandths of an em wider, but from a file of its own, as it drew Pacifico, which a document embedded, in the copy of it Office downloads, whose letters are narrower
- text in a font given as a file or embedded in the document that Office also offers, such as Pacifico, Roboto or Lato, but for those of the width tables, such as Aptos, and the East Asian characters of the East Asian fonts in them, such as Microsoft YaHei, whose Latin letters stop: Word for Mac draws it in Office's own copy of the font, which it downloads, rather than in the file, as it drew Pacifico, whose letters in Office's copy are narrower and whose lines are shorter than in `demo/assets/Pacifico.ttf`'s. The fonts Office offers are those of Office's catalog of its cloud fonts, which has every font of Microsoft's list, [Cloud fonts in Office](https://support.microsoft.com/en-us/office/cloud-fonts-in-office-f7b009fe-037f-45ed-a556-b5fe6ede6adb), and those it has added since
-- kerning and ligatures Word's PDFs haven't shown (see [Kerning and ligatures](#kerning-and-ligatures)): kerned text in a font whose kerning isn't known, such as Carlito or an East Asian font that isn't monospaced, or with a character outside Windows-1252, such as Greek or Cyrillic, or one that takes no room, such as a zero-width space or a combining mark; kerned Cambria before a hyphen, en dash, no-break space, ™, backslash or à; kerned text with ligatures other than standard and contextual ones in a font Word kerns only without ligatures, such as Trebuchet MS; Times New Roman's discretional ligatures, kerned, beside some characters; ligatures in a font whose ligatures aren't known, of a setting Word's Font dialog doesn't write, in regular Cambria, or beside a character outside Windows-1252 but for a Latin letter; ligatures across a soft hyphen, and a line that breaks at a soft hyphen in kerned text, whose hyphen Word may kern with the letter before it; a word longer than its line with ligatures, as Word may break it inside one; text kerned or with ligatures on a document grid of characters; and in a font's file, substitutions other than ligatures in the setting's features, such as contextual ones. Text with OpenType number forms or spacing, stylistic sets or contextual alternates (`w14:numForm`, `w14:numSpacing`, `w14:stylisticSets`, `w14:cntxtAlts`) stops too, as their widths aren't known, but for lining tabular figures in regular Calibri and Cambria, and old-style tabular ones in regular Calibri, which are as wide as the font's default figures
+- kerning and ligatures Word's PDFs haven't shown (see [Kerning and ligatures](#kerning-and-ligatures)): kerned text in a font whose kerning isn't known, such as Carlito or an East Asian font that isn't monospaced, or with a character outside Windows-1252, such as Greek or Cyrillic, or one that takes no room, such as a zero-width space or a combining mark; kerned Cambria before a hyphen, en dash, no-break space, ™, backslash or à; kerned text with ligatures other than standard and contextual ones in a font Word kerns only without ligatures, such as Trebuchet MS; Times New Roman's discretional ligatures, kerned, beside some characters; ligatures in a font whose ligatures aren't known, of a setting Word's Font dialog doesn't write, in regular Cambria, or beside a character outside Windows-1252 but for a Latin letter; a word longer than its line with ligatures, as Word may break it inside one; text kerned or with ligatures on a document grid of characters; and in a font's file, substitutions other than ligatures in the setting's features, such as contextual ones. Text with OpenType number forms or spacing, stylistic sets or contextual alternates (`w14:numForm`, `w14:numSpacing`, `w14:stylisticSets`, `w14:cntxtAlts`) stops too, as their widths aren't known, but for lining tabular figures in regular Calibri and Cambria, and old-style tabular ones in regular Calibri, which are as wide as the font's default figures
- a character whose width in its font isn't known, so its line may not be where Word puts it: a letter or symbol its font doesn't have, or its font's file has no glyph for, which Word draws in a font whose widths aren't in the tables, such as most mathematical symbols, which Word draws in Cambria Math, or in Arial or Times New Roman where their line gap could make the line taller than the font's own, which no Word PDF has shown, such as Gill Sans MT's and Franklin Gothic Book's IPA letters and Hebrew in Arial; a few that Word drew in a way their widths can't be read from, such as Ž and Ё in Courier New; Arabic letters in Calibri, which Word draws narrower than their glyphs in places, in italic, spaced out, or in a font other than Cambria, Arial, Times New Roman and Courier New, and Arabic's other letters, such as alef wasla; Devanagari letters, which Word joins into forms of other widths, and Cambria's and Times New Roman's Devanagari digits, which Word draws in a font whose lines' height isn't known; and Hebrew, Thai, box drawing, shapes such as `docx`'s bullets ● ○ ■, symbols and dingbats in the italics of Office's other fonts, such as Aptos, so a list of `docx`'s bullets in italic Aptos stops at its bullet; and a symbol font's own symbol, such as Wingdings' tick (`SymbolRun`), or a symbol whose character isn't four hexadecimal digits
- in a run with the hint for East Asian text (`font: { hint: "eastAsia" }`), what Word's PDFs haven't shown: a character the hint moves to the East Asian font, such as a curly quote, where the run's East Asian font isn't one, such as Calibri, or it has none; a letter of the Latin Extended-A to IPA Extensions blocks in a language other than Chinese, which Word's rules move to the East Asian font where that font's character set is Chinese; a combining mark, which the rules move on its own; Chinese, Japanese or Korean in a right-to-left run; and a character of a block the rules leave out, such as Thai, in a run with a high ANSI font other than its font for ASCII (`font: { ascii, hAnsi }`); and a list number of characters of both of its run's fonts, such as a bullet and a digit
- in a document that hyphenates its words, a line Word may end with a part of the next word and a hyphen: one with room for the word's first two letters and a hyphen, or its first letter in a language other than English, when the word has five letters or more, or two in such a language. A word longer than its line, a word squeezed onto a distributed line, and a table sized to its text whose columns are narrowed past a word Word may hyphenate, or given less than one, stop it too, as Word sizes columns to the parts of the words it hyphenates
- Arabic letters side by side in Arial, Times New Roman and Cambria, which Word kerns by pairs not yet known, and Arabic letters joined across runs, which are measured a run at a time
- a word beside right-to-left text, in a paragraph that isn't right to left, that fits on its line only without the space after it, where that space is in a right-to-left run beside left-to-right text, or between right-to-left words in a run that isn't right to left
- text in Chinese or Korean (`language: { eastAsia }`) in a document that compresses its punctuation, or uses Word's strict rules for the characters that can't start a line, and text in Japanese with those strict rules and the document's own list of those characters, or with half-width small katakana, or with its punctuation compressed in a justified or distributed paragraph. Word's strict rules keep small kana and the prolonged sound mark from the start of a line of Japanese, and its compressed punctuation leaves Japanese aligned left, centred or right as it is, as it leaves text in no language, and so does the layout
-- a soft hyphen where Word hasn't been seen breaking at it: in a line that fits a part of the word squeezed and a shorter part as it is with twice as much room or more, or in a distributed one, in a word whose first part doesn't fit after a tab, or that doesn't fit after a tab at the start of a line, and in a table whose columns Word sizes to their text or widens for long words
+- a soft hyphen where Word hasn't been seen breaking at it: in a distributed line that fits a part of the word squeezed, whose spaces and letters would stretch twice as far with a shorter part that fits as it is as they would be squeezed for the longer, and in a table whose columns Word sizes to their text or widens for long words
- a hidden paragraph mark Word hasn't been seen with, or lays out in a way not yet followed: between paragraphs of different styles, or that differ in more than their alignment, indents, space, line spacing, tab stops and borders, of exact or at-least line spacing, or more than two of different line spacing, before a content control, and ending a section, but for one of a paragraph with nothing shown before a section that starts on its page and is otherwise alike. So do a paragraph with nothing shown and its mark hidden at the end of a header or footer, or of a note, which Word joins to the next note's first paragraph, or with a field, note reference or list number after a paragraph joined to the next, and a footnote or endnote reference with a mark of its own in hidden text
-- text at a decimal tab stop with a picture before where it would line up, a decimal tab stop in a document whose decimal symbol isn't a full stop, and one of a paragraph's own tab stops past the end of the line in a paragraph indented past the margin, a left one at the start of the first line of a paragraph with a first line indent, or of any line of one with a hanging indent, and a centred or decimal one in a paragraph indented on the right, or a right one at the start of a line there; a tab stop past the right indent in a distributed line, or a left one whose text goes past the margin; and a picture, or a word after tabs in a row, that doesn't fit after a tab, and a picture that doesn't fit after a tab at the start of a line
+- text at a decimal tab stop with a picture before where it would line up, or that goes past the end of the line, a decimal tab stop in a document whose decimal symbol isn't a full stop, and one of a paragraph's own tab stops past the end of the line in a paragraph indented past the margin, a left one at the start of a line of a paragraph with a hanging indent, and a decimal one in a paragraph indented on the right; a left tab stop past the right indent whose text goes past the margin; and a word that doesn't fit after a list number's tab and would fit on the next line
- borders Word hasn't been seen to draw, or to lay out in a box: an art border wider than 31 points, lines of a width of an eighth of a point, thin and thick lines narrower than half a point, or wider than 2¼ with a small gap or 3 with a medium or large one, a shadow on a style other than single, or a frame; a paragraph at the top of a page in one box with the paragraph before, whose border between them is another; a box of borders across a section break that ends a paragraph with text in it; and a border in a footnote across pages or in columns, or with the same borders as the footnote before it
- automatic spacing in a footnote across pages or in columns, after the empty paragraph that ends a section before space of the next section's, and between the paragraphs of lists made from the same definition
- indents in characters where the size Word measures them in isn't known: a right indent of a paragraph whose mark is another size than its style, a first line indent of a list's paragraph whose number is another size than its text, and a hanging indent in characters with a left indent of 0 characters and one in twips
- emphasis marks with line spacing on a line with a picture or with marks both over and under text, and on a line taller than its fonts' own lines, such as one with raised text, at line spacing of less than a line or at least a height
- on text that runs down the page: a table, endnotes after it, and endnotes from a section followed by one whose text runs another way, which Word ends with their own section, a tab to a stop other than a left one, a soft hyphen or picture, a drawing that text wraps around, Chinese, Japanese or Korean text in a font whose characters aren't all an em, such as Yu Mincho, raised text and small capitals, two lines in one, text set across the line of more than two characters or of Chinese, Japanese or Korean ones, columns, mirrored margins, a gutter at the top or beside lines from the left, a footer that goes above the bottom margin, and a continuous section break after it into text that doesn't run down the page the same way; and text in a direction Word's documents don't write
- on a document grid: a grid of characters without the pitch of its lines; on a grid that snaps to characters in columns of different widths, a table, a footnote, an indent in characters and a line beside a drawing that text wraps around; on a grid that snaps to characters, a decimal tab, a right or centred one before text that isn't Chinese, Japanese or Korean, an equation, a first line indent of part of a character beside a left indent of part of one, an indent of part of a character before the margin, a tab in a paragraph with an indent of part of a character, and a line justified for Thai or with a kashida that only fits squeezed; on a grid of lines and characters, a number, punctuation or text of another size in an East Asian font next to a Chinese, Japanese or Korean character, which Word may space in a way not yet followed; and ligatures on a grid of characters
-- a border around text of a style or width Word hasn't been seen to draw, as for paragraphs above but for an art border, thick and thin lines with a large gap of 4.5 points, a single line of an eighth of a point and a double line of none, or with a shadow or a frame on a style other than single; a drawing placed on the page, or a VML drawing, in text with a border; and a picture in a border beside text in the same border, or in a line with multiple line spacing
-- a paragraph justified for Arabic with a medium or high kashida (`MEDIUM_KASHIDA` and `HIGH_KASHIDA`), and 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 a four-per-em space, or en, em or ideographic spaces beside ordinary ones and goes past its end by no more than a quarter of the ordinary ones' width
+- a border around text of a style or width Word hasn't been seen to draw, as for paragraphs above but for an art border, thick and thin lines with a large gap of 4.5 points, a single line of an eighth of a point and a double line of none, or with a shadow or a frame on an art border or a line of no style; a drawing placed on the page, or a VML drawing, in text with a border; and text with a phonetic guide Word hasn't been seen with: a guide or base with other than text in it or in more than one font, of another size than the guide's properties give, or a guide without a raise
+- a paragraph justified for Arabic with a medium or high kashida (`MEDIUM_KASHIDA` and `HIGH_KASHIDA`), and 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 a four-per-em space
- 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 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`) past 5, or past where Word's lists start over, such as 32768 in roman numerals; one that shows a level not counted yet that its list starts at a number of its own; a number with a border; a line with nothing but a number of another size or font than its paragraph's mark, before the paragraph's text; a number at another level of a list with a level aligned both; and a number after a paragraph at a level Word leaves out above it, which may start it again. So do bullets that are pictures, which Word drew none of, numbers laid out as Word 6 laid them out, a list defined by a list style that isn't found, or whose own list gives levels of its own, and numbers aligned other than to the left, the centre or the right, or both, which `docx` doesn't write
@@ -297,10 +297,11 @@ const doc = new Document({
Its guesses, by what it would stop at:
- text in a font that isn't in the width tables, isn't given as a file and isn't embedded is measured as the most similar font that is: Segoe UI as Calibri, a serif font such as Garamond as Times New Roman, a monospaced one as Courier New, and the others, such as Roboto, as Arial. Word draws them with their own widths, when it has them: in Word's PDF, Segoe UI was 1% wider than its guess and Garamond 3% narrower (`word-watertight-text.docx` TX18). Bold text in a font given or embedded without a bold face is measured as the most similar font of the tables too, and text in a font given or embedded that Office also offers is measured from the file. A character whose width in its font isn't known is measured as an average letter of the font
-- kerning and ligatures Word's PDFs haven't shown are measured as the layout measures the rest: a pair whose kerning isn't known as if not kerned, a word longer than its line with ligatures with them, and text with ligatures either side of a soft hyphen as one word
+- kerning and ligatures Word's PDFs haven't shown are measured as the layout measures the rest: a pair whose kerning isn't known as if not kerned, and a word longer than its line with ligatures with them
- a date or time is measured as it is written, where Word writes the date and time it opens the document
- a setting or formatting the layout doesn't follow, such as hyphenation, a compatibility setting or mode, a document grid, a text frame or an indent in characters it hasn't seen, is laid out as if it weren't there, a page number in a format it can't write is written in figures, and a table whose widths it can't work out as Word does is sized as it sizes others. A table that text wraps around where Word's way with it hasn't been seen is laid out in the text, as one it doesn't wrap around
-- what it can't read at all, such as a text box, an equation, ink, or a picture or shape that text wraps around in a table cell or a note, is left out, and the rest of its paragraph is laid out without it. Text with a phonetic guide is laid out as its base, what is written in a content control bound to custom XML as it is, and a footnote with a mark of its own as the others are
+- what it can't read at all, such as a text box, an equation, ink, or a picture or shape that text wraps around in a table cell or a note, is left out, and the rest of its paragraph is laid out without it. Text with a phonetic guide Word hasn't been seen with is laid out as its base, what is written
+ in a content control bound to custom XML as it is, and a footnote with a mark of its own as the others are
- where Word's rule for laying out a page isn't known, such as a footnote that would break in a paragraph kept together, the page is laid out by the rule `docx/layout` follows that is nearest to it
- page numbers that still change how the pages are laid out after three passes are written as the last pass worked them out
The unique identifier for this abstract numbering definition.