2016-12-13 19:02:39 +00:00
|
|
|
Emoji Working Group
|
2016-12-13 17:56:45 +00:00
|
|
|
|
2016-12-13 19:02:39 +00:00
|
|
|
Category: Informational
|
|
|
|
|
|
|
|
|
|
|
|
# emoji checksum mapping
|
|
|
|
|
|
|
|
## Status of This Document
|
|
|
|
|
|
|
|
This document provides information for the community. This document does not
|
|
|
|
specify a standard of any kind. It is open to suggestions and discussion for
|
|
|
|
improvements. This document is presently a draft and will apply versioning of
|
|
|
|
the documents as needed. Distribution of this document is unlimited.
|
|
|
|
|
|
|
|
|
|
|
|
## Notices
|
|
|
|
|
|
|
|
Permission is granted to copy and distribute this document for any purpose and
|
|
|
|
without charge, including translations into other languages and incorporation
|
|
|
|
into compilations, provided that the copyright notice and this notice are
|
|
|
|
preserved, and that any substantive changes or deletions from the original are
|
|
|
|
clearly marked.
|
|
|
|
|
2019-11-02 12:44:48 +00:00
|
|
|
The latest version of the canonical JSON is the URL: https://raw.githubusercontent.com/emojisum/emojisum/master/emoji/emojimap.json
|
|
|
|
The latest version of this spec the URL: https://github.com/emojisum/emojisum/blob/master/emoji/README.md
|
|
|
|
Related documentation in can be found at the URL: [github.com/emojisum/emojisum](http://github.com/emojisum/emojisum/)
|
2016-12-13 19:02:39 +00:00
|
|
|
|
|
|
|
## Abstract
|
|
|
|
|
|
|
|
This document specifies a practice of mapping an 8bit byte to one of a
|
|
|
|
corresponding list of 256 emoji strings.
|
|
|
|
|
|
|
|
The [`emojimap.json`](./emojimap.json) JSON is the authority of ordering.
|
2017-02-07 15:47:24 +00:00
|
|
|
There is a generated visualiztion of this JSON document at [`list.md`](./list.md).
|
2016-12-13 19:02:39 +00:00
|
|
|
While this directory contains golang source that is is importable by golang
|
|
|
|
projects, other languages can fetch the ordered list of the JSON document and
|
|
|
|
do their own emojisum comparison or rendering.
|
|
|
|
|
|
|
|
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
|
|
|
|
"SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
|
|
|
|
interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119).
|
|
|
|
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
### Purpose
|
|
|
|
|
|
|
|
The purpose of this practice is provide simplified way to convey [checksums](https://en.wikipedia.org/wiki/Checksum) for visual comparison.
|
|
|
|
|
|
|
|
|
|
|
|
### Intended Audience
|
|
|
|
|
2018-10-16 19:27:44 +00:00
|
|
|
This is intended for use by implementors of software to convey checksums or validate conveyed checksums or unique fingerprints.
|
2016-12-13 19:02:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Details
|
|
|
|
|
|
|
|
By operating on an 8bit byte, this provides the oportunity for 256 permutations.
|
|
|
|
Most checksums convey in a hexadecimal notation, there showing a par of case-insensitive hexadecimal characters per byte (`16*16 = 256`).
|
|
|
|
Having a mapping of 256 emojis this thereby reduces the number of characters (or emojis) needed to convey the checksum.
|
|
|
|
In example, a [SHA1](https://en.wikipedia.org/wiki/SHA-1) checksum is 40 hexadecimal characters long, whereas an SHA1-emojisum is only 20 emojis.
|
|
|
|
|
2018-10-16 19:27:44 +00:00
|
|
|
### The emojimap
|
|
|
|
|
|
|
|
In the common document [`emojimap.json`](./emojimap.json) there is an ordered list of arrays.
|
|
|
|
Each array contains a set of strings that are either a human readable word or the human readable unicode point.
|
|
|
|
For example, byte `0xe8` (position 232) is `[":nauseated_face:", "U+1F922"]`.
|
|
|
|
|
|
|
|
For more complex and visually similar emoji there are times that the unicode is a combination.
|
|
|
|
This is the case for flags and people.
|
|
|
|
For example, byte `0xd9` (position 217) includes `:surfer:`, `U+1F3C4`, and `U+1F3C4U+200DU+2642U+FEOF`.
|
|
|
|
When there is a combination, implementations MUST split on the "`U+`".
|
|
|
|
|
2016-12-13 19:02:39 +00:00
|
|
|
## References
|
|
|
|
|
2017-02-07 15:17:50 +00:00
|
|
|
* Unicode Technical Report #51 - http://www.unicode.org/reports/tr51/
|
2016-12-13 19:02:39 +00:00
|
|
|
* http://www.webpagefx.com/tools/emoji-cheat-sheet/
|