添加 sdcv 词典

This commit is contained in:
2022-08-08 01:25:42 +08:00
parent 2e34fdd813
commit 199f094c50

19
script/sdcv.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
SDCV_DIR=~/.stardict/dic
mkdir -p $SDCV_DIR
# 牛津词典
# wget -c -P $SDCV_DIR http://download.huzheng.org/zh_CN/stardict-oxford-gb-formated-2.4.2.tar.bz2
wget -c -P $SDCV_DIR http://zedhugh.fun/stardict-oxford-gb-formated-2.4.2.tar.bz2
# 朗道英汉字典
# wget -c -P $SDCV_DIR http://download.huzheng.org/zh_CN/stardict-langdao-ec-gb-2.4.2.tar.bz2
wget -c -P $SDCV_DIR http://zedhugh.fun/stardict-langdao-ec-gb-2.4.2.tar.bz2
# 朗道汉英字典
# wget -c -P $SDCV_DIR http://download.huzheng.org/zh_CN/stardict-langdao-ce-gb-2.4.2.tar.bz2
wget -c -P $SDCV_DIR http://zedhugh.fun/stardict-langdao-ce-gb-2.4.2.tar.bz2
# cd $SDCV_DIR
find $SDCV_DIR -iname "*.tar.bz2" | xargs -I '{}' tar xpvf '{}' -C $SDCV_DIR