aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKenichi Handa2009-06-24 13:02:50 +0000
committerKenichi Handa2009-06-24 13:02:50 +0000
commitc9acd49dd2e70c0a961ffc1752eb92b3e3078e9f (patch)
tree8d20f9982040f20be6495ce7e92892571ddbb25d /admin
parentd984860028f1c44bc234f1ca0b8cedc5fb0219d8 (diff)
downloademacs-c9acd49dd2e70c0a961ffc1752eb92b3e3078e9f.tar.gz
emacs-c9acd49dd2e70c0a961ffc1752eb92b3e3078e9f.zip
For the UNICODE format files, do reverse sort
and don't compact the map. This is to prefer the first one in the duplicated mappings (e.g. 0x20->U+0020, 0x20->U+00A0).
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/charsets/mapconv6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/charsets/mapconv b/admin/charsets/mapconv
index 1913449f898..64c0772af52 100755
--- a/admin/charsets/mapconv
+++ b/admin/charsets/mapconv
@@ -30,7 +30,7 @@
30# $1: source map file 30# $1: source map file
31# $2: address pattern for sed (optionally with substitution command) 31# $2: address pattern for sed (optionally with substitution command)
32# $3: format of source map file 32# $3: format of source map file
33# GLIBC-1 GLIBC-2 GLIBC-2-7 CZYBORRA IANA UNICODE YASUOKA 33# GLIBC-1 GLIBC-2 GLIBC-2-7 CZYBORRA IANA UNICODE UNICODE2 YASUOKA
34# $4: awk script 34# $4: awk script
35 35
36FILE="admin/charsets/$1" 36FILE="admin/charsets/$1"
@@ -115,9 +115,11 @@ elif [ "$3" = "IANA" ] ; then
115elif [ "$3" = "UNICODE" ] ; then 115elif [ "$3" = "UNICODE" ] ; then
116 # Source format is: 116 # Source format is:
117 # YYYY XX 117 # YYYY XX
118 # We perform reverse sort to prefer the first one in the
119 # duplicated mappings (e.g. 0x20->U+0020, 0x20->U+00A0).
118 zcat $1 | sed -n -e "$2 p" \ 120 zcat $1 | sed -n -e "$2 p" \
119 | sed -e 's/\([0-9A-F]*\)[^0-9A-F]*\([0-9A-F]*\).*/0x\2 0x\1/' \ 121 | sed -e 's/\([0-9A-F]*\)[^0-9A-F]*\([0-9A-F]*\).*/0x\2 0x\1/' \
120 | sort | ${AWKPROG} 122 | sort -r
121elif [ "$3" = "UNICODE2" ] ; then 123elif [ "$3" = "UNICODE2" ] ; then
122 # Source format is: 124 # Source format is:
123 # 0xXXXX 0xYYYY # ... 125 # 0xXXXX 0xYYYY # ...