Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-10-14 Thread Enrico Tröger
Closed #484 via #487.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#event-823822685

Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-10-14 Thread Enrico Tröger
Heh, this is also possible even as you said some sort of brutal :).
Thanks for testing.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-253771946

Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-10-13 Thread Andrea Stacchiotti
I brutally replaced `spellcheck.so` in `/usr/lib` and tested it a bit.
It seems to work perfectly well.

Thanks for the fix.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-253529285

Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-10-13 Thread Enrico Tröger
It depends what OS you use.
On Linux compiling from source is quite easy:
```sh
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.
It's important that you have `automake`, `autoconf`, `make`, the development 
libraries of GTK and Enchant (for Spell Check) installed.
The commands above will compile and install Geany and Geany-Plugins into 
`/tmp/geany_test`. You can start it with `/tmp/geany_test/bin/geany -c 
/tmp/geany_test/config` using a fresh configuration to not interfer with your 
current config. Then activate the Spell Check plugin and test.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-253499543

Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-10-12 Thread Andrea Stacchiotti
Any way I can (easily) get the new version?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-253164536

Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-10-11 Thread Enrico Tröger
Thanks for the feedback.
In my tests `po'` was not marked as mispelled but that might because the 
dictionary knows the word `Po` as the river already. I assume there might be 
other examples like this one, as long as there are somewhat rare, that might be 
ok.

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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-253036925

Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-09-20 Thread Andrea Stacchiotti
Your second solution will generate some problems in languages like Italian, 
where `po'` is a word, but `po` isn't, but these are few corner cases that can 
be added to the dictionary when you meet them and a huge improvement wrt the 
current state.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-248279084

Re: [Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

2016-09-18 Thread Enrico Tröger
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 
`style` means highlighting types like string, identifier, keyword and similar. 
This works pretty good for your examples but it fails on Python's triple 
strings (`'''...).

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. `The players’ boots`) but this should have no 
negative effect on spell checking as the rest of the word must be valid anyway, 
I hope.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-247886198