scitex_msword.comments
Comment extraction and (limited) application for python-docx Documents.
Word stores comments in word/comments.xml inside the .docx ZIP, while
the comment anchors (i.e. the ranges the comment refers to) live in
word/document.xml as commentRangeStart / commentRangeEnd
sibling elements with an w:id attribute matching the comment.
This module exposes extract_comments() for reading them back into
a structured list and apply_comments_as_edits() which honors a
narrow “REPLACE:” comment grammar to perform automated edits.
Functions
|
Apply comments to the document body using a narrow grammar. |
|
Extract Word comments from a .docx file or open Document. |