Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/tools/update-unicode/update_unicode.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / tools / update-unicode / update_unicode.sh` 33 lines ยท 971 bytes Raw Blame History 1 #!/bin/sh 2 #See http://www.unicode.org/reports/tr44/ 3 # 4 #Me Enclosing_Mark an enclosing combining mark 5 #Mn Nonspacing_Mark a nonspacing combining mark (zero advance width) 6 #Cf Format a format control character 7 # 8 cd "$(dirname "$0")" 9 UNICODEWIDTH_H=$(git rev-parse --show-toplevel)/unicode-width.h 10 11 wget -N http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt \ 12 http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt && 13 if ! test -d uniset; then 14 git clone https://github.com/depp/uniset.git && 15 ( cd uniset && git checkout `4b186196dd` ) 16 fi && 17 ( 18 cd uniset && 19 if ! test -x uniset; then 20 autoreconf -i && 21 ./configure --enable-warnings=-Werror CFLAGS='-O0 -ggdb' 22 fi && 23 make 24 ) && 25 UNICODE_DIR=. && export UNICODE_DIR && 26 cat >$UNICODEWIDTH_H <<-EOF 27 static const struct interval zero_width[] = { 28 $(uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD) 29 }; 30 static const struct interval double_width[] = { 31 $(uniset/uniset --32 eaw:F,W) 32 }; 33 EOF