DEV Community

Cover image for StarDict: Dictionary for your terminal
Jason Cravens
Jason Cravens

Posted on

StarDict: Dictionary for your terminal

On most repositories, there's sdcv, the console version of StarDict program.
Freely available dictionaries in StarDict format for offline use.

Use html2text to correct the dictionary's HTML output for reading at the console.

Set up an alias for easy lookup.

For example, this alias would setup french definition's:

sdcvfr() {
  sdcv --data-dir="/path/to/french_file" --non-interactive "$1" | html2text --ignore-emphasis
}
alias sdf='sdcvfr'
Enter fullscreen mode Exit fullscreen mode

Now, just type: sdf développeur

Any language, instantly, with a single command!

Top comments (0)