perlunicode, perluniprops: \p{Title} is Perl extension
authorKarl Williamson <public@khwilliamson.com>
Wed, 28 Sep 2011 21:55:19 +0000 (15:55 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 1 Oct 2011 15:15:33 +0000 (09:15 -0600)
This property is not official Unicode, and so should be documented by
us.

lib/unicore/mktables
pod/perlunicode.pod

index f4958ba..910ef2f 100644 (file)
@@ -11546,8 +11546,8 @@ sub compile_perl() {
 
     # Earliest releases didn't have title case.  Initialize it to empty if not
     # otherwise present
-    my $Title = $perl->add_match_table('Title');
-    $Title->add_alias('Titlecase');
+    my $Title = $perl->add_match_table('Title', Full_Name => 'Titlecase',
+                                       Description => '(= \p{Gc=Lt})');
     my $lt = $gc->table('Lt');
 
     # Earlier versions of mktables had this related to $lt since they have
index 5e1ff36..f00b110 100644 (file)
@@ -768,6 +768,13 @@ This is the same as C<\s>, including beyond ASCII.
 Mnemonic: Space, as modified by Perl.  (It doesn't include the vertical tab
 which both the Posix standard and Unicode consider white space.)
 
+=item B<C<\p{Title}>> and  B<C<\p{Titlecase}>>
+
+Under case-sensitive matching, these both match the same code points as
+C<\p{General Category=Titlecase_Letter}> (C<\p{gc=lt}>).  The difference
+is that under C</i> caseless matching, these match the same as
+C<\p{Cased}>, whereas C<\p{gc=lt}> matches C<\p{Cased_Letter>).
+
 =item B<C<\p{VertSpace}>>
 
 This is the same as C<\v>:  A character that changes the spacing vertically.