The text of a subtitle or caption cue may hold a small set of tags, written like HTML. Line breaks in the text are kept. Chapter cues hold plain text only, and metadata cues any text at all.
Classes and annotations
Any tag except a timestamp can carry classes, each after a full stop:
<c.yellow.bg_blue>, <v.loud Ben>. A class
name may not contain a space, tab, line break, &,
<, > or .. The annotation follows a space
or tab after the tag name and classes, and may not contain a line break,
& or >.
| Default class | Effect |
|---|---|
white, lime, cyan, red, yellow, magenta, blue, black | Text colour. lime is what captioners call green. |
bg_white, bg_lime, bg_cyan, bg_red, bg_yellow, bg_magenta, bg_blue, bg_black | Background colour. |
When two classes conflict, the later one wins. Blue or black text should not be used on the default dark background.
Characters
Plain text may not contain a bare < or &. Write them
with HTML character references: <, &,
>, and any other HTML named or numeric reference, such as
, ‎, ‏ or
♪ (♪). An & that does not start a reference
is kept as it is. The text may not contain -->.
Worked example
00:00:10.000 --> 00:00:14.000
<v.singer Mia><c.yellow>♪</c> Twinkle, <00:00:11.000>twinkle, <00:00:12.000>little <00:00:13.000>star
00:00:15.000 --> 00:00:17.000
<ruby>東京<rt>とうきょう</rt></ruby> <lang en>(Tokyo)</lang>
:past and :future each would be wrapped in
<c>. The second cue shows ruby reading text above a place
name.