bonusly / gemojione Goto Github PK
View Code? Open in Web Editor NEWA gem for EmojiOne
License: Other
A gem for EmojiOne
License: Other
Unicode 9 definitions presented in #18 have no keywords (most of them).
We need to add keywords to them once source repo (Ranks/emojione) add them
As mentioned in joypixels/emojione#302 there seems to be an issue with the non-modifier image for this asset, its glasses shouldn't have reflexions.
Source repo has updated the png asset but not the svg, waiting to happen to update here.
At the moment, gemojione provides a regex for matching all possible emoji short names. However, there is not a find_by_shortname
method in the index. Could this be added?
I can file a pull request if asked, I've done it locally.
what is the version of emojione in this repo?
I cannot find it.
As mentioned in #18, adding this feature will improve emoji sorting inside each category.
For example, the banana emoji is an "object" when it should be in the category "foods". As is apple, bread, cake, candy, etc.
index.json
for the latest commit: https://raw.githubusercontent.com/jonathanwiesel/gemojione/b922391b0a85cb6c35483eabbfeecb399246385c/config/index.json
Would be useful to have a method to obtain an array of emoji definitions per keyword
Hi there,
Thanks for an awesome product.
Just wondering if there's plans to update to the latest version of Emojione / Unicode 10?
Thanks!
heart_tip
: https://gitlab.com/gitlab-org/gitlab-ce/issues/18343#note_12637818light_check_mark
: https://gitlab.com/gitlab-org/gitlab-ce/issues/17575#note_12626947Probably others, I'll update if I see any more.
I noticed this on the Readme:
Travis still points to the old URL.
I'm not sure if this is intended, but I was expecting that replace_named_moji_with_images
would work with aliases too. My specific case is :robot_face:
: its actual name is :robot:
and :robot_face:
is an alias. But when I call Gemojione.replace_named_moji_with_images(":robot_face:")
, it returns ":robot_face:"
.
Looking at the source, I suppose it's because the regex used in this method (shortname_moji_regex
) is generated from the Index's @emoji_by_code
, and aliases are added to @emoji_by_name
. Would it be acceptable if aliases were added to @emoji_by_code
too? If so, I could make a pull request for that.
Thanks in advance 😄
RubyGems says the SHA256 sum should be 7c2c938d64ced0ebed9e1ea842e3982bb88137530c38b2057bb69c752e1bde9f
, but a gem fetch gemojione -v '3.0.1'
will download a file with 6ab088a5dae3a04196d1059f067ea874aec124431b0dc05c262bfd5ef990685c
checksum, which seems to be corrupted when installed, producing the following error:
Bundler::GemspecError: Could not read gem at
/usr/local/lib/ruby/gems/2.3.0/cache/gemojione-3.0.1.gem. It may be corrupted.
An error occurred while installing gemojione (3.0.1), and Bundler cannot
continue.
Make sure that `gem install gemojione -v '3.0.1' --source 'https://rubygems.org/'`
succeeds before bundling.
"desert" keyword is returning emoji for the "dessert"
Hey,
just saw that quite a lot emojis are missing in the index.json
file. (Seems 162 are missing, unless I'm totally wrong. I compared with this file)
A few examples:
zany_face
hot_face
cold_face
Is there a way to generate these, or do we have to add each emoji manually?
The README currently states that the following lines should be added to serve the SVG image versions directly from the gem instead of having to add them to the application:
# config/application.rb
config.assets.paths << Gemojione.images_path
config.assets.precompile << "emoji/*.svg"
Gemojione.images_path
returns the correct path within the gem (assets/svg
), but it does not contain another directory named "emoji" - leading to the images not being precompiled / available in development.
Currently, this can be solved by removing the emoji
directory name, but this of course leads to all assets being in the main assets
namespace:
# config/application.rb
config.assets.precompile << "*.svg"
# config/initializers/gemojione.rb
Gemojione.asset_path = '/assets'
I'd like to load the images from the gem as I don't really want to add another 7MB to the application, but I'd prefer to still have them in their own namespace (as described in the README).
Did I simply do something wrong, is this a bug or the intended behaviour and the README just wasn't updated?
Thanks in advance and in general for this great gem!
Many definitions in the index.json
have their moji
property missing.
For example:
"airplane_arriving": {
"unicode": "1F6EC",
"unicode_alternates": [],
"name": "airplane arriving",
"shortname": ":airplane_arriving:",
"category": "travel_places",
"aliases": [],
"aliases_ascii": [],
"keywords": [
"flight",
"transportation",
"vehicle",
"plane",
"airport",
"travel",
"airlines",
"fly",
"jet",
"jumbo",
"boeing",
"airbus"
]
}
Should have a property "moji": 🛬
.
The punctuation of ' will be translated into it's character number: '
e.g. Gemojione.replace_unicode_moji_with_images "what's your name"
will be translated into:
"what's your name"
Not sure if this is intentional, but these 39 emoji( all from regional category ) are missing.
["0023", "002a", "0030", "0031", "0032", "0033", "0034", "0035", "0036", "0037", "0038", "0039", "1f1e6", "1f1e7", "1f1e8", "1f1e9", "1f1ea", "1f1eb", "1f1ec", "1f1ed", "1f1ee", "1f1ef", "1f1f0", "1f1f1", "1f1f2", "1f1f3", "1f1f4", "1f1f5", "1f1f6", "1f1f7", "1f1f8", "1f1f9", "1f1fa", "1f1fb", "1f1fc", "1f1fd", "1f1fe", "1f1ff", "1f5e8"]
Emoji One 2.2.4 was released the other day with the Unicode 9 emoji! Can we get an update with them?
When doing the unicode9 joining process, I identified a new definition:
{
"gay_pride_flag": {
"unicode": "1F3F3-1F308",
"unicode_alternates": [],
"name": "gay_pride_flag",
"shortname": ":gay_pride_flag:",
"category": "extras",
"aliases": [
":rainbow_flag:"
],
"aliases_ascii": [],
"keywords": []
}
}
However this asset is not present yet in the source repo.
See joypixels/emojione#274
When added, will add here
Some CDNs name the emoji image files with the downcased version of the emoji code, for example "1f61b" instead of "1F61B". Cloudflare is an example.
Even jsdelivr, which I was using, is failing for some uppercase codes, but working for the downcase version. Example: I get this url for :clown:
: https://cdn.jsdelivr.net/emojione/assets/svg/1F921.svg, which gives me an "Access Denied" error, but the downcase version works normally: https://cdn.jsdelivr.net/emojione/assets/svg/1f921.svg.
Is this a problem with the CDNs or would it make sense to be able to downcase the codes in this gem?
It seems the png's in this gem are from the 4.5 distribution of emojione, which is not under a CC license, but can only be used for personal use unless an enterprise license is purchased. Please consider reverting to the 2.3 version.
Identified the following duplicates for the same unicode:
{
"1F3D7": [
"construction_site",
"contruction_site"
],
"1F51F": [
"keycap_ten",
"ten"
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.