Repository navigation
abandon - #1175
Merged
Merged
abandon#1175
Conversation
术语库包不在仓库里,内置领域数据由 scripts/build-builtin-domains.ts 生成, 来源与重新生成的方法记在该脚本文件头;本次收录 5,491 条术语(简体 3,689、 繁体 1,802,auto 词表并进同主题领域后标“不翻译”)。 适用网址只收「站点本身就是这套词的主场」的裸域名(bg3.wiki、wuthering.gg、 背包船、编程竞赛、网球、推特);共享主机上的路径限定(Discord 频道、ESPN / BBC 的网球栏目)表达不了,过于宽泛的站点(生物词表原配的 wikipedia)在通用 页面上会被 class / order / family 这类词误伤,都不收,改为在 popup 里手选。 内置领域数目变多以后,e2e 按领域名精确匹配、只数自建领域,popup 的选项列表 改为比对开头与结尾。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
CONTEXT 的「术语」一节明确避免「词汇表 / glossary」:生成数据改成 builtin-domain-terms.ts / BUILTIN_TERM_DOMAINS,用例与注释一起改。 生成脚本:tgt_lng 必须与文件名上的目标语言一致,文件名写错或把繁体表当成 简体表直接报错;原词与译法的首尾空白都直接报错(原来只查译法);译法与原文 相同的按“不翻译”存(MP3、TPU 这类本来就不该动);输出路径按脚本位置定位, 不再依赖当前目录。注释写清 35 个有翻译词表 + 1 个只有 auto 词表的 default。 测试:读取失败用例把内置领域的条数钉住;e2e 用最后三张卡片的名字序列钉住 每次换位(别的领域一起挪动也过不去),popup 选项断言内置领域在列表里且不 出现繁体领域;内置数据用例补一条“译法与原文相同按不翻译存”。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
项目维护者确认(2026-10-28):本次生成的输入是本项目自有的翻译术语库包 translation-terminology-2026-10-28.zip(脚本文件头记了 SHA-256),许可状态 为可随扩展一并分发,不是从沉浸式翻译(immersive-translate/terms)的数据整理 而来。生成结果没有变化,只改脚本文件头的来源说明。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.