What it checks
Some destinations let subtitles use a few colors, typically to tell speakers apart, and nothing else. A subtitle whose text uses a color outside the palette produces one issue listing those colors.
This rule does not judge whether a color is used for the right speaker: that stays an editorial judgement.
How it is measured
CueNorm reads the text color of every span of the subtitle (ASS colors, SRT <font color>, TTML tts:color, WebVTT color classes, EBU-STL teletext color codes). Text without an explicit color counts as white, so white must be in the list to be accepted. Colors are compared after normalization: #FF0, yellow and #ffff00 are the same color.
Parameters
| Parameter | Type | Meaning |
|---|---|---|
colors |
list of colors (#rrggbb, #rgb or a name such as white) |
The accepted text colors |
Example
With colors: ["#ffffff", "#ffff00", "#00ffff", "#00ff00"], the BBC palette, a subtitle with red text is reported as Text color(s) #ff0000 are not among the allowed colors (#ffffff, #ffff00, #00ffff, #00ff00).
For white text only, FORBIDDEN_STYLE with style: color says the same thing more directly.
How to fix
- Recolor the text with a color of the palette.
- If the colors follow another destination's convention, check which palette color stands for the same speaker or role, and apply it consistently.