Skip to main content

docxreviews2txt

Command line tool to extract review changes from a docx file as plain text. It is useful when reviewing a PDF file as docx, and you need to share the changes as plain text.

How to install?

pip install docxreviews2txt

How to use it?

usage: docxreviews2txt [-h] [--format {diff,tags}] [--version] docx

Command line tool to extract review changes from a docx file as plain text.

positional arguments:
  docx                  input docx

options:
  -h, --help            show this help message and exit
  --format {diff,tags}  output format: 'diff' (PREVIOUS -> AFTER) or 'tags' (<ins>/<del>). Default is 'diff'.
  --version             show version

Example (Default format: diff):

$ docxreviews2txt tests/lorem_ipsum.docx
txt reviews at file:///home/alan/src/docxreviews2txt/tests/lorem_ipsum_review.txt
$ cat tests/lorem_ipsum_review.txt
- dolor sit amet, consectetur adipiscing elit, sed do eiusmod -> dolor sit amet, consectetur Lorem ipsum elit, sed do eiusmod
- sit amet, consectetur adipiscing elit, sed do eiusmod -> sit amet, consectetur adipiscings elit, sed do eiusmod

Example (Tags format):

$ docxreviews2txt --format tags tests/lorem_ipsum.docx
txt reviews at file:///home/alan/src/docxreviews2txt/tests/lorem_ipsum_review.txt
$ cat tests/lorem_ipsum_review.txt
- dolor sit amet, consectetur <ins>Lorem ipsum</ins><del>adipiscing</del> elit, sed do eiusmod
- sit amet, consectetur adipiscing<ins>s</ins> elit, sed do eiusmod

Known issues

The tool fails to capture changes in Docx files with text organized in tables (e.g., pdf2docx converts columns to tables).

References

This project takes inspiration from:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docxreviews2txt-0.4.7-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file docxreviews2txt-0.4.7-py3-none-any.whl.

File metadata

File hashes

Hashes for docxreviews2txt-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c752f6d22b06ba7695a1befe233015d04edfbf4840f7b18057c1a30f7e8dfac8
MD5 2b1ed84cfe1dae19354d888787bec4b7
BLAKE2b-256 09fc62366b43a4703053f205ce543218715c17c44ca257e265ce34654e33862b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page