mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibUnicode: Generate emoji data for non-fully-qualified emoji
This allows us to find emoji data for files such as /res/emoji/U+A9.png. U+00A9 is not fully-qualified (its full form is U+00A9 U+FE0F). But the UCD has unqualified data for this code point; generating it allows us to categorize these emoji appropriately in the EmojiInputDialog.
This commit is contained in:
parent
3359f192a8
commit
0aadd4869d
Notes:
sideshowbarker
2024-07-17 07:17:14 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/0aadd4869d Pull-request: https://github.com/SerenityOS/serenity/pull/15179 Reviewed-by: https://github.com/linusg
1 changed files with 0 additions and 5 deletions
|
@ -58,11 +58,6 @@ static ErrorOr<void> parse_emoji_test_data(Core::Stream::BufferedFile& file, Emo
|
|||
auto emoji_and_name_index = line.find('#', *status_index);
|
||||
VERIFY(emoji_and_name_index.has_value());
|
||||
|
||||
// FIXME: Should we keep non-fully-qualified emoji? TR #51 states this is implementation defined.
|
||||
auto status = line.substring_view(*status_index + 1, *emoji_and_name_index - *status_index - 1).trim_whitespace();
|
||||
if (status != "fully-qualified"sv)
|
||||
continue;
|
||||
|
||||
Emoji emoji {};
|
||||
emoji.group = group;
|
||||
emoji.display_order = display_order++;
|
||||
|
|
Loading…
Add table
Reference in a new issue