vscode-cspell-dict-extensions
vscode-cspell-dict-extensions copied to clipboard
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
I agree, this is cumberstone for multiple languages. It would be great to have option to accept words without accents.
Support for this is currently in progress.
In Brazilial Portuguese we have this problem too. Waiting for update to support non-acentued words, thank you.
Was this solved?
It is currently in progress.
Three things need to happen.
- The spell checker needs to be updated to use cspell@5 (In Progress)
- The Brazilian dictionary needs to be rebuilt. (Not yet started)
- This extension needs to be updated with the new Brazilian dictionary (Not yet started)
Any updates on this?
From @Jason3S list, point number 1 seems fixed in alpha version:
https://github.com/streetsidesoftware/vscode-spell-checker/pull/942 https://github.com/streetsidesoftware/vscode-spell-checker/commit/e4c2479a5e34430c597b5b076bea70a95ee9729d
So it follows that:
- It needs to mature and reach vscode marketplace
- Dictionaries need to be updated
👍
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?
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)?
@natenho,
They have already been released. See Spell check ignore accentuation. · Issue #1060 · streetsidesoftware/cspell
@Jason3S
I tried to use the settings described and I could not get it working...here is the json settings:
"cSpell.language": "en,pt-BR",
"cSpell.languageSettings": [
{
"locale": "pt",
"languageId": "*",
"caseSensitive": false,
},
{
"locale": "pt",
"languageId": [
"markdown",
"json",
"yaml"
],
"caseSensitive": true
}
]
But the accented words are still being marked as mispelled.
@natenho,
The locale
s 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
}
]
ok, now it works! thank you very much!!
I thought locale was a "contains" match, like stated in your post here:
I can see how that is misleading.
Up next are French and Dutch.
Can you please add the french version? This extension seems really great but is currently unusable in French because of the amount of accented words. Thank you for your work!
@EwenQuim,
Thank you for the reminder. It has been published.
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