You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edits cost their own element: 78 of the 125 Word edit calls whose cost grew with the document now cost the element they touch (in-place edits under a journal, no whole-document copy, staged save or reopen per call). At 400 paragraphs, Paragraph.text, add_run, add_footnote, add_comment, removals, headers, footers, watermarks, content control properties, fonts and settings go from tens to thousands of ms down to a few ms.
Forms: fill_form and reset_form read and edit only the controls they change (a header control at 1,000 paragraphs: 27.5 s to 9 ms); legacy form fields are still slow (#7).
Saves report unsavable bodies: an edit that leaves the body unsavable is reported by the save, not by the edit (the four up-front refusals stay); an edit is no longer refused for a defect elsewhere in the document it does not touch.
Handles survive more edits: edits that touch no element a handle names keep every handle; removing a note or comment keeps the handles of the others.
Word fidelity: a body edit keeps Word's own main-part declaration and root (namespace order).
CLI (breaking): every command that reports something gives a schema-1 --json record, limitations --json included.
🚀 Features
(cli) [breaking] Every command that reports something gives a schema-1 --json record (#626) (8f05bfd) in #626 by @hadim
🐛 Bug fixes
(docx) A bookmark start with no end is left out of the story ranges (#618) (d9aea97) in #618 by @hadim
(docx) A content control value replaces its pending revisions (#620) (2656565) in #620 by @hadim
(docx) Paragraphs of nested block content controls take their story route (#630) (87f09b3) in #630 by @hadim
(docx) Previous_body_blocks reads the one body unit of an undo (#643) (090a022) in #643 by @hadim
(docx) A body edit keeps the producer's main-part root (#638) (208ea71) in #638 by @hadim
(docx) A block edited in place reads as its own bytes read back (#652) (dad3069) in #652 by @hadim
⚡ Performance
(python) Body handles follow their block, so a splice inside the body keeps them (#616) (f7a6500) in #616 by @hadim
(python) A body splice updates the word owner index in place (#617) (f509ebc) in #617 by @hadim
(python) A replacement before any read builds no owner facts (#621) (298c5e3) in #621 by @hadim
(docx) Settings edits install their part in place instead of copying the document (#623) (8ede1cf) in #623 by @hadim
(python) Settings and section edits work in place and keep every handle (#628) (796c633) in #628 by @hadim
(docx) Font table edits work in place with a journal (#631) (43839d9) in #631 by @hadim
(docx) Edits run in place on declared units, starting with resolve_comment (#632) (2d890c4) in #632 by @hadim
(docx) Custom xml stores, style links and list restarts edit their parts in place (#633) (33dcdea) in #633 by @hadim
(python) Note blocks are added in place and published by a note story splice (#634) (dd306e7) in #634 by @hadim
(python) A body paragraph edit changes its paragraph in place and replaces its block's owners (#636) (4f804f8) in #636 by @hadim
(docx) References are found by a walk of what the body writes, and remove_style runs in place (#637) (03938fc) in #637 by @hadim
(docx) Mail merge packages and content control properties edit in place (#635) (c6d7d57) in #635 by @hadim
(docx) Bibliography sources are added and replaced in place (#639) (cf6448e) in #639 by @hadim
(docx) One in-place edit may name several disjoint body block units (#642) (2de4a31) in #642 by @hadim
(docx) Story text, legacy form fields and permission ranges edit their paragraph in place (#640) (821e2a8) in #640 by @hadim
(python) Notes and comments are added to a body paragraph in place (#641) (b55c764) in #641 by @hadim
(python) Spans are isolated and citations inserted in their paragraph in place (#646) (2aa6f09) in #646 by @hadim
(docx) Headers, footers, watermarks and section stories edit their parts in place (#645) (872d773) in #645 by @hadim
(python) Body removals splice the inventory in place, on an N to M block splice (#647) (06e05ea) in #647 by @hadim
(docx) Form fills and resets edit the controls they change in place (#648) (b89c3e9) in #648 by @hadim