emacs/admin/unidata
Robert Pluim a2a62f7105 Enhance font_range to check for emoji composition triggers
If the codepoint that triggered composition is from the emoji script,
use the emoji font to check the string being composed, rather than the
font of the first character of the string.  This makes e.g.

"emoji codepoint with Emoji_Presentation = No followed by VS-16 (FE0F)"

display the emoji version of the glyph for that codepoint.

* admin/unidata/blocks.awk: Add VS-1 through VS-16 to the emoji
script.
* src/composite.c (autocmp_chars): Accept additional argument CH for
the codepoint that triggered composition, pass it to font_range.
(composition_reseat_it, find_automatic_composition): Pass codepoint
that triggered composition to autocmp_chars.
* src/font.c (font_range): Accept additional argument CH for the
triggering codepoint.  If the codepoint is from the 'emoji' script,
use Vscript_representative_chars to find the font to use for the
composition attempt.
(syms_of_font): Add Qemoji symbol.
* src/font.h: Update font_range prototype for argument CH.
* etc/NEWS: Announce change.
2021-09-27 10:31:32 +02:00
..
BidiBrackets.txt Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
BidiMirroring.txt Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
blocks.awk Enhance font_range to check for emoji composition triggers 2021-09-27 10:31:32 +02:00
Blocks.txt Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
copyright.html Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
emoji-data.txt Split Unicode emoji into their own script 2021-09-17 14:45:44 +02:00
emoji-sequences.txt Support for Unicode emoji sequences 2021-09-20 22:35:34 +02:00
emoji-zwj-sequences.txt Support for Unicode emoji sequences 2021-09-20 22:35:34 +02:00
emoji-zwj.awk Generate skin tone compositions from emoji-sequences.txt 2021-09-24 13:10:48 +02:00
IVD_Sequences.txt Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
Makefile.in Generate skin tone compositions from emoji-sequences.txt 2021-09-24 13:10:48 +02:00
NormalizationTest.txt Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
README Support for Unicode emoji sequences 2021-09-20 22:35:34 +02:00
SpecialCasing.txt Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
UnicodeData.txt Update Unicode support to Unicode version 14.0.0 2021-09-15 14:40:13 +03:00
unidata-gen.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
uvs.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00

Some files in this directory are taken from the Unicode Character
Database and the Unicode Ideographic Variation Database.  These files
are governed by the Unicode Terms of Use contained in the file
copyright.html.

The names, URLs, and dates for these files are as follows.

BidiBrackets.txt
http://www.unicode.org/Public/UNIDATA/BidiBrackets.txt
2021-06-30

BidiMirroring.txt
http://www.unicode.org/Public/UNIDATA/BidiMirroring.txt
2021-08-08

Blocks.txt
http://www.unicode.org/Public/8.0.0/ucd/Blocks.txt
2021-01-22

IVD_Sequences.txt
http://www.unicode.org/ivd/
2020-11-06

NormalizationTest.txt
http://www.unicode.org/Public/UNIDATA/NormalizationTest.txt
2021-05-28

SpecialCasing.txt
http://unicode.org/Public/UNIDATA/SpecialCasing.txt
2021-03-08

UnicodeData.txt
http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
2021-07-06

emoji-data.txt
https://www.unicode.org/Public/14.0.0/ucd/emoji/emoji-data.txt
2021-08-26

emoji-zwj-sequences.txt
https://www.unicode.org/Public/emoji/14.0/emoji-zwj-sequences.txt
2021-06-08

emoji-sequences.txt
https://www.unicode.org/Public/emoji/14.0/emoji-sequences.txt
2020-08-26