* v2.5 December 1998 -- -s option by David N. Welton.
* v2.6 June 1999 -- bug fixes by M.R. van Schouwen.
* v2.7 October 1999 -- minor packaging and option changes.
+ * v3.0 July 2000 -- added HTML/SGML entity sames
*
* Tries to interpret arguments as names or aliases of ascii characters
* and dumps out *all* the aliases of each. Accepts literal characters,
void print_table(unsigned short delivery);
-static string cnames[128][15] =
+static string cnames[128][16] =
{
{"NUL", "Null", (char *)NULL},
{"SOH", "Start Of Heading", (char *)NULL},
{"\"", "Quotation Mark",
"Double Quote", "Quote", "String Quote",
"Dirk", "Literal Mark", "Double Glitch",
+ """,
"# See ' and ` for matching names.",
(char *)NULL},
{"#", "Number Sign",
{"%", "Percent Sign",
"Mod", (char *)NULL},
{"&", "Ampersand",
- "Amper", "And", (char *)NULL},
+ "Amper", "And", "&", (char *)NULL},
{"'", "Apostrophe",
"Single Quote", "Close Quote", "Prime",
"Tick", "Pop", "Spark", "Glitch",
{"<", "Less-than Sign",
"Left Angle Bracket", "Read From", "In",
"From", "Comesfrom", "Left Funnel",
- "Left Broket", "Crunch", "Suck",
+ "Left Broket", "Crunch", "Suck", "<",
"# See `<' for matching names.",
(char *)NULL},
{"=", "Equals Sign",
{">", "Greater-than sign",
"Right Angle" , "Write To", "Into", "Toward",
"Out", "To", "Gozinta", "Right Funnel",
- "Right Broket", "Zap", "Blow",
+ "Right Broket", "Zap", "Blow", ">",
"# See `>' for matching names.",
(char *)NULL},
{"?", "Question Mark",
Its ISO/ECMA code table reference.
.TP 3
*
+Its name as an HTML/SGML entity.
+.TP 3
+*
Slang and other names in wide use for it among hackers.
.P
This utility accepts command-line strings and tries to interpret them as
An official ASCII or slang name.
.P
The slang names recognized and printed out are from a rather comprehensive
-list that appeared on USENET in early 1990.
+list that first appeared on USENET in early 1990 and has been
+continuously updated since.
Mnemonics recognized and printed include the official ASCII set,
some official ISO names (where those differ)
and a few common-use alternatives (such as NL for LF).
+HTML/SGML entity names are also printed when applicable.
All comparisons are
case-insensitive, and dashes are mapped to spaces.
Any unrecognized arguments or out of range values are silently ignored.
man page.
David N. Welton <davidw@efn.org> added the -s option.
Matej Vela corrected the ISO names.
+Dave Capella contributed the idea of listing HTML/SGML entities.
+