Git Product home page Git Product logo

Comments (7)

iamcal avatar iamcal commented on June 12, 2024

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.

alanhartless avatar alanhartless commented on June 12, 2024

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.

iamcal avatar iamcal commented on June 12, 2024

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.

alanhartless avatar alanhartless commented on June 12, 2024

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.

alanhartless avatar alanhartless commented on June 12, 2024

I guess I'm just not for sure how to generate the older Google unicode bytes. I'll play though.

from emoji-data.

alanhartless avatar alanhartless commented on June 12, 2024

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.

iamcal avatar iamcal commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.