Skip to content
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

Add import/export support for word documents #505

Open
akprasad opened this issue Apr 7, 2023 · 0 comments
Open

Add import/export support for word documents #505

akprasad opened this issue Apr 7, 2023 · 0 comments

Comments

@akprasad
Copy link
Contributor

akprasad commented Apr 7, 2023

Some proofreaders like working with Word documents and are used to them. I think we can support this workflow with minimal changes to the larger system, so I want to try it out as an experiment.

Feature list

  • In proofing/project.py, add a download_as_word_document function that supports downloading a proofing project as a Word document.
  • In the same file, add an upload_word_document function that accepts a Word document and merges in any new and non-conflicting changes into the database. Since changing a project through an upload could be easily abused, this function should be annotated with the p2_required decorator, which restricts it to level 2 proofreaders.

Specification

  • The document should encode which text belongs to which page and which version of the text was used, so that we know where text should be sent on upload. One way to do this is to wrap blocks of text with human-readable tags, such as <page n="5" version="3">text</page> to indicate that text is version 3 of page 5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant