mirror of https://codeberg.org/cage/tinmop/
- fixed test to check if acharacter is an emoji.
- returned the whole codepoints list if a char is an emoji.
This commit is contained in:
parent
c1c6e6293b
commit
c9f7fcb12e
|
@ -11,8 +11,9 @@
|
|||
(not (cl-ppcre:scan "^#" line))))
|
||||
|
||||
(defun match-codepoint-p (a b)
|
||||
(every #'char= a
|
||||
(mapcar #'code-char b)))
|
||||
(alexandria:set-equal a
|
||||
(mapcar #'code-char b)
|
||||
:test #'char=))
|
||||
|
||||
(defun extract-codepoints (stream)
|
||||
"Extract shotcodes from the emoji table file"
|
||||
|
@ -1295,8 +1296,8 @@
|
|||
(defgeneric emojip (codepoints-chars))
|
||||
|
||||
(defmethod emojip ((codepoints-chars list))
|
||||
(first (or (emoji-zwj-sequences-p codepoints-chars)
|
||||
(emoji-sequences-p codepoints-chars))))
|
||||
(or (emoji-zwj-sequences-p codepoints-chars)
|
||||
(emoji-sequences-p codepoints-chars)))
|
||||
|
||||
(defgeneric starting-emoji (object))
|
||||
|
||||
|
|
Loading…
Reference in New Issue