From 23a8c8efb46c66ad3eb730255a36382481b99c00 Mon Sep 17 00:00:00 2001 From: Dvel Date: Tue, 21 Feb 2023 21:30:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Emoji=20=E8=84=9A=E6=9C=AC=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=20#=EF=B8=8F?= =?UTF-8?q?=E2=83=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opencc/emoji.txt | 2 ++ others/script/rime/emoji.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/opencc/emoji.txt b/opencc/emoji.txt index 2076026..7c4ef12 100644 --- a/opencc/emoji.txt +++ b/opencc/emoji.txt @@ -3541,6 +3541,8 @@ Registered Registered ® 商标 商标 ™ 商标符号 商标符号 ™ TM TM ™ +井号 井号 #️⃣ +井号键 井号键 #️⃣ 星号 星号 *️⃣ 星号键 星号键 *️⃣ 零 零 0️⃣ diff --git a/others/script/rime/emoji.go b/others/script/rime/emoji.go index 6a71a1a..b5fd3e8 100644 --- a/others/script/rime/emoji.go +++ b/others/script/rime/emoji.go @@ -104,7 +104,7 @@ func UpdateEmojiTXT() { sc := bufio.NewScanner(mappingFile) for sc.Scan() { line := sc.Text() - if strings.HasPrefix(line, "#") { + if strings.HasPrefix(line, "#") && !strings.Contains(line, "井号") { // #️⃣被判断为以 # 开头了。。。 continue } arr := strings.Split(line, " ")