Commit ID:      10050185BE94F55C52D
CVSROOT:        /cvs
Module name:    contrib
Changes by:     [email protected]    2012/07/31 22:28:09 UTC

Modified files:
        samples        : utf-8

Log message:
meh, Unicode added many new combining and nōn-combining characters
and redefined the ranges… regenerate all but the first few and the
last two lines using the following mksh script:

set -U
i=0x1f
typeset -i1 j
typeset -Uui16 -Z7 k

while (( (k = j = ++i) < 0x10000 )); do
        (( i == 0xD800 )) && k=j=i=0xE000
        (( i == 0xEF80 )) && k=j=i=0xF000
        if (( !(i & 0xFFF) )); then
                print 
'┝━━━━━━━╋━━━━┿━━━━┿━━━━┿━━━━┿━━━━┿━━━━┿━━━━┿━━━━╋━━━━━━━┥'
        elif (( !(i & 0xFF) )); then
                print 
'├───────╂────┼────┼────┼────┼────┼────┼────┼────╂───────┤'
        fi
        (( l = i & 15 ))
        if (( l == 0 )); then
                print -n "╽ ${k#16} ┃ "
        elif (( l == 8 )); then
                print -n "╿ ${k#16} ┃ "
        else
                print -n " │ "
        fi
        m=${j#1#}
        n=${%m}
        if (( n == -1 )); then
                print -n " �"
        elif (( n == 0 )); then
                print -nr -- "  $m"
        elif (( n == 1 )); then
                print -nr -- "$m "
        elif (( n == 2 )); then
                print -nr -- "$m"
        else
                print -u2 Fatal $k $n
                exit 1
        fi
        if (( l == 7 )); then
                print " ┃ ${k#16} ╽"
        elif (( l == 15 )); then
                print " ┃ ${k#16} ╿"
        fi
done

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.3 -r1.4 contrib/samples/utf-8

Reply via email to