Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7cf74b2

Browse files
Merge pull request #1102 from vivekthedev/main
Add New Script : Emoji to Text
2 parents be65fa8 + e3ff481 commit 7cf74b2

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
6.7 KB
Loading[フレーム]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Emoji To Text
2+
3+
## Aim
4+
The aim of this script is to convert emoji to short text description
5+
6+
## Purpose
7+
The pupose of this scripts if to provide user with the encoded metadata of the emoji character in Python.
8+
This scripts extracts emoji name from the Unicode Character set.
9+
10+
## Workflow
11+
The working of this script is very straighforward, the script gets an emoji from the user as input
12+
It then extracts unicode name using the unicodedata built-in module.
13+
The scripts returns the name of first character of the string because some emojis are composed of multiple unicodes.
14+
15+
## Screenshot
16+
17+
![](./Images/Screenshot.png)
18+
19+
## Author
20+
[Vivek Kumar Singh](https://github.com/vivekthedev)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import unicodedata
2+
3+
# Get the emoji from user input as a string
4+
em = input('Enter Emoji : ')
5+
6+
# return the encoded name of the emoji from the metadata
7+
print(unicodedata.name(em[0]))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /