#! /bin/sh

# transform UnicodeData entries into mnemonic entry forms, 
# to be filled with the respective mnemonics
#	00DF;LATIN SMALL LETTER SHARP S;Ll;0;L;;;;;N;;German;;;
# ->
#		{"", 0x00DF /* ß LATIN SMALL LETTER SHARP S */},

case "$1" in
+)	setop UnicodeData.txt - unicode-previous/UnicodeData.txt |
	egrep -e "(LATIN|GREEK|CYRILLIC) "
	;;
*)	cat "$@"
	;;
esac |
sed -e 's-^\([^;]*\);\([^;]*\);.*-	{"", 0x\1 /* U+\1 \2 */},-' |
./insutf8 | sed -e 's,U+[^ ]* ,,'

echo "edit output to add mnemonics" >&2
echo "then check uniqueness with ./mnemos.check" >&2
