Wudao Dictionary is a simple and elegant command line version of Youdao Dictionary. Support english-Chinese mutual search, including definitions, phrases, example sentences and other helpful learning content.

Wudao Dictionary is committed to being the best command line dictionary, providing a great user experience and improving as we optimize typography, display, and add vocabulary and completion features.

English and Chinese:

English:

features

  1. Basic Dictionary (20W English-Chinese query + 10W Chinese-English query + Network thesaurus)
  2. Phrase query function (e.g., direct inputwd in order to)
  3. Auto-complete function (press Tab to automatically complete words, including 1W hottest words)
  4. New word book (automatically saves historical records as new word book,wd -hTo view the location of this document)

Installation instructions

Please contact the author for any questions or suggestions for improvement.

Email address: [email protected]

Issue: Creates a new issue

Linux environment

  1. Installation environment: Python3 and BS4, LXML (for online search)

    Debian/Ubuntu

    sudo apt-get install python3
    sudo apt-get install python3-pip
    sudo pip3 install bs4
    sudo pip3 install lxml
    Copy the code

    OpenSUSE

    sudo zypper install python3-pip
    sudo pip3 install bs4
    sudo pip3 install lxml
    Copy the code

    CentOS

    sudo yum install python34
    sudo yum install python34-pip
    sudo pip3 install bs4
    sudo pip3 install lxml
    Copy the code
  2. run

    Git clone https://github.com/chestnutheng/wudao-dict CD. / wudao - dict/wudao - dict sudo bash setup. Sh # or sudo. / setup. ShCopy the code

    Setup Finished! The installation is successful. If you cannot use the installation file due to moving it, simply run the script again.

For clone, you can download github.com/ChestnutHen… And then unzip the installation for use.

Note: Note the python version, only python3 is supported

Directions for use

Run wd -h to view the instructions.

$ wd -h Usage: wd [OPTION]... [WORD] Youdao is wudao, a powerful dict. -k, --help display this help and exit -s, --short-desc do not show sentence -n, --not-save query and save to... some path ... /notebook. TXT Number of queries:... some path ... /usr_word.jsonCopy the code

You can directly use WD words to check the Chinese-English dictionary or WD Word to check the English-Chinese dictionary (automatic detection can be performed).

Tips:

  1. ./wd_monofile is a single file version of the online query of this dictionary that can be copied to/usr/bin(BS4 is required)
  2. If you don’t want to see examples, please see/usr/bin/wdIn the./wddAdd the -s argument to it.
  3. /wudao-dict/wudao-dict/ SRC/commanddraw.py
  4. Query phrase typed directly similarwd take offCan.

Release Notes

Ver 1.0 (Oct 10, 2016)

  • Provides the basic English – Chinese mutual check function
  • Provide online query function, and check after the cache

Ver 1.1 (Dec 1, 2016)

  • A single file version is provided that can run separately

Ver 1.2 (Nov 22, 2017)

  • Online query fixed a bug that did not show the searched words

Ver 2.0 (latest)

  • Fixed folder size problem, reduced from 263M to 80M. Issue #1: Folder size
  • More common words and plural forms have been added
  • Cancelled the web search function, if not found in the local automatically web search
  • Added TAB completion support, TAB completion of Issue #15: fuzzy query support for commonly used 1W words
  • Added the new words text function, automatically add the searched words and definitions to the new words text file
  • # This feature is shelved due to transfer character issues: avoid line breaks within words