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

fix pin lua #656

Merged
merged 1 commit into from
Feb 2, 2024
Merged

fix pin lua #656

merged 1 commit into from
Feb 2, 2024

Conversation

mirtlecn
Copy link
Collaborator

@mirtlecn mirtlecn commented Feb 1, 2024

fix: init function failed if pin_cand_filter: is empty
feat: handle cands converted by simplifier filter.

close #586

fix: init function failed if pin_cand_filter: is empty
@iDvel iDvel merged commit b5c67c1 into iDvel:main Feb 2, 2024
@iDvel
Copy link
Owner

iDvel commented Feb 8, 2024

不知如何区分 simplifier@traditionalize 和 simplifier@emoji
下面两个 simplifier@emoji 的有问题。

  - dian	点 · 丶
  - dui	对 ⭕ ✅ ✔

最后找到了一个很好的解决方案。。。😓😓😓 就是给 filters 排序:

    - lua_filter@pin_cand_filter                    # 置顶候选项
    - simplifier@emoji                              # Emoji
    - simplifier@traditionalize                     # 简繁切换

先做排序,再让 emoji 自动吸附,最后再切换简繁。

这样配置里也不用额外写 emoji 了,Lua 里也不用处理简繁切换后点排序问题了。

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

Successfully merging this pull request may close these issues.

feature request: 用 lua_filter 固定字词的顺序
2 participants