2 #See http://www.unicode.org/reports/tr44/
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
8 UNICODEWIDTH_H
=..
/unicode_width.h
9 if ! test -d unicode
; then
13 if ! test -f UnicodeData.txt
; then
14 wget http
://www.unicode.org
/Public
/UCD
/latest
/ucd
/UnicodeData.txt
16 if ! test -f EastAsianWidth.txt
; then
17 wget http
://www.unicode.org
/Public
/UCD
/latest
/ucd
/EastAsianWidth.txt
19 if ! test -d uniset
; then
20 git clone https
://github.com
/depp
/uniset.git
24 if ! test -x uniset
; then
26 .
/configure
--enable-warnings=-Werror CFLAGS
='-O0 -ggdb'
30 UNICODE_DIR
=.
&& export UNICODE_DIR
&&
31 cat >$UNICODEWIDTH_H <<-EOF
32 static const struct interval zero_width[] = {
33 $(uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
36 static const struct interval double_width[] = {
37 $(uniset/uniset --32 eaw:F,W)