Bug 65535

Summary: Adding a comment in the middle of a word makes it recognised as misspelt by spellchecker
Product: LibreOffice Reporter: chtfn <stephane.guillou>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEEDINFO --- QA Contact:
Severity: normal    
Priority: medium CC: luuk34, stephane.guillou
Version: 4.0.3.3 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
i915 platform: i915 features:
Attachments: Screenshot of the issue
Failed spell check in a commented word
a comment is seen as the end (or start) of a word.....

Description chtfn 2013-06-08 08:10:26 UTC
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
Comment 1 Luuk 2013-06-08 11:52:23 UTC
I can confirm this happens, and it happens on Windows too.
Comment 2 chtfn 2013-10-30 04:42:56 UTC
This is still the case in 4.1.2.3
Comment 3 Luuk 2013-12-12 09:19:53 UTC
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 ;)
Comment 4 Luuk 2013-12-12 09:20:52 UTC
oops forgot to say it's still a problem in  4.1.3.2  (OS:Windows7)
Comment 5 Tupe 2014-10-10 18:28:19 UTC
Issue is still there in 4.3.1.2

OS: Win7

See new attachment also
Comment 6 Tupe 2014-10-10 18:29:26 UTC
Created attachment 107675 [details]
Failed spell check in a commented word
Comment 7 Luuk 2014-10-11 11:49:08 UTC
Created attachment 107713 [details]
a comment is seen as the end (or start) of a word.....
Comment 8 Urmas 2014-10-12 14:34:00 UTC
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.
Comment 9 Luuk 2014-10-12 14:44:56 UTC
"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.