July 6, 2024

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

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88