From fd8a8d17b048a9ea7bb470e9f663a8b7f659ec95 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sat, 8 Apr 2017 19:25:17 +0100 Subject: [PATCH] Add Join_Control support from PropList.txt. --- src/include/ucd/ucd.h | 2 ++ src/proplist.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/include/ucd/ucd.h b/src/include/ucd/ucd.h index 99b33960..2ad132de 100644 --- a/src/include/ucd/ucd.h +++ b/src/include/ucd/ucd.h @@ -332,6 +332,7 @@ typedef enum ucd_property_ UCD_PROPERTY_WHITE_SPACE = 0x0001, /**< @brief White_Space */ UCD_PROPERTY_NO_BREAK = 0x0002, /**< @brief */ UCD_PROPERTY_BIDI_CONTROL = 0x0004, /**< @brief Bidi_Control */ + UCD_PROPERTY_JOIN_CONTROL = 0x0008, /**< @brief Join_Control */ } ucd_property; /** @brief Return the properties of the specified codepoint. @@ -794,6 +795,7 @@ namespace ucd White_Space = UCD_PROPERTY_WHITE_SPACE, /**< @brief White_Space */ noBreak = UCD_PROPERTY_NO_BREAK, /**< @brief */ Bidi_Control = UCD_PROPERTY_BIDI_CONTROL, /**< @brief Bidi_Control */ + Join_Control = UCD_PROPERTY_JOIN_CONTROL, /**< @brief Join_Control */ }; /** @brief Return the properties of the specified codepoint. diff --git a/src/proplist.c b/src/proplist.c index a3d421b8..325da2a6 100644 --- a/src/proplist.c +++ b/src/proplist.c @@ -38,6 +38,7 @@ ucd_property ucd_properties(codepoint_t c, ucd_category category) return 0; case UCD_CATEGORY_Cf: if (c == 0x061C) return UCD_PROPERTY_BIDI_CONTROL; + if (c >= 0x200C && c <= 0x200D) return UCD_PROPERTY_JOIN_CONTROL; if (c >= 0x200E && c <= 0x200F) return UCD_PROPERTY_BIDI_CONTROL; if (c >= 0x202A && c <= 0x202E) return UCD_PROPERTY_BIDI_CONTROL; if (c >= 0x2066 && c <= 0x2069) return UCD_PROPERTY_BIDI_CONTROL;