https://bugs.freedesktop.org/show_bug.cgi?id=75922

--- Comment #7 from Peter CM <[email protected]> ---
Sorry for the additional delay. Due to a wind storm, there were major power and
Internet outages in my area over the weekend.

"Correct all" seems to work for the most common pattern of multiple occurrences
of the same misspelled word -- specifically, where the misspellings are
separated by other words. For example, when you click "Correct all" for the
first instance of "ocurence" in the following sentence:

“Correct all” should correct each ocurence and every ocurence of the
highlighted misspelling.

the sentence is appropriately corrected to: 

“Correct all” should correct each occurrence and every occurrence of the
highlighted misspelling.

HOWEVER, there is a problem with how the Spelling Checker finds and selects
subsequent misspellings to correct, and in some cases in how it applies the
correction -- specifically, where the misspellings are not separated by other
words. (This is not merely a hypothetical possibility; I encountered it in real
life while spell-checking a manuscript.) I designed a couple of "extreme-case"
blocks of misspelled text to showcase the problem:

When I used "Correct all" to correct "Ocurence" to occurrence" in the following
paragraph:

I said “ocurence, ocurence, ocurence.”

I got:

I said “occurrence, occurrence, ocurence.” [last "ocurence" not corrected]

When I used "Correct all" for each misspelled word in the following block of
five identical one-sentence paragraphs:

Teh the quikc quikc brwon brwon fxo fxo jmps jmps ovre ovre teh teh layz layz
dgo dgo.

Teh the quikc quikc brwon brwon fxo fxo jmps jmps ovre ovre teh teh layz layz
dgo dgo.

Teh the quikc quikc brwon brwon fxo fxo jmps jmps ovre ovre teh teh layz layz
dgo dgo.

Teh the quikc quikc brwon brwon fxo fxo jmps jmps ovre ovre teh teh layz layz
dgo dgo.

Teh the quikc quikc brwon brwon fxo fxo jmps jmps ovre ovre teh teh layz layz
dgo dgo.

I got:

The the quick quick brwobrown brown fox fox jmjumps jumps over over the the
lazy lazy dgodog dog. [three selection/correction failures]

The the quick quick brown brown fox fox jumps jumps over over the the lazy lazy
dog. dog. [period incorrectly added after first "dog"]

The the quick quick brown brown fox fox jumps jumps over over the the lazy lazy
dog. Dog. [period incorrectly added after first "dog" and second "dog"
incorrectly capitalized]

The the quick quick brown brown fox fox jumps jumps over over the the lazy lazy
dog. dog. [period incorrectly added after first "dog"]

The the quick quick brown brown fox fox jumps jumps over over the the lazy lazy
dog. dog. [period incorrectly added after first "dog"]

So, as I said, there seems to be a problem with how the Spelling Checker finds
and selects subsequent misspellings to correct. I'm not a coder, so I can't
even guess why it added periods (full stops) to the first "dog"s, or why it
capitalized one of them, unless AutoSpellcheck somehow got activated despite
being reported as de-activated everywhere in the interface (toolbar icon, Spell
Checker Options, Tools > Options > Language Settings > Writing Aids). 

NOTES:

AutoSpellcheck was "turned off" during all of these tests. However, I noticed
that "teh" was nonetheless automatically corrected to "the" as I typed.

I ran these tests in both 4.2.0.4 (the version I was running when I initially
submitted the bug) and in 4.3.2.2 (the current release version, which I am
running now). I'm pretty sure the results were exactly the same; the same
general problem was definitely present in both versions.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to