-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Highlight changed parts in "Correct Texts" #34
Comments
This could be very useful. I haven't used difflib, but if it works well enough, the bigger task is probably doing the GTK+ styling -- probably with the I don't have any immediate plans to do this. If someone's interested in contributing, this should be doable without needing to be familiar with or learning to understand Gaupol's codebase as a whole. |
I would help but I never work with GUIs so I wouldn't know where to start. |
Done now. Used SequenceMatcher.get_opcodes so that added, removed and changed parts are colored different. Colors are done with opacity, so should hopefully work about OK with different themes. Colors are also configurable by editing the config file. Not tested much yet, so open to feedback. |
Great, thanks! I'm going to try using the git version and I'll let you know if I run into issues. |
Sometimes it's hard to see what changed, especially when it's only whitespace. You could probably take advantage of difflib's SequenceMatcher to do this. I looked around but I don't see another library which would make it easier.
Feel free to re-use my code if it helps:
The text was updated successfully, but these errors were encountered: