Files
notes/resource/工具/Rime 小狼毫.md
T
2026-03-01 01:43:46 +08:00

1.3 KiB

配置:

custom.yaml > schema.yaml > default.yaml

引用__include: 
补丁__patch: 
跟随__append:

不能patch一个__include段落

一个custom文件顶层必须只有一个patch:
  1. 方案文件七大模块

  阅读:wanxiang.schema.yaml:1-100

  schema:         # 方案元信息
  switches:       # 开关配置
  engine:         # 输入引擎(核心)
    processors:   # 处理器链
    segmentors:   # 分段器
    translators:  # 翻译器
    filters:      # 过滤器
  speller:        # 拼写设定
  translator:     # 翻译器设定
  punctuator:     # 标点设定
  key_binder:     # 按键绑定
  recognizer:     # 识别器
  
  
  
  engine:
    processors:    # 1. 最先接收按键
      - ascii_composer      # 处理中英切换
      - recognizer          # 识别特殊模式(如反查)
      - speller             # 拼写处理

    segmentors:    # 2. 分段标记
      - abc_segmentor       # 标记普通文字段落为 'abc' tag
      - affix_segmentor@wanxiang_reverse  # 标记反查为特定 tag

    translators:   # 3. 翻译候选
      - script_translator   # 主翻译器
      - table_translator@custom_phrase  # 自定义短语

    filters:       # 4. 过滤排序
      - uniquifier          # 去重