Skip to content

字母v键无法启动笔画输入了 #2131

@hwypengsir

Description

@hwypengsir

出现奇葩的问题,字母u键可以启动部首拆解,字母v键无法启动笔画输入了!
我的配置文件
主配置文件

cat  default.custom.yaml
patch:
  schema_list:
    - schema: luna_pinyin_simp # 朙月拼音
    - schema: radical_pinyin
    - schema: stroke

simp配置文件

cat   luna_pinyin_simp.custom.yaml
# luna_pinyin_simp.custom.yaml
# 补丁文件:用于定制朙月拼音简体版

patch:
  switches:
    - name: ascii_mode
      reset: 0
      states: [ 中文, 西文 ]
    - name: full_shape
      states: [ 半角, 全角 ]
    - name: zh_simp
      reset: 1
      states: [ 漢字, 汉字 ]

  menu/page_size: 10
  "translator/dictionary": luna_pinyin.extended

  "engine/translators":
    - punct_translator
    - reverse_lookup_translator@reverse_lookup
    - table_translator@stroke
    - script_translator

  "recognizer/patterns/reverse_lookup": "u[a-z]*'?"
  "recognizer/patterns/stroke": "v[hspnz]*'?"

  # 部首拆解设置
  reverse_lookup:
    dictionary: radical_pinyin
    enable_completion: true
    prefix: "u"
    tips: 〔部首拆解〕

  #  笔画输入设置
  stroke:
    dictionary: stroke
    enable_completion: true
    prefix: "v"
    tips: 〔笔画〕
    preedit_format:
      - xlit/hspnz/一丨丿丶乙/

  'speller/algebra':
    - erase/^xx$/
    - derive/^([zcs])h/$1/
    - derive/^([zcs])([^h])/$1h$2/
    - derive/([aei])n$/$1ng/
    - derive/([aei])ng$/$1n/
    - derive/^([nl])ve$/$1ue/
    - derive/un$/uen/
    - derive/ui$/uei/
    - derive/iu$/iou/

输入 uhuohuo,得到

Image

部首拆解配置成功。
输入vhspn,没有任何反应。字母v键无法触发笔画输入。
更加奇葩的事情发生了,直接输入hspn

Image

如何修改配置文件?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions