Module rsubs_lib::vtt

source ·
Expand description

Implements helpers for .vtt.

It describes the VTTStyle, VTTFile and VTTLine structs and provides the parse function.

Structs

  • Contains VTTStyles and VTTLines
  • The VTTLine contains information about the line itself as well as the positional information of the line
  • Describes how the line is positioned on screen. By default it’s all 0 with a center alignment.
  • The VTTStyle contains information that generally composes the ::cue header

Functions

  • Parses the given String into a VTTFile
  • Replaces strings that are invalid in certain contexts. SSA doesn’t support html-like tags and SRT only support b,i,u representing bold, italics, underline.