如何将语言词典添加到 KDE 应用程序?到目前为止,它们仅支持英语的某些变体。有迹象表明可以使用 Hunspell,但根据dpkg -l 'hunspell*'
,hunspell
它本身并未安装,而奇怪的是,hunspell-en-us
它已安装。此外,可用语言包的列表很小,不包含西班牙语或法语等主要语言。
KDE 手册是死胡同(链接已损坏...)
使用 Kubuntu 16.04
答案1
apt list --all-versions | grep hunspell
是列出各种可用语言的便捷方式。然后您可以选择安装所需的任何语言。
apt list --all-versions | grep hunspell
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
hunspell/bionic 1.6.2-1 amd64
hunspell-af/bionic 1:6.0.3-3 all
hunspell-an/bionic 0.2-2 all
hunspell-ar/bionic 3.2-1 all
hunspell-be/bionic 0.53-3 all
hunspell-bg/bionic 1:6.0.3-3 all
hunspell-bn/bionic 1:6.0.3-3 all
hunspell-bo/bionic 0.4.0-1 all
hunspell-br/bionic 0.12-2 all
hunspell-bs/bionic 1:6.0.3-3 all
hunspell-ca/bionic 3.0.2+repack1-2 all
hunspell-cs/bionic 1:6.0.3-3 all
hunspell-da/bionic 1:6.0.3-3 all
hunspell-de-at/bionic 20161207-4 all
hunspell-de-at-frami/bionic 1:6.0.3-3 all
hunspell-de-ch/bionic 20161207-4 all
hunspell-de-ch-frami/bionic 1:6.0.3-3 all
hunspell-de-de/bionic 20161207-4 all
hunspell-de-de-frami/bionic 1:6.0.3-3 all
hunspell-de-med/bionic 20160103-1 all
hunspell-dz/bionic 0.1.0-1 all
hunspell-el/bionic 1:6.0.3-3 all
hunspell-en-au/bionic 1:2017.08.24 all
hunspell-en-ca/bionic 1:2017.08.24 all
hunspell-en-gb/bionic 1:6.0.3-3 all
hunspell-en-med/bionic 0.0.20080513-2 all
hunspell-en-us/bionic,now 1:2017.08.24 all [installed]
hunspell-en-za/bionic 1:6.0.3-3 all
hunspell-es/bionic 1:6.0.3-3 all
hunspell-eu/bionic 0.5.20151110-2 all
hunspell-eu-es/bionic 0.5.20151110-2 all
hunspell-fr/bionic 1:6.2-1 all
hunspell-fr-classical/bionic 1:6.2-1 all
hunspell-fr-comprehensive/bionic 1:6.2-1 all
hunspell-fr-modern/bionic 1:6.2-1 all
hunspell-fr-revised/bionic 1:6.2-1 all
hunspell-gd/bionic 1:6.0.3-3 all
hunspell-gl/bionic 1:6.0.3-3 all
hunspell-gl-es/bionic 13.10-1 all
hunspell-gu/bionic 1:6.0.3-3 all
hunspell-gug/bionic 1:6.0.3-3 all
hunspell-he/bionic 1:6.0.3-3 all
hunspell-hi/bionic 1:6.0.3-3 all
hunspell-hr/bionic 1:6.0.3-3 all
hunspell-hu/bionic 1:6.0.3-3 all
hunspell-is/bionic 1:6.0.3-3 all
hunspell-it/bionic 1:6.0.3-3 all
hunspell-kk/bionic 1.1-2 all
hunspell-kmr/bionic 1:6.0.3-3 all
hunspell-ko/bionic 0.7.1-1 all
hunspell-lo/bionic 1:6.0.3-3 all
hunspell-lt/bionic 1:6.0.3-3 all
hunspell-ml/bionic 0.1-2 all
hunspell-ne/bionic 1:6.0.3-3 all
hunspell-nl/bionic 2:2.10-6 all
hunspell-no/bionic 1:6.0.3-3 all
hunspell-oc/bionic 1:6.0.3-3 all
hunspell-pl/bionic 1:6.0.3-3 all
hunspell-pt-br/bionic 1:6.0.3-3 all
hunspell-pt-pt/bionic 1:6.0.3-3 all
hunspell-ro/bionic 1:6.0.3-3 all
hunspell-ru/bionic 1:6.0.3-3 all
hunspell-se/bionic 1.0~beta6.20081222-1.2 all
hunspell-si/bionic 1:6.0.3-3 all
hunspell-sk/bionic 1:6.0.3-3 all
hunspell-sl/bionic 1:6.0.3-3 all
hunspell-sr/bionic 1:6.0.3-3 all
hunspell-sv/bionic 1:6.0.3-3 all
hunspell-sw/bionic 1:6.0.3-3 all
hunspell-te/bionic 1:6.0.3-3 all
hunspell-th/bionic 1:6.0.3-3 all
hunspell-tools/bionic 1.6.2-1 amd64
hunspell-uk/bionic 1:6.0.3-3 all
hunspell-uz/bionic 0.6-4 all
hunspell-vi/bionic 1:6.0.3-3 all
libhunspell-1.6-0/bionic,now 1.6.2-1 amd64 [installed]
libhunspell-dev/bionic 1.6.2-1 amd64
libtext-hunspell-perl/bionic 2.11-1build4 amd64
python-hunspell/bionic 0.4.1-1build3 amd64
python3-hunspell/bionic 0.4.1-1build3 amd64
dpkg -l 'hunspell*'
解释为什么看到的列表较短这里:
$ dpkg -l 'hunspell*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============================-====================-====================-===================================================================
un hunspell <none> <none> (no description available)
un hunspell-ar <none> <none> (no description available)
un hunspell-da <none> <none> (no description available)
un hunspell-de-at <none> <none> (no description available)
un hunspell-de-ch <none> <none> (no description available)
un hunspell-de-de <none> <none> (no description available)
un hunspell-dictionary <none> <none> (no description available)
un hunspell-dictionary-en <none> <none> (no description available)
un hunspell-dictionary-en-us <none> <none> (no description available)
ii hunspell-en-us 1:2017.08.24 all English_american dictionary for hunspell
un hunspell-eu-es <none> <none> (no description available)
un hunspell-gl-es <none> <none> (no description available)
un hunspell-kk <none> <none> (no description available)
un hunspell-ko <none> <none> (no description available)
un hunspell-se <none> <none> (no description available)
un hunspell-uz <none> <none> (no description available)
$
但是,在上面的输出中,ii
表示包已安装,而un
表示包尚未安装。un
并不意味着包不可用于安装。<none>
下面Version
可能会令人困惑。
以下是有关 输出的更多信息dpkg -l
:各种 dpkg 标志(例如“ii”、“rc”)表示什么意思?。