Summary: | Spell checker doesn't work with non-default languages | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Oleg Solovyov <mcpain> |
Component: | spellchecker | Assignee: | Alexander Lohnau <alexander.lohnau> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | drake14524, nate, plasma-bugs, qydwhotmail |
Priority: | NOR | ||
Version: | 5.22.2 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kdeplasma-addons/commit/10b7007cae463384bb1e27138a692a820f670f3f | Version Fixed In: | 5.25 |
Sentry Crash Report: | |||
Attachments: | krunner, spell |
Description
Oleg Solovyov
2021-07-06 08:30:01 UTC
Still same problem. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/121 Created attachment 147234 [details]
krunner, spell
(In reply to Bug Janitor Service from comment #2) > A possibly relevant merge request was started @ > https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/121 unfortunately not working for me Comment on attachment 147234 [details]
krunner, spell
spell <language-code> <search-term> still not working on krunner.
(In reply to mr.drake from comment #4) > (In reply to Bug Janitor Service from comment #2) > > A possibly relevant merge request was started @ > > https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/121 > > unfortunately not working for me I was using wrong language code. It works! Thank you very much! Git commit e567213e30a0d8c541b48a2164c16c4e365a5879 by Fushan Wen. Committed on 02/03/2022 at 08:30. Pushed by fusionfuture into branch 'master'. runners/spellchecker: Match the language code using `startWith` And make the match case-insensitive, so "en" or "en_us" can work. M +17 -10 runners/spellchecker/spellcheck.cpp M +1 -0 runners/spellchecker/spellcheck.h https://invent.kde.org/plasma/kdeplasma-addons/commit/e567213e30a0d8c541b48a2164c16c4e365a5879 A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/122 Git commit 10b7007cae463384bb1e27138a692a820f670f3f by Fushan Wen. Committed on 02/03/2022 at 11:14. Pushed by fusionfuture into branch 'master'. runners/spellchecker: Add automatic language detection of search term If the default dictionary returns an empty result, try to iterate over all available dictionaries (except the default one) to get the suggestion. M +45 -17 runners/spellchecker/spellcheck.cpp https://invent.kde.org/plasma/kdeplasma-addons/commit/10b7007cae463384bb1e27138a692a820f670f3f Git commit 84f964d65f3bc66277142074b9637c7f350c4c27 by Fushan Wen. Committed on 02/03/2022 at 16:21. Pushed by fusionfuture into branch 'master'. runners/spellchecker: Add autotests 1. `testDefaultDictionary`: Test the runner can return a suggestion. (spell hello) 2. `testSpecifiedDictionary`: Test the runner can return a suggestion when the language is specified. (spell en_US hello) 3. `testAutomaticDictionary`: Test the runner can return a suggestion when the term is not in the default language. (spell мама) 4. `testSuggestions`: Test the runner can return a suggestion when the term is misspelled. M +11 -2 runners/spellchecker/CMakeLists.txt A +12 -0 runners/spellchecker/autotests/CMakeLists.txt A +156 -0 runners/spellchecker/autotests/spellcheckrunnertest.cpp [License: LGPL(3+eV) LGPL(v3.0) LGPL(v2.1)] M +2 -0 runners/spellchecker/spellcheck.h https://invent.kde.org/plasma/kdeplasma-addons/commit/84f964d65f3bc66277142074b9637c7f350c4c27 |