#! /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 */}, 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