diff --git a/lib/Unicode/UCD.pm b/lib/Unicode/UCD.pm index a4223341a5..11a8ec2680 100644 --- a/lib/Unicode/UCD.pm +++ b/lib/Unicode/UCD.pm @@ -5,7 +5,7 @@ use warnings; no warnings 'surrogate'; # surrogates can be inputs to this use charnames (); -our $VERSION = '0.57'; +our $VERSION = '0.58'; require Exporter; @@ -244,7 +244,7 @@ of the bidi type name. is empty if I has no decomposition; or is one or more codes (separated by spaces) that, taken in order, represent a decomposition for I. Each has at least four hexdigits. -The codes may be preceded by a word enclosed in angle brackets then a space, +The codes may be preceded by a word enclosed in angle brackets, then a space, like CcompatE >, giving the type of decomposition This decomposition may be an intermediate one whose components are also @@ -252,7 +252,7 @@ decomposable. Use L to get the final decomposition. =item B -if I is a decimal digit this is its integer numeric value +if I represents a decimal digit this is its integer numeric value =item B @@ -599,7 +599,7 @@ sub charinrange { my $range = charblock('Armenian'); -With a L charblock() returns the I the code point +With a L C returns the I the code point belongs to, e.g. C. The old-style block name is returned (see L). If the code point is unassigned, this returns the block it would belong to if @@ -608,16 +608,20 @@ have blocks, all code points are considered to be in C.) See also L. -If supplied with an argument that can't be a code point, charblock() tries to +If supplied with an argument that can't be a code point, C tries to do the opposite and interpret the argument as an old-style block name. On an ASCII platform, the return value is a I with one range: an anonymous list with a single element that consists of another anonymous list whose first element is the first code point in the block, and whose second -(and final) element is the final code point in the block. On an EBCDIC +element is the final code point in the block. On an EBCDIC platform, the first two Unicode blocks are not contiguous. Their range sets -are lists containing I, I code point pairs. You +are lists containing I, I code point pairs. You can test whether a code point is in a range set using the L -function. If the argument is not a known block, C is returned. +function. (To be precise, each I contains a third array element, +after the range boundary ones: the old_style block name.) + +If the argument to C is not a known block, C is +returned. =cut @@ -708,8 +712,8 @@ sub charblock { my $range = charscript('Thai'); -With a L charscript() returns the I