diff options
| author | Robert Pluim | 2021-09-19 21:07:36 +0200 |
|---|---|---|
| committer | Robert Pluim | 2021-09-20 19:10:30 +0200 |
| commit | bcfc570bac07344cf4409d95972b504bcbc26d24 (patch) | |
| tree | 1b823c09170c8728d3194a524ba2e2a6ea5c608f /admin | |
| parent | ab676214bd64e04723cf6e451e353c81c2346789 (diff) | |
| download | emacs-bcfc570bac07344cf4409d95972b504bcbc26d24.tar.gz emacs-bcfc570bac07344cf4409d95972b504bcbc26d24.zip | |
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.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/notes/unicode | 2 | ||||
| -rwxr-xr-x | admin/unidata/blocks.awk | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/admin/notes/unicode b/admin/notes/unicode index 9dc6f3bdca3..0b2ce527948 100644 --- a/admin/notes/unicode +++ b/admin/notes/unicode | |||
| @@ -100,7 +100,7 @@ FONT-NAME-REGEXP is checked using `string-match'." | |||
| 100 | (save-excursion | 100 | (save-excursion |
| 101 | (goto-char (point-min)) | 101 | (goto-char (point-min)) |
| 102 | (let (res char name ifont) | 102 | (let (res char name ifont) |
| 103 | (while (re-search-forward "; Emoji [^(]+(\\(.\\)[).\uFE0F]" nil t) | 103 | (while (re-search-forward "; Emoji_Presentation [^(]+(\\(.\\)[).]" nil t) |
| 104 | (setq char (aref (match-string 1) 0)) | 104 | (setq char (aref (match-string 1) 0)) |
| 105 | (setq ifont (car (internal-char-font nil char))) | 105 | (setq ifont (car (internal-char-font nil char))) |
| 106 | (when ifont | 106 | (when ifont |
diff --git a/admin/unidata/blocks.awk b/admin/unidata/blocks.awk index 6e52b52f674..29022bf7ddf 100755 --- a/admin/unidata/blocks.awk +++ b/admin/unidata/blocks.awk | |||
| @@ -202,12 +202,7 @@ FILENAME ~ "Blocks.txt" && /^[0-9A-F]/ { | |||
| 202 | } | 202 | } |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | # The space after 'Emoji' is significant in the next two rules. | 205 | FILENAME ~ "emoji-data.txt" && /^[0-9A-F].*; Emoji_Presentation / { |
| 206 | # This purposely and deliberately excludes codepoints <= 00FF | ||
| 207 | FILENAME ~ "emoji-data.txt" && /^00[0-9A-F][0-9A-F].*; Emoji / { | ||
| 208 | next | ||
| 209 | } | ||
| 210 | FILENAME ~ "emoji-data.txt" && /^[0-9A-F].*; Emoji / { | ||
| 211 | sep = index($1, "..") | 206 | sep = index($1, "..") |
| 212 | len = length($1) | 207 | len = length($1) |
| 213 | if (sep > 0) { | 208 | if (sep > 0) { |