Comments (7)
those are the (old) google representations.
\xF3\xBE\x93\xAC -> U+FE4EC
\xF3\xBE\x93\xA6 -> U+FE4E6
these are included in the emoji.json
dataset as google codepoints. you can see them in the google column here: http://unicodey.com/emoji-data/table.htm (search for :flag-ru:
and :flag-us:
).
the data is present, so it's probably a case of how you're using it.
from emoji-data.
Thanks!
Is there a way I can customize the build script to also include the old representations? The problem is apparently they are still floating out there in some Tweets thus slipping through the cracks when we try to save to a UTF8 database and corrupting the data.
Thanks!
Alan
from emoji-data.
Can you explain what you're actually using to process the text? This repo just contains a json file of emoji definitions, no actual processing code.
from emoji-data.
Sorry that would help uh? Using your php-emoji library under the emoji-data branch (https://github.com/iamcal/php-emoji) forked and modified to use the latest data here.
from emoji-data.
I guess I'm just not for sure how to generate the older Google unicode bytes. I'll play though.
from emoji-data.
Well, just proved I'm a total idiot :-) I fixed it after taking your hint on the emoji.json. Thanks for the quick responses!
from emoji-data.
aha! the function you want to use is emoji_google_to_unified()
. the following code:
<?php
include('emoji.php');
$in = "\xF3\xBE\x93\xAC";
$unified = emoji_google_to_unified($in);
$html = emoji_unified_to_html($unified);
echo "$html\n";
will output the expected flag html:
<span class="emoji-outer"><span class="emoji-inner emoji1f1f71f1fa"></span></span>
from emoji-data.
Related Issues (20)
- "sky & weather" subcategory should be in "Animals & Nature" not "Travel & Places" HOT 3
- Some emoji has wrong short code HOT 3
- Add support for Microsoft Fluent Emoji
- closed
- Handling large sets of icons?
- HD Apple emojis HOT 1
- Emoji 15.0 support HOT 7
- Q. Where does the emoji data set come from? HOT 2
- accessing the actual emojis from the json file HOT 4
- "underage" shortcode confusing and misleading
- Twemoji HOT 1
- Can we get a 30x30 pixel version too (due to the issue with 2078x2078 and we should stay below 2048x2048 texture size?) HOT 2
- Creating apple/64/simple : sh: montage: command not found HOT 1
- [v15.0.0 regression] Google set incorrectly displays π΄σ §σ ’σ ³σ £σ ΄σ Ώ Scotland flag as πΈπ¨ Seychelles flag HOT 7
- `non_qualified` incorrectly `null` for gendered emoji HOT 1
- Updated emoji.json, to include all HOT 6
- Unified code Outdated HOT 1
- [15.1.0 regression] Twitter sheets have incorrect dimensions and misplaced emoji
- How to search for emojis with that have multiple words? Some emojis aren't found at all? HOT 2
- Emoji 15.1 sizes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emoji-data.