home *** CD-ROM | disk | FTP | other *** search
- #\- print list of non-ascii special characters, with denotation, description, and tabepson code
- #usage: % [no options]
-
- sed -e "1,/001~/d" -e "/^#if/,1000d" \
- -e "s/[ ][ ]*\"/ /g" -e "s/\",//" code.epson |
- awk '
- BEGIN {
- OFS = "\t"
- FS = "\t"
- print "NON-ASCII SPECIAL CHARACTERS\n"
- print "notation","name","tabepson code","SO<char>SI"
- }
- {
- code = $2
- if (sub(/^.*\\016/, "", $2) && sub(/\\017.*$/, "", $2))
- letter = $2
- else
- letter = ""
- while ((getline < "charlist" > 0) && $3 != "") {
- print $1,$2,$3
- }
- print $1,$2,code,letter
- }' | expand -12,40,65
-
- (echo "\f"
- echo "USER-DEFINED CHARACTERS IN MATRIX.H\n"
- echo "table[<n>]\t name\tSO<char>SI"
- cat matrix.h |
- sed -n -e "s/^.*\/\*\([^/]*\)[ ]*\/\*[ ]*\([^ ][^ ]*\)[ ]*\*\/$/\1 \2/p" \
- -e "s/^.*\/\* \([^ ][^ ]*\) \*\/$/ \1/p" |
- nl ) | expand -12,40
-