Bug 156486 - Automatic Spell check faulty after language change (Swahili)
Summary: Automatic Spell check faulty after language change (Swahili)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-27 08:55 UTC by Martin Tlustos
Modified: 2023-11-01 15:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Swahili only user dictionary/wordbook (899 bytes, text/plain)
2023-10-25 08:43 UTC, Martin Tlustos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Tlustos 2023-07-27 08:55:15 UTC
1) Create a new impress presentation. Default language is English
2) activate automatic spell checking.
3) Create slides with Swahili text. Almost all words are underlined as faulty.
4) change language to Swahili (Tanzania). Either in format styles or via "Tools - Language - For All Text"

Result:
All words are still underlined as faulty. As soon as the first one is added to a dictionary, all underlining disappears.

Spell Checking (F7) returns empty result, the language is displayed as "none".

Expected result:
Underlining of words in the Swahili dictionary should disappear. F7 should run a correct spell check, and the language in the language picker should be set to "Swahili".
Comment 1 Aaron 2023-08-10 04:56:26 UTC
Thank you for reporting the bug. I can not reproduce the bug in

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: sw-TZ (fr_FR); UI: en-US
Calc: threaded

Could you provide some examples of Swahili text in an attachment?
Comment 2 Buovjaga 2023-09-13 06:37:56 UTC
Martin: did you have Swahili dictionary installed?

I tested now by having both English and Finnish dictionaries. The default language was Finnish. I wrote a sentence in Finnish. I changed language for all text to English. Redlining appeared. I added the first word to the dictionary. Redlining disappeared *only* for that word. Spell checking also worked as expected, not as you describe.

Arch Linux 64-bit, X11
Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 60(Build:3)
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.6.0-2
Calc: threaded
Comment 3 Martin Tlustos 2023-10-24 06:45:12 UTC
Well, for me it still doesn't work. I also tried German to rule out that it's not a problem with the Swahili spell checker, but it still makes problems.
F7 either gives empty results and shows "no language", or checks all text as English, although it is formatted as Swahili. Changing the spell checking language to Swahili works, but must be done after every single word.

Here is some of the text I use:

Zilitumika kwa makarne na makarne
Zilisauhuliwa baada ya dawa za kisasa kubuniwa
zimekumbukwa miaka ya hivi karibuni
siku hizi kuna utafiti sana kuhusu dawa hizo


System Info:
Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 6; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:7.6.2~rc1-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 4 Buovjaga 2023-10-24 06:56:14 UTC
Works for me with https://extensions.libreoffice.org/en/extensions/show/swahili-dictionary Your example text gives me redlining for makarne, Zilisauhuliwa and zimekumbukwa. F7 Spelling dialog also works as expected.

Tested both by doing the language change from another language and by having Swahili (Tanzania) as default language for documents.
Comment 5 Martin Tlustos 2023-10-25 08:42:57 UTC
The funny thing is that it works for me in writer as well. It's only in Impress.

Oh, I added a custom Swahili only user dictionary where I put my Swahili words in (to not mix up different languages). And I also have a user dictionary for names only that has no language attached to it.
Comment 6 Martin Tlustos 2023-10-25 08:43:54 UTC
Created attachment 190407 [details]
Swahili only user dictionary/wordbook
Comment 7 Buovjaga 2023-11-01 15:24:38 UTC
With your dictionary, the example text in comment 3 doesn't give any errors, because you added makarne, Zilisauhuliwa and zimekumbukwa to the dictionary. If I write some gibberish, it is immediately redlined and also brought up in the F7 spell checking dialog.

All this time I have been testing in Impress.

To be sure, I also tested under Wayland now, so our systems are identical.