From 126e2cfd964f94ca277c75ba3ce5ff9430af453b Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Wed, 4 Dec 2024 21:15:01 +0100 Subject: [PATCH] unicode-query: Show emoji presentation in Unicode properties query tool Signed-off-by: Christian Parpart --- Changelog.md | 4 ++++ src/tools/unicode-query.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/Changelog.md b/Changelog.md index 5c7fafd..5cb13d9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,7 @@ +## 0.5.0 (unreleased) + +- Show emoji presentation in Unicode properties query tool. + ## 0.4.0 (2023-11-27) - Fix UTF-8 decoding of incomplete UTF-8 multibyte sequences to properly report `Invalid`. diff --git a/src/tools/unicode-query.cpp b/src/tools/unicode-query.cpp index b67f25c..ea1f358 100644 --- a/src/tools/unicode-query.cpp +++ b/src/tools/unicode-query.cpp @@ -155,6 +155,7 @@ void showCodepointProperties(char32_t codepoint) cout << "East Asian Width : " << properties.east_asian_width << '\n'; cout << "Character width : " << unsigned(properties.char_width) << '\n'; cout << "Emoji Segmentation Category : " << properties.emoji_segmentation_category << '\n'; + cout << "Emoji Presentation : " << (properties.emoji_presentation() ? "emoji" : "text") << '\n'; cout << "Grapheme Cluster Break : " << properties.grapheme_cluster_break << '\n'; cout << "\n"; // clang-format on