changeset 89815:59bbae51ad73

Add code for handling KANJI-DATABASE format.
author Kenichi Handa <handa@m17n.org>
date Thu, 12 Feb 2004 07:38:43 +0000
parents bd285ab281c3
children b2658475cebf
files admin/charsets/mapconv
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/admin/charsets/mapconv	Thu Feb 12 07:30:45 2004 +0000
+++ b/admin/charsets/mapconv	Thu Feb 12 07:38:43 2004 +0000
@@ -51,6 +51,8 @@
 	SOURCE="http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/.../${BASE}";;
     MICROSOFT)
 	SOURCE="http://www.microsoft.com/globaldev/reference/oem/${BASE}";;
+    KANJI-DATABASE)
+	SOURCE="data at http://sourceforge.net/cvs/?group_id=26261";;
     *)
 	echo "Unknown file type: $3";
 	exit 1;;
@@ -127,6 +129,12 @@
     sed -n -e "$2 p" < $1 \
 	| sed -e 's/\([0-9A-F]*\).*U+\([0-9A-F]*\).*/0x\1 0x\2/' \
 	| sort | ${AWKPROG}
+elif [ "$3" == "KANJI-DATABASE" ] ; then
+    # Source format is:
+    # C?-XXXX U+YYYYY .....
+    sed -n -e "$2 p" < $1 \
+	| sed -e 's/...\(....\) U+\([0-9A-F]*\).*/0x\1 0x\2/' \
+	| sort | ${AWKPROG}
 else
     echo "Invalid arguments"
     exit 1