From e1d6e822f155173d8f44dfbdb91626112cd2145b Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 7 May 2026 20:40:44 +0200 Subject: Slight refactor of handling the base skin tone variation Instead of adding only the skin tone variations to emojis_skintone_modifiable.txt and explicitly adding the base variation in Emoji.init(), we can just add the base variant in gen_emojis.txt and can remove special handling in Emoji.java, including the copy constructor that we needed for this specific case --- gen_emoji.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gen_emoji.py') diff --git a/gen_emoji.py b/gen_emoji.py index ccbc8d8..63ce0be 100644 --- a/gen_emoji.py +++ b/gen_emoji.py @@ -44,7 +44,7 @@ for line in getEmojiTestContents().splitlines(): # if the list is empty, or the last entry doesnt begin with the index we are currently at if len(emoji_skintone_modifiable_list) == 0 or emoji_skintone_modifiable_list[-1][0] != len(emoji_list)-1: # create a new list with the index - emoji_skintone_modifiable_list.append([len(emoji_list)-1]) + emoji_skintone_modifiable_list.append([len(emoji_list)-1, emoji_list[-1]]) # add the current skintone to the newest list emoji_skintone_modifiable_list[-1].append(emoji) else: -- cgit v1.2.3