[Libreoffice-commits] core.git: lingucomponent/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 17 07:25:46 UTC 2021
lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7527afeb305bb01340461f6fddf6d13a5acca3e3
Author: Tor Lillqvist <tml at iki.fi>
AuthorDate: Wed Mar 17 09:14:44 2021 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Mon May 17 09:25:07 2021 +0200
Don't use the macOS system German spelling dictionary for Swiss German
The system German dictionary accepts 'ß' which is not used in Swiss
Standard German but completely replaced with 'ss'. We assume that the
LibreOffice German dictionary is installed, too. It has correct
spelling for de_CH.
It would be good if we knew in the macosxspell code whether the
LibreOffice German dictionary installed, and act correspondingly. But
figuring that out seems more complicated than what I am willing to
spend on this for now.
Change-Id: I380d7734cea34a2408d9ed20a8c3d9efe6a8fea2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115690
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 874f14bc0f19..b4a206ada437 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -131,8 +131,9 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
}
else if ([pLangStr isEqualToString:@"de"])
{
+ // Not de_CH and de_LI, though. They need separate dictionaries.
const std::vector<NSString*> aDE
- { @"AT", @"BE", @"CH", @"DE", @"LI", @"LU" };
+ { @"AT", @"BE", @"DE", @"LU" };
for (auto c: aDE)
{
pLangStr = [@"de_" stringByAppendingString: c];
More information about the Libreoffice-commits
mailing list