Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to detect a sentence is pure emoji or not? #10

Open
lucasjinreal opened this issue Feb 29, 2020 · 4 comments
Open

how to detect a sentence is pure emoji or not? #10

lucasjinreal opened this issue Feb 29, 2020 · 4 comments
Assignees
Labels
experimental Experiment on something

Comments

@lucasjinreal
Copy link

is there any API to do:

parser.is_pure_emoji('ddf')

if is full emoji, then return yes, otherwise return false.

@petehouston
Copy link
Owner

'ddf' is a text. I don't understand what you want. Can you elaborate?

@lucasjinreal
Copy link
Author

lucasjinreal commented Mar 3, 2020

Yes. I want detection if a text contains pure emoji or not. Such as:

😀 😁 😂 -> true
😀 😁 的还 -> not
😀 😁 fere😂 -> not
ferg😀 😁 😂 -> not

I want to do this is because I want detect if use's input is pure emoji or not, if pure emoji then I will enlarge all text say size as 99, so it will looks big just like facebook Messagers does, but if emoji with normal text, then just show normal.

Does it able to do this kind of detect?

@petehouston
Copy link
Owner

Yes, it is possible. But are you trying to capture text everytime user type to enlarge or only do once after user prompt the text?

@lucasjinreal
Copy link
Author

lucasjinreal commented Mar 5, 2020

@petehouston You are right, this should consider efficiency. I simply want detect it once user press enter button, then I will decide how to show it (if pure emoji then txt size big, other normal). Rest time will not do this.

Will will do very fast to determine?

@petehouston petehouston self-assigned this Apr 17, 2020
@petehouston petehouston added the experimental Experiment on something label Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental Experiment on something
Projects
None yet
Development

No branches or pull requests

2 participants