Commit 7a57eb71 by Mark Wunsch

Add remaining People names, and infer names from symbol

parent 07f1a2ab
...@@ -77,7 +77,7 @@ module Rumoji ...@@ -77,7 +77,7 @@ module Rumoji
self.new("\u{1F602}", [:joy], "FACE WITH TEARS OF JOY"), self.new("\u{1F602}", [:joy], "FACE WITH TEARS OF JOY"),
self.new("\u{1F632}", [:astonished], "ASTONISHED FACE"), self.new("\u{1F632}", [:astonished], "ASTONISHED FACE"),
self.new("\u{1F631}", [:scream], "FACE SCREAMING IN FEAR"), self.new("\u{1F631}", [:scream], "FACE SCREAMING IN FEAR"),
self.new("\u{1F62B}", [:tired_face], "TIRED FACE"), self.new("\u{1F62B}", [:tired_face]),
self.new("\u{1F620}", [:angry], "ANGRY FACE"), self.new("\u{1F620}", [:angry], "ANGRY FACE"),
self.new("\u{1F621}", [:rage], "POUTING FACE"), self.new("\u{1F621}", [:rage], "POUTING FACE"),
self.new("\u{1F624}", [:triumph], "FACE WITH LOOK OF TRIUMPH"), self.new("\u{1F624}", [:triumph], "FACE WITH LOOK OF TRIUMPH"),
...@@ -85,96 +85,96 @@ module Rumoji ...@@ -85,96 +85,96 @@ module Rumoji
self.new("\u{1F60B}", [:yum], "FACE SAVOURING DELICIOUS FOOD"), self.new("\u{1F60B}", [:yum], "FACE SAVOURING DELICIOUS FOOD"),
self.new("\u{1F637}", [:mask], "FACE WITH MEDICAL MASK"), self.new("\u{1F637}", [:mask], "FACE WITH MEDICAL MASK"),
self.new("\u{1F60E}", [:sunglasses], "SMILING FACE WITH SUNGLASSES"), self.new("\u{1F60E}", [:sunglasses], "SMILING FACE WITH SUNGLASSES"),
self.new("\u{1F635}", [:dizzy_face], "DIZZY FACE"), self.new("\u{1F635}", [:dizzy_face]),
self.new("\u{1F47F}", [:imp], ""), self.new("\u{1F47F}", [:imp]),
self.new("\u{1F608}", [:smiling_imp], "SMILING FACE WITH HORNS"), self.new("\u{1F608}", [:smiling_imp], "SMILING FACE WITH HORNS"),
self.new("\u{1F610}", [:neutral_face], "NEUTRAL FACE"), self.new("\u{1F610}", [:neutral_face]),
self.new("\u{1F636}", [:no_mouth], "FACE WITHOUT MOUTH"), self.new("\u{1F636}", [:no_mouth], "FACE WITHOUT MOUTH"),
self.new("\u{1F607}", [:innocent], "SMILING FACE WITH HALO"), self.new("\u{1F607}", [:innocent], "SMILING FACE WITH HALO"),
self.new("\u{1F47D}", [:alien], ""), self.new("\u{1F47D}", [:alien], "EXTRATERRESTRIAL ALIEN"),
self.new("\u{1F49B}", [:yellow_heart], ""), self.new("\u{1F49B}", [:yellow_heart]),
self.new("\u{1F499}", [:blue_heart], ""), self.new("\u{1F499}", [:blue_heart]),
self.new("\u{1F49C}", [:purple_heart], ""), self.new("\u{1F49C}", [:purple_heart]),
self.new("\u{2764}" , [:heart], ""), self.new("\u{2764}" , [:heart], "HEAVY BLACK HEART"),
self.new("\u{1F49A}", [:green_heart], ""), self.new("\u{1F49A}", [:green_heart]),
self.new("\u{1F494}", [:broken_heart], ""), self.new("\u{1F494}", [:broken_heart]),
self.new("\u{1F493}", [:heartbeat], ""), self.new("\u{1F493}", [:heartbeat], "BEATING HEART"),
self.new("\u{1F497}", [:heartpulse], ""), self.new("\u{1F497}", [:heartpulse], "GROWING HEART"),
self.new("\u{1F495}", [:two_hearts], ""), self.new("\u{1F495}", [:two_hearts]),
self.new("\u{1F49E}", [:revolving_hearts], ""), self.new("\u{1F49E}", [:revolving_hearts]),
self.new("\u{1F498}", [:cupid], ""), self.new("\u{1F498}", [:cupid], "HEART WITH ARROW"),
self.new("\u{1F496}", [:sparkling_heart], ""), self.new("\u{1F496}", [:sparkling_heart]),
self.new("\u{2728}" , [:sparkles], ""), self.new("\u{2728}" , [:sparkles]),
self.new("\u{2B50}" , [:star], ""), self.new("\u{2B50}" , [:star], "WHITE MEDIUM STAR"),
self.new("\u{1F31F}", [:star2], ""), self.new("\u{1F31F}", [:star2], "GLOWING STAR"),
self.new("\u{1F4AB}", [:dizzy], ""), self.new("\u{1F4AB}", [:dizzy], "DIZZY SYMBOL"), # "circling stars, squeans"
self.new("\u{1F4A5}", [:boom, :collision], ""), self.new("\u{1F4A5}", [:boom, :collision], "COLLISION SYMBOL"),
self.new("\u{1F4A2}", [:anger], ""), self.new("\u{1F4A2}", [:anger], "ANGER SYMBOL"),
self.new("\u{2757}" , [:exclamation], ""), self.new("\u{2757}" , [:exclamation], "HEAVY EXCLAMATION MARK SYMBOL"),
self.new("\u{2753}" , [:question], ""), self.new("\u{2753}" , [:question], "BLACK QUESTION MARK ORNAMENT"),
self.new("\u{2755}" , [:grey_exclamation], ""), self.new("\u{2755}" , [:grey_exclamation], "WHITE EXCLAMATION MARK ORNAMENT"),
self.new("\u{2754}" , [:grey_question], ""), self.new("\u{2754}" , [:grey_question], "WHITE QUESTION MARK ORNAMENT"),
self.new("\u{1F4A4}", [:zzz], ""), self.new("\u{1F4A4}", [:zzz], "SLEEPING SYMBOL"),
self.new("\u{1F4A8}", [:dash], ""), self.new("\u{1F4A8}", [:dash], "DASH SYMBOL"), # "running dash, briffits"
self.new("\u{1F4A6}", [:sweat_drops], ""), self.new("\u{1F4A6}", [:sweat_drops], "SPLASHING SWEAT SYMBOL"), # "plewds"
self.new("\u{1F3B6}", [:notes], ""), self.new("\u{1F3B6}", [:notes], "MULTIPLE MUSICAL NOTES"), # "dancing notes, mood, melody"
self.new("\u{1F3B5}", [:musical_note], ""), self.new("\u{1F3B5}", [:musical_note]), # "music, being in good mood"
self.new("\u{1F525}", [:fire], ""), self.new("\u{1F525}", [:fire], "FIRE"),
# Poop # Poop
self.new("\u{1F4A9}", [:hankey, :poop, :shit], "PILE OF POO"), self.new("\u{1F4A9}", [:hankey, :poop, :shit], "PILE OF POO"), # "dog dirt"
self.new("\u{1F44D}", [:thumbsup], ""), self.new("\u{1F44D}", [:thumbsup], "THUMBS UP SIGN"),
self.new("\u{1F44E}", [:thumbsdown], ""), self.new("\u{1F44E}", [:thumbsdown], "THUMBS DOWN SIGN"),
self.new("\u{1F44C}", [:ok_hand], ""), self.new("\u{1F44C}", [:ok_hand], "OK HAND SIGN"),
self.new("\u{1F44A}", [:punch, :facepunch], ""), self.new("\u{1F44A}", [:punch, :facepunch], "FISTED HAND SIGN"), # "punch
self.new("\u{270A}" , [:fist], ""), self.new("\u{270A}" , [:fist], "RAISED FIST"),
self.new("\u{270C}" , [:v], ""), self.new("\u{270C}" , [:v], "VICTORY HAND"),
self.new("\u{1F44B}", [:wave], ""), self.new("\u{1F44B}", [:wave], "WAVING HAND SIGN"),
self.new("\u{270B}" , [:hand], ""), self.new("\u{270B}" , [:hand], "RAISED HAND"),
self.new("\u{1F450}", [:open_hands], ""), self.new("\u{1F450}", [:open_hands], "OPEN HANDS SIGN"),
self.new("\u{261D}" , [:point_up], ""), self.new("\u{261D}" , [:point_up], "WHITE UP POINTING INDEX"),
self.new("\u{1F447}", [:point_down], ""), self.new("\u{1F447}", [:point_down], "WHITE DOWN POINTING BACKHAND INDEX"),
self.new("\u{1F448}", [:point_left], ""), self.new("\u{1F448}", [:point_left], "WHITE LEFT POINTING BACKHAND INDEX"),
self.new("\u{1F449}", [:point_right], ""), self.new("\u{1F449}", [:point_right], "WHITE RIGHT POINTING BACKHAND INDEX"),
self.new("\u{1F64C}", [:raised_hands], "PERSON RAISING BOTH HANDS IN CELEBRATION"), # "banzai!" self.new("\u{1F64C}", [:raised_hands], "PERSON RAISING BOTH HANDS IN CELEBRATION"), # "banzai!"
self.new("\u{1F64F}", [:pray], "PERSON WITH FOLDED HANDS"), # "can indicate sorrow or regret; can indicate pleading" self.new("\u{1F64F}", [:pray], "PERSON WITH FOLDED HANDS"), # "can indicate sorrow or regret; can indicate pleading"
self.new("\u{1F446}", [:point_up_2], ""), self.new("\u{1F446}", [:point_up_2], "WHITE UP POINTING BACKHAND INDEX"),
self.new("\u{1F44F}", [:clap], ""), self.new("\u{1F44F}", [:clap], "CLAPPING HANDS SIGN"),
self.new("\u{1F4AA}", [:muscle], ""), self.new("\u{1F4AA}", [:muscle], "FLEXED BICEPS"), # "strong, muscled"
self.new("\u{1F6B6}", [:walking], ""), self.new("\u{1F6B6}", [:walking], "PEDESTRIAN"),
self.new("\u{1F3C3}", [:runner, :running], "RUNNER"), self.new("\u{1F3C3}", [:runner, :running]),
self.new("\u{1F46B}", [:couple], "MAN AND WOMAN HOLDING HANDS"), self.new("\u{1F46B}", [:couple], "MAN AND WOMAN HOLDING HANDS"),
self.new("\u{1F46A}", [:family], "FAMILY"), self.new("\u{1F46A}", [:family]),
self.new("\u{1F46C}", [:two_men_holding_hands], "TWO MEN HOLDING HANDS"), self.new("\u{1F46C}", [:two_men_holding_hands]),
self.new("\u{1F46D}", [:two_women_holding_hands], "TWO WOMEN HOLDING HANDS"), self.new("\u{1F46D}", [:two_women_holding_hands]),
self.new("\u{1F483}", [:dancer], ""), self.new("\u{1F483}", [:dancer]),
self.new("\u{1F46F}", [:dancers], ""), self.new("\u{1F46F}", [:dancers], "WOMAN WITH BUNNY EARS"),
self.new("\u{1F646}", [:ok_woman], "FACE WITH OK GESTURE"), self.new("\u{1F646}", [:ok_woman], "FACE WITH OK GESTURE"),
self.new("\u{1F645}", [:no_good], "FACE WITH NO GOOD GESTURE"), self.new("\u{1F645}", [:no_good], "FACE WITH NO GOOD GESTURE"),
self.new("\u{1F481}", [:information_desk_person], ""), self.new("\u{1F481}", [:information_desk_person]),
self.new("\u{1F64B}", [:raised_hand], "HAPPY PERSON RAISING ONE HAND"), self.new("\u{1F64B}", [:raised_hand], "HAPPY PERSON RAISING ONE HAND"),
self.new("\u{1F470}", [:bride_with_veil], ""), self.new("\u{1F470}", [:bride_with_veil]),
self.new("\u{1F64E}", [:person_with_pouting_face], "PERSON WITH POUTING FACE"), self.new("\u{1F64E}", [:person_with_pouting_face]),
self.new("\u{1F64D}", [:person_frowning], "PERSON FROWNING"), self.new("\u{1F64D}", [:person_frowning]),
self.new("\u{1F647}", [:bow], "PERSON BOWING DEEPLY"), self.new("\u{1F647}", [:bow], "PERSON BOWING DEEPLY"),
self.new("\u{1F48F}", [:couplekiss], ""), self.new("\u{1F48F}", [:couplekiss], "KISS"), # "two people kissing"
self.new("\u{1F491}", [:couple_with_heart], ""), self.new("\u{1F491}", [:couple_with_heart]),
self.new("\u{1F486}", [:massage], ""), self.new("\u{1F486}", [:massage], "FACE MASSAGE"),
self.new("\u{1F487}", [:haircut], ""), self.new("\u{1F487}", [:haircut]), # "usually indicates a beauty parlor"
self.new("\u{1F485}", [:nail_care], ""), self.new("\u{1F485}", [:nail_care], "NAIL POLISH"), # "manicure, nail care"
self.new("\u{1F466}", [:boy], ""), self.new("\u{1F466}", [:boy]),
self.new("\u{1F467}", [:girl], ""), self.new("\u{1F467}", [:girl]),
self.new("\u{1F469}", [:woman], ""), self.new("\u{1F469}", [:woman]),
self.new("\u{1F468}", [:man], ""), self.new("\u{1F468}", [:man]),
self.new("\u{1F476}", [:baby], ""), self.new("\u{1F476}", [:baby]),
self.new("\u{1F475}", [:older_woman], ""), self.new("\u{1F475}", [:older_woman]),
self.new("\u{1F474}", [:older_man], ""), self.new("\u{1F474}", [:older_man]),
self.new("\u{1F471}", [:person_with_blond_hair], ""), self.new("\u{1F471}", [:person_with_blond_hair]),
self.new("\u{1F472}", [:man_with_gua_pi_mao], ""), self.new("\u{1F472}", [:man_with_gua_pi_mao]),
self.new("\u{1F473}", [:man_with_turban], ""), self.new("\u{1F473}", [:man_with_turban]),
self.new("\u{1F477}", [:construction_worker], ""), self.new("\u{1F477}", [:construction_worker]),
self.new("\u{1F46E}", [:cop], ""), self.new("\u{1F46E}", [:cop], "POLICE OFFICER"),
self.new("\u{1F47C}", [:angel], ""), self.new("\u{1F47C}", [:angel], "BABY ANGEL"),
self.new("\u{1F478}", [:princess], ""), self.new("\u{1F478}", [:princess]),
# Cats # Cats
self.new("\u{1F63A}", [:smiley_cat], "SMILING CAT FACE WITH OPEN MOUTH"), self.new("\u{1F63A}", [:smiley_cat], "SMILING CAT FACE WITH OPEN MOUTH"),
self.new("\u{1F638}", [:smile_cat], "GRINNING CAT FACE WITH SMILING EYES"), self.new("\u{1F638}", [:smile_cat], "GRINNING CAT FACE WITH SMILING EYES"),
...@@ -185,27 +185,27 @@ module Rumoji ...@@ -185,27 +185,27 @@ module Rumoji
self.new("\u{1F63F}", [:crying_cat_face], "CRYING CAT FACE"), self.new("\u{1F63F}", [:crying_cat_face], "CRYING CAT FACE"),
self.new("\u{1F639}", [:joy_cat], "CAT FACE WITH TEARS OF JOY"), self.new("\u{1F639}", [:joy_cat], "CAT FACE WITH TEARS OF JOY"),
self.new("\u{1F63E}", [:pouting_cat], "POUTING CAT FACE"), self.new("\u{1F63E}", [:pouting_cat], "POUTING CAT FACE"),
self.new("\u{1F479}", [:japanese_ogre], ""), self.new("\u{1F479}", [:japanese_ogre]),
self.new("\u{1F47A}", [:japanese_goblin], ""), self.new("\u{1F47A}", [:japanese_goblin]),
# Monkeys # Monkeys
self.new("\u{1F648}", [:see_no_evil], "SEE-NO-EVIL MONKEY"), self.new("\u{1F648}", [:see_no_evil], "SEE-NO-EVIL MONKEY"),
self.new("\u{1F649}", [:hear_no_evil], "HEAR-NO-EVIL MONKEY"), self.new("\u{1F649}", [:hear_no_evil], "HEAR-NO-EVIL MONKEY"),
self.new("\u{1F64A}", [:speak_no_evil], "SPEAK-NO-EVIL MONKEY"), self.new("\u{1F64A}", [:speak_no_evil], "SPEAK-NO-EVIL MONKEY"),
self.new("\u{1F482}", [:guardsman], ""), self.new("\u{1F482}", [:guardsman]),
self.new("\u{1F480}", [:skull], ""), self.new("\u{1F480}", [:skull]),
self.new("\u{1F463}", [:feet], ""), self.new("\u{1F463}", [:feet], "FOOTPRINTS"),
self.new("\u{1F444}", [:lips], ""), self.new("\u{1F444}", [:lips], "MOUTH"),
self.new("\u{1F48B}", [:kiss], ""), self.new("\u{1F48B}", [:kiss], "KISS MARK"), # "lips"
self.new("\u{1F4A7}", [:droplet], ""), self.new("\u{1F4A7}", [:droplet]), # "represents a drop of sweat or drop of water"
self.new("\u{1F442}", [:ear], ""), self.new("\u{1F442}", [:ear]),
self.new("\u{1F440}", [:eyes], ""), self.new("\u{1F440}", [:eyes]),
self.new("\u{1F443}", [:nose], ""), self.new("\u{1F443}", [:nose]),
self.new("\u{1F445}", [:tongue], ""), self.new("\u{1F445}", [:tongue]),
self.new("\u{1F48C}", [:love_letter], ""), self.new("\u{1F48C}", [:love_letter]),
self.new("\u{1F464}", [:bust_in_silhouette], ""), self.new("\u{1F464}", [:bust_in_silhouette]), # "guest account"
self.new("\u{1F465}", [:busts_in_silhouette], ""), self.new("\u{1F465}", [:busts_in_silhouette]), # "accounts"
self.new("\u{1F4AC}", [:speech_balloon], ""), self.new("\u{1F4AC}", [:speech_balloon]), # "comic book conversation bubble"
self.new("\u{1F4AD}", [:thought_balloon], ""), self.new("\u{1F4AD}", [:thought_balloon]),
] ]
NATURE = Set[ NATURE = Set[
......
...@@ -18,6 +18,15 @@ describe Rumoji::Emoji do ...@@ -18,6 +18,15 @@ describe Rumoji::Emoji do
it("converts to the emoji string") { subject.to_s.must_equal poo_string } it("converts to the emoji string") { subject.to_s.must_equal poo_string }
it("converts to a hex code") { subject.hex.must_equal "1F4A9" } it("converts to a hex code") { subject.hex.must_equal "1F4A9" }
describe "inferring the name" do
let (:symbol) { :person_with_pouting_face }
subject do
Rumoji::Emoji.new("\u{1F64E}", symbol)
end
it("infers the name from the symbol") { subject.name.must_equal "PERSON WITH POUTING FACE" }
end
describe "with multiple codepoints" do describe "with multiple codepoints" do
# From the Unicode 6.2.0 standard: # From the Unicode 6.2.0 standard:
# The regional indicator symbols in the range # The regional indicator symbols in the range
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment