UNPKG

arch-wiki-md-repo

Version:

All arch-wiki articles in markdown format, updated every two days.

58 lines (34 loc) 1.55 kB
[Sdcv](https://dushistov.github.io/sdcv/) is a command line dictionary. It provides access to dictionaries in [StarDict](https://en.wikipedia.org/wiki/StarDict "wikipedia:StarDict")'s format. ## Contents * [1 Installation](#Installation) * [2 Usage](#Usage) * [3 Adding dictionaries](#Adding_dictionaries) * [4 Tips](#Tips) * [4.1 Alias sdcv](#Alias_sdcv) * [5 See Also](#See_Also) ## Installation [sdcv](https://www.archlinux.org/packages/?name=sdcv) is available from the official repositories ## Usage [sdcv](https://www.archlinux.org/packages/?name=sdcv) can be started from the command line: ``` sdcv ``` This gives you a 'shell-like' command-line from which you can query the database. ## Adding dictionaries There are various places on the web where you can download StarDict dictionaries e.g. [http://download.huzheng.org/](http://download.huzheng.org/) Then you can extract the files into `/usr/share/stardict/dic`. If you don't have root permissions, you can set the `STARDICT_DATA_DIR` environment variable. A good choice might be: ``` export STARDICT_DATA_DIR=$XDG_DATA_HOME ``` sdcv will look in the `dic` subdirectory so make sure that is created and place your dictionaries inside it After that, you should be set ## Tips ### Alias sdcv sdcv isn't a very good name for a terminal command you are likely to use a lot. A good name might be: ``` alias def="/usr/bin/sdcv" ``` ## See Also * [Official web site](http://sdcv.sourceforge.net/) * [Post on askubuntu.com](https://askubuntu.com/a/191268)