Skip to content

Releases

SubTr v0.2.11

Choose a tag to compare

@fanrj3 fanrj3 released this 17 Oct 14:13

SubTr v0.2.11

Locked-subtitle actions

  • ⌘C copies the current translation (toast confirmation).
  • ⌘I or a double space inserts the translation into the focused text field, replacing the current selection.
  • Right-click the subtitle for a compact style menu: text size, text color swatches + custom picker, font family, reset, copy/insert, and Open SubTr window.
  • Left-click only locks the subtitle; the transparent overlay is now a non-activating macOS panel, so clicking it no longer raises the reader window.

Global toggle repaired

The main process now owns translate mode. ⌘⇧T is registered at startup and works from any page (including Settings), with automatic fallbacks (⌥⇧Space, ⌃⇧Space, ⌥⌘T) when the preferred shortcut is taken. The top bar shows the live accelerator.

Translation quality

CJK detection now counts letters only (spaces, punctuation and digits are ignored, with a 40% floor for mixed Chinese/English copy). If a model echoes a clearly cross-script source unchanged, SubTr retries once with a strict “you must translate” prompt.

Plugins

  • Image Translate 0.1.1 — ships a prebuilt universal Apple Vision helper, so no Xcode / Command Line Tools install is needed. Build/OCR failures now surface the real reason, and a hover made before pre-translation finishes refreshes in place instead of staying on “Translating…”. Re-import image-translate.zip to upgrade.
  • Usage Stats 0.2.0 — redesigned dashboard: hero spend with 30-day trend, KPI cards, a 7/30/90-day SVG area chart for cost/calls/translations/tokens, a responsive activity calendar and busiest-day/average/projection insights. Import usage-stats.zip to upgrade.

UI

Refreshed top bar and reading surface, a clipboard paste button in the empty state, a floating usage dock, plugin widget cards, a new update banner, and toast/menu motion.

Install (macOS, arm64): download SubTr-0.2.11-arm64.dmg. Builds are unsigned — if Gatekeeper blocks the app, use System Settings → Privacy & Security → “Open Anyway”, or run xattr -dr com.apple.quarantine /Applications/SubTr.app.

Plugin packages: image-translate.zip and usage-stats.zip are attached below; install them in Settings → Plugins → Import plugin….

SubTr v0.2.10

Choose a tag to compare

@fanrj3 fanrj3 released this 16 Oct 02:26

SubTr v0.2.10

插件 API v2 + 图片翻译插件核心 + 更新通知,并附带一批修复。

亮点

  • 插件 API v2(宿主能力):回环桥 + 事件通道;新能力 capture.region(冻结快照划选)、overlay.regions(图片高亮框 + 悬停/选择/关闭事件)、overlay.subtitle(逐字文本、色调、定时)、translate.text(走活动 Profile 的批量翻译)、hotkey.register(插件级全局热键,冲突检测 + 翻译模式门控)、http.route(插件自有 HTTP 命名空间)。插件可自带依赖(.zipignore 打包规则)。
  • 图片翻译插件(项目位于 examples/plugins/image-translate/,独立版本):⌘⇧P 划选 → Apple Vision OCR(首次自动编译,中英识别)→ 批量预翻译 → Live Text 风格高亮 → 悬停/数字键在字幕显示该块译文 → Esc/点击空白/✕ 关闭。结果卡片按图片尺寸 contain 适配(不再满屏/拉伸/裁切),全局 Esc 可关,字幕始终显示在卡片之上。
  • 自动更新通知:启动后静默检查(24 小时一次),有新版本在顶栏下显示一行横幅(可忽略、按版本记忆);设置 → 关于 也有「检查更新」。
  • 应用图标:新的 SubTr 图标(SVG 源 + 自动流水线),打包版与开发模式均显示。
  • 语音翻译改进:修复长时间连续语音后管线停滞的问题(150 秒连续音频实测每 10 秒窗口都有字幕更新);语音字幕为「英文转录在上 + 译文在下」的双区滚动呈现,已定稿行永不改写。

修复

  • 图片翻译批量翻译卡在 “Translating…”:改走与划词相同的流式路径,失败时降级显示「原文 · 翻译暂不可用」,不再卡死。
  • 高亮编号默认恢复为关闭(可开启),旧配置自动迁移。
  • 设置页横向滚动条、tooltip 裁切、导航抖动等一批体验修复。

安装(macOS)

下载 SubTr-0.2.10-arm64.dmg,打开后将 SubTr 拖入 Applications。首次若被 Gatekeeper 拦截:xattr -dr com.apple.quarantine /Applications/SubTr.app 或系统设置 → 隐私与安全性 → 「仍要打开」。构建未签名属预期。

插件 ZIP 见仓库 examples/plugin-zips/(本 Release 也附 image-translate.zip)。

许可

MIT(见仓库 LICENSE)。第三方组件:ECDICT(MIT)、whisper.cpp(MIT)、Base UI(MIT)、PaddleOCR/PP-OCRv6(Apache-2.0,规划中)。