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