Documentation ¶
Overview ¶
Package writer create SSA/ASS Subtitle Script
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dialog ¶
type Dialog struct { Layer int Start string End string StyleName string Actor string Effect string Text string Tags string Comment bool }
Dialog Represent the subtitle"s lines.
type Script ¶
type Script struct { Dialog []*Dialog Style map[string]*Style Comment string Resolution [2]int // WIDTH, HEIGHT map[string]string VideoPath string VideoZoom float64 VideoPosition int VideoAR float64 MetaFilename string MetaTitle string MetaOriginalScript string MetaTranslation string MetaTiming string Audio string }
Script SSA/ASS Subtitle Script.
type Style ¶
type Style struct { Name string FontName string FontSize int Color [4]*color.Color //Primary, Secondary, Bord, Shadow Bold bool Italic bool Underline bool StrikeOut bool Scale [2]float64 // WIDTH, HEIGHT map[string]string Spacing float64 Angle int OpaqueBox bool Bord float64 Shadow float64 Alignment int Margin [3]int // L, R, V map[string]string Encoding int }
Style represent subtitle"s styles.
Click to show internal directories.
Click to hide internal directories.