Answers:
sdcv是 Stardict的控制台版本。
1.安装字典
在终端中运行以下命令:
sudo apt-get install sdcv
2.下载字典文件
根据需要,从以下来源下载词典文件。
3.安装下载的字典
创建目录以sdcv
查找字典:
sudo mkdir -p /usr/share/stardict/dic/
下一个命令取决于下载的文件是.gz
文件还是.bz2
文件。
如果是.bz2
文件:
sudo tar -xvjf downloaded.tar.bz2 -C /usr/share/stardict/dic
如果是.gz
文件:
sudo tar -xvzf downlaoded.tar.gz -C /usr/share/stardict/dic
4.完成!
要搜索单词,请使用:
sdcv word
stardict-dic-en
。如果安装了Stardic的GUI版本(例如stardict
),您很可能会自动获得英语词典。
dictd
安装该dict
命令可以轻松地与脱机词典一起使用。只需将dictd
守护程序及其依赖项与本地脱机词典一起安装即可。事实证明,这比sdcv
此页其他地方建议的安装要容易得多。
下面显示了如何dictd
与dict-gcide
全面的英语词典一起安装。标准存储库中还有更多可用的词典。
$ sudo apt-get install dict dictd dict-gcide
$ dict word
3 definitions found
From The Collaborative International Dictionary of English v.0.48 [gcide]:
Word \Word\, n. [AS. word; akin to OFries. & OS. word, D. woord,
G. wort, Icel. or[eth], Sw. & Dan. ord, Goth. wa['u]rd,
OPruss. wirds, Lith. vardas a name, L. verbum a word; or
perhaps to Gr. "rh`twr an orator. Cf. {Verb}.]
[1913 Webster]
1. The spoken sign of a conception or an idea; an articulate
or vocal sound, or a combination of articulate and vocal
sounds, uttered by the human voice, and by custom
expressing an idea or ideas; a single component part of
human speech or language; a constituent part of a
sentence; a term; a vocable. "A glutton of words." --Piers
Plowman.
[1913 Webster]
You cram these words into mine ears, against
The stomach of my sense. --Shak.
[1913 Webster]
Amongst men who confound their ideas with words,
there must be endless disputes. --Locke.
[1913 Webster]
2. Hence, the written or printed character, or combination of
characters, expressing such a term; as, the words on a
page.
[1913 Webster]
3. pl. Talk; discourse; speech; language.
[1913 Webster]
如果您只是想查看一个单词的拼写是否正确或存在,可以使用grep浏览/ usr / share / dict /中的单词列表文件,这些文件由相应的单词列表包提供。查看“ emu”是否有效的示例:
grep -i "^emu$" /usr/share/dict/american-english
但是,这没有任何定义。
\$
?