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

怎樣支持五筆拼音混合輸入時,也能輸出繁體? #55

Closed
jettdavid23 opened this issue Jan 21, 2021 · 6 comments
Closed
Labels
已回复 已回复

Comments

@jettdavid23
Copy link

我在設置繁體後,只能使用五筆輸入,不能使用五筆拼音混合輸入。

怎樣才能在五筆拼音混合輸入的同時,也能輸出繁體?

謝謝。

@KyleBing
Copy link
Owner

目前没有,你需要自己配置,把 wubi86_jidian_trad.schema.yamlwubi86_jidian_pinyin.schema.yaml 的配置结合一下就好。

@KyleBing KyleBing added the 已回复 已回复 label Jan 21, 2021
@jettdavid23
Copy link
Author

jettdavid23 commented Jan 21, 2021

@KyleBing

謝謝回復,目前已照抄wubi86_jidian_trad.schema.yaml文件解決,順便把方法貼出來:

  1. 編輯 wubi86_jidian_pinyin.schema.yaml 文件
  2. switches內的ascii_mode下面(同級)加入:
  - name: zh_trad
    states: [ 简体, 繁体 ]
  1. engine節點內加入:
  filters:
    - simplifier
    - uniquifier
  1. reverse_lookup後面(同一級)加入:
simplifier:    # 简入繁出,如果出不来,可能需要安装 opencc 简繁字转换库,github地址:https://github.com/BYVoid/OpenCC
  opencc_config: s2t.json
  # opencc_config: t2s.json   # 繁 -> 简【默认】
  # opencc_config: t2tw.json  # 繁 -> 台湾
  # opencc_config: t2hk.json  # 繁 -> 香港

  option_name: zh_trad

重新 Deploy,然後使用Ctrl + 0切換開關使用即可。

@jettdavid23
Copy link
Author

发现在切换简繁体之后,切换回系统英文输入法,再切回来,状态就会恢复到简单,请问我想留住最后的状态需要设置什么?

@KyleBing
Copy link
Owner

更新最新的试试,添加了一个繁体拼音混输的。

@jettdavid23
Copy link
Author

jettdavid23 commented Jan 22, 2021

更新最新的试试,添加了一个繁体拼音混输的。

謝謝,現在能保存狀態了,請教一下怎樣設置快捷鍵能快速切換簡體繁體,並能保持最後一次的狀態,即使切換到系統英文,再切回來也不會還原?

查了一下官方文檔,對 key_binder 的解釋中,沒有提到可以綁定schema的切換。

目前每次切換需要按 Ctrl + 0, ], 5 才行。

@KyleBing
Copy link
Owner

保留最后一次的状态只能通过切换方案。临时切换无法保留。

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

2 participants