Add a dictionary to sdcv (Stardic’s cli)
Download a dictionary file from:
https://web.archive.org/web/20140917131745/http://abloz.com/huzheng/stardict-dic/
Create the directory where sdcv
looks for dictionaries:
sudo mkdir -p /usr/share/stardict/dic/
Download the programmes you will need to extract dictionary files:
sudo apt install tar unzip
The next command depends on whether the downloaded file is a .gz file or a .bz2 file.
If it is a .bz2 file:
sudo tar -xvjf downloaded.tar.bz2 -C /usr/share/stardict/dic
If it is a .gz file:
sudo tar -xvzf downloaded.tar.gz -C /usr/share/stardict/dic
If it is a .zip file:
sudo unzip downloaded.zip -d /usr/share/stardic/dic
You can make aliases to chose which dictionary sdcv
uses, see: https://yctct.com/sdcv-alias
Credit: green (askubuntu)
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki sdcv stardic offline