Add a number of abbrs and variants to \N{}
authorKarl Williamson <khw@khw-desktop.(none)>
Tue, 29 Jun 2010 18:54:33 +0000 (12:54 -0600)
committerJesse Vincent <jesse@bestpractical.com>
Sun, 4 Jul 2010 20:43:41 +0000 (21:43 +0100)
commit16036bcd7f9da62470be71e47f19d0fce28c3089
treed9a30d566ec09362c33c11f972913afa222801cf
parent8f83713a0fdc58e06b20a13df9517aa04e8245cf
Add a number of abbrs and variants to \N{}

This patch adds the standard abbreviations for the control characters
(such as ACK, BEL, etc) to the repertoire that \N{} knows about.  It
also adds a few common variants of their full names, and the old names
for the 4 controls that Unicode has chosen not to have any names at all
for.

The patch also adds all the abbreviations that Unicode lists in 5.2 for
longer characters, such as NBSP, SHY, LRE, ...

To preserve complete backward compatibilty for these and future changes,
user-defined aliases are now checked first, before these are.

As a performance enhancement, these aliases are mapped to their actual
code values instead of their full names which then had to be looked up
in the large table.  Now that is avoided, and the table is not loaded
at all until a name is encountered that is not one of these aliases.

The pod and .t are updated.
lib/charnames.pm
lib/charnames.t
pod/perl5133delta.pod