Closed ITCJ closed 2 weeks ago
我在 double_pinyin_flypy.schema.yaml 尝试使用
double_pinyin_flypy.schema.yaml
patch: punctuator/import_preset: latexmath recognizer/patterns: punct: "^/([0-9]0?|[A-Za-z]+)$"
无效,随后直接在punctuator的最后添加import_preset: latexmath后生效
punctuator
import_preset: latexmath
punctuator: import_preset: symbols # 定义部分半角字符 half_shape: "#": "#" "*": "*" '.' : { commit: 。 } "`": "`" "~": "~" "@": "@" "=": "=" "/": ["/", "÷",] '\': "、" "_" : "──" "'": {pair: ["「", "」"]} "[": ["【", "["] "]": ["】", "]"] "$": ["¥", "$", "€", "£", "¢", "¤"] "<": ["《", "〈", "«", "<"] ">": ["》", "〉", "»", ">"] import_preset: latexmath
请问这是啥原因
不清楚原因。把 import_preset 值写在 punctuator 之下的末尾,与把该值写在 patch 之下的 punctuator/import_preset 项中,这两种语法应当是没有区别的。
import_preset
patch
punctuator/import_preset
顺便,不建议直接在 scheme 文件上修改,而是新建一个 double_pinyin_flypy.custom.yaml 文件来修改。
double_pinyin_flypy.custom.yaml
我在
double_pinyin_flypy.schema.yaml
尝试使用无效,随后直接在
punctuator
的最后添加import_preset: latexmath
后生效请问这是啥原因