summaryrefslogtreecommitdiff
path: root/pod/perl5133delta.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-06-30 14:42:59 -0600
committerJesse Vincent <jesse@bestpractical.com>2010-07-04 21:43:41 +0100
commit232cbbee26bf464eff66953e51b99f7293f3d676 (patch)
treefd66880c1628183213a8002d3b22d340663761ad /pod/perl5133delta.pod
parentda85ecb8100a34ccc17636776871fafc7a2853bf (diff)
downloadperl-232cbbee26bf464eff66953e51b99f7293f3d676.tar.gz
Allow defining custom charnames to ordinals
This adds the ability of a user to create a custom alias that maps to a numeric ordinal value, instead of an official Unicode name. The number of hashes went up so that is better to refer to them by a name than a number, so I renamed them. Also, viacode will return any defined user's alias for an otherwise unamed code point. This change is principally so that private use characters can be named so it is more convenient to use them in Perl.
Diffstat (limited to 'pod/perl5133delta.pod')
-rw-r--r--pod/perl5133delta.pod15
1 files changed, 12 insertions, 3 deletions
diff --git a/pod/perl5133delta.pod b/pod/perl5133delta.pod
index f16dcf9e48..1341d652a6 100644
--- a/pod/perl5133delta.pod
+++ b/pod/perl5133delta.pod
@@ -28,17 +28,26 @@ here, but most should go in the L</Performance Enhancements> section.
[ List each enhancement as a =head2 entry ]
-=head2 C<\N{I<name>}> understands a a number of new abbreviations and names
+=head2 C<\N{I<name>}> enhancements
C<\N{}> now knows about the abbreviated character names listed by Unicode, such
as NBSP, SHY, LRO, ZWJ, etc., as well as all the customary abbreviations for
the C0 and C1 control characters (such as ACK, BEL, CAN, etc.), as well as a
-few new variants in common usage of some C1 full names. A complete list is in
-L<charnames>.
+few new variants in common usage of some C1 full names.
In the past, it was ineffective to override one of Perl's abbreviations with
your own custom alias. Now it works.
+And you can create a custom alias directly to the ordinal of a character, known
+by C<\N{...}> and C<charnames::viacode()>, but not C<charnames::vianame()>.
+Previously, an alias had to be to an official Unicode character name. This
+made it impossible to create an alias for a code point that had no name,
+such as the ones reserved for private use. So this change allows you to make
+more effective use of private use characters. Only if there is no official
+name will C<charnames::viacode()> return your custom one.
+
+See L<charnames> for details on all these changes.
+
=head1 Security
XXX Any security-related notices go here. In particular, any security