mirror of
https://github.com/anomalyco/hex.git
synced 2026-12-05 10:45:15 +01:00
What changed
- scripts/build-emoji-data.py builds HEXShared/FullKeyboard/Emoji/emoji-index-<lang>.txt
for the four keyboard layouts (en, nb, es, de) from Unicode emoji-test.txt 18.0
(pinned by SHA-256) and CLDR 49 annotations and annotationsDerived (release-49 tag),
plus Hex's own chat words in scripts/emoji-aliases-en.txt ("congrats", "bday",
"lol", "new year"; 336 words, written for Hex).
- Each file holds the catalog in panel order (8 categories, 1,923 emoji, 332 with five
uniform skin tones), each emoji's English name, its folded search words, and the
word and phrase postings already weighted (one-word name 1.0, name word 0.75,
keyword 0.6, keyword-phrase word 0.3, chat word 1.2 down to 0.9, an IDF factor for
words many emoji share), sorted by key so the keyboard can binary-search the file
in place. Non-English layouts carry English's words at 0.85.
- LICENSE-Unicode.txt (Unicode License v3) ships beside the data, as the licence
asks: both emoji-test.txt and CLDR's data are under it, which allows commercial
use with the notice.
Why
- The emoji panel (next commits) suggests emoji for what you type and searches them
on the iPhone. Precomputing the index keeps the keyboard extension's heap small:
the first version built Swift dictionaries at runtime and held 5.7 MB, which
malloc kept after release; the mapped file plus offsets measures 0.7 MB.
Verified
- The generator runs from a sources folder or downloads the pinned files; output is
deterministic. Files: en 351 KB, nb 560 KB, es 549 KB, de 610 KB.
39 lines
1.9 KiB
Text
39 lines
1.9 KiB
Text
UNICODE LICENSE V3
|
|
|
|
COPYRIGHT AND PERMISSION NOTICE
|
|
|
|
Copyright © 1991-2026 Unicode, Inc.
|
|
|
|
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a
|
|
copy of data files and any associated documentation (the "Data Files") or
|
|
software and any associated documentation (the "Software") to deal in the
|
|
Data Files or Software without restriction, including without limitation
|
|
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
copies of the Data Files or Software, and to permit persons to whom the
|
|
Data Files or Software are furnished to do so, provided that either (a)
|
|
this copyright and permission notice appear with all copies of the Data
|
|
Files or Software, or (b) this copyright and permission notice appear in
|
|
associated Documentation.
|
|
|
|
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
THIRD PARTY RIGHTS.
|
|
|
|
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
FILES OR SOFTWARE.
|
|
|
|
Except as contained in this notice, the name of a copyright holder shall
|
|
not be used in advertising or otherwise to promote the sale, use or other
|
|
dealings in these Data Files or Software without prior written
|
|
authorization of the copyright holder.
|