Directory

noto-emoji-iconset - Vaadin Add-on Directory

Google's Emojis iconset for iron-icon noto-emoji-iconset - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/raulsntos/noto-emoji-iconset](https://github.com//raulsntos/noto-emoji-iconset/blob/v0.1.0/README.md) on 2019-05-22 ]** # noto-emoji-iconset Iconset for [`iron-icon`](https://elements.polymer-project.org/elements/iron-icon) to use Google's Emojis. [See the Documentation](https://raulsntos.github.io/noto-emoji-iconset). [See for yourself](https://raulsntos.github.io/noto-emoji-iconset/components/noto-emoji-iconset/demo). ```html ``` ![Emojis](https://github.com/raulsntos/noto-emoji-iconset/raw/master/hero.png) ## How to install You can clone this repo directly to your server but I recommend using bower: `bower install --save raulsntos/noto-emoji-iconset` ## Important note The emojis will not render properly if you don't use Shadow DOM so be sure to enable it. **The good news:** Polymer will switch to Shadow DOM by default eventually (soon). Take a look at the [demo](https://github.com/raulsntos/noto-emoji-iconset/blob/master/demo/index.html) to see how I'm using the iconset. If you are using a Polymer version that is lower than 2.0 be sure to add this code before loading Polymer (or every element implemented with Polymer) : ```html ``` ## How to use the set To use the set simply import this set and use it like any other iconset. Use the prefix **emoji** followed by colon (**:**) and the emoji in unicode (`�`). Example: ```html ... ... ... ... ``` ## But it's hard to type emojis in my laptop! :angry: I know! That's why there's also a Polymer element included `emoji-icon` which lets you use the emoji shortname (like you do in GitHub). Example: ```html ... ... ... ... ``` ### Nice features of `emoji-icon` - You can use shortnames instead of typing the emoji (making it easier to use when you are not developing using your phone :wink:) - The element uses a dictionary to translate emoji shortnames to unicode, the dictionary is stored in `emoji-dictionary.html`. The element imports the JSON variable **only once** since that's how the `` tag works. ## Can I change the size? Yes! If you are using `iron-icon`, see how to do it in their [documentation](https://elements.polymer-project.org/elements/iron-icon#styling). If you are using `emoji-icon` you can also find how in `iron-icon`'s documentation because it's the exactly the same but replacing `iron` with `emoji` in the CSS variables. ## How to build the iconset ### Requirements - [Go](https://golang.org/) - [Git](https://git-scm.com/) ### What it does You can build the iconset yourself by using the build.go file included in this repository, simple use `go run build.go`. The script uses `git` to clone the Noto GitHub repository (you can also download the repository manually, the script will not clone it as long as a folder named `noto-emoji` exists in the root of this project). If you have already cloned or downloaded the Noto repository but want to update it to the latest version use the flag `-update-noto` when running the script: `go run build.go -update-noto` to overwrite the folder (or you can delete it manually and then run the script). To overwrite the `emoji-dictionary.html` use the `-update-dictionary` flag, works the same way as the `-update-noto` flag. The script will overwrite the `noto-emoji-iconset.html` and `emoji-dictionary.html` files without a warning. The flag `-analysis` also exists to generate the `analysis.json` file, it is exactly the same as using the command `polymer analyze emoji-icon.html > analysis.json` but shorter, the generated JSON file is used only in the demo. ### You might not want to build the element yourself, use the one downloaded by bower It might take a few minutes since it has to download the entire Noto repository, go through over 800 svg images and then download and parse a JSON that contains over 1000 elements. Also, the script was not built to be fast, I implemented it quickly so there might be a few things that could've been done better, the purpose of the script is to automate the process of transforming the latest version of Google's Noto Emoji into a Polymer element, once the script has fullfilled its purpose there is no need for it anymore (until Google updates the Noto repository), so it's likely that no user will ever run the go script but me in order to update the element. ## Known issues - I'm using the SVG icons provided by Google in the [Noto repository](https://github.com/googlei18n/noto-emoji) and they are currently outdated so there are a few missing emojis, when Google updates their repository I'll include the new emoji. If you want to know the state of this issue check the Noto repository issue [#30](https://github.com/googlei18n/noto-emoji/issues/30). - Google's [Noto repository](https://github.com/googlei18n/noto-emoji) will eventually switch from the blob emojis to the new Android O emojis, they plan to tag the repo before that, when they do I will update `build.go` to be able to specify which version of the emojis to use (I prefer the blobs but the prebuilt version of the repo will probably use whichever is the latest version of the Noto repo, which is going to be the Android O emojis) [#141](https://github.com/googlei18n/noto-emoji/issues/141). - I would prefer to make `emoji-icon` extend from `iron-icon` instead of creating a new element with an `iron-icon` tag inside and redefining every CSS variable but Polymer does not seem to support extending custom elements yet. See issue [#2280](https://github.com/Polymer/polymer/issues/2280) in the Polymer repo.
View on GitHub
Online Demo
Documentation
GitHub Homepage
Issue tracker

noto-emoji-iconset version 0.0.1
### Dependencies * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.9 * iron-icon#PolymerElements/iron-icon#^1.0.10

noto-emoji-iconset version 0.0.2
### Dependencies * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.9 * iron-icon#PolymerElements/iron-icon#^1.0.10

noto-emoji-iconset version 0.0.3
### Dependencies * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.9 * iron-icon#PolymerElements/iron-icon#^1.0.10

noto-emoji-iconset version 0.0.4
### Dependencies * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.9 * iron-icon#PolymerElements/iron-icon#^1.0.10

noto-emoji-iconset version 0.0.5
### Dependencies * iron-iconset-svg#PolymerElements/iron-iconset-svg#^1.0.9 * iron-icon#PolymerElements/iron-icon#^1.0.10

noto-emoji-iconset version 0.0.6
### Dependencies PolymerElements/iron-iconset-svg#^1.0.9 * PolymerElements/iron-icon#^1.0.10

noto-emoji-iconset version 0.0.7
### Dependencies PolymerElements/iron-iconset-svg#^1.0.9 * PolymerElements/iron-icon#^1.0.10 * PolymerElements/iron-list#^1.3.11

noto-emoji-iconset version 0.0.8
### Dependencies PolymerElements/iron-iconset-svg#^1.0.9 * PolymerElements/iron-icon#^1.0.10 * PolymerElements/iron-list#^1.3.11

noto-emoji-iconset version 0.0.9
### Dependencies PolymerElements/iron-iconset-svg#^1.0.9 * PolymerElements/iron-icon#^1.0.10 * PolymerElements/iron-list#^1.3.11

noto-emoji-iconset version 0.1.0
### Dependencies Polymer/polymer#^2.0.2 * PolymerElements/iron-iconset-svg#^2.0.1 * PolymerElements/iron-icon#^2.0.0