Base emoji script membership on Emoji_Presentation

The Emoji property describes which codepoints can be displayed as
emoji, but Emoji_Presentation governs which are displayed as emoji by
default.

* admin/notes/unicode: Adjust check-emoji-coverage to look in the
Emoji_Presentation sections of emoji-data.txt
* admin/unidata/blocks.awk: Assign emoji script using the
Emoji_Presentation section.
This commit is contained in:
Robert Pluim 2021-09-19 21:07:36 +02:00
parent ab676214bd
commit bcfc570bac
2 changed files with 2 additions and 7 deletions

View file

@ -100,7 +100,7 @@ FONT-NAME-REGEXP is checked using `string-match'."
(save-excursion
(goto-char (point-min))
(let (res char name ifont)
(while (re-search-forward "; Emoji [^(]+(\\(.\\)[).\uFE0F]" nil t)
(while (re-search-forward "; Emoji_Presentation [^(]+(\\(.\\)[).]" nil t)
(setq char (aref (match-string 1) 0))
(setq ifont (car (internal-char-font nil char)))
(when ifont