-
Notifications
You must be signed in to change notification settings - Fork 272
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
[spellchecker] Apostrophes ('
, ascii 39) at string boundary are spell-checked
#484
Comments
Yes, this is a regression from #322. I tried a quick hack which strips the apostrophe from the word beginning and end if the style before resp. after the word is different. In this context Another, simpler approach could be to strip any apostrophes at word start and end. This might accidentally delete a legit apostrophe like in plural forms of the possessive case (e.g. |
Your second solution will generate some problems in languages like Italian, where |
Thanks for the feedback. I created #487 to fix the issues you reported, I tested your examples as well as my usual spell check test texts and it seems to work well. |
Any way I can (easily) get the new version? |
It depends what OS you use. git clone git://github.com/geany/geany
cd geany
./autogen.sh --prefix=/tmp/geany_test
make
make install
cd ..
git clone git://github.com/geany/geany-plugins
cd geany-plugins
git checkout -b spellcheck_strip_quotes_issue484
PKG_CONFIG_PATH=/tmp/geany_test/lib/pkgconfig ./autogen.sh --prefix=/tmp/geany_test --with-geany-libdir=/tmp/geany_test/lib/geany
make
make install The current version is as stable as a release usually, so there should not be a big issue. |
I brutally replaced Thanks for the fix. |
Heh, this is also possible even as you said some sort of brutal :). |
Testcases:
'word'
all underlined"word"
not underlined'very long phrase'
'very
andphrase'
are underlinedThis was probably introduced in #322 .
The spellchecker ought to strip the quotes before checking, otherwise using it in python is a huge pain.
I understand it's difficult to strip quotes, though, because it's not obvious what is a string boundary.
E.g. latex and python users would have completely different expectations.
Maybe a configurable option of "additional splitting chars"?
The text was updated successfully, but these errors were encountered: