Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我启用 gbk 过滤后 emoji 就失效了 #13

Closed
hosxy opened this issue Aug 21, 2019 · 2 comments
Closed

我启用 gbk 过滤后 emoji 就失效了 #13

hosxy opened this issue Aug 21, 2019 · 2 comments
Labels

Comments

@hosxy
Copy link

hosxy commented Aug 21, 2019

我在方案配置文件里打开了 gbk 过滤

 engine/filters:
    - simplifier
    - uniquifier
    - charset_filter@gbk

然后 emoji 就失效了

@lotem lotem added the invalid label Aug 21, 2019
@lotem
Copy link
Member

lotem commented Aug 21, 2019

Emoji字符大多不屬於GBK字符集。

@lotem lotem closed this as completed Aug 21, 2019
@AlynxZhou
Copy link

AlynxZhou commented Jul 15, 2022

原来这边提过相关 issue,我今天也遇到类似的问题,现在 emoji 的 filter 是最先运行的所以会被过滤掉。我有个建议是把 simplifier@emoji_suggestion 添加到 engine/filters/@next,让它最后运行,就不会被过滤掉了,不知道会不会有什么潜在问题。

我能想到的一个潜在问题是 emoji 过滤器要求前面的输入必须是简体/繁体中文,所以如果某个奇怪的自定义输入方案是输入中文然后用过滤器把中文转换成其它文字,这个 emoji 过滤器添加到末尾就不会正常工作。不过我觉得我们大概不需要考虑这种奇怪的使用案例……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants