mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6687] [Issue]: VN party and sprite tags in Game narration get translated, breaking dialogue reverse parsing and segment alignment #3745
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3745
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @menemorofaan on GitHub (Sep 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6687
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In Game (GM) mode, unedited assistant messages containing visual novel dialogue lines with party channel tags or sprite expressions (e.g.
[Speaker] [main] [patient]: "...") send those tags verbatim to the translation service. Translators translate these internal tokens into target languages (e.g.[головний] [пацієнт]), which breaks reverse parsing and causes dialogue to collapse into preceding narration segments, shifting all subsequent segment translations.Expected behavior
[main],[side],[patient], etc.) should be stripped before text is sent to the translator, passing only[Speaker]: "...".compactDialogueRegex) should remain resilient to multiple bracketed tags before the colon, ensuring translated dialogue lines are always recognized as dialogue and never merged into narration fallback buffers.Actual behavior
Because
getGameTranslationSource()bypassed clean segment reassembly for unedited messages (if (!hasGameSegmentOverrides) return plainSource()), raw GM markup is sent directly to the translation API.When external translators translate the channel/sprite words:
partyLineRegexrejects the line because the translated channel word no longer matches the English keywords (main,side, etc.).compactDialogueRegexrejects the line because it contains 3 bracketed tokens instead of the expected 1 or 2 before the colon.fallbackTextand is merged into the preceding narration paragraph.Steps to reproduce
[The Unnamed] [main] [patient]: "...").[main]and the sprite emotion are translated into the target language, the dialogue line merges into the narration block above it, and subsequent segment translations are displaced.Environment
Logs, screenshots, or video
Example of mangled output:
(Dialogue line was merged directly into the narration segment's translation).
Additional context
Follow-up to #6615 .
Template check
@SpicyMarinara commented on GitHub (Sep 26, 2026):
Resolved in #6688, now merged into staging. Verified with the focused Game translation browser regressions and the UI smoke suite; all required GitHub checks and CodeRabbit completed.