vscode-cspell-dict-extensions: accented letters make errors

Hello and thank you for this useful extension.

I installed the french dictionnary and set "cSpell.language": "en,fr" in the preferences.

It works fine but creates an error when a character is not accentuated in a french word. for exemple: prénom does not make an error, but prenom does. This is a good thing for a regular dictionnary, but not for code. In code, it is a common thing to use french words without accents.

Is there a way to fix that?

thank you

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 20
  • Comments: 17

Most upvoted comments

Support for this is currently in progress.

I agree, this is cumberstone for multiple languages. It would be great to have option to accept words without accents.

It is currently in progress.

Three things need to happen.

  1. The spell checker needs to be updated to use cspell@5 (In Progress)
  2. The Brazilian dictionary needs to be rebuilt. (Not yet started)
  3. This extension needs to be updated with the new Brazilian dictionary (Not yet started)

In Brazilial Portuguese we have this problem too. Waiting for update to support non-acentued words, thank you.

Hi @Jason3S,

thank you for all your effort! May I ask you to have a look at the German dictionary, too?

To achieve utf8 compliance it is common in German to substitute umlauts:

  • Ä -> Ae
  • Ö -> Oe
  • Ü -> Ue
  • ä -> ae
  • ö -> oe
  • ü -> ue

Currently my solution is to add all words I encounter to a custom dictionary, but it would be great to have these substitutions build-in.

Cheers,
Arne

@EwenQuim,

Thank you for the reminder. It has been published.

I can see how that is misleading.

@natenho,

The locales have to be the same or it won’t match. pt is not the same as pt-BR.

If you set locale to be pt,pt-BR, it mean match against either pt or pt-BR.

Please try:

    "cSpell.languageSettings": [
        {
            "locale": "pt,pt-BR",
            "languageId": "*",
            "caseSensitive": false,
        },
        {
            "locale": "pt,pt-BR",
            "languageId": [
                "markdown",
                "json",
                "yaml"
            ],
            "caseSensitive": true
        }
    ]

It would be a nice feature, I’ve just give up using pt_BR dictionary because of this, @Jason3S is it possible to release the dictionaries that are ready to go and build the remaining in new issues (e.g. per dictionary)?

I’m slowing rebuilding the dictionaries.

Done so far:

  • pt_BR
  • ru
  • de_DE
  • sv_SE
  • es_ES

Up next are French and Dutch.

Are there any preferences?