Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReader ¶
func NewReader() caps.CaptionReader
func NewWriter ¶
func NewWriter() caps.CaptionWriter
Types ¶
type BaseMarkup ¶
type BaseMarkup struct { XMLName xml.Name `xml:"tt"` TtXMLLang string `xml:"xml:lang,attr" default:"en"` TtXMLns string `xml:"xmlns,attr" default:"http://www.w3.org/ns/ttml"` TtXMLnsTTS string `xml:"xmlns:tts,attr" default:"http://www.w3.org/ns/ttml#styling"` Head Head `xml:"head"` Body Body `xml:"body"` }
type Style ¶
type Style struct { XMLName xml.Name `xml:"style"` ID string `xml:"xml:id,attr,omitempty"` TTSTextAlign string `xml:"tts:textAlign,attr,omitempty"` TTSFontStyle string `xml:"tts:fontStyle,attr,omitempty"` TTSFontFamily string `xml:"tts:fontFamily,attr,omitempty"` TTSFontSize string `xml:"tts:fontSize,attr,omitempty"` TTSFontWeight string `xml:"tts:fontweight,attr,omitempty"` TTSColor string `xml:"tts:color,attr,omitempty"` // FIXME this is never parsed to Style TTSDisplayAlign string `xml:"tts:displayAlign,attr,omitempty"` }
Click to show internal directories.
Click to hide internal directories.