Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize Redline Markup #13

Open
asolanki opened this issue Jul 26, 2024 · 1 comment
Open

Customize Redline Markup #13

asolanki opened this issue Jul 26, 2024 · 1 comment

Comments

@asolanki
Copy link

Love this package, best working Python tool for redlining/tracking changes on docx files programmatically.

I am looking for the ability to customize the markup for a redline: in particular looking to color-code tracked changes based on industry standard for contract markup in the legal field:

  • Red w/ strikethrough = deletion
  • Blue = addition
  • Green w/ strikethrough = move source (section moved from here)
  • Green = move destination (section moved to here)

I have spent a little bit of time looking into this, and it seems like the redlines executable does not expose any of this functionality, but it may available as part of the Open XML Power Tools library RevisionProcessor

Open to suggestions or pointers on how I can go about doing this. Thanks!

@JSv4
Copy link
Owner

JSv4 commented Aug 6, 2024

Hey @asolanki, the XML comparison engine is a compiled, simple command line utility that wraps WmlComparer. You'll want to look at Eric White's fork of Open XML PowerTools. I don't know offhand how to modify the styling, but it's probably not that difficult. If you figure out how to do it in WmlComparer, I'd be happy to help you package the changes and expose it via Python. I don't have a ton of time to spend adding new features to this project ATM, but I'm happy to contribute to and merge PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants