Commit b0588326 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

Add code for handling KANJI-DATABASE format.

parent 6b6cf982
......@@ -51,6 +51,8 @@ case "$3" in
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 @@ elif [ "$3" == "MICROSOFT" ] ; then
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment