-
Notifications
You must be signed in to change notification settings - Fork 1.2k
low-level support for comments & footnotes #624
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
base: master
Are you sure you want to change the base?
Conversation
Feature/comments lower level
Feature/comments lower level
Feature/low level support for footnote
@BayooG It's cool to improve docx package to support comments. I wonder if this part of the work has been implemented and I can't wait to know how to add a comment in a docx using this package, can you give an example? |
Now you can add a comment for a certain paragraph Check my branch for more details |
prepend and append comment elements instead of inserting them inside <w:r>
@scanny |
@BayooG good work on footnotes! But how can i change a footnote style like line_spacing and oth?
But in the final document there is a big indentation between footnote lines( like second empty line, and they occupy a lot of space on page. |
May i ask if we can add footnotes on the run level now? |
|
EndNote Full Torrent does as many tasks as possible automatically. As an example, it is able to automatically format and update bibliographies, for example |
* Update version * reverse version to origin * Add add_ole_object_to_run func
* Update version * reverse version to origin * Add add_ole_object_to_run func * Update README * Update README * Update README * Update README
* Update version * reverse version to origin * Add add_ole_object_to_run func * Update README * Update README * Update README * Update README * Add fldChar element support * Add instrText element support * Set instr_text element as a property * Set instr_text element delete * Avoid duplication if add instrtext element with run already has
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not implement a delete_comment() function as well?
Awesome work @BayooG ! Shame it's not merged yet. How would it be possible to span a comment across multiple paragraphs with this implementation? |
@scanny can we know if this PR will be merged ? |
Hi, @BayooG, could you leave a simple solution to add a footnote, as long as this PR does not merge? BTW, nice job |
I have a fork, check this https://github.com/BayooG/bayoo-docx |
I really appreciate this fork @BayooG, being able to add comments is a HUGE plus when programmatically generating documents (e.g., flagging which sections of a document were written by an LLM so a human can follow up and review those sections). I only see the need for this functionality increasing, and really hope to see this feature integrated into the main python-docx branch (@scanny) |
@scanny Any updates on merging footnote support into the library? |
does this feature of adding comments include adding hyperlinks inside comments? i am currently using this approach to add hyperlinks to a run, which i took it from another github issue:
does anyone have an insight on how to add a hyperlink to a subtring inside a comment created with bayoo-docx? |
created two new parts for 'comments part' & 'footnotes part'
and now these parts can be accessed from the 'document part'
added new methods to the paragraph element so comments and footnote can be added easily