Skip to content

输入框里的拼音用空格分音节改成设置项,默认关(#247) - #299

Merged
Gloridust merged 2 commits into
pre-releasefrom
feat/inline-separator-option-247
Nov 22, 2026
Merged

Gloridust merged 2 commits into
pre-releasefrom
feat/inline-separator-option-247

Conversation

@Gloridust

Copy link
Copy Markdown
Owner

0.7.9 把写进输入框的拼音一律改成用空格分音节(#298),这会改变所有人看到的样子。改成设置项:默认关,照旧是 ni'hao;遇到网页代码块(比如 ChatGPT)里留下半截拼音的人自己打开。

  • 设置项 InlineSpaceSeparator(开关,默认 False),三端都有:
    • Linux 设置「拼音」组:「输入框里的拼音用空格分音节」,附说明;
    • macOS 设置里同一位置;
    • Windows 设置「输入」组。
  • 只是外壳显示,不进核心:打开时把写进输入框的拼音里的 ' 换成空格(同样一个字节,光标位置不变),候选框里照旧。fcitx5 只在嵌入式预编辑开着时才换。
  • spec/config.json、docs/CONFIG.md、README 都写了。

测试:

  • fcitx5 harness:默认 ni'hao;打开后是 ni hao、光标在末尾,选了一半的句子是 你好zhong guo,手动 xi'an 是 xi an;关掉回到 ni'hao。
  • macOS、Windows:默认 ni'hao;打开后是 ni hao。
  • 本地跑过:scripts/test-config-contract.py(645 项)、scripts/addon-test.sh、windows/test.sh、macos/test.sh(swift 6.2 docker)、设置界面 GUI 测试。

Refs #247

@Gloridust
Gloridust merged commit 8c49ec4 into pre-release Nov 22, 2026
30 checks passed
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

Successfully merging this pull request may close these issues.

1 participant