Created attachment 80511 [details] Screenshot of the issue Problem description: When adding a comment in a the middle of a word, the word is then recognised as misspelt by the spellchecker. Furthermore, running the Spelling and Grammar tool and correcting the broken word makes the comment disappear. Steps to reproduce: 1. With Auto Spellcheck on, write a sentence 2. Click in the middle of a word and add a comment (ctrl + alt + C) 3. Write something in the comment field and click out 4. The word is underlined in red 5. Run the Spelling and Grammar tool (F7) and correct the supposedly misspelt word as proposed. Current behaviour: The comment breaks the words, makes it seen as misspelt by the spellchecker, and running the the Spelling and Grammar tool and trying to fix the supposedly misspelt word deletes the comment. Expected behaviour: The word where the comment is inserted should not be recognised as misspelt by the spellchecker in the first place. Operating System: Ubuntu Version: 4.0.3.3 release
I can confirm this happens, and it happens on Windows too.
This is still the case in 4.1.2.3
As simple 'workaround' might be to add the comment not in the middle of a word, but at the end (or at the start). Is it possible to do this automatically? This way spelling checker should not give problems. If the comment is at the start of the word, than adding letters to the start of that word should be done AFTER the comment, and if the comment is at the end of the word, it should be done BEFORE that comment ;)
oops forgot to say it's still a problem in 4.1.3.2 (OS:Windows7)
Issue is still there in 4.3.1.2 OS: Win7 See new attachment also
Created attachment 107675 [details] Failed spell check in a commented word
Created attachment 107713 [details] a comment is seen as the end (or start) of a word.....
The comment is a character within the word and cannot be ignored by the spellchecker. Also, it is desirable to have comments everywhere within the word, not only at the start/end.
"Also, it is desirable to have comments everywhere within the word, not only at the start/end." Can you clarify that? I'm not sure what you mean by that.... I would call this a BUG if the place of a comment influences the working of the spellings checker.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.