mirror of
https://github.com/emojisum/emojisum.git
synced 2025-08-03 05:40:27 +00:00
emoji: fix merged unicode
for several of the emoji "words", they are a union of unicode points. Like flags are the two letters together. Female Detective is a number of connected symbols. This representation needs to be alltogether. With this update the unicode points are joined, and require spliting on the "U+". To help with this and be useful as a library there is a function `emoji.CodepointToUnicode(string) string` to do this now. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
1d0526c5b6
commit
cc9cb5d099
6 changed files with 271 additions and 227 deletions
|
@ -94,7 +94,7 @@ func init() {
|
|||
},
|
||||
Words{ ":clubs:","U+2663",
|
||||
},
|
||||
Words{ ":cn:","U+1F1E8","U+1F1F3",
|
||||
Words{ ":cn:","U+1F1E8U+1F1F3",
|
||||
},
|
||||
Words{ ":coffee:","U+2615",
|
||||
},
|
||||
|
@ -122,7 +122,7 @@ func init() {
|
|||
},
|
||||
Words{ ":dash:","U+1F4A8",
|
||||
},
|
||||
Words{ ":de:","U+1F1E9","U+1F1EA",
|
||||
Words{ ":de:","U+1F1E9U+1F1EA",
|
||||
},
|
||||
Words{ ":diamonds:","U+2666",
|
||||
},
|
||||
|
@ -144,7 +144,7 @@ func init() {
|
|||
},
|
||||
Words{ ":envelope:","U+2709",
|
||||
},
|
||||
Words{ ":es:","U+1F1EA","U+1F1F8",
|
||||
Words{ ":es:","U+1F1EAU+1F1F8",
|
||||
},
|
||||
Words{ ":eyes:","U+1F440",
|
||||
},
|
||||
|
@ -168,7 +168,7 @@ func init() {
|
|||
},
|
||||
Words{ ":four_leaf_clover:","U+1F340",
|
||||
},
|
||||
Words{ ":fr:","U+1F1EB","U+1F1F7",
|
||||
Words{ ":fr:","U+1F1EBU+1F1F7",
|
||||
},
|
||||
Words{ ":fries:","U+1F35F",
|
||||
},
|
||||
|
@ -180,7 +180,7 @@ func init() {
|
|||
},
|
||||
Words{ ":game_die:","U+1F3B2",
|
||||
},
|
||||
Words{ ":eu:","U+1F1EA","U+1F1FA",
|
||||
Words{ ":eu:","U+1F1EAU+1F1FA",
|
||||
},
|
||||
Words{ ":gem:","U+1F48E",
|
||||
},
|
||||
|
@ -232,19 +232,19 @@ func init() {
|
|||
},
|
||||
Words{ ":house:","U+1F3E0",
|
||||
},
|
||||
Words{ ":female_detective:","U+1F575","U+1FE0F","U+200D","U+2640",
|
||||
Words{ ":female_detective:",":detective:","U+1F575","U+1F575U+FE0FU+200DU+2642U+FE0F","U+1F575U+FE0FU+200DU+2640U+FE0F",
|
||||
},
|
||||
Words{ ":icecream:","U+1F366",
|
||||
},
|
||||
Words{ ":imp:","U+1F608",
|
||||
},
|
||||
Words{ ":it:","U+1F1EE","U+1F1F9",
|
||||
Words{ ":it:","U+1F1EEU+1F1F9",
|
||||
},
|
||||
Words{ ":jack_o_lantern:","U+1F383",
|
||||
},
|
||||
Words{ ":japanese_goblin:","U+1F47A",
|
||||
},
|
||||
Words{ ":jp:","U+1F1EF","U+1F1F5",
|
||||
Words{ ":jp:","U+1F1EFU+1F1F5",
|
||||
},
|
||||
Words{ ":key:","U+1F511",
|
||||
},
|
||||
|
@ -254,7 +254,7 @@ func init() {
|
|||
},
|
||||
Words{ ":koala:","U+1F428",
|
||||
},
|
||||
Words{ ":kr:","U+1F1F0","U+1F1F7",
|
||||
Words{ ":kr:","U+1F1F0U+1F1F7",
|
||||
},
|
||||
Words{ ":lemon:","U+1F34B",
|
||||
},
|
||||
|
@ -374,7 +374,7 @@ func init() {
|
|||
},
|
||||
Words{ ":rooster:","U+1F413",
|
||||
},
|
||||
Words{ ":ru:","U+1F1F7","U+1F1FA",
|
||||
Words{ ":ru:","U+1F1F7U+1F1FA",
|
||||
},
|
||||
Words{ ":sailboat:","U+26F5",
|
||||
},
|
||||
|
@ -484,13 +484,13 @@ func init() {
|
|||
},
|
||||
Words{ ":two_women_holding_hands:",":two_men_holding_hands:",":couple:","U+1F46C ","U+1F46D","U+1F46B",
|
||||
},
|
||||
Words{ ":uk:",
|
||||
Words{ ":uk:","U+1F1ECU+1F1E7",
|
||||
},
|
||||
Words{ ":umbrella:",
|
||||
},
|
||||
Words{ ":unlock:",
|
||||
},
|
||||
Words{ ":us:",
|
||||
Words{ ":us:","U+1F1FAU+1F1F8",
|
||||
},
|
||||
Words{ ":v:",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue