From 4f3565513d241397c952239a3d3a58eb6897424b Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sun, 25 Jan 2004 08:12:37 +0000 Subject: [PATCH] Handle UNICODE2. --- admin/charsets/mapconv | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/admin/charsets/mapconv b/admin/charsets/mapconv index f686ea3799c..e8892607380 100755 --- a/admin/charsets/mapconv +++ b/admin/charsets/mapconv @@ -45,6 +45,8 @@ case "$3" in SOURCE="http://www.iana.org/assignments/charset-reg/${BASE}";; UNICODE) SOURCE="http://www.unicode.org/Public/MAPPINGS/.../${BASE}";; + UNICODE2) + SOURCE="http://www.unicode.org/Public/MAPPINGS/.../${BASE}";; YASUOKA) SOURCE="http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/.../${BASE}";; MICROSOFT) @@ -107,6 +109,12 @@ elif [ "$3" == "UNICODE" ] ; then sed -n -e "$2 p" < $1 \ | sed -e 's/\([0-9A-F]*\)[^0-9A-F]*\([0-9A-F]*\).*/0x\2 0x\1/' \ | sort | ${AWKPROG} +elif [ "$3" == "UNICODE2" ] ; then + # Source format is: + # 0xXXXX 0xYYYY # ... + sed -n -e "$2 p" < $1 \ + | sed -e 's/\([0-9A-Fx]*\)[^0]*\([0-9A-Fx]*\).*/\1 \2/' \ + | sort | ${AWKPROG} elif [ "$3" == "YASUOKA" ] ; then # Source format is: # YYYY 0-XXXX (XXXX is a Kuten code) -- 2.39.2