当前位置: 首页>>技术问答>>正文


具有发音和用法的离线词典

, ,

问题描述

哪个是Ubuntu最好的离线词典?

它应该像剑桥或牛津词典一样有发音。

我发现这些词典没有足够的使用句子的例子,也没有说出很多关于意义的词汇。

最佳解决方案

(I). dict – a CLI client to dictd server (offline usage):

部分 – 文字

安装:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

(允许宇宙回购)

sudo apt-get install dict
sudo apt-get install dictd

安装英语词典数据库(gcide,wn,devil):

sudo apt-get install dict-gcide
sudo apt-get install dict-wn
sudo apt-get install dict-devil

安装英语同义词库数据库(moby-thesaurus):

sudo apt-get install dict-moby-thesaurus

它还支持各种翻译/双语词典。

用法:

  1. 使用特定数据库(例如WordNet – wn):

    dict -d wn "dictionary"
    
  2. 不指定dict-database将从所有可用数据库输出定义/翻译/同义词库。例如。 dict "dictionary"
    包含音素助记符的解决方法:让我们定义一个函数,它将espeak用于音素助记符,而dict用于定义,叙词表等。

    • 首先安装espeak(如果还没有):

      sudo apt-get install espeak
      
    • 使用您选择的文本编辑器打开user-home目录中的.bashrc文件:

      nano ~/.bashrc
      

      要么

      gedit ~/.bashrc &
      

      (如果将自定义别名和函数放在~/.bash_aliases而不是~/.bashrc中,则会更好)

    • 附加以下函数并保存文件:

      function define {
      # espeak for the pronunciation audible output and phonetic alphabet string
      echo "Phoneme mnemonics: $(espeak -ven-uk-rp -x -s 120 "$1" 2> /dev/null)"       
      # dict - the client for the dictionary server
      dict "$1"       
      }
      

      [这里我使用了开关-ven-uk-rp用于英式英语接收语音(espeak –voices for more), – x用于显示助记符,-s用于语音输出速度。您可以根据需要修改espeak或dict的开关。]

    • 打开终端的新实例,并使用define查找定义。例如。:

      define dictionary
      

      要么

      define dictionary | less
      

      (使用less,您可以使用箭头键滚动定义;按h将显示更多可以使用的控件;退出按q)


(II). Gnome Dictionary:

部分 – 宇宙/侏儒

安装:

sudo apt-get install gnome-dictionary

software-recommendation,dictionary,ubuntu

注意:要离线使用gnome-dictionary,首先应安装字典服务器和所需的数据库(dictd的安装和一些数据库显示在上面的选项(I)中。)

安装gnome-dictionary,字典服务器(例如dictd)和数据库(例如dict-wndict-gcide)后,您必须进行配置,以便查找本地安装的服务器。为此,启动gnome-dictionary并从菜单导航到编辑 – >喜好。在“词典首选项”窗口中,单击“Add”按钮,然后在“添加词典源”中添加有关本地词典服务器的信息;添加描述(如dictd),主机名 – 本地主机(或本地网络中的其他主机),端口号到2628(2628是DICT协议RFC.excerpt中从dictd文档中指定的默认值)并点击Add按钮。然后在Dictionary Preferences窗口中,选择dictd单选按钮并关闭prefs窗口。现在您应该可以离线使用它了。

software-recommendation,dictionary,ubuntu

software-recommendation,dictionary,ubuntu


(III). “Artha”, A handy off-line thesaurus based on WordNet:

Section – Universe /utils

安装:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

(允许宇宙回购)

sudo apt-get install artha

software-recommendation,dictionary,ubuntu

(IV). “GoldenDict”, offering feature-rich dictionary lookup program using WebKit for an accurate articles’ representation, complete with all formatting, colors, images and links.

Section – Universe /utils

安装:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

(允许宇宙回购)

sudo apt-get install goldendict

software-recommendation,dictionary,ubuntu

次佳解决方案

我已经安装了Artha,好词典。但Artha不提供’Pronunciation’功能。

您可以从软件中心或终端安装它

sudo apt-get install artha 

或使用图形软件中心

software-recommendation,dictionary,ubuntu

第三种解决方案

看看Aard Dictionary吧。

您可以从主页下载* .deb文件并安装您选择的任何字典。该网站提供的词典包括:维基百科,维基百科,维基词典,维基物种,WordNet,英语协作国际词典,术语文件和Hitchwiki。

您可以根据需要同时安装尽可能多的词典。

我建议尝试安装Wiktionary和Collaborative International Dictionary of English,看看它是怎么回事。

顺便说一句:这是GPL v3许可。

它也适用于Android手机,我目前在手机上随身携带德语维基百科。

第四种方案

与wybbandtts文件的Goldendict。

software-recommendation,dictionary,ubuntu

或从终端

sudo apt-get install goldendict

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1852.html,未经允许,请勿转载。