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

build文件夹中default.yaml里面的punctuator:标点不对应 #1439

Open
csjtl opened this issue Nov 27, 2024 · 1 comment
Open

build文件夹中default.yaml里面的punctuator:标点不对应 #1439

csjtl opened this issue Nov 27, 2024 · 1 comment

Comments

@csjtl
Copy link

csjtl commented Nov 27, 2024

操作系统信息

  • OS 详细版本: Microsoft Windows 11 版本 23H2(OS内部版本 22631.4317)
  • 小狼毫版本: 0.16.3

复现步骤

第一个问题:
没有任何个人配置,部署后生成的 build 文件夹中 default.yaml 里面的punctuator:标点不对应
全角半角相同问题


punctuator:
  full_shape:
    " ": {commit: " "}
    "!": {commit: "!"}
    "\"": {pair: ["“", "”"]}            反斜杠后面两个分号,这个多的分号应该对应后面的标点,反斜杠没有生成对应的标点,反而把分号的写后面了。
    "#": ["#", "⌘"]
    "$": ["¥", "$", "€", "£", "¥", "¢", "¤"]
    "%": ["%", "°", "℃"]
    "&": "&"
    "'": {pair: ["‘", "’"]}
    "(": "("
    ")": ")"
    "*": ["*", "·", "・", "×", "※", "❂"]
    "+": "+"
    ",": {commit: ","}
    "-": "-"
    .: {commit: "。"}                    英文句号标点没有分号包起来
    "/": ["/", "÷"]
    ":": {commit: ":"}
    ";": {commit: ";"}
    "<": ["《", "〈", "«", "‹"]
    "=": "="
    ">": ["》", "〉", "»", "›"]
    "?": {commit: "?"}
    "@": ["@", "☯"]
    "[": ["「", "【", "〔", "["]
    "\\": ["、", "\"]                    punctuation.yaml中没有分配双反斜杠
    "]": ["」", "】", "〕", "]"]
    "^": {commit: "……"}
    _: "——"                               英文标点没有分号包起来
    "`": "`"
    "{": ["『", "〖", "{"]
    "|": ["·", "|", "§", "¦"]
    "}": ["』", "〗", "}"]
    "~": "~"
  half_shape:
    "!": {commit: "!"}
    "\"": {pair: ["“", "”"]}
    "#": "#"
    "$": ["¥", "$", "€", "£", "¥", "¢", "¤"]
    "%": ["%", "%", "°", "℃"]
    "&": "&"
    "'": {pair: ["‘", "’"]}
    "(": "("
    ")": ")"
    "*": ["*", "*", "·", "・", "×", "※", "❂"]
    "+": "+"
    ",": {commit: ","}
    "-": "-"
    .: {commit: "。"}
    "/": ["、", "/", "/", "÷"]
    ":": {commit: ":"}
    ";": {commit: ";"}
    "<": ["《", "〈", "«", "‹"]
    "=": "="
    ">": ["》", "〉", "»", "›"]
    "?": {commit: "?"}
    "@": "@"
    "[": ["「", "【", "〔", "["]
    "\\": ["、", "\\", "\"]
    "]": ["」", "】", "〕", "]"]
    "^": {commit: "……"}
    _: "——"
    "`": "`"
    "{": ["『", "〖", "{"]
    "|": ["·", "|", "|", "§", "¦"]
    "}": ["』", "〗", "}"]
    "~": ["~", "~"]

第二个问题:
侯选项超多表情,程序退出

rime/home#1701

@lotem
Copy link
Member

lotem commented Nov 28, 2024

值是一樣的。字符串在 YAML 格式中有多種寫法。

build 下面的文件是程序將彙總後的配置內容重新輸出爲 YAML 格式,供輸入法程序讀取。程序有自己偏好的 YAML 寫法,很可能跟人類手寫的不一樣。如果用着沒問題,用家不需要看。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants