summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-12-30 11:57:29 +0100
committerBruno Haible <bruno@clisp.org>2021-12-30 11:57:29 +0100
commitfa91398c3eb3492f2aacf2af119eb3394dc0dacc (patch)
tree2bfcc5eb5717d0f4fc7df8c6cf98f13188ba7082
parent86192726ffa76b08a5d0c892a16572cc1f9d05bc (diff)
downloadlibunistring-fa91398c3eb3492f2aacf2af119eb3394dc0dacc.tar.gz
doc: Document properties for Emojis.
* doc/unictype.texi (Properties as objects): Document UC_PROPERTY_EMOJI, UC_PROPERTY_EMOJI_PRESENTATION, UC_PROPERTY_EMOJI_MODIFIER, UC_PROPERTY_EMOJI_MODIFIER_BASE, UC_PROPERTY_EMOJI_COMPONENT, UC_PROPERTY_EXTENDED_PICTOGRAPHIC. (Properties as functions): Document uc_is_property_emoji, uc_is_property_emoji_presentation, uc_is_property_emoji_modifier, uc_is_property_emoji_modifier_base, uc_is_property_emoji_component, uc_is_property_extended_pictographic. * NEWS: Mention the new properties.
-rw-r--r--ChangeLog13
-rw-r--r--NEWS9
-rw-r--r--doc/unictype.texi20
3 files changed, 42 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cecab08..27ace94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2021-12-30 Bruno Haible <bruno@clisp.org>
+
+ doc: Document properties for Emojis.
+ * doc/unictype.texi (Properties as objects): Document UC_PROPERTY_EMOJI,
+ UC_PROPERTY_EMOJI_PRESENTATION, UC_PROPERTY_EMOJI_MODIFIER,
+ UC_PROPERTY_EMOJI_MODIFIER_BASE, UC_PROPERTY_EMOJI_COMPONENT,
+ UC_PROPERTY_EXTENDED_PICTOGRAPHIC.
+ (Properties as functions): Document uc_is_property_emoji,
+ uc_is_property_emoji_presentation, uc_is_property_emoji_modifier,
+ uc_is_property_emoji_modifier_base, uc_is_property_emoji_component,
+ uc_is_property_extended_pictographic.
+ * NEWS: Mention the new properties.
+
2021-12-29 Bruno Haible <bruno@clisp.org>
doc: Update for new behaviour of line breaking functions.
diff --git a/NEWS b/NEWS
index f03c616..5ce0a9a 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,15 @@ New in 0.9.11:
easier to work with strings that contain CR-LF sequences: In this case,
in the returned array, it will return UC_BREAK_CR_BEFORE_LF followed by
UC_BREAK_MANDATORY (instead of twice UC_BREAK_MANDATORY).
+* There are new properties for recognizing pictographic symbols and
+ regional indicators:
+ - UC_PROPERTY_EMOJI uc_is_property_emoji
+ - UC_PROPERTY_EMOJI_PRESENTATION uc_is_property_emoji_presentation
+ - UC_PROPERTY_EMOJI_MODIFIER uc_is_property_emoji_modifier
+ - UC_PROPERTY_EMOJI_MODIFIER_BASE uc_is_property_emoji_modifier_base
+ - UC_PROPERTY_EMOJI_COMPONENT uc_is_property_emoji_component
+ - UC_PROPERTY_EXTENDED_PICTOGRAPHIC uc_is_property_extended_pictographic
+ - UC_PROPERTY_REGIONAL_INDICATOR uc_is_property_regional_indicator
* Fixed multithread-safety bugs on Cygwin, native Windows, and Haiku.
New in 0.9.10:
diff --git a/doc/unictype.texi b/doc/unictype.texi
index 7fc5d6a..db0744c 100644
--- a/doc/unictype.texi
+++ b/doc/unictype.texi
@@ -1049,6 +1049,16 @@ The following properties deal with CJK.
@deftypevrx Constant uc_property_t UC_PROPERTY_IDS_TRINARY_OPERATOR
@end deftypevr
+The following properties deal with pictographic symbols.
+
+@deftypevr Constant uc_property_t UC_PROPERTY_EMOJI
+@deftypevrx Constant uc_property_t UC_PROPERTY_EMOJI_PRESENTATION
+@deftypevrx Constant uc_property_t UC_PROPERTY_EMOJI_MODIFIER
+@deftypevrx Constant uc_property_t UC_PROPERTY_EMOJI_MODIFIER_BASE
+@deftypevrx Constant uc_property_t UC_PROPERTY_EMOJI_COMPONENT
+@deftypevrx Constant uc_property_t UC_PROPERTY_EXTENDED_PICTOGRAPHIC
+@end deftypevr
+
Other miscellaneous properties are:
@deftypevr Constant uc_property_t UC_PROPERTY_ZERO_WIDTH
@@ -1199,6 +1209,16 @@ The following properties deal with CJK.
@deftypefunx bool uc_is_property_ids_trinary_operator (ucs4_t@tie{}@var{uc})
@end deftypefun
+The following properties deal with pictographic symbols.
+
+@deftypefun bool uc_is_property_emoji (ucs4_t@tie{}@var{uc})
+@deftypefunx bool uc_is_property_emoji_presentation (ucs4_t@tie{}@var{uc})
+@deftypefunx bool uc_is_property_emoji_modifier (ucs4_t@tie{}@var{uc})
+@deftypefunx bool uc_is_property_emoji_modifier_base (ucs4_t@tie{}@var{uc})
+@deftypefunx bool uc_is_property_emoji_component (ucs4_t@tie{}@var{uc})
+@deftypefunx bool uc_is_property_extended_pictographic (ucs4_t@tie{}@var{uc})
+@end deftypefun
+
Other miscellaneous properties are:
@deftypefun bool uc_is_property_zero_width (ucs4_t@tie{}@var{uc})