summaryrefslogtreecommitdiff
path: root/de
diff options
context:
space:
mode:
authorAron Fischer <gerrit@aron.guru>2022-06-18 00:49:23 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-09-23 10:52:56 +0200
commit9e27d044d98e65f89af8c86df722a77be827bdc8 (patch)
treea826e1cff1be6c4cbc5b068e20d5f2b2612da35b /de
parentac6502c9f80eb897384e0bfb8f0879b668b6cf87 (diff)
Recognise umlauts typed as -e on non DE keyboard
This change helps the spellchecker to find correct words if the misspelling consists of replacement of Umlauts with their vowel+e variants. The file already contains entries such as "REP ae ä" on line 519 or "REP ss ß" on line 507. This tells the checker to try first replacing ae as ä and see if that works or to try replacing ss with ß and see if that works. This will only succeed if there is a single instance in the word that needs to be replaced. The word "greetings" typed as "Gruesse" was causing me trouble as it contains both ue and ss next to each other and the REP commands do not catch this. The MAP command seems to play a somewhat similar role as REP but whereas REP deals typically with "one character mistakes", MAP just defines character sequences that are related in a language specific setting and works with multiple replacements within a single word. See here for details: https://www.systutorials.com/docs/linux/man/4-hunspell/ In any event, I doubt it can cause harm because the character sequences that I am relating in the MAP commands are actually related in the German language, and furthermore I am not changing any spelling rules, I am just aiding in the search for correct spelling suggestions. Change-Id: I4683db860467ff6a68e96301c0ed187df1089b3c Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/136067 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'de')
-rw-r--r--de/de_AT_frami.aff9
-rw-r--r--de/de_CH_frami.aff9
-rw-r--r--de/de_DE_frami.aff8
3 files changed, 26 insertions, 0 deletions
diff --git a/de/de_AT_frami.aff b/de/de_AT_frami.aff
index 99d51e0..9be547c 100644
--- a/de/de_AT_frami.aff
+++ b/de/de_AT_frami.aff
@@ -531,6 +531,15 @@ REP ch k
REP k ch
#REP eee ee-E
+MAP 7
+MAP (ss)
+MAP (ue)
+MAP (Ue)
+MAP (oe)
+MAP (Oe)
+MAP (ae)
+MAP (Ae)
+
# this one will allow "-Eltern" - Hunspell 1.1.5 bug, but CHECKSHARPS obsoletes LANG de_DE
#LANG de_DE
diff --git a/de/de_CH_frami.aff b/de/de_CH_frami.aff
index 97f695b..1bccc15 100644
--- a/de/de_CH_frami.aff
+++ b/de/de_CH_frami.aff
@@ -531,6 +531,15 @@ REP ch k
REP k ch
#REP eee ee-E
+MAP 7
+MAP (ss)
+MAP (ue)
+MAP (Ue)
+MAP (oe)
+MAP (Oe)
+MAP (ae)
+MAP (Ae)
+
# this one will allow "-Eltern" - Hunspell 1.1.5 bug, but CHECKSHARPS obsoletes LANG de_DE
#LANG de_DE
diff --git a/de/de_DE_frami.aff b/de/de_DE_frami.aff
index 3c31576..12b9b58 100644
--- a/de/de_DE_frami.aff
+++ b/de/de_DE_frami.aff
@@ -531,6 +531,14 @@ REP ch k
REP k ch
#REP eee ee-E
+MAP 7
+MAP (ss)
+MAP (ue)
+MAP (Ue)
+MAP (oe)
+MAP (Oe)
+MAP (ae)
+MAP (Ae)
# this one will allow "-Eltern" - Hunspell 1.1.5 bug, but CHECKSHARPS obsoletes LANG de_DE
#LANG de_DE