Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P Plasma Add-ons
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 28
    • Merge requests 28
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • Plasma Add-ons
  • Merge requests
  • !122

runners/spellchecker: Add automatic language detection of search term

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Fushan Wen requested to merge work/fusionfuture/BUG439544-autodetection-language-spellchecker into master Mar 02, 2022
  • Overview 5
  • Commits 2
  • Pipelines 10
  • Changes 5

If the default dictionary returns an empty result, try to iterate over all available dictionaries (except the default one) to get the suggestion.

FEATURE: 439544

图片

Local test result

> ./build/bin/spellcheckerrunnertest 
********* Start testing of SpellCheckRunnerTest *********
Config: Using QtTest library 5.15.2, Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6]), opensuse-tumbleweed 20220227
PASS   : SpellCheckRunnerTest::initTestCase()
PASS   : SpellCheckRunnerTest::testDefaultDictionary()
PASS   : SpellCheckRunnerTest::testSpecifiedDictionary()
PASS   : SpellCheckRunnerTest::testAutomaticDictionary()
PASS   : SpellCheckRunnerTest::testSuggestions()
PASS   : SpellCheckRunnerTest::cleanupTestCase()
Totals: 6 passed, 0 failed, 0 skipped, 0 blacklisted, 422ms
********* Finished testing of SpellCheckRunnerTest *********
Edited Mar 02, 2022 by Fushan Wen
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/fusionfuture/BUG439544-autodetection-language-spellchecker