N0r*_*ert 2 kate kde spell-checking qt
我已经将 Kate 编辑器安装到我的 Ubuntu MATE 16.04.6 LTS 系统中,就像
sudo apt-get install kate.
在其设置中?配置 Kate、编辑器组件、编辑、拼写检查选项卡我看到它没有检测到后端进行拼写检查:
Run Code Online (Sandbox Code Playgroud)$ kate Sonnet: No speller backends available! No language dictionaries for the language: "en"
我安装了以下与拼写检查相关的软件包:
$ 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
Run Code Online (Sandbox Code Playgroud)
我应该如何解决这个问题?
为了解决这个问题,我们只需要安装一个与Sonnet相关的包:
十四行诗插件(见packages.ubuntu.com)
Qt拼写检查库
和
sudo apt-get install sonnet-plugins
Run Code Online (Sandbox Code Playgroud)
因为它依赖于几乎所有的拼写引擎—— aspell、hunspell、hspell、voikko
然后重启 Kate。
很奇怪为什么我之前没有安装它。它是由其他已安装的库推荐的:
$ aptitude why sonnet-plugins
i sonnet-plugins Depends libkf5sonnetcore5 (>= 4.96.0)
i A libkf5sonnetcore5 Recommends sonnet-plugins (= 5.18.0-0ubuntu1)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1501 次 |
| 最近记录: |