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

仓颉五怎么设置简入繁出? #388

Closed
flyingns opened this issue Jun 21, 2019 · 3 comments
Closed

仓颉五怎么设置简入繁出? #388

flyingns opened this issue Jun 21, 2019 · 3 comments
Labels

Comments

@flyingns
Copy link

请教,谢谢。

@lotem lotem added the question label Jun 21, 2019
@Ace-Who
Copy link

Ace-Who commented Jun 21, 2019

# cangjie5.custom.yaml

patch:
  switches:
    - name: ascii_mode
      reset: 0
      states: [ 中文, 西文 ]
    - name: full_shape
      states: [ 半角, 全角 ]
    - name: simplification
      states: [ 漢字, 汉字 ]
    # 增设一个开关来控制简入繁出
    - name: traditionalization
      # 初始状态,0 = 禁用,1 = 启用
      reset: 0
      # 首字分别用简体的「简」和繁体的「簡」,便于在方案选单中区分
      states: [ 简体保持, 簡入繁出 ]
    - name: extended_charset
      states: [ 常用, 增廣 ]
    - name: ascii_punct
      states: [ 。,, ., ]

  engine/filters:
    - simplifier@simplify  # 保留原有的「简化」即「繁入简出」功能
    - simplifier@traditionalize  # 简入繁出
    - single_char_filter
    - uniquifier

  simplify:
    option_name: simplification
    tips: all

  traditionalize:
    opencc_config: s2t.json
    option_name: traditionalization
    tips: all

  # 增设一个快捷键来开关简入繁出过滤器(可选)
  key_binder/bindings:
    - {accept: "Control+Shift+F", toggle: traditionalization, when: always}

@flyingns
Copy link
Author

Thanks a lot.

@iDvel
Copy link

iDvel commented Feb 5, 2021

@Ace-Who 太感谢了!
袖珍简体方案也可以用这种方法输出繁体字。

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

4 participants