web-dev-qa-db-fra.com

Comment corriger «aucun backend trouvé pour la vérification orthographique» dans les paramètres de l'éditeur Kate?

J'ai installé l'éditeur Kate dans mon système Ubuntu MATE 16.04.6 LTS aussi simple que
Sudo apt-get install kate.

Dans son onglet Paramètres → Configurer Kate, Editeur, Édition, Vérification orthographique Je vois qu'il ne détecte pas le back-end pour la vérification orthographique:

Aucun backend n'a été trouvé pour la vérification orthographique Configure - Kate

$ kate
Sonnet: No speller backends available!
No language dictionaries for the language: "en"

J'ai installé les packages suivants liés à la vérification orthographique:

$ dpkg -l | grep -iE "dict|spell.*(check|correct)"
ii  anthy                                                       9100h-25ubuntu1                                 AMD64        input method for Japanese - backend, dictionary and utility
ii  anthy-common                                                9100h-25ubuntu1                                 all          input method for Japanese - common files and dictionary
ii  aspell                                                      0.60.7~20110707-3build1                         AMD64        GNU Aspell spell-checker
ii  aspell-en                                                   7.1-0-1.1                                       all          English dictionary for GNU Aspell
ii  dictionaries-common                                         1.26.3                                          all          spelling dictionaries - common utilities
ii  enchant                                                     1.6.0-10.1build2                                AMD64        Wrapper for various spell checker engines (binary programs)
ii  geany-plugin-spellcheck                                     1.27+dfsg-2                                     AMD64        spellcheck plugin for Geany
ii  hunspell-en-ca                                              1:5.1.0-1ubuntu2.2                              all          English (Canada) dictionary for hunspell
ii  hunspell-en-gb                                              1:5.1.0-1ubuntu2.2                              all          English (GB) dictionary for hunspell
ii  hunspell-en-us                                              20070829-6ubuntu3                               all          English_american dictionary for hunspell
ii  hunspell-en-za                                              1:5.1.0-1ubuntu2.2                              all          English (South Africa) dictionary for hunspell
ii  hunspell-ru                                                 20120501-1                                      all          Russian dictionary for hunspell
ii  iamerican                                                   3.4.00-5                                        all          American English dictionary for ispell (standard version)
ii  ienglish-common                                             3.4.00-5                                        all          Common files for British and American ispell dictionaries
ii  ispell                                                      3.4.00-5                                        AMD64        International Ispell (an interactive spelling corrector)
ii  libaspell15:AMD64                                           0.60.7~20110707-3build1                         AMD64        GNU Aspell spell-checker runtime library
ii  libenchant1c2a:AMD64                                        1.6.0-10.1build2                                AMD64        Wrapper library for various spell checker engines (runtime libs)
ii  libgdict-common                                             3.18.0-2                                        all          GNOME Dictionary base library - common files
ii  libgtkspell0                                                2.0.16-1.1ubuntu1                               AMD64        a spell-checking addon for GTK's TextView widget
ii  libgtkspell3-3-0:AMD64                                      3.0.7-2                                         AMD64        spell-checking addon for GTK+'s TextView widget
ii  libhunspell-1.3-0:AMD64                                     1.3.3-4ubuntu1                                  AMD64        spell checker and morphological analyzer (shared library)
ii  libhunspell-dev:AMD64                                       1.3.3-4ubuntu1                                  AMD64        spell checker and morphological analyzer (development)
ii  libjazzy-Java                                               0.5.2-1                                         all          spell checker Java library
ii  libkf5sonnet5-data                                          5.18.0-0ubuntu1                                 all          spell checking library for Qt
ii  libkf5sonnetcore5:AMD64                                     5.18.0-0ubuntu1                                 AMD64        spell checking library for Qt
ii  libkf5sonnetui5:AMD64                                       5.18.0-0ubuntu1                                 AMD64        spell checking library for Qt
ii  libmatedict6                                                1.12.0-1                                        AMD64        MATE desktop utilities (matedict library)
ii  link-grammar-dictionaries-en                                4.7.4-3                                         all          Carnegie Mellon University's link grammar parser (English dictionary)
ii  myspell-en-au                                               2.1-5.4                                         all          English_australian dictionary for myspell
ii  myspell-en-gb                                               1:5.1.0-1ubuntu2.2                              all          English (GB) dictionary for hunspell - dummy transitional package
ii  myspell-en-za                                               1:5.1.0-1ubuntu2.2                              all          English (ZA) dictionary for hunspell - dummy transitional package
rc  myspell-ru                                                  0.99g5-20                                       all          Russian dictionary for MySpell
ii  python-enchant                                              1.6.6-2                                         all          spellchecking library for Python
ii  python3-enchant                                             1.6.6-2                                         all          spellchecking library for Python 3
ii  wamerican                                                   7.1-1                                           all          American English dictionary words for /usr/share/dict
ii  wbritish                                                    7.1-1                                           all          British English dictionary words for /usr/share/dict


Comment dois-je résoudre ce problème?

2
N0rbert

Pour résoudre le problème, nous devons installer un seul package lié à Sonnet :

plugins sonnet (voir packages.ubuntu.com )
bibliothèque de vérification orthographique pour Qt

avec

Sudo apt-get install sonnet-plugins

car cela dépend de presque tous les moteurs de sorts - aspell, hunspell, hspell, voikko
puis redémarrez Kate.


C'est étrange pourquoi je ne l'ai pas installé auparavant. Il a été recommandé par d'autres bibliothèques installées:

$ aptitude why sonnet-plugins 
i   sonnet-plugins    Depends    libkf5sonnetcore5 (>= 4.96.0)     
i A libkf5sonnetcore5 Recommends sonnet-plugins (= 5.18.0-0ubuntu1)
2
N0rbert