diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | doc/unictype.texi | 11 |
3 files changed, 18 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2011-03-26 Bruno Haible <bruno@clisp.org> + Support long names of bidi classes. + * doc/unictype.texi (Object oriented API): Document + uc_bidi_class_long_name. Mention that uc_bidi_class_byname recognizes + long names. + +2011-03-26 Bruno Haible <bruno@clisp.org> + Update after gnulib changed. * autogen.sh (GNULIB_MODULES): Use unictype/bidiclass-all instead of unictype/bidicategory-all. @@ -37,8 +37,10 @@ New in 0.9.4: * In the include file unictype.h, functions for returning long names of property values have been added: uc_general_category_long_name + uc_bidi_class_long_name The functions uc_general_category_byname + uc_bidi_class_byname have been extended to recognize long names as well as short names. * It is now easier to detect the subminor version: The value of the variable _libunistring_version and of the macro _LIBUNISTRING_VERSION now includes diff --git a/doc/unictype.texi b/doc/unictype.texi index 90b372f..48aa43c 100644 --- a/doc/unictype.texi +++ b/doc/unictype.texi @@ -600,12 +600,19 @@ category and its name. @deftypefun {const char *} uc_bidi_class_name (int @var{bidi_class}) @deftypefunx {const char *} uc_bidi_category_name (int @var{category}) -Returns the name of a bidi class. +Returns the name of a bidi class, more precisely, the abbreviated name. +@end deftypefun + +@deftypefun {const char *} uc_bidi_class_long_name (int @var{bidi_class}) +Returns the long name of a bidi class. @end deftypefun @deftypefun int uc_bidi_class_byname (const char *@var{bidi_class_name}) @deftypefunx int uc_bidi_category_byname (const char *@var{category_name}) -Returns the bidi class given by name, e.g@. @code{"LRE"}. +Returns the bidi class given by name, e.g@. @code{"LRE"}, or by long name, +e.g@. @code{"Left-to-Right Embedding"}. +This lookup ignores spaces, underscores, or hyphens as word separators and is +case-insignificant. @end deftypefun The following functions view bidirectional categories as sets of Unicode |