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

简化字方案的简繁切换提示问题 #636

Closed
iDvel opened this issue May 10, 2022 · 1 comment
Closed

简化字方案的简繁切换提示问题 #636

iDvel opened this issue May 10, 2022 · 1 comment

Comments

@iDvel
Copy link

iDvel commented May 10, 2022

如图,朙月拼音使用快捷键切换简繁后会出现这个提示:
image

但我用的是袖珍简化字方案,我是这么设置简繁切换的:

switches:
  - name: traditionalization
    reset: 0
    states: [ 简, 繁繁繁 ]
# ...
engine:
  filters:
    - simplifier@traditionalize
# ...
traditionalize:
  opencc_config: s2t.json
  option_name: traditionalization

我切换简繁时不会有任何提示。
除非我把 option_name: traditionalization 改成 option_name: simplification,但这样我从默认简体切换到繁体,提示的是「汉字」,切回简体提示的是「漢字」,反了。


image

我不太懂,是不是这里增加以下两行就可以适用简化字方案了呀:

"simplification" = "汉字";
"!simplification" = "漢字";
"traditionalization" = "漢字";
"!traditionalization" = "汉字";

             !strcmp(message_value, "simplification") ||
             !strcmp(message_value, "!simplification") ||
             !strcmp(message_value, "traditionalization") ||
             !strcmp(message_value, "!traditionalization") ||
@LEOYoon-Tsaw
Copy link
Member

不要寫死到程序裡,而且已經有pull了,rime/librime#447

@iDvel iDvel closed this as completed May 10, 2022
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

No branches or pull requests

2 participants