docxreviews2txt


Namedocxreviews2txt JSON
Version 0.4.5 PyPI version JSON
download
home_page
SummaryCommand line tool to extract review changes from a docx file as plain text
upload_time2024-01-16 17:49:53
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT
keywords one two
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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?

```bash
pip install docxreviews2txt
```

## How to use it?

```txt
usage: docxreviews2txt [-h] [--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
  --version   show version
```

Example:

```txt
$ docxreviews2txt tests/lorem_ipsum.docx
txt reviews at file:///home/alan/src/docxreviews2txt/tests/lorem_ipsum_review.txt
```

```txt
$ cat /home/alan/src/docxreviews2txt/tests/lorem_ipsum_review.txt
# Typos suggestions (using HTML tags <ins> and <del>)
- dolor sit amet, consectetur <ins>Lorem ipsum</ins><del>adipiscing</del>
- sit amet, consectetur adipiscing<ins>s</ins> elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim <ins>do</ins>
- Ut enim ad minim <ins>Lorem</ins>veniam<ins>ipsum</ins>
- dolor sit amet, consectetur <del>adipiscing</del>
```

## 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:

- <https://github.com/ankushshah89/python-docx2txt>
- <https://stackoverflow.com/questions/47390928/extract-docx-comments>
- <https://stackoverflow.com/questions/38247251/how-to-extract-text-inserted-with-track-changes-in-python-docx>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "docxreviews2txt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "one,two",
    "author": "",
    "author_email": "Alan Guedes <alanlivio@outlook.com>",
    "download_url": "",
    "platform": null,
    "description": "# docxreviews2txt\n\nCommand 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.\n\n## How to install?\n\n```bash\npip install docxreviews2txt\n```\n\n## How to use it?\n\n```txt\nusage: docxreviews2txt [-h] [--version] docx\n\nCommand line tool to extract review changes from a docx file as plain text.\n\npositional arguments:\n  docx        input docx\n\noptions:\n  -h, --help  show this help message and exit\n  --version   show version\n```\n\nExample:\n\n```txt\n$ docxreviews2txt tests/lorem_ipsum.docx\ntxt reviews at file:///home/alan/src/docxreviews2txt/tests/lorem_ipsum_review.txt\n```\n\n```txt\n$ cat /home/alan/src/docxreviews2txt/tests/lorem_ipsum_review.txt\n# Typos suggestions (using HTML tags <ins> and <del>)\n- dolor sit amet, consectetur <ins>Lorem ipsum</ins><del>adipiscing</del>\n- sit amet, consectetur adipiscing<ins>s</ins> elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim <ins>do</ins>\n- Ut enim ad minim <ins>Lorem</ins>veniam<ins>ipsum</ins>\n- dolor sit amet, consectetur <del>adipiscing</del>\n```\n\n## Known issues\n\nThe tool fails to capture changes in Docx files with text organized in tables (e.g., pdf2docx converts columns to tables).\n\n## References\n\nThis project takes inspiration from:\n\n- <https://github.com/ankushshah89/python-docx2txt>\n- <https://stackoverflow.com/questions/47390928/extract-docx-comments>\n- <https://stackoverflow.com/questions/38247251/how-to-extract-text-inserted-with-track-changes-in-python-docx>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Command line tool to extract review changes from a docx file as plain text",
    "version": "0.4.5",
    "project_urls": null,
    "split_keywords": [
        "one",
        "two"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "56616e3c5b9727c73f84d348760a23293510ca9c6dd36319b67cca78947cb8f7",
                "md5": "9190cf99d02d9894392641201eb09d72",
                "sha256": "1ea027794defc57dd7e497d5f47918bdf213675ffb03aadfd26a63c28ff1527d"
            },
            "downloads": -1,
            "filename": "docxreviews2txt-0.4.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9190cf99d02d9894392641201eb09d72",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4685,
            "upload_time": "2024-01-16T17:49:53",
            "upload_time_iso_8601": "2024-01-16T17:49:53.939746Z",
            "url": "https://files.pythonhosted.org/packages/56/61/6e3c5b9727c73f84d348760a23293510ca9c6dd36319b67cca78947cb8f7/docxreviews2txt-0.4.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-16 17:49:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "docxreviews2txt"
}
        
Elapsed time: 0.16381s