2014-11-13 19:30:51 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2020-02-24 23:42:19 +00:00
|
|
|
# Note: This file is taken, and modified, from gucharmap - svn revision 1169
|
2014-11-13 19:30:51 +02:00
|
|
|
#
|
2021-06-14 14:42:20 +03:00
|
|
|
# usage: ./download-unicode-files.sh VERSION
|
|
|
|
# downloads following files from unicode.org to unicode/:
|
2014-11-13 19:30:51 +02:00
|
|
|
# - UnicodeData.txt
|
|
|
|
# - Unihan.zip
|
|
|
|
# - NamesList.txt
|
|
|
|
# - Blocks.txt
|
|
|
|
# - Scripts.txt
|
|
|
|
#
|
|
|
|
|
2021-06-14 14:42:20 +03:00
|
|
|
set -e
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2021-06-14 14:42:20 +03:00
|
|
|
FILES='UnicodeData.txt Unihan.zip NamesList.txt Blocks.txt Scripts.txt'
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2021-06-14 14:42:20 +03:00
|
|
|
mkdir -p unicode
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
for x in $FILES; do
|
2021-06-14 14:42:20 +03:00
|
|
|
wget "https://unicode.org/Public/$1/ucd/$x" -O "unicode/$x"
|
2014-11-13 19:30:51 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
echo 'Done.'
|
|
|
|
|