这个版本更新了什么#
XDict 0.5.0 makes the sentence you captured do three more things: keep the phrase it holds, translate it, and explain its grammar.
- 现在可以保存短语了。 如果句子里有词典收录的短语,查词浮窗的短语行和答案面板都会提供保存按钮。点一下,就能在该短语对应的词条下保存学习笔记,让它成为复习队列中的一张卡片。已有笔记只有在你确认后才会被替换。“设置 ▸ 阅读与朗读”新增阅读时显示短语选项;关闭后,句子就不会发送给词典服务进行短语匹配。
- 翻译句子。 现在,你可以先选择要问什么:释义、翻译或语法,再点击答案面板中的按钮。选择“翻译”后,你选定的服务会把句子译成指定语言。目标语言可以单独选择,系统会记住你的选择,并在面板上显示。
- 讲解语法。 选择“语法”后,服务会讲解句子结构,包括各个分句、每一部分的作用,以及你正在查看的单词。在 Apple 平台上,答案旁还会显示系统自己的分析:每个词的词性,以及系统能识别出的单词原形。这些分析只在本机显示,不会发送出去;只有实际评估证明词性标注有帮助后,才会考虑把它们加入提问内容。
- 切换提问类型时,会保留当前句子并清除上一个答案。系统会记住你的选择,下次打开窗口时继续使用。
- 这两种新增提问都可以在“设置 ▸ AI”中编辑提示词模板,与原有的三种模板放在一起;它们也各自规定了答案应包含哪些内容、按什么格式返回(AI 交互规范第 6 版)。 Versions: macOS 0.5.0 (build 6), core 0.4.0 (unchanged), Windows 0.1.0 (unchanged). Requires Apple silicon and macOS 27 or later. Bring your own MDict dictionaries. Install or upgrade:
brew install --cask xiaolai/tap/xdict
brew upgrade --cask xiaolai/tap/xdict
Validation: make test on the build Mac — SwiftLint, the tooling checks, every Swift suite and the warnings gate — went green on the merged tree; the release build ran the same lint, the full Swift test suites and the release warnings gate on the build Mac when this bundle was made. The core's ledger tests ran with cargo test -p xdict-ledger. Three audit rounds over the new code (Codex, read-only) found 29 findings; 26 were fixed and each was re-checked by an independent read-only pass, and the three that stand are named in the branch's findings files. The release smoke ran on the stapled, release-signed bundle on the E2E Mac, and Gatekeeper accepted the app, the disk image and the app inside it on both Macs. E2E was not run: it is on demand, and it never gates a release.
SHA-256 (XDict-0.5.0.dmg): cc0f3cee1da6d4dafc7182b0601c2620ca9f8c75976bc3598fdfe7162e9e9797
以上译自作者写在 GitHub 上的英文更新说明。查看原页面