-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unmatched Curly Quotes reporting matched quotes. #326
Comments
@windymilla Since I was working on #42, which would be related to this issue, I went to look for the algorithm, and I realized I couldn't find it in the GG1 code. Do you know which layer implements it? That is, I can find references to the function that does this highlight, but I can't find the definition. I would not have thought this is part of Tcl/Tk itself but... is it? What is TextEdit.pm? That's not part of the GG1 codebase either...
|
I think I found it... Tk::TextEdit (line 432): https://metacpan.org/release/SREZIC/Tk-804.036/source/Tk/TextEdit.pm |
@tangledhelix - yes, that's correct. As you discovered later, Perl/Tk does have that function in the TextEdit widget, which the GG1 main text widget inherits from. Porting it from the Perl version to Python would be one way of getting the functionality. |
@okrick - there is a compromise that needs to be made on whether to permit match items to be nested. If you don't allow it, which at the moment the Unmatched Curly Quotes does not, then you can get an false report, like the one you quote. However, if you do allow it, it can be harder to find out where the actual error is, and theoretically two errors are more likely to cancel each other out, so not get reported at all, e.g. (could be much more widely spaced than this contrived example, where the second quote is an open when it should be a close, and the third is a close when it should be an open).
If on balance, you think it would be better to permit nesting for matching quotes, I can easily make that change. Since GG1 doesn't have the same check, there's no need for us to match a GG1 feature, so we can just choose whichever would be most helpful. |
The ability to configure nesting within the report would be valuable. Some users might prefer seeing everything, including nested issues, while others might find it helpful to exclude them for better readability. The To understand user sentiment towards GG1's "pptxt" function, a poll could be helpful. This would determine how many users actually rely on it. |
Thanks @okrick - I can look to see if making nesting configurable would be easy to add. Regarding Check Orphaned Brackets, don't be upset about the feature being dropped - no decision has been made to drop it! There are a lot of features in GG1, and we have been working to add either identical or similar features to GG2. I can't guarantee that all your favorites from GG1 will make it into GG2, but we're obviously aiming for the system to work in an efficient way to help the user find problems. The online pptext program that is part of the PPWB tools, is the tool that is used the most from that collection, about 400 to 500 times per month (according to Linda's monthly GM report). So, some people definitely find that format helpful, as well as the "lead you through" style of Check Orphaned Brackets. It's helpful to get feedback to steer the development - you are very much at the leading edge, using GG2 for real work, which I really appreciate. I hope as GG2 gets some more of the basic features, that we will be able to broaden the base of users trying it out, so we get a good representative sample of feedback from people who use GG in a variety of ways. |
For bracket and curly quote unmatched checks, there is now a checkbutton that allows the user to control whether nesting is permitted, e.g. `[Footnote: [**proofer note] text of footnote]` User can change the setting and re-run. Fixes DistributedProofreaders#326
For bracket and curly quote unmatched checks, there is now a checkbutton that allows the user to control whether nesting is permitted, e.g. `[Footnote: [**proofer note] text of footnote]` User can change the setting and re-run. Fixes DistributedProofreaders#326
When using GG1 with the "Highlight Surrounding Quotes and Brackets" feature enabled, the system identifies the quotes on these two lines as a matching pair and highlights them in green. This occurs even though there's another set of double quotes within this section.
negro-src.zip
The text was updated successfully, but these errors were encountered: