From 199f094c50fd48fc88710b74672b3f542c963a74 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Mon, 8 Aug 2022 01:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20sdcv=20=E8=AF=8D=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/sdcv.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 script/sdcv.sh diff --git a/script/sdcv.sh b/script/sdcv.sh new file mode 100644 index 0000000..4a572a6 --- /dev/null +++ b/script/sdcv.sh @@ -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