zwj = ${srcdir}/emoji-zwj.awk
-${unidir}/emoji-zwj.el: ${srcdir}/emoji-zwj-sequences.txt ${zwj}
- $(AM_V_GEN)$(AWK) -f ${zwj} < $< > $@
+${unidir}/emoji-zwj.el: ${srcdir}/emoji-zwj-sequences.txt $(srcdir)/emoji-sequences.txt ${zwj}
+ $(AM_V_GEN)$(AWK) -f ${zwj} $^ > $@
.PHONY: clean bootstrap-clean distclean maintainer-clean gen-clean
### Code:
-/^[0-9A-F]/ {
+/^[0-9A-F].*; RGI_Emoji_(ZWJ|Modifier)_Sequence/ {
sub(/ *;.*/, "", $0)
num = split($0, elts)
if (ch[elts[1]] == "")
END {
print ";;; emoji-zwj.el --- emoji zwj character composition table -*- lexical-binding:t -*-"
- print ";;; Automatically generated from admin/unidata/emoji-zwj-sequences.txt"
+ print ";;; Automatically generated from admin/unidata/emoji-{zwj-,}sequences.txt"
print "(eval-when-compile (require 'regexp-opt))"
print "(dolist (elt `("
print " 0"
print " 'compose-gstring-for-graphic)))))"
- print ";; The following three blocks are derived by hand from emoji-sequences.txt"
+ print ";; The following two blocks are derived by hand from emoji-sequences.txt"
print ";; FIXME: add support for Emoji_Keycap_Sequence once we learn how to respect FE0F/VS-16"
print ";; for ASCII characters."
print " 0"
print " 'compose-gstring-for-graphic))))"
- print ";; Skin tones"
- print "(set-char-table-range composition-function-table"
- print " '(#x1F3FB . #x1F3FF)"
- print " (nconc (char-table-range composition-function-table '(#x1F3FB . #x1F3FF))"
- print " (list (vector \".[\\U0001F3FB-\\U0001F3FF]\""
- print " 1"
- print " 'compose-gstring-for-graphic))))"
-
print "\n"
print "(provide 'emoji-zwj)"
}