In translator mode, multiple replace rule which deletes the entirety of a subtitle's text causes a desync

Open
#9,211 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
desktop

Research direction

Start by reproducing the issue in translator mode with the supplied original and translation subtitle contents and the multiple replace rule shown in the screenshots. Trace how deleting an entire subtitle text affects the two files; done means the translation file remains synchronized with the original after the replacement.

Written by the indexing model from the issue text.

Description

Latest beta, but this doesn't appear to be new.
In the following situation:
image
If I apply the following multiple replace rule:
image
The result is this:
image

In reality, the contents of the original file are still:
1
00:00:01,000 --> 00:00:03,000
a

2
00:00:03,024 --> 00:00:05,024
b

But the contents of the translation file are now:
1
00:00:01,000 --> 00:00:03,000
EVENING

Dominant language
C#
Stars
14.3k
Forks
1.3k
Avg merge
1h 19m
Merged PRs (30d)
782

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SubtitleEdit/subtitleedit

All issues in SubtitleEdit/subtitleedit

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.