/Dictionary

Wrap free dictionary in web view

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Dictionary

A command line English dictionary in Windows

Acknowledgement

Dictionary API: data source

Usage

Browser version

Visit the link in "About" section on this page.

Terminal version

  1. Download the latest release, and unzip it as a folder. Let's call the absolute path $define. Otherwise, build from the source code by running the following in command line.

    pip install -r requirements.txt
    pyinstaller define.py
    

    It will generate a folder. Let's call the absolute path $define.

  2. [Optional] Add $define to environment variables.

  3. Start the command line, and look up words.

For example, if you want to look up "hello", input

define hello

Then, you get the definition.

image-20230514015652639

If you skipped step 2, please use cd command and make $define as your current folder.

Look up multiple words "hello" and "world":

define hello world

Play pronunciation of the word "hello":

define hello -p

For more usage, input

define -h

Frequently Asked Questions

How to add $define to environment variables?

  1. Search environment in Windows search bar, and click "Edit the system environment variables".

image-20230514014804842

  1. Click "Environment Variables" button in "Advanced" tab.

image-20230514014934759

  1. In the prompted window, click "Path" in "user variables", then click "Edit".

image-20230514015007392

  1. In the prompted window, click "New", then input the absolute path $define.

image-20230514015328834