Microsoft Word IEEE Citation Patcher
Post-processing script that patches IEEE citation format in Microsoft Word documents in the docx format.
Word does only allow to list citations one by one and has no integrated logic to group or sort them. Especially in scientific documents it is often the case that multiple citations are added to the same paragraphs and it is likely that they are not in order. Sorting and grouping citation references is a tedious task, so this script is here to help.
An original text like this
as shown by Brown [5], [4]; as mentioned earlier [9], [4], [5], [2], [7], [6]; Smith [4] and Brown and Jones [5]; Wood et al. [7]
is transformed to this
as shown by Brown [4], [5]; as mentioned earlier [2], [4]-[7], [9]; Smith [4] and Brown and Jones [5]; Wood et al. [7]
or with an optional compression option to this
as shown by Brown [4,5]; as mentioned earlier [2,4-7,9]; Smith [4] and Brown and Jones [5]; Wood et al. [7]
Installation
Python >= 3.8 is required for this tool to work. The package is hosted on PyPI.
To install with pip, use the following command:
$ pip install dcs-ms-word-ieee-patch
This installs two CLI scripts, ieee-patch and xml-pretty-print.
Usage
Run the script with the path to the
$ ieee-patch /path/to/file.docx # on unix
$ ieee-patch C:\Users\foobar\Desktop\file.docx # on windows
The script by default creates a file with the filename suffix .patched in the same folder as the original file and patches the content within this file which means the original file is left untouched.
In case the replacement should be done in-place, e.g., when space limitations apply, use the --overwrite CLI flag.
Please use this flag only if really necessary, since the original content cannot be restored after is has been overwritten!
Legal notice
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with the Microsoft Corporation, or any of its subsidiaries or its affiliates.
Metadata
Release files for dcs-ms-word-ieee-patch 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dcs-ms-word-ieee-patch-0.2.2.tar.gz | 6.3 kB | Without provenance | Details for dcs-ms-word-ieee-patch-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dcs_ms_word_ieee_patch-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for dcs_ms_word_ieee_patch-0.2.2-py3-none-any.whl |
Total release size: 13.4 kB
Release files / dcs-ms-word-ieee-patch-0.2.2.tar.gz
| Download URL | dcs-ms-word-ieee-patch-0.2.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a99ed134dc7a25a9fb1ba1cf7aaf4216c006528be9a68a349ad766e20ed43724
|
|
BLAKE2b-256 checksum How to use checksums |
7fbc7387df823156bb0b2abfc9db7323bdda862636f86fe40bd51ce44f85f473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1025-azure
|
Release files / dcs_ms_word_ieee_patch-0.2.2-py3-none-any.whl
| Download URL | dcs_ms_word_ieee_patch-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e362dfdd2ffce2db07efe1817c056306a4d5739188c8390b2213d04736fc1168
|
|
BLAKE2b-256 checksum How to use checksums |
31d462b3a29d5b256ba191a2fc762440666ae658078d3a2a51d67e79174627be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1025-azure
|
Security for dcs-ms-word-ieee-patch 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.