Skip to content

Commit

Permalink
feat!: Support Umlaut alternatives (#1500)
Browse files Browse the repository at this point in the history
* feat!: Support Umlaut alternatives

fixes #1176

BREAKING: This change requires CSpell 6.12.0 or higher.

* Update cspell.json
  • Loading branch information
Jason3S committed Oct 1, 2022
1 parent 4e1b2c9 commit e0e27b7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
29 changes: 28 additions & 1 deletion dictionaries/de_DE/cspell-ext.json
Expand Up @@ -8,7 +8,34 @@
{
"name": "de-de",
"path": "./de_DE.trie.gz",
"description": "German (de-DE) Dictionary."
"description": "German (de-DE) Dictionary.",
"repMap": [
["ae", "ä"],
["oe", "ö"],
["ue", "ü"],
["Ae", "Ä"],
["Oe", "Ö"],
["Ue", "Ü"],
["ss", "ß"]
],
"dictionaryInformation": {
"locale": "de_DE",
"alphabet": "a-zA-ZäüößáéêàâñÄÜÖÉ",
"suggestionEditCosts": [
{
"map": "(ae)ä|(oe)ö|(ue)ü(Ae)Ä|(Oe)Ö|(Ue)Ü|(ss)ß",
"replace": 0
},
{
"map": "eéèëê|aáà|iíìïî|oóòöô|uüúùû|(ij)(ij)(IJ)(IJ)",
"replace": 1
},
{
"map": "(ah)a|(ch)k|(ee)e|(eh)e|(ph)f|(th)t|dt|i(ie)|o(oh)|r(rh)|s(ss)|t(th)",
"replace": 50
}
]
}
}
],
"dictionaries": [],
Expand Down
1 change: 1 addition & 0 deletions dictionaries/de_DE/cspell.json
Expand Up @@ -6,6 +6,7 @@
"import": [
"./cspell-ext.json"
],
"ignorePaths": ["cspell-ext.json", "*.trie", "/src/**"],
"ignoreWords": [
"frami",
"Huggenberger",
Expand Down
12 changes: 12 additions & 0 deletions dictionaries/de_DE/samples/alternate_spelling.md
@@ -0,0 +1,12 @@
# Umlaut

- https://github.com/streetsidesoftware/cspell/issues/3590
- https://github.com/streetsidesoftware/cspell/issues/3592
- https://github.com/streetsidesoftware/vscode-spell-checker/issues/2066
- https://github.com/streetsidesoftware/cspell-dicts/issues/1176

Strasse
Straße

Übung
Uebung

0 comments on commit e0e27b7

Please sign in to comment.