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:
Release files for docxreviews2txt 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docxreviews2txt-0.4.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / docxreviews2txt-0.4.7-py3-none-any.whl
| Download URL | docxreviews2txt-0.4.7-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c752f6d22b06ba7695a1befe233015d04edfbf4840f7b18057c1a30f7e8dfac8
|
|
BLAKE2b-256 checksum How to use checksums |
09fc62366b43a4703053f205ce543218715c17c44ca257e265ce34654e33862b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|