GitHub - vsch/emoji-cross-reference: Cross reference for Unicode Emoji List v11.0, GitHub Emoji Shortcuts and Emoji Cheat Sheet (original) (raw)
If you need to cross-reference between Unicode Emoji List, v15.0 and optionally Unicode Emoji Modifiers List, v15.0, GitHub Emoji API andemoji-cheat-sheet.com then these files can provide the raw information you need to create the cross-reference lookup. Including easy determination which Unicode Emoji symbols are missing from the corresponding shortcut lists.
The EmojiImageExtractor.java is a console application with two options:
--downloadforce download of reference files and GitHub images--download-filesforce download of reference files--download-github-imagesforce download of GitHub emoji images togithub_images--no-modifiersto exclude Unicode Emoji Modifiers List, v15.0 from processing.
the application will:
- download the Unicode Emoji List, v15.0 page, andUnicode Emoji Modifiers List, v15.0 unless disabled with
--no-modifierscommand argument, if it is missing, or requested through command line options - download the GitHub Emoji API file, if it is missing, or requested through command line options
- download all images listed in GitHub Emoji API into
github_emojiif thegithub_imagesdirectory is missing, has fewer than 1000 files, or requested through command line options. - extract images from the downloaded Unicode Emoji List, v15.0 file by browser type to
emoji_imagesto a subdirectory per browser column header, converted to lowercase. - copy
github_emojiimages toemoji_images/ghubsubdirectory - copy emoji-cheat-sheet.com/public/graphics/emojis/ images to
emoji_images/emojissubdirectory, renaming the files to the common file name used by GitHub or Unicode emoji, when applicable. - create a text reference file EmojiReference.txt to be loaded byEmojiReference.java at run time.
- create a JSON reference file EmojiReference.json in case this format is more comfortable for your application.
Files:
- EmojiReference.txt tab separated data, empty columns have a single space. Content can be pasted into a spreadsheet if desired.
- EmojiReference.java java reference class, which loads theEmojiReference.txt data file. There is too much data to include in a java class, so it has to be loaded dynamically. Put the file in your app resources and modify the loader to load it from the resource path.
- EmojiReference.json json reference file with all the cross-reference data.
Fields:
shortcut: shortcut for either or both: GitHub Emoji API whengithubFileis not null and emoji-cheat-sheet.com whenemojiCheatSheetFileis not null.aliasShortcuts: alias shortcuts, when applicable or empty.category: category from Unicode Emoji List, v15.0subcategory: subcategory Unicode Emoji List, v15.0emojiCheatSheetFilerefers to the file name used by theemoji-cheat-sheet.com for image files in theemoji-cheat-sheet.com/public/graphics/emojis/ directory. The file name in theemoji_images/emojisdirectory will be the one given in theunicodeSampleFilefield.githubFilerefers to the file name, used by GitHub Emoji API, needs to be prefixed with thegithubUrl:https://github.githubassets.com/images/icons/emoji/to get the full image URL.unicodeChars: list of unicode characters for the emojiunicodeSampleFilefile name derived from unicode characters from theUnicode Emoji List, v15.0, same asgithubFilename derivation. Used for cross-referencing only.unicodeCldr: unicode CLDRbrowserTypes: browser type from Unicode Emoji List, v15.0 column headers for various types, lowercase of column headers. Note, that emoji-cheatsheet and GitHub do not appear in the list, useemojiCheatSheetFileentry to determine if available in emoji-cheatsheet orgithubFilefor GitHub availability.
NOTE: category and subcategory are taken fromUnicode Emoji List, v15.0 table header rows. Category is mapped in theEmojiImageExtractor.java from the text appearing in theUnicode Emoji List, v15.0, subcategory is taken as is.
emoji-cheat-sheet.com repository needs to be cloned toemoji-cheat-sheet.com subdirectory in this project. Use the following command in the root directory for the project to clone it:
git clone https://github.com/WebpageFX/emoji-cheat-sheet.com
Please report any discrepancies so they can be corrected.
Copyright 2018-2023, Vladimir Schneider
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.