Documentation ¶
Index ¶
- type CCTXML
- type CDXML
- type CFXML
- type COXML
- type CPNXML
- type CSXML
- type DFCXML
- type DSCXML
- type DSNXML
- type EBNXML
- type ECDXML
- type ENXML
- type GSIXML
- type JCXML
- type LCXML
- type MNCXML
- type MNRXML
- type OETXML
- type OPTXML
- type PUBXML
- type RDXML
- type RNXML
- type SGNXML
- type SLRXML
- type SNXML
- type STLXML
- func (stlXML *STLXML) Decode(r io.Reader) error
- func (stlXML *STLXML) Encode(w io.Writer) error
- func (stlXML *STLXML) EncodeIndent(w io.Writer, prefix, indent string) error
- func (stlXML *STLXML) FromSTL(stlFile stl.File)
- func (stlXML *STLXML) ToSTL(cct stl.CharacterCodeTable) stl.File
- func (stlXML *STLXML) Validate() []error
- type TCDXML
- type TCFXML
- type TCIXML
- type TCOXML
- type TCPXML
- type TCSXML
- type TETXML
- type TFXMLContainer
- type TNBXML
- type TNDXML
- type TNGXML
- type TNSXML
- type TNXML
- type TPTXML
- type TTIXML
- type UDAXML
- type VPXML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCTXML ¶
type CCTXML stl.CharacterCodeTable
CCTXML is the XML representation of STL Character Code Table (CCT).
func (CCTXML) MarshalXML ¶
MarshalXML returns the XML encoding of cct.
func (*CCTXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the CCTXML pointed to by cct.
type CDXML ¶
CDXML is the XML representation of STL Creation Date (CD).
func (CDXML) MarshalXML ¶
MarshalXML returns the XML encoding of cd.
func (*CDXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the CDXML pointed to by cd.
type CFXML ¶
type CFXML stl.CommentFlag
CCXML is the XML representation of STL Color Code (CC).
func (CFXML) MarshalXML ¶
MarshalXML returns the XML encoding of cf.
func (*CFXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the CFXML value pointed to by cf.
type COXML ¶
type COXML string
COXML is the XML representation of STL Country of Origin (CO).
func (COXML) MarshalXML ¶
MarshalXML returns the XML encoding of co.
func (*COXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the COXML pointed to by co.
type CPNXML ¶
type CPNXML stl.CodePageNumber
CPNXML is the XML representation of STL Code Page Number (CPN).
func (CPNXML) MarshalXML ¶
MarshalXML returns the XML encoding of cpn.
func (*CPNXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the CPNXML pointed to by cpn.
type CSXML ¶
type CSXML stl.CumulativeStatus
CSXML is the XML representation of STL Cumulative Status (CS).
func (CSXML) MarshalXML ¶
MarshalXML returns the XML encoding of cs.
func (*CSXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the CSXML value pointed to by cs.
type DFCXML ¶
type DFCXML stl.DiskFormatCode
DFCXML is the XML representation of STL Disk Format Code (DFC).
func (DFCXML) MarshalXML ¶
MarshalXML returns the XML encoding of dfc.
func (*DFCXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the DFCXML pointed to by dfc.
type DSCXML ¶
type DSCXML stl.DisplayStandardCode
DSCXML is the XML representation of STL Display Standard Code (DSC).
func (DSCXML) MarshalXML ¶
MarshalXML returns the XML encoding of dsc.
func (*DSCXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the DSCXML pointed to by dsc.
type DSNXML ¶
type DSNXML int
DSNXML is the XML representation of STL Disk Sequence Number (DSN).
func (DSNXML) MarshalXML ¶
MarshalXML returns the XML encoding of dsn.
func (*DSNXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the DSNXML pointed to by dsn.
type EBNXML ¶
type EBNXML int
EBNXML is the XML representation of STL Extension Block Number (EBN).
func (EBNXML) MarshalXML ¶
MarshalXML returns the XML encoding of ebn.
func (*EBNXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the EBNXML value pointed to by ebn.
type ECDXML ¶
type ECDXML string
ECDXML is the XML representation of STL Editor's Contact Details (ECD).
func (ECDXML) MarshalXML ¶
MarshalXML returns the XML encoding of ecd.
func (*ECDXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the ECDXML pointed to by ecd.
type ENXML ¶
type ENXML string
ENXML is the XML representation of STL Editor's Name (EN).
func (ENXML) MarshalXML ¶
MarshalXML returns the XML encoding of en.
func (*ENXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the ENXML pointed to by en.
type GSIXML ¶
type GSIXML struct { XMLName xml.Name `xml:"GSI"` CPN CPNXML `xml:"CPN"` // Code Page Number DFC DFCXML `xml:"DFC"` // Disk Format Code DSC DSCXML `xml:"DSC"` // Display Standard Code CCT CCTXML `xml:"CCT"` // Character Code Table number LC LCXML `xml:"LC"` // Language Code OPT OPTXML `xml:"OPT"` // Original Program Title OET OETXML `xml:"OET"` // Original Episode Title TPT TPTXML `xml:"TPT"` // Translated Program Title TET TETXML `xml:"TET"` // Translated Episode Title TN TNXML `xml:"TN"` // Translator's Name TCD TCDXML `xml:"TCD"` // Translator's Contact Details SLR SLRXML `xml:"SLR"` // Subtitle List Reference Code CD CDXML `xml:"CD"` // Creation Date RD RDXML `xml:"RD"` // Revision Date RN RNXML `xml:"RN"` // Revision Number TNB TNBXML `xml:"TNB"` // Total Number of Text and Timing Information (TTI) blocks TNS TNSXML `xml:"TNS"` // Total Number of Subtitles TNG TNGXML `xml:"TNG"` // Total Number of Subtitle Groups MNC MNCXML `xml:"MNC"` // Maximum Number of Displayable Characters in any text row MNR MNRXML `xml:"MNR"` // Maximum Number of Displayable Rows TCS TCSXML `xml:"TCS"` // Time Code: Status TCP TCPXML `xml:"TCP"` // Time Code: Start-of-Program TCF TCFXML `xml:"TCF"` // Time Code: First In-Cue TND TNDXML `xml:"TND"` // Total Number of Disks DSN DSNXML `xml:"DSN"` // Disk Sequence Number CO COXML `xml:"CO"` // Country of Origin PUB PUBXML `xml:"PUB"` // Publisher EN ENXML `xml:"EN"` // Editor's Name ECD ECDXML `xml:"ECD"` // Editor's Contact UDA UDAXML `xml:"UDA"` // User-Defined Area }
GSIXML is the XML representation of STL GSI block.
type JCXML ¶
type JCXML stl.JustificationCode
JCXML is the XML representation of STL Justification Code (JC).
func (JCXML) MarshalXML ¶
MarshalXML returns the XML encoding of jc.
func (*JCXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the JCXML value pointed to by jc.
type LCXML ¶
type LCXML stl.LanguageCode
LCXML is the XML representation of STL Language Cod (LC).
func (LCXML) MarshalXML ¶
MarshalXML returns the XML encoding of lc.
func (*LCXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the LCXML pointed to by lc.
type MNCXML ¶
type MNCXML int
MNCXML is the XML representation of STL Maximum Number of Displayable Characters in any text row (MNC).
func (MNCXML) MarshalXML ¶
MarshalXML returns the XML encoding of mnc.
func (*MNCXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the MNCXML pointed to by mnc.
type MNRXML ¶
type MNRXML int
MNRXML is the XML representation of STL Maximum Number of Displayable Rows (MNR).
func (MNRXML) MarshalXML ¶
MarshalXML returns the XML encoding of mnr.
func (*MNRXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the MNRXML pointed to by mnr.
type OETXML ¶
type OETXML string
OETXML is the XML representation of STL Originating Programme Episode Title (OET).
func (OETXML) MarshalXML ¶
MarshalXML returns the XML encoding of oet.
func (*OETXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the OETXML pointed to by oet.
type OPTXML ¶
type OPTXML string
OPTXML is the XML representation of STL Originating Programme Title (OPT).
func (OPTXML) MarshalXML ¶
MarshalXML returns the XML encoding of opt.
func (*OPTXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the OPTXML pointed to by opt.
type PUBXML ¶
type PUBXML string
PUBXML is the XML representation of STL Publisher (PUB).
func (PUBXML) MarshalXML ¶
MarshalXML returns the XML encoding of pub.
func (*PUBXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the PUBXML pointed to by pub.
type RDXML ¶
RDXML is the XML representation of STL Revision Date (RD).
func (RDXML) MarshalXML ¶
MarshalXML returns the XML encoding of rd.
func (*RDXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the RDXML pointed to by rd.
type RNXML ¶
type RNXML int
RNXML is the XML representation of STL Revision Number (RN).
func (RNXML) MarshalXML ¶
MarshalXML returns the XML encoding of rn.
func (*RNXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the RNXML pointed to by rn.
type SGNXML ¶
type SGNXML int
SGNXML is the XML representation of STL Subtitle Group Number (SGN).
func (SGNXML) MarshalXML ¶
MarshalXML returns the XML encoding of sgn.
func (*SGNXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the SGNXML value pointed to by sgn.
type SLRXML ¶
type SLRXML string
SLRXML is the XML representation of STL Subtitle List Reference Code (SLR).
func (SLRXML) MarshalXML ¶
MarshalXML returns the XML encoding of slr.
func (*SLRXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the SLRXML pointed to by slr.
type SNXML ¶
type SNXML int
SNXML is the XML representation of STL Subtitle Number (SN).
func (SNXML) MarshalXML ¶
MarshalXML returns the XML encoding of sn.
func (*SNXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the SNXML value pointed to by sn.
type STLXML ¶
type STLXML struct { XMLName xml.Name `xml:"StlXml"` GSI GSIXML `xml:"HEAD>GSI"` TTI []TTIXML `xml:"BODY>TTICONTAINER>TTI"` }
STLXML is the XML representation of STL file.
func (*STLXML) EncodeIndent ¶
ENcodeIndent encodes and writes the STLXML file to w with indent.
type TCDXML ¶
type TCDXML string
TCDXML is the XML representation of STL Translator's Contact Details (TCD).
func (TCDXML) MarshalXML ¶
MarshalXML returns the XML encoding of tcd.
func (*TCDXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TCDXML pointed to by tcd.
type TCFXML ¶
TCFXML is the XML representation of STL Time Code: First In-Cue (TCF).
func (TCFXML) MarshalXML ¶
MarshalXML returns the XML encoding of tcf.
func (*TCFXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TCFXML pointed to by tcf.
type TCIXML ¶
TCIXML is the XML representation of STL Time Code In (TCI).
func (TCIXML) MarshalXML ¶
MarshalXML returns the XML encoding of tci.
func (*TCIXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TCIXML value pointed to by tci.
type TCOXML ¶
TCOXML is the XML representation of STL Time Code Out (TCO).
func (TCOXML) MarshalXML ¶
MarshalXML returns the XML encoding of tco.
func (*TCOXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TCOXML value pointed to by tco.
type TCPXML ¶
TCPXML is the XML representation of STL Time Code: Start-of-Program (TCP).
func (TCPXML) MarshalXML ¶
MarshalXML returns the XML encoding of tcp.
func (*TCPXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TCPXML pointed to by tcp.
type TCSXML ¶
type TCSXML stl.TimeCodeStatus
TCSXML is the XML representation of STL Time Code: Status (TCS).
func (TCSXML) MarshalXML ¶
MarshalXML returns the XML encoding of tcs.
func (*TCSXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TCSXML pointed to by tcs.
type TETXML ¶
type TETXML string
TETXML is the XML representation of STL Translated Programme Episode Title (TET).
func (TETXML) MarshalXML ¶
MarshalXML returns the XML encoding of tet.
func (*TETXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TETXML pointed to by tet.
type TFXMLContainer ¶
type TFXMLContainer struct {
InnerXML string `xml:",innerxml"`
}
type TNBXML ¶
type TNBXML int
TNBXML is the XML representation of STL Total Number of Text and Timing Information (TTI) blocks (TNB).
func (TNBXML) MarshalXML ¶
MarshalXML returns the XML encoding of tnb.
func (*TNBXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TNBXML pointed to by tnb.
type TNDXML ¶
type TNDXML int
TNDXML is the XML representation of STL Total Number of Disks (TND).
func (TNDXML) MarshalXML ¶
MarshalXML returns the XML encoding of tnd.
func (*TNDXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TNDXML pointed to by tnd.
type TNGXML ¶
type TNGXML int
TNGXML is the XML representation of STL Total Number of Subtitle Groups (TNG).
func (TNGXML) MarshalXML ¶
MarshalXML returns the XML encoding of tng.
func (*TNGXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TNGXML pointed to by tng.
type TNSXML ¶
type TNSXML int
TNSXML is the XML representation of STL Total Number of Subtitles (TNS).
func (TNSXML) MarshalXML ¶
MarshalXML returns the XML encoding of tns.
func (*TNSXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TNSXML pointed to by tns.
type TNXML ¶
type TNXML string
TNXML is the XML representation of STL Translator's Name (TN).
func (TNXML) MarshalXML ¶
MarshalXML returns the XML encoding of tn.
func (*TNXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TNXML pointed to by tn.
type TPTXML ¶
type TPTXML string
TPTXML is the XML representation of STL Translated Programme Title (TPT).
func (TPTXML) MarshalXML ¶
MarshalXML returns the XML encoding of tpt.
func (*TPTXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the TPTXML pointed to by tpt.
type TTIXML ¶
type TTIXML struct { XMLName xml.Name `xml:"TTI"` SGN SGNXML `xml:"SGN"` // Subtitle Group Number SN SNXML `xml:"SN"` // Subtitle Number EBN EBNXML `xml:"EBN"` // Extension Block Number CS CSXML `xml:"CS"` // Cumulative Status TCI TCIXML `xml:"TCI"` // Time Code: In TCO TCOXML `xml:"TCO"` // Time Code: Out VP VPXML `xml:"VP"` // Vertical Position JC JCXML `xml:"JC"` // Justification Code CF CFXML `xml:"CF"` // Comment Flag TF TFXMLContainer `xml:"TF"` // Text Field }
TTIXML is the XML representation of a STL TTI block.
func (*TTIXML) FromSTL ¶
func (ttiXML *TTIXML) FromSTL(TTIstl stl.TTIBlock, cct stl.CharacterCodeTable)
FromSTL converts a stl.TTIBlock to a stlxml.TTIXML.
type UDAXML ¶
type UDAXML []byte
UDAXML is the XML representation of STL User-Defined Area (UDA).
func (UDAXML) MarshalXML ¶
MarshalXML returns the XML encoding of uda.
func (*UDAXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the UDAXML pointed to by uda.
type VPXML ¶
type VPXML int
VPXML is the XML representation of STL Vertical Position (VP).
func (VPXML) MarshalXML ¶
MarshalXML returns the XML encoding of vp.
func (*VPXML) UnmarshalXML ¶
UnmarshalXML decodes the XML-encoded data and stores the result in the VPXML value pointed to by vp.