chromiumembedded/cef

Alloy style causes empty spelling suggestions for en-US, en-GB, en-AU and en-CA

Closed this issue ยท 5 comments

mol commented

Describe the bug
No spelling suggestions for misspelled words are shown for en-US, en-GB, en-AU and en-CA, when running cefclient.exe with --use-alloy-style.

Other spell checker languages like da-DK, de-DE, en-GB-oxendict (surprisingly, since it's an English language), etc. still show suggestions.

To Reproduce

  1. Run cefclient.exe with --use-alloy-style command line argument.
  2. Go to https://www.calmlywriter.com/online
  3. Write "heg", followed by a space.
  4. Word should be highlighted as misspelled, but assuming language is en-US or another of the above, no spelling suggestions will be shown.

Expected behavior
Spelling suggestions should be shown.

Screenshots
image

Versions

  • OS: Windows 11
  • CEF Version: 131.3.5

Additional context
I first noticed this issue started happening after switching to a version of CefSharp where Alloy Bootstrap manipulation was removed, but for WPF, Alloy is still being used.

I've also noticed that when switching languages, the English language .bdic files, with the exception of en-GB-oxendict, often aren't downloaded to the cache's Dictionaries directory, but sometimes they are... Even without them however, spelling suggestions still work for those languages with off screen rendering disabled.

mol commented

Testing, it looks like it broke between 124.3.9 (last working version) and 125.0.22.

Duplicate of #3055

mol commented

Duplicate of #3055

I don't believe it's a duplicate. Issue 3055 is 4 years old, and is describing the issue as spelling not being checked / marked with squiggly lines.

This issue started occurring recently, only for Alloy style, and squiggly lines do appear for misspelled words - it's just that no suggestions are shown to correct them for some languages - which seems to depend on the machine.

On one machine, en-UK doesn't show suggestions, but for another it does. I've tested this with two machines.

It seems they appear only for non-installed languages. So if you have en-UK installed on the machine, then suggestions won't appear.

I'm still working out the cause. Compiling with the flag to disable the machine spelling check part didn't seem to help.

All that said, I understand if it being an Alloy only issue means it's not something to fix, but I don't believe it's a duplicate ๐Ÿ™‚

mol commented

It seems they appear only for non-installed languages. So if you have en-UK installed on the machine, then suggestions won't appear.
This behavior is consistent with issue 3055, which is about missing Alloy support for the OS spell checker. Chromium is trying (and failing) to use the OS spell checker for installed languages. It is likely falling back to hunspell (which works) for non-installed languages.

Right, ok. I read through all of the comments there again, and I see what you're saying. It's just the description that's a bit inaccurate with the current state of the issue, but effectively this is a duplicate yeah ๐Ÿ‘