From: Rafael Garcia-Suarez Date: Sun, 13 Jul 2003 19:43:29 +0000 (+0000) Subject: Minor updates of the charnames documentation. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76ae0c45721dbaad41835ad785762950350f86b7;p=p5sagit%2Fp5-mst-13.2.git Minor updates of the charnames documentation. p4raw-id: //depot/perl@20157 --- diff --git a/lib/charnames.pm b/lib/charnames.pm index cd7b08a..3457b8b 100644 --- a/lib/charnames.pm +++ b/lib/charnames.pm @@ -333,9 +333,10 @@ charnames - define character names for C<\N{named}> string literal escapes use charnames ":full", ":alias" => { e_ACUTE => "LATIN SMALL LETTER E WITH ACUTE", - }; + }; print "\N{e_ACUTE} is a small letter e with an acute.\n"; + use charnames (); print charnames::viacode(0x1234); # prints "ETHIOPIC SYLLABLE SEE" printf "%04X", charnames::vianame("GOTHIC LETTER AHSA"); # prints "10330" @@ -343,8 +344,8 @@ charnames - define character names for C<\N{named}> string literal escapes Pragma C supports arguments C<:full>, C<:short>, script names and customized aliases. If C<:full> is present, for expansion of -C<\N{CHARNAME}> string C is first looked in the list of -standard Unicode names of chars. If C<:short> is present, and +C<\N{CHARNAME}>, the string C is first looked up in the list of +standard Unicode character names. If C<:short> is present, and C has the form C, then C is looked up as a letter in script C