DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

Spellcheck not seeing '-'

Open moritztim opened this issue 11 months ago • 10 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my bug.

Operating System

Linux (DEB package)

Version information

8.0.1.31

Expected Behavior

German spellcheck can see the whole word including a trailing - character

Actual Behavior

Kommunikations- > Kommunikations-- Kommunikations-- > Kommunikations--- Kommunikations--- > Kommunikations---- It just keeps adding - and not seeing any existing -

Reproduction Steps

  1. Set spellcheck to "Deutsch (Schweiz)"
  2. Write something like "Kommunikations-"
  3. Correct it with spellcheck to what you already wrote
  4. See it still underlined, now with two trailing "-"

Additional information

No response

moritztim avatar Mar 18 '24 13:03 moritztim

@moritz-t-w, hello! I'm collecting issues related to multi-language documents, not affiliated with Only Office, mind you. Since you reported an issue involving various languages, I thought about sharing them with you. In my view the most annoying is inability to limit list of laguages.

  • https://github.com/ONLYOFFICE/DesktopEditors/issues/802
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/273
  • https://github.com/ONLYOFFICE/DocumentServer/issues/2142
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/626
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/527
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/437
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/356
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/224
  • https://github.com/ONLYOFFICE/DocumentServer/issues/576
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/1449
  • https://github.com/ONLYOFFICE/DocumentServer/issues/2140
  • https://github.com/ONLYOFFICE/DocumentServer/issues/2326
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/1223
  • https://github.com/ONLYOFFICE/DesktopEditors/issues/1124

HectorB-2020 avatar Mar 23 '24 18:03 HectorB-2020

@HectorB-2020 This issue happens in single language docs too

moritztim avatar Mar 23 '24 22:03 moritztim

Hello @moritz-t-w Please tell me, in this situation, is the “-” symbol at the end of a word part of the word? Could you explain to me a little more what the correct spell check behavior would be in this situation?

maruacat avatar Mar 26 '24 15:03 maruacat

So in german you can shorten something like this

The foreground and the background

To this

The fore- and background

So the correction it's suggesting is correct, the problem is just that it doesn't take the - into account when generating corrections.

moritztim avatar Mar 26 '24 18:03 moritztim

So in german you can shorten something like this

The foreground and the background

To this

The fore- and background

So the correction it's suggesting is correct, the problem is just that it doesn't take the - into account when generating corrections.

So after selecting the word "Kommunikations-" correction, the result should be that the word is no longer underlined in red and there should be only one dash left after the word, right?

maruacat avatar Mar 27 '24 08:03 maruacat

So after selecting the word "Kommunikations-" correction, the result should be that the word is no longer underlined in red and there should be only one dash left after the word, right?

Yes and if I wrote "Komunikations-" (with a typo) it should correct that to "Kommunikations-" aswell, again taking the "-" into account

moritztim avatar Mar 27 '24 09:03 moritztim

So after selecting the word "Kommunikations-" correction, the result should be that the word is no longer underlined in red and there should be only one dash left after the word, right?

Yes and if I wrote "Komunikations-" (with a typo) it should correct that to "Kommunikations-" aswell, again taking the "-" into account

Sorry, I have one more question. Did I understand correctly that the word "Kommunikations-" that you wrote in Reproduction Steps is written correctly and therefore it should not have been emphasized as incorrect at all? the same goes for other grammatically correct words with a hyphen at the end

maruacat avatar Mar 27 '24 13:03 maruacat

Did I understand correctly that the word "Kommunikations-" that you wrote in Reproduction Steps is written correctly and therefore it should not have been emphasized as incorrect at all? the same goes for other grammatically correct words with a hyphen at the end

Yes.

moritztim avatar Mar 27 '24 23:03 moritztim

Hello @moritz-t-w Thanks for your help, everything is clear to me now. I can confirm this is a bug, so I've created issue #67144. Have a good day!

maruacat avatar Mar 28 '24 12:03 maruacat

The issue is actual in DocumentServer.

Rita-Bubnova avatar Mar 28 '24 12:03 Rita-Bubnova