spellchecker icon indicating copy to clipboard operation
spellchecker copied to clipboard

Provided dictionary files <de_DE_frami.dic> & <de_DE_frami.aff> not recognized. After renaming to <de_DE.*> it is working well.

Open jspille opened this issue 3 years ago • 4 comments

Description

The provided dictionary files <de_DE_frami.dic> & <de_DE_frami.aff> are not recognized. After renaming to <de_DE.dic> & <de_DE.aff> it is working well.

Reproduce

After installing the spellchecker, I changed the setting to.

    // Language of the spellchecker
    // Dictionary identifier, e.g. en-us
    "language": "de-de",

after saving the setting, the spellchecker didn't work.

I changed the filename of the .dic and .aff file, as explained above, and the spellchecker worked well. Please ensure that all delivered dictionaries, incl, <_frami.> are recognized. Thanks.

Context

  • Python package version:
  • Extension version: ipycanvas v0.10.2 enabled ok jupyter-leaflet v0.13.5 enabled ok jupyterlab-drawio v0.9.0 enabled ok (python, jupyterlab-drawio) nbdime-jupyterlab v2.1.1 enabled ok @ijmbarr/jupyterlab_spellchecker v0.7.2 enabled ok (python, jupyterlab-spellchecker) @jupyter-widgets/jupyterlab-manager v3.0.0 enabled ok (python, jupyterlab_widgets) @jupyter-widgets/jupyterlab-sidecar v0.6.1 enabled ok (python, sidecar) @jupyterlab/git v0.34.0 enabled ok (python, jupyterlab-git)

Other labextensions (built into JupyterLab) app dir: C:\DataProg\anaconda3\share\jupyter\lab jupyterlab-spreadsheet v0.4.1 enabled ok

  • Operating System and its version: Windows 11
  • Browser and its version: Firefox

jspille avatar Dec 29 '21 13:12 jspille

Hi @jspille thank you for opening the issue. It looks that you are attempting to use an incorrect dictionary identifier. The identifier for the de_DE_frami.dic/.aff dictionary is de_DE_frami and it is set automatically when using the dictionary selector from the status bar:

de_frami

Why were you expecting de-de to work in this case? Is this mention like this in our documentation or some tutorial? If yes, this needs correcting, but I don't see need for any further action other than that.

krassowski avatar Dec 29 '21 16:12 krassowski

Not the issue owner but I had the same assumption, maybe we could add the default available dictionaries and their language tag to the readme?

noeleont avatar Sep 15 '22 15:09 noeleont

Had the same problem. Adding the animation above to the README would be very helpful. The statusbar doesn't seem to mentioned in the README at all. The statusbar is a great feature but the user might not look at it. Pointing this feature out in the README would be great.

pya avatar Oct 02 '22 09:10 pya

We can dynamically add the enum to the settings schema to validate the available dictionaries and have a switch list in settings UI (available since JupyterLab 3.3). This would require using settingRegistry.transform to change the schema in the fetch step and then trigger update of the settings on any change to the online dictionaries or server reported dictionaries. Something like this is being done in jupyterlab-lsp and in the shortcuts extension.

krassowski avatar Oct 02 '22 11:10 krassowski