Anonymize (and then de-anonymize) comments in Word documents.

Piotr Czajkowski 9a1c88ac44 Added .DS_Store %!s(int64=5) %!d(string=hai) anos
bin a0d4f3d126 Fixed broken logic %!s(int64=6) %!d(string=hai) anos
mac ebee578c3d Added option for mac %!s(int64=6) %!d(string=hai) anos
.gitignore 9a1c88ac44 Added .DS_Store %!s(int64=5) %!d(string=hai) anos
LICENSE.md d3ebd190e9 License %!s(int64=6) %!d(string=hai) anos
README.md 65c6926020 Information about Windows binary %!s(int64=6) %!d(string=hai) anos
anonymize.c 45bdd3d8ca Formatting %!s(int64=6) %!d(string=hai) anos
comments.c 2d5c66d5c0 Printing in proper place %!s(int64=5) %!d(string=hai) anos
comments.h 792a54c4e4 Moving from dict to binn %!s(int64=5) %!d(string=hai) anos
dict.c 9de8cd02ec Fixed few minor errors %!s(int64=6) %!d(string=hai) anos
dict.h 45bdd3d8ca Formatting %!s(int64=6) %!d(string=hai) anos
keyval.c 45bdd3d8ca Formatting %!s(int64=6) %!d(string=hai) anos
keyval.h 45bdd3d8ca Formatting %!s(int64=6) %!d(string=hai) anos
makefile 792a54c4e4 Moving from dict to binn %!s(int64=5) %!d(string=hai) anos
stopif.h 45bdd3d8ca Formatting %!s(int64=6) %!d(string=hai) anos
test.docx b13896656d Better version %!s(int64=6) %!d(string=hai) anos
xmlbuff.c 45bdd3d8ca Formatting %!s(int64=6) %!d(string=hai) anos
xmlbuff.h ff36614bb9 First version %!s(int64=6) %!d(string=hai) anos
zip.c 298c31e202 Cosmetics %!s(int64=6) %!d(string=hai) anos
zip.h 298c31e202 Cosmetics %!s(int64=6) %!d(string=hai) anos

README.md

Anonymize DOCX Comments

While doing review in Word documents translators/reviewers often use tracked changes and comments to exchange feedback on translations. Usually these people are from different organizations and shouldn't know about each other. Hence the need to anonymize comments and this is what this tool will do for you.

It'll go through comments in "word/comments.xml" and change each author's name to Authornumber, where number starts from 1. It'll keep track of authors so "John Smith" will always be "Author1" for instance. After it's done it'll print list of authors and their new names.

Usage:

./anonymize test.docx - test.docx will be replaced with anonymized version.

./anonymize test.docx test2.docx - anonymized version will be saved as test2.docx leaving original test.docx intact.

Running it on provided test.docx should produce:

"King, Stephen" is now "Author1"
"Kowalski, Jan" is now "Author2"
"Piotr Fronczewski" is now "Author3"

You'll need libarchive and libxml2 to compile it. It was created as learning project while I was exploring C, so use it freely, but at your own risk. Output was tested with Word 2013 and Libre Office Writer.

To relieve your pain I've added compiled Windows 64 bit binary in the bin folder. It includes all necessary MingW dlls. Enjoy!