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>
This commit is contained in:
parent
ac6502c9f8
commit
9e27d044d9
|
@ -531,6 +531,15 @@ REP ch k
|
||||||
REP k ch
|
REP k ch
|
||||||
#REP eee ee-E
|
#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
|
# this one will allow "-Eltern" - Hunspell 1.1.5 bug, but CHECKSHARPS obsoletes LANG de_DE
|
||||||
#LANG de_DE
|
#LANG de_DE
|
||||||
|
|
|
@ -531,6 +531,15 @@ REP ch k
|
||||||
REP k ch
|
REP k ch
|
||||||
#REP eee ee-E
|
#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
|
# this one will allow "-Eltern" - Hunspell 1.1.5 bug, but CHECKSHARPS obsoletes LANG de_DE
|
||||||
#LANG de_DE
|
#LANG de_DE
|
||||||
|
|
|
@ -531,6 +531,14 @@ REP ch k
|
||||||
REP k ch
|
REP k ch
|
||||||
#REP eee ee-E
|
#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
|
# this one will allow "-Eltern" - Hunspell 1.1.5 bug, but CHECKSHARPS obsoletes LANG de_DE
|
||||||
#LANG de_DE
|
#LANG de_DE
|
||||||
|
|
Loading…
Reference in New Issue