#! /bin/sh # Extract special character defs from WWW document and make web # page source to display them. awk 'BEGIN { print "
" print "
Description | Name | Glyph | Numeric | Glyph" } (("CDATA"==$3)&&("#"==substr($4,12,1))&&(";"==substr($4,length($4)-6,1))) { num = substr($4,13,length($4)-19) name = $6 for (i=7; (i<=NF) && (","!=substr(name,length(name),1)); i++) name = name " " $i if ( "," == substr(name,length(name),1) ) name = substr(name,1,length(name)-1) printf(" |
---|---|---|---|---|
%s\n",name) printf(" | &%s;",$2) printf(" | &%s;\n",$2) printf(" | &#%d;",num) printf(" | %d;\n",num) } END { print " |