ODT support for endnotes, reader and writer#11516
Open
massifrg wants to merge 12 commits into
Open
Conversation
Initial support for endnotes for openxml. You get an endnote embedding a Note in a Span that has an "endnote" class.
A new extension "endnotes" to enable endnotes in docx format
The "endnotes" extension for docx is working with the docx Writer. No tests for this feature yet, but old tests now pass.
The "endnotes" extension for docx is working with the docx Writer. No tests for this feature yet, but old tests now pass.
When "endnotes" extension is enabled, the Span of class "endnote" that embeds a Note may have an id or attributes for the Note to become an endnote. The only condition is that there is ONLY ONE class and that must be "endnote".
When the "endotes" extension is enabled, docx endnotes are converted to a Note embedded in a Span of class "endnote".
All the Notes inside a Span with class "endnote" are converted into endnotes in the resulting ODT file.
When the endnotes extension is enabled, the endnotes of the ODT file will be converted into Notes inside a Span with the class "endnote".
Contributor
Author
|
@jgm: there's a I could make a PR from that branch and close the three separate PRs, which have a few conflicts in MANUAL.txt that I already resolved. Just let me know. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for endnotes for the ODT format; it's the companion of #11501.
When the
endnotesextension is enabled with-f odt+endnotes, the endnotes in the odt file becomeNotes embedded in aSpanwith the "endnote" class.Converting to odt with
-t odt+endnotes, everyNoteembedded in aSpanwith the "endnote" class becomes an endnote in the ODT file.