-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract text associated with the comment #14
Comments
Stellar idea! (thx for checking out the pkg and taking time to file an enhancement request!) This is a first stab at accommodating the functionality. I added a parameter read_docx("~/Downloads/test.docx") %>%
docx_extract_all_cmnts(include_text = TRUE)
# A tibble: 4 x 6
id author date initials comment_text word_src
<chr> <chr> <chr> <chr> <chr> <chr>
1 0 Unknown Author 2018-04-05T13:58:51Z "" One word "How "
2 1 Unknown Author 2018-04-05T13:58:02Z "" All paragraph. "Five quacking zephyrs jolt my wax …
3 2 Unknown Author 2018-04-05T13:58:22Z "" One phrase inside the paragraph. "Brawny gods just flocked up to qui…
4 3 Unknown Author 2018-04-05T13:57:50Z "" source from: http://www.blindtextgenerator… |
Also, once we're done figuring out the best API for this, pls double-check your attribution in the |
Perfect! |
Very useful package! I really appreciate it! Thank you!
Is there a way to extract the text associated with the comments?
I did unzip the attached file
test.docx
, and I did explore the unzipped files.The
word/document.xml
file have the following "marks":With the following associated comments in the
word/comments.xml
file:These things seem linked by the
w:id="1"
in bothword/document.xml
andword/comments.xml
files.It would be very interesting if your
docx_extract_all_cmnts()
function informs a tibble containing a column with the text associated with the comment.test.docx.zip
The text was updated successfully, but these errors were encountered: