mirror of
https://github.com/ru-de/faq.git
synced 2024-11-10 04:31:01 +00:00
fix dictionary download
This commit is contained in:
parent
34847eea73
commit
f779c29436
@ -6,10 +6,7 @@ PWD_DIR=`pwd`
|
|||||||
DIR=`dirname $0`
|
DIR=`dirname $0`
|
||||||
|
|
||||||
apt-get -yqq update && apt-get install -y curl wget unzip binutils hunspell hunspell-ru hunspell-en-us hunspell-de-de jq
|
apt-get -yqq update && apt-get install -y curl wget unzip binutils hunspell hunspell-ru hunspell-en-us hunspell-de-de jq
|
||||||
curl -s https://extensions.libreoffice.org/en/extensions/show/russian-spellcheck-dictionary > .dict_page
|
wget https://extensions.libreoffice.org/assets/downloads/48/dict_ru_ru-aot-0.4.5.oxt -O /tmp/dictionary.otx
|
||||||
echo -n "https://extensions.libreoffice.org" > .current_release
|
|
||||||
strings .dict_page | grep -ozP '<li class="releaseRow">(\n|.)*?</li>' | grep -zoP -m 1 'href=".*?">Download' | head -1 | sed 's/href="//' | sed 's/">Download//' >> .current_release
|
|
||||||
cat .current_release | wget -q -i - -O /tmp/dictionary.otx
|
|
||||||
unzip /tmp/dictionary.otx -d /tmp
|
unzip /tmp/dictionary.otx -d /tmp
|
||||||
cp /tmp/*.dic /usr/share/hunspell
|
cp /tmp/*.dic /usr/share/hunspell
|
||||||
cp /tmp/*.aff /usr/share/hunspell
|
cp /tmp/*.aff /usr/share/hunspell
|
||||||
|
Loading…
Reference in New Issue
Block a user