Bug 91151 - Spellcheck: "Correct All" does not correct all occurrences of misspelling throughout the document
Summary: Spellcheck: "Correct All" does not correct all occurrences of misspelling thr...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 92545 126814 143231 161245 (view as bug list)
Depends on:
Blocks: Spell-Checking
  Show dependency treegraph
 
Reported: 2015-05-07 23:55 UTC by Anaya Patos
Modified: 2025-01-17 14:15 UTC (History)
12 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anaya Patos 2015-05-07 23:55:50 UTC
There is a failure during spell checking, telling to “Change All”, not performs the function of correcting the Following words
forgiveness by Google translation


Versión: 4.4.3.2
Id. de compilación: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Configuración regional: es_ES
Comment 1 Buovjaga 2015-05-15 09:52:04 UTC
Could not reproduce.
Correct all changes all the instances of an erroneous word.

Ubuntu 15.04 64-bit 
Version: 4.4.2.2
Build ID: 40m0(Build:2)
Locale: en_US

Version: 5.0.0.0.alpha1+
Build ID: 4c665178f49952138835fd318edef8978ac806e3
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-05-12_06:15:42
Locale: en-US (en_US.UTF-8)
Comment 2 Gordo 2015-05-20 19:36:40 UTC Comment hidden (obsolete)
Comment 3 Stéphane Guillou (stragu) 2024-06-11 03:22:20 UTC
Bug 46852 was about a different issue: using "Correct All" in combination with "Continue checking at beginning of document", the spellcheck process concluding prematurely. That was indeed fixed in LO 6.0.

The issue described by Anaya is different: pressing "Correct all" does not correct all the same misspellings throughout the document (or at least, from the active word to the end of the document). And this is still the case in a recent daily build, as well as in OOo 3.3.

Bug 75922 alludes to this, but was tracking many different issues with Correct All, so better keep that one as "resolved - works for me".

This bug here can be reproduce with the default English dictionaries, and the following steps:

1. In a new Writer document, with document in any English variant, paste the following paragraphs (unformatted):

dogg
dogg
catt dogg
frogg frogg
frogg catt dogg
dogg catt
frogg, dogg, catt

2. With cursor at beginning of document, start Tools > Spelling (F7)
3. Click "Correct All" for the suggestion "dogg -> dog"

Result A: first two paragraphs are corrected, not the rest.

4. Click "Close"

Result B: third paragraph is corrected, but not the rest.

Expected result: all occurrences of "dogg" are replaced by "dog" throughout the document as soon as "Correct All" is pressed. This is the expectation according to the documentation[1]:

"Replaces all occurrences of the unknown word with the current suggestion."

I haven't seen any evidence that the command shouldn't apply to the whole document, and the feature should at least behave on par with the "Ignore All" command, which ignores all occurrences instantly and removes the red underline, before and after the current position.

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 5a75414d1772d1fd998f405e3b9bd80b1f10c51f
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Same results in OOo 3.3.

Similar issue in Impress, see e.g. bugdoc[2] from AOO tracker[3].

[1]: https://help.libreoffice.org/24.8/en-US/text/shared/01/06010000.html
[2]: https://bz.apache.org/ooo/attachment.cgi?id=68817
[3]: https://bz.apache.org/ooo/show_bug.cgi?id=110688
Comment 4 Stéphane Guillou (stragu) 2024-06-11 03:24:33 UTC
*** Bug 92545 has been marked as a duplicate of this bug. ***
Comment 5 Stéphane Guillou (stragu) 2024-06-11 03:24:51 UTC
*** Bug 126814 has been marked as a duplicate of this bug. ***
Comment 6 Stéphane Guillou (stragu) 2024-06-11 03:26:04 UTC
*** Bug 143231 has been marked as a duplicate of this bug. ***
Comment 7 Stéphane Guillou (stragu) 2024-06-11 03:26:26 UTC
*** Bug 161245 has been marked as a duplicate of this bug. ***
Comment 8 larrybradley 2024-07-30 02:07:56 UTC Comment hidden (no-value)
Comment 9 Paul 2024-11-15 17:52:57 UTC
(In reply to Stéphane Guillou (stragu) from comment #4)
> *** Bug 92545 has been marked as a duplicate of this bug. ***

That was an excellent breakdown of the problem, thank you. I have been experiencing it for years and finally decided to inquire about it.

Continuing on, using your example, I see that if I continue with the spellcheck operation, the "correct all" for "dogg" does work as I advance to the following paragraphs.

So whereas my expected behavior is that clicking "correct all" immediately corrects all instances of the mistake, instead LO requires continuing the spellcheck through the ensuing data. Thus, "correct all" is not an automatic process, it is semi-automatic.

Making the Correct All function automatic for the whole document would be much better and more in line with what people expect of the function, in my opinion.

I'm on LO 25.2.0.0 on Linux Deb.
Comment 10 Paul 2025-01-17 14:15:22 UTC
I've since discovered that the length of the document has a lot to do with how spellcheck / correct all works. 


For shorter documents, it does work. If you paste this into a new Writer document:

misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx misspellingxxx

and do a "correct all", the whole paragraph is immediately corrected. Perfect.

But if that paragraph is at the end of a long document, and you "correct all" one instance of "misspellingxxx" at the doc beginning, nothing happens to the last paragraph.

It gets worse. As you progress with spellcheck, other instances of "misspellingxxx" along the way will not have been changed. You will have to manually correct each of them. So letting spellcheck advance to the end of the document (which may be impractical in one sitting with a large document with many spelling corrections) will still not make all the Correct All changes.