Repository navigation
Fix translated bubble geometry and text alignment - #108
Merged
Merged
Conversation
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.
目标
修复实机截图中翻译后出现的几何错位:白色气泡背景与译文分离、可靠气泡被缩成小卡片、同一物理气泡被拆成多个翻译单元。
主要修改
统一译文和背景的碰撞位移:
解耦 bubbleBox 与 bubblePolygon:
可靠气泡不再套 fallback-card 的 58% / 36% / 16% 尺寸上限:
Manga Vision 气泡匹配改为两阶段:
MangaTextSegmenter 增加 collective bubble identity:
TranslationLayoutStore revision 4 -> 5,避免复用旧错误布局缓存。
回归测试
新增覆盖:
本 PR 不修改 OCR/模型输出协议,也不重新训练模型。