From d21d53bde06e6d7ebdf9c0a1a74255204fde1252 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 26 Mar 2011 13:06:51 +0100 Subject: Support long names of bidi classes. --- ChangeLog | 7 +++++++ NEWS | 2 ++ doc/unictype.texi | 11 +++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 91df5cc..b570c89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-03-26 Bruno Haible + + 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 Update after gnulib changed. diff --git a/NEWS b/NEWS index cfe771c..00e3fce 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.1