Skip to content

NoriTrans v0.2.0

Choose a tag to compare

@Norixor Norixor released this 08 Oct 16:15
· 10 commits to main since this release

A redesigned interface with one clear status model

  • New interface. The floating control, toolbar popup, settings page, subtitle overlay and in-page marks now share one visual language and one status model, so the same situation reads the same everywhere.
  • Clear status and one main action. Translating, partly failed, stopped, off and unavailable are shown distinctly, each with its reason. The main button keeps its place while a request is in flight instead of flipping between actions. Stop keeps what is already translated and can be resumed. Subtitle translation that is switched off now says it is off instead of reporting that no subtitle track was found, and a "Check subtitles again" action appears when none was found.
  • Floating control. Page and Video tabs, image recognition (experimental) and image translation sections, and a collapsed button with a progress ring and short announcements that can be turned off in Settings → General. It stays clickable inside fullscreen containers; when the video element itself is fullscreen it shows status only, which is a Chrome limitation.
  • Popup. Slimmed down to two status cards, a switch for translating the current site automatically, a switch for the floating control, and the update notice.
  • Settings. Six sections; changes save automatically. Service credentials still need an explicit "Save and test", clearing the cache and clearing credentials stay separate actions with confirmations, and site profiles keep an explicit save. New options: show skipped marks (off by default) and announcements (on by default).
  • Subtitle overlay and in-page marks. New "Live subtitles · Fast translation" and "Translation on the way" tags. A block that failed to translate shows a retry marker that is reachable with the keyboard.
  • Fix: next episode on Netflix. Moving to the next episode without reloading the page no longer reuses the previous episode's subtitles.

Things that changed

  • Selection-translation controls now live only in Settings → Web pages.
  • The update notice appears in the popup and in Settings → General instead of the floating control.
  • The floating control's hover quick actions were replaced by the progress ring and announcements.

Permissions and dependencies

No Chrome permissions were added or changed. The package now bundles two libraries, Lit and a custom-elements polyfill for content scripts (both BSD-3-Clause); their notices are included.

Notes

The new interface has been tested on self-made pages and in a real Chromium extension, but not on every streaming site. Please report anything that looks wrong.

Install

Extract noritrans-0.2.0-chrome.zip, load the extracted folder in Chrome extension developer mode, and confirm version 0.2.0. Reload open pages after updating. SHA-256: 20582b2a01cbd0d5fae12aa42093eeef66dac655a138dc1ef420a14b238a7c43.

全新界面与统一的状态表达

  • 全新界面。 浮窗、工具栏弹窗、设置页、字幕层和网页内标记现在共用同一套视觉语言和状态模型,同一种情况在各处读起来一致。
  • 状态清晰,主操作唯一。 翻译中、部分失败、已停止、已关闭、不可用各有明确的样子并给出原因。请求进行中时,主按钮留在原位,不再在不同操作之间来回翻转。"停止"会保留已翻译的内容,并且可以继续。字幕翻译被关闭时会明确显示"已关闭",而不再提示"未发现字幕轨道";没有发现字幕时会出现"重新检测字幕"操作。
  • 浮窗。 网页和视频两个 Tab,图像识别(实验)与图片翻译区块,折叠按钮带进度环和简短播报,播报可在 设置 → 通用 中关闭。在全屏容器内浮窗保持可点击;视频元素本身全屏时只显示状态,这是 Chrome 的限制。
  • 弹窗。 精简为两张状态卡、"自动翻译本站"开关、浮窗显示开关和更新提示。
  • 设置。 分为六组,修改自动保存。翻译服务的凭据仍需显式"保存并测试",清除缓存与清除凭据仍是两个独立操作并有确认,站点 Profile 保持显式保存。新增选项:显示跳过标记(默认关)和胶囊播报(默认开)。
  • 字幕层与网页内标记。 新增"实时字幕 · 快速翻译"和"译文准备中"标签。翻译失败的段落会显示可用键盘操作的重试标记。
  • 修复:Netflix 换集。 不刷新页面直接进入下一集时,不再沿用上一集的字幕。

有变化的地方

  • 划词翻译控件现在只在 设置 → 网页翻译 中。
  • 更新提示显示在弹窗和 设置 → 通用 中,不再出现在浮窗里。
  • 浮窗悬停时的快捷按钮被进度环和播报取代。

权限与依赖

没有新增或修改 Chrome 权限。安装包新增打包了两个库:Lit 和用于内容脚本的 custom elements polyfill(均为 BSD-3-Clause),其声明已随包提供。

说明

新界面已经在自建页面和真实的 Chromium 扩展中验证过,但没有在每个流媒体站点上验证。如果发现异常,请反馈。

安装

解压 noritrans-0.2.0-chrome.zip,在 Chrome 扩展开发者模式中加载解压后的目录,并确认版本为 0.2.0。更新后请刷新已打开的网页。SHA-256:20582b2a01cbd0d5fae12aa42093eeef66dac655a138dc1ef420a14b238a7c43。