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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docxreviews2txt-0.4.7-py3-none-any.whl.
File metadata
- Download URL: docxreviews2txt-0.4.7-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c752f6d22b06ba7695a1befe233015d04edfbf4840f7b18057c1a30f7e8dfac8
|
|
| MD5 |
2b1ed84cfe1dae19354d888787bec4b7
|
|
| BLAKE2b-256 |
09fc62366b43a4703053f205ce543218715c17c44ca257e265ce34654e33862b
|