Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

本文件记录当前源码与发布版本的主要变化。英文摘要见 [README_en.md](README_en.md#changelog)。

## v2.5.2 — 2026-11-17

- 翻译工作流改为 Fork-Join 并行流水线,并用实时拓扑图重绘自动处理页进度面板(支持并发在途页角标、后台修补就绪、上下文统计、断点续传标注及底部逐页状态矩阵,适配纸白/夜墨双主题)。
- 新增滚动翻译上下文与 `.cache/translation-context.json` 原子缓存;翻译偏好支持「保留上下文缓存」(联动锁定断点续传)。
- OCR 完成后并发分叉执行按序带上下文翻译与独立线程后台修补(`repair_comic_page`),汇合时按最终译文动态对账掩码。
- 精修编辑器新增手工气泡画框、取色工具、自定义 RGB/Hex 框选填色、9 槽收藏字体与 `1–9` 快捷键、文字颜色持久化、拉伸(`10%–400%`)、旋转(`±180°`)、描边(`0–30 px`)、白字黑边竖排预设、页面清理控制及单页滚动隔离。
- 延后模型预热至首帧绘制后执行,并修复 PDF 导出小数尺寸页面边缘覆盖问题。

## v2.5.1 — 本地预览

- 修复白色漫画气泡擦字后出现灰斑的问题:先检查框内纸色和笔画周围的像素,纸面足够均匀时,在已有擦除掩膜内按原纸色填充。
Expand Down
75 changes: 50 additions & 25 deletions README.md

Large diffs are not rendered by default.

71 changes: 48 additions & 23 deletions README_en.md

Large diffs are not rendered by default.

101 changes: 99 additions & 2 deletions assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
"拟声/音效": "Sound effects",
"指定字体用于全部译文;自动匹配保留漫画风格。缺字自动回退到内置中文字体。": "Use one font for all translated text, or Auto-match for manga styles. Missing glyphs use bundled Chinese fonts.",
"排版": "Typeset",
"排版与位置": "Layout & position",
"排版与位置": "Layout / position",
"排版完成": "Typesetting complete",
"排版方向": "Text direction",
"接入方式": "Protocol",
Expand Down Expand Up @@ -410,6 +410,7 @@
"清空": "Clear",
"清空上下文": "Clear conversation",
"清空日志": "Clear logs",
"已清空页面列表。": "Page list cleared.",
"源语言代码": "Source language code",
"漫画文件 (*.png *.jpg *.jpeg *.webp *.bmp *.pdf *.json)": "Comic files (*.png *.jpg *.jpeg *.webp *.bmp *.pdf *.json)",
"漫画文件 (*.png *.jpg *.jpeg *.webp *.bmp *.pdf)": "Comic files (*.png *.jpg *.jpeg *.webp *.bmp *.pdf)",
Expand Down Expand Up @@ -608,6 +609,10 @@
"默认效果": "Default effect",
"默认颜色": "Default color",
"(本地)": " (local)",
"保留上下文缓存": "Keep translation context",
"开启后多次翻译沿用同一上下文,并锁定断点续传;仅在任务开始时检查。": "Reuse context across translation tasks and keep resume enabled. Checked only when a task starts.",
"上下文始终参与翻译。关闭后,下次任务开始前清空前文;缓存仍会保存。": "Translation always uses context. When off, previous context is cleared before the next task. Context is always saved.",
"保留上下文缓存时,断点续传锁定开启。": "Resume stays enabled while translation context is retained.",
"+ 导入字体": "+ Import font",
"+ 导入已翻译图片": "+ Import translated images",
"+ 导入译图 / PDF": "+ Import images / PDF",
Expand Down Expand Up @@ -681,5 +686,97 @@
"已把选区填为白色 · 未保存,可撤回修补。": "Selection filled with white · unsaved, undo available.",
"已把选区填为黑色 · 未保存,可撤回修补。": "Selection filled with black · unsaved, undo available.",
"选区超出图片范围。": "The selection is outside the image.",
"在画布拖动框选背景,再点击“修补选区”或“填白 / 填黑”;译文保持独立。": "Drag a background selection on the canvas, then choose Repair, Fill white, or Fill black. Text stays independent."
"在画布拖动框选背景,再点击“修补选区”或“填白 / 填黑”;译文保持独立。": "Drag a background selection on the canvas, then choose Repair, Fill white, or Fill black. Text stays independent.",
"优先撤回手动修补;没有手动记录时,还原选中气泡的自动修补与嵌字。旧结果请先关联原图。": "Undo manual repairs first; without manual history, restore the selected bubble before automatic repair and lettering. Link the original image for older results.",
"描边宽度按原图像素计算;自动保留原效果,0 为无描边。白边和黑边均可调整。": "Outline width in source pixels. Auto preserves the existing effect; 0 removes the outline. Works for white and black outlines.",
"白字黑边竖排": "Vertical white text, black outline",
"应用示例效果:竖排、白色字心、黑色描边;保留当前字体。": "Apply the sample style: vertical white text with a black outline, using the current font.",
"描边大小": "Outline width",
"以文字中心拉伸;100% 保持原样,不改变换行与蒙版。": "Stretch about the text center. 100% keeps the original shape; line breaks and the layout region stay the same.",
"以文字中心旋转;正数顺时针,负数逆时针。": "Rotate about the text center. Positive angles turn clockwise; negative angles turn counterclockwise.",
"重置文字变形": "Reset text transform",
"横向拉伸": "Horizontal stretch",
"纵向拉伸": "Vertical stretch",
"文字旋转": "Text rotation",
"文字变形尺寸过大,请减小字号或拉伸比例。": "The transformed text is too large. Reduce the font size or stretch percentage.",
"添加气泡框": "Add bubble frame",
"在画布上拖动一个矩形,添加可自由编辑的文字气泡框。": "Drag a rectangle on the canvas to add a freely editable text bubble frame.",
"在画布拖动矩形添加气泡框,添加后可直接输入译文。": "Drag a rectangle on the canvas to add a bubble frame, then enter the translation.",
"手动添加": "Added manually",
"手动添加的气泡框,输入译文后即可嵌字。": "A manually added bubble frame. Enter text to letter it.",
"已添加气泡框 {_0},请输入译文。": "Bubble frame {_0} added. Enter the translation.",
"选择填充颜色": "Choose fill color",
"图片取色": "Pick color",
"点击图片取色;Esc 或右键取消,不会修改图片。": "Click the image to pick a color. Esc or right-click cancels; the image stays unchanged.",
"填色": "Fill",
"用当前颜色填充框选区域(可撤回)。": "Fill the selected rectangle with the current color (undoable).",
"在画布拖动框选背景,再修补或填色;可自选颜色或从图片取色。": "Select a background rectangle, then repair or fill it. Choose a color or pick one from the image.",
"点击图片选择填充颜色;Esc 或右键取消。": "Click the image to pick a fill color. Esc or right-click cancels.",
"已退出图片取色。": "Color picking ended.",
"填充颜色:{color} · 框选区域后点击“填色”。": "Fill color: {color}. Select a rectangle, then click Fill.",
"已把选区填为 {color} · 未保存,可撤回修补。": "Selection filled with {color}. Unsaved; undo is available.",
"面板": "Panel",
"缩放": "Zoom",
"长条": "Strip",
"专注": "Focus",
"常用字体": "Favorite fonts",
"加入当前字体": "Add current font",
"设置快捷字体": "Font shortcuts",
"数字键 1–9 切换当前文本块字体;输入文字时不触发。": "Press 1–9 to change the selected text block's font. Disabled while typing.",
"最多 9 个字体,对应数字键 1–9;留空可清除该快捷键。": "Set up to 9 fonts for keys 1–9. Leave a slot empty to clear its shortcut.",
"未设置": "Unassigned",
"常用字体已满(9 个),请在“设置快捷字体”中替换。": "All 9 font slots are full. Replace one in Font shortcuts.",
"暂无常用字体 · 支持 1–9 键": "No favorite fonts yet · keys 1–9",
"{_0} 页": "{_0} pages",
"0 块": "0 blocks",
"{_0} 块": "{_0} blocks",
"上一个文本块 · Alt+↑": "Previous text block · Alt+↑",
"下一个文本块 · Alt+↓": "Next text block · Alt+↓",
"缩小": "Zoom out",
"缩小 · Ctrl+-": "Zoom out · Ctrl+-",
"放大": "Zoom in",
"放大 · Ctrl+=": "Zoom in · Ctrl+=",
"已还原": "Restored",
"已还原原图": "Original restored",
"(空)": "(Empty)",
"横": "H",
"竖": "V",
"合成译文 PDF": "Building translated PDF",
"PDF 合成": "Build PDF",
"正在合成译文 PDF · {_0}": "Building translated PDF · {_0}",
"工作流视图 · OCR 后翻译与修补分叉并行": "Pipeline · Translate & inpaint fork in parallel after OCR",
"并行流水线 · 在途 {_0}/{_1} 页": "Pipeline · {_0}/{_1} in flight",
"流程已完成 · 共 {_0} 页": "Pipeline done · {_0} pages",
"流程已完成 · {_0} 个文件": "Pipeline done · {_0} files",
"流程中断 · 请查看报错日志": "Pipeline stopped on error · Check logs",
"流水线已取消": "Pipeline cancelled",
"流水线:{_0};{_1}": "Pipeline: {_0}; {_1}",
"前文 {_0} 页": "Context {_0}p",
"沿用前文 {_0} 页": "Retained {_0}p",
"按序上下文": "Sequential context",
"独立并行": "Parallel",
"待汇合": "At join",
"续传 {_0} 页": "Resumed {_0}p",
"续传跳过": "Resumed",
"无文本跳过": "No text",
"复用译文": "Cached",
"并发 {_0}/{_1}": "Workers {_0}/{_1}",
"并发上限 {_0}": "Max {_0} in flight",
"第 {_0} 页": "Page {_0}",
"{_0} · 排队等待": "{_0} · Queued",
"{_0} · 断点续传已跳过": "{_0} · Resumed from checkpoint",
"{_0} · 失败": "{_0} · Failed",
"{_0} · 已完成": "{_0} · Done",
"{_0} · 已取消": "{_0} · Cancelled",
"{_0} · 并行修补就绪,等待翻译汇合": "{_0} · Repair ready, waiting for translation at join",
"✓ 待汇合": "✓ At join",
"并行修补完成,等待汇合": "Parallel repair ready, waiting for join",
"翻译与修补已汇合,正在嵌字": "Branches joined, typesetting",
"读取原始图片或按页渲染原分辨率 PDF 页图": "Reads source images or renders PDF pages on demand",
"检测漫画气泡与文字框范围": "Detects speech bubbles and text regions",
"识别框内原文并测量字号与排向": "Recognizes source text and measures typography",
"按阅读顺序调用翻译模型,结合前文上下文并缓存译文": "Translates in reading order with prior-page context and saves checkpoints",
"与翻译并行在独立线程生成擦字掩膜并修补背景": "Generates masks and repairs backgrounds concurrently on a separate thread",
"翻译与修补汇合后,校对空译文并完成横竖排嵌字": "Reconciles joined branches and typesets translations onto the cleaned page",
"写入译图、清理底图与布局文件,全部完成后合成译文 PDF": "Writes translated images, cleaned pages, layouts, and final PDFs atomically"
}
Loading
Loading