Skip to content

Fix: ColorTextTooLong should not trigger on CPS violations#11325

Open
mjuhasz wants to merge 1 commit into
SubtitleEdit:mainfrom
mjuhasz:fix/color-text-too-long-cps
Open

Fix: ColorTextTooLong should not trigger on CPS violations#11325
mjuhasz wants to merge 1 commit into
SubtitleEdit:mainfrom
mjuhasz:fix/color-text-too-long-cps

Conversation

@mjuhasz
Copy link
Copy Markdown
Contributor

@mjuhasz mjuhasz commented Jun 1, 2026

The text cell background was turning red for CPS violations when "Color text if too long" was enabled. This disrupted my workflow when I migrated from Subtitle Edit 4. In that version, I could easily identify lines that were too long by noticing the text cell turning red, and I could spot lines with excessive CPS by seeing the CPS cell in red. In Subtitle Edit 5, the text cell turned red for both CPS violations and line length violations. I consider this incorrect for two reasons:

  1. Inconsistent with Subtitle Edit 4: ListViewSyntaxColorLongLines in Subtitle Edit 4 checks only line length (and line count). CPS violations have always been indicated via the Duration/CPS columns, not the text cell.

  2. Redundant: CPS violations already have a dedicated visual indicator — the CPS column is highlighted via CpsBackgroundBrush (and the Duration column too), both gated by ColorDurationTooLong. Lighting up the text cell as well conflates two unrelated conditions under one setting, making it impossible to tell from the text background alone whether a subtitle is too long or just too fast.

The fix removes the CPS check from TextBackgroundBrush. The ColorTextTooLong setting now correctly reflects only what its name says: lines that exceed the maximum character length.

The text cell background was turning red when CPS exceeded the maximum,
even though CPS already has its own dedicated column highlight
(CpsBackgroundBrush / ColorDurationTooLong). This made it impossible to
distinguish line-too-long from CPS-too-high in the text column, and
diverged from SE4 behavior where only line length triggers the text
background color.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant