home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume20 / epf / part01 / mk.code.list < prev    next >
Encoding:
Text File  |  1989-10-24  |  816 b   |  32 lines

  1. #\- print list of non-ascii special characters, with denotation, description, and tabepson code
  2. #usage: % [no options]
  3.  
  4. sed -e "1,/001~/d" -e "/^#if/,1000d" \
  5.     -e "s/[    ][    ]*\"/    /g"  -e "s/\",//" code.epson | 
  6. awk '
  7. BEGIN        {
  8.     OFS = "\t"
  9.     FS = "\t"
  10.     print "NON-ASCII SPECIAL CHARACTERS\n"
  11.     print "notation","name","tabepson code","SO<char>SI"
  12. }
  13.         {
  14.     code = $2
  15.     if (sub(/^.*\\016/, "", $2) && sub(/\\017.*$/, "", $2))
  16.         letter = $2
  17.     else
  18.         letter = ""
  19.     while ((getline < "charlist" > 0) && $3 != "") {
  20.         print $1,$2,$3
  21.     } 
  22.     print $1,$2,code,letter
  23. }' | expand -12,40,65
  24.  
  25. (echo "\f"
  26. echo "USER-DEFINED CHARACTERS IN MATRIX.H\n"
  27. echo "table[<n>]\t name\tSO<char>SI"
  28. cat matrix.h |
  29. sed -n -e "s/^.*\/\*\([^/]*\)[ ]*\/\*[ ]*\([^ ][^ ]*\)[ ]*\*\/$/\1    \2/p" \
  30.     -e "s/^.*\/\* \([^ ][^ ]*\) \*\/$/    \1/p" |
  31. nl ) | expand -12,40
  32.