Fedora 22 upgrade, spell check not working

I have upgraded several systems to Fedora 22 (Libreoffice 4.4.5.2) and have now discovered that the auto spell checking is no longer working. That is, a misspelled word used to get a red squiggled line under it and produce suggestions on the correct spelling.

One suggestion that I have seen is to re-set the default language to “English (USA)”. For some of the systems, this has worked and auto spell check is working, but on other systems this seems to not be working.

On the systems that are not working, the pull-down list showing all of the available languages shows an icon that looks like “ABC” and a check next to all of the english options EXCEPT for “English (USA)”. On the systems that are working, this icon is present only on the “English (USA)”. I interpret the icon to indicate that spell checking is available for these languages, and indeed, if I select “English (UK)” or any other choice with the icon, I do get auto spell checking.

I did see mention of installing “libreoffice-langpack-en”. There were no language packs installed initially. After installing this, however, the situation has not changed.

So, the question is, how did I get all variations of English enabled for spell checking EXCEPT for USA, and, more importantly, how do I fix it?

Thanks!

marcus hall
marcus@tuells.org

[Edit: added lo4.4.5 tag]

Possibly 2 things to check; inside & outside:

Inside:

  1. Go (menu):ToolsOptionsLanguage Settings
  1. LanguagesDefault Languages for Documents
    Does your choice have a ABC✔ at the left? If not, you will not be able to spell-check the document.
  2. Writing AidsAvailable language modules
    Is the spell-checker listed? (sanity check)
  3. Writing AidsUser-defined dictionaries
    Is your desired language listed + checked?
    If not, go install it (use your Repo, or Online)
  4. Go (menu):ToolsLanguage
    Make sure that the correct language is checked for each of the top-3 (selection, paragraph, all text)
    If (menu):ToolsSpelling & Grammar... also has a :heavy_check_mark: then you are good to go.

Outside:

Resetting the user profile:-

“If you notice any strange behaviour on LibreOffice, or simply it fails to start, the first thing to try is to reset the user profile.”

  1. Shutdown LO/OO + Quickstarter
  1. Find your user-profile directory
    (enable ‘Show hidden files’)
    (note: 5.x profile location is identical to 4.x)
  2. Rename it
  3. Restart LO/OO

…and try again.

LO/OO is very prone to Profile Corruption. In the absence of an existing profile it is designed to re-create a new, default profile, and that neatly fixes many, many problems.

If this helps then please tick the answer (:heavy_check_mark:)

As I had concluded above, the ABC✔ not being present on “English (USA)” is an indicator that spell checking isn’t present. But, it is present for the 15 other flavors of english. Why that is so seems to be the root of the issue.

I did rename the ~/.libreoffice directory, but that did not make any difference.

Hmm. You renamed the wrong directory.


Your Profile is supposed to be located at (4.x + 5.x):-


~/.config/libreoffice/4/user


(the one you show is for 3.x)
(d/check at:- (menu):ToolsOptionsPaths)

In all cases you rename the /user dir. May not work otherwise.

OK, I removed ~/.config/libreoffice and let it re-create things. The old version had a “3” subdirectory and it re-created a version with a “4” subdirectory. Still, no spellchecking on English (USA), just all of the other English (XXX) variations.

You had a 4.x installation & it was using a 3.x Profile? That suggests a corrupt install & may also suggest greater problems within that particular system than just LO spell-check issues (although the successful Profile recreation is contrary to that idea).

The most obvious route forward is to clean LO/OO from the system as fully as possible (LO/OO deliberately leaves Profiles in place), check for a sane locale, then reinstall from scratch.

I will try removing all of the packages and re-installing in the near future… Besides the ~/.config/libreoffice directory, what other configuration information is there to remove?

It seems like a system install sort of a problem, since the issue happens for all users on the systems that failed (about 4 out of 5 systems upgraded) and seems to be fine on the one system I know still works. I have verified that all of the packages installed on the working system are installed on the failed…

… systems…

Just what information tells libreoffice which spellcheck dictionaries are installed anyhow? Is there a directory with the databases present, or an XML file somewhere? I suppose that I can compare all files owned by libreoffice packages and see if there is a difference somewhere between the working and failed systems…

OK, I have found what solved the problem for me…

Under Tools->Options->Language Settings:Writing Aids, the list of available language modules showed almost everything set. I unchecked and then re-checked “Hunspell SpellChecker” and “Libhyphen Hyphenator” and hit OK. (I strongly suspect that the hunspell was the significant checkbox). Then, when I go back to Language and look at the default language settings, the “English (USA)” entry has the ABC✔ by it, and now spell checking is working.

Best guess is that some results of invoking something from hunspell is saved by libreoffice and that with updating versions, the cached output is no longer valid. Re-invoking (when re-checking the checkbox) refreshes the cached data and now everything is all better.