JSv4 / Python-Redlines

Docx tracked change redlines for the Python ecosystem.
MIT License
32 stars 6 forks source link

Contributing to/opening up pure Python comparison engine #11

Open cam-pressw opened 6 days ago

cam-pressw commented 6 days ago

Hello! This seems like a great tool, and I would love to help contribute + expand on its capabilities, especially since I need to set up redlining in Python for my use case. I'm also very interested in the pure Python engine, since I'd like to make some modifications to document XML that don't appear to be supported by WmlComparer. Is there any chance the pure Python comparison engine will be surfaced soon? Would love to see if I can help out if more contributors would help the cause!

JSv4 commented 4 days ago

Glad you like the project @cam-pressw. I've done some experimentation with xmldiff, and it appears to be a workable solution. You need to do some work to make sure you're wrapping your diff fragments in the right xml tags, but it can generate xml diffs and create a patch as well. I haven't had time to try to build something production-grade. If you're up to taking a shot at it, I'd be happy to collaborate. I should have enough time to help review.

cam-pressw commented 4 days ago

Sounds great! Re: wrapping your diff fragments in the right XML tags, I think you mention in the readme that this can get pretty complex. How are you figuring out what tags to use in what situations (comparing outputs from WmlComparer? referencing what XML documentation Microsoft does have?). If going through your current process is easier on an email chain or call, feel free to reach out at cam@pressw.ai.