stlxml

package
v0.0.0-...-ed40b9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func (cct CCTXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of cct.

func (*CCTXML) UnmarshalXML

func (cct *CCTXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML decodes the XML-encoded data and stores the result in the CCTXML pointed to by cct.

type CDXML

type CDXML time.Time

CDXML is the XML representation of STL Creation Date (CD).

func (CDXML) MarshalXML

func (cd CDXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of cd.

func (*CDXML) UnmarshalXML

func (cd *CDXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (cf CFXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of cf.

func (*CFXML) UnmarshalXML

func (cf *CFXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (co COXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of co.

func (*COXML) UnmarshalXML

func (co *COXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (cpn CPNXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of cpn.

func (*CPNXML) UnmarshalXML

func (cpn *CPNXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (cs CSXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of cs.

func (*CSXML) UnmarshalXML

func (cs *CSXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (dfc DFCXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of dfc.

func (*DFCXML) UnmarshalXML

func (dfc *DFCXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (dsc DSCXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of dsc.

func (*DSCXML) UnmarshalXML

func (dsc *DSCXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (dsn DSNXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of dsn.

func (*DSNXML) UnmarshalXML

func (dsn *DSNXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (ebn EBNXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of ebn.

func (*EBNXML) UnmarshalXML

func (ebn *EBNXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (ecd ECDXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of ecd.

func (*ECDXML) UnmarshalXML

func (ecd *ECDXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (en ENXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of en.

func (*ENXML) UnmarshalXML

func (en *ENXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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.

func (*GSIXML) FromSTL

func (gsiXML *GSIXML) FromSTL(GSIstl stl.GSIBlock)

FromSTL converts a stl.GSIBlock to a stlxml.GSIXML.

func (*GSIXML) ToSTL

func (gsiXML *GSIXML) ToSTL() stl.GSIBlock

ToSTL converts a stlxml.GSIXML to a stl.GSIBlock.

func (*GSIXML) Validate

func (gsi *GSIXML) Validate() []error

Validate validates the GSO block.

type JCXML

type JCXML stl.JustificationCode

JCXML is the XML representation of STL Justification Code (JC).

func (JCXML) MarshalXML

func (jc JCXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of jc.

func (*JCXML) UnmarshalXML

func (jc *JCXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (lc LCXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of lc.

func (*LCXML) UnmarshalXML

func (lc *LCXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (mnc MNCXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of mnc.

func (*MNCXML) UnmarshalXML

func (mnc *MNCXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (mnr MNRXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of mnr.

func (*MNRXML) UnmarshalXML

func (mnr *MNRXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (oet OETXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of oet.

func (*OETXML) UnmarshalXML

func (oet *OETXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (opt OPTXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of opt.

func (*OPTXML) UnmarshalXML

func (opt *OPTXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (pub PUBXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of pub.

func (*PUBXML) UnmarshalXML

func (pub *PUBXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML decodes the XML-encoded data and stores the result in the PUBXML pointed to by pub.

type RDXML

type RDXML time.Time

RDXML is the XML representation of STL Revision Date (RD).

func (RDXML) MarshalXML

func (rd RDXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of rd.

func (*RDXML) UnmarshalXML

func (rd *RDXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (rn RNXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of rn.

func (*RNXML) UnmarshalXML

func (rn *RNXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (sgn SGNXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of sgn.

func (*SGNXML) UnmarshalXML

func (sgn *SGNXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (slr SLRXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of slr.

func (*SLRXML) UnmarshalXML

func (slr *SLRXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (sn SNXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of sn.

func (*SNXML) UnmarshalXML

func (sn *SNXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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 New

func New() *STLXML

New returns a new stlxml.STLXML.

func (*STLXML) Decode

func (stlXML *STLXML) Decode(r io.Reader) error

Decode reads and decodes the STLXML file from r.

func (*STLXML) Encode

func (stlXML *STLXML) Encode(w io.Writer) error

Encode encodes and writes the STLXML file to w.

func (*STLXML) EncodeIndent

func (stlXML *STLXML) EncodeIndent(w io.Writer, prefix, indent string) error

ENcodeIndent encodes and writes the STLXML file to w with indent.

func (*STLXML) FromSTL

func (stlXML *STLXML) FromSTL(stlFile stl.File)

FromSTL converts a stl.File to a stlxml.STLXML.

func (*STLXML) ToSTL

func (stlXML *STLXML) ToSTL(cct stl.CharacterCodeTable) stl.File

ToSTL converts a stlxml.STLXML to a stl.File.

func (*STLXML) Validate

func (stlXML *STLXML) Validate() []error

Validate validates the STLXML file.

type TCDXML

type TCDXML string

TCDXML is the XML representation of STL Translator's Contact Details (TCD).

func (TCDXML) MarshalXML

func (tcd TCDXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tcd.

func (*TCDXML) UnmarshalXML

func (tcd *TCDXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML decodes the XML-encoded data and stores the result in the TCDXML pointed to by tcd.

type TCFXML

type TCFXML stl.Timecode

TCFXML is the XML representation of STL Time Code: First In-Cue (TCF).

func (TCFXML) MarshalXML

func (tcf TCFXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tcf.

func (*TCFXML) UnmarshalXML

func (tcf *TCFXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML decodes the XML-encoded data and stores the result in the TCFXML pointed to by tcf.

type TCIXML

type TCIXML stl.Timecode

TCIXML is the XML representation of STL Time Code In (TCI).

func (TCIXML) MarshalXML

func (tci TCIXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tci.

func (*TCIXML) UnmarshalXML

func (tci *TCIXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML decodes the XML-encoded data and stores the result in the TCIXML value pointed to by tci.

type TCOXML

type TCOXML stl.Timecode

TCOXML is the XML representation of STL Time Code Out (TCO).

func (TCOXML) MarshalXML

func (tco TCOXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tco.

func (*TCOXML) UnmarshalXML

func (tco *TCOXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML decodes the XML-encoded data and stores the result in the TCOXML value pointed to by tco.

type TCPXML

type TCPXML stl.Timecode

TCPXML is the XML representation of STL Time Code: Start-of-Program (TCP).

func (TCPXML) MarshalXML

func (tcp TCPXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tcp.

func (*TCPXML) UnmarshalXML

func (tcp *TCPXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tcs TCSXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tcs.

func (*TCSXML) UnmarshalXML

func (tcs *TCSXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tet TETXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tet.

func (*TETXML) UnmarshalXML

func (tet *TETXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tnb TNBXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tnb.

func (*TNBXML) UnmarshalXML

func (tnb *TNBXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tnd TNDXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tnd.

func (*TNDXML) UnmarshalXML

func (tnd *TNDXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tng TNGXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tng.

func (*TNGXML) UnmarshalXML

func (tng *TNGXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tns TNSXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tns.

func (*TNSXML) UnmarshalXML

func (tns *TNSXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tn TNXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tn.

func (*TNXML) UnmarshalXML

func (tn *TNXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (tpt TPTXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of tpt.

func (*TPTXML) UnmarshalXML

func (tpt *TPTXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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.

func (TTIXML) ToSTL

func (ttiXML TTIXML) ToSTL(cct stl.CharacterCodeTable) stl.TTIBlock

ToSTL converts a stlxml.TTIXML to a stl.TTIBlock

func (*TTIXML) Validate

func (tti *TTIXML) Validate() []error

Validate validates the TTI block.

type UDAXML

type UDAXML []byte

UDAXML is the XML representation of STL User-Defined Area (UDA).

func (UDAXML) MarshalXML

func (uda UDAXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of uda.

func (*UDAXML) UnmarshalXML

func (uda *UDAXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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

func (vp VPXML) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML returns the XML encoding of vp.

func (*VPXML) UnmarshalXML

func (vp *VPXML) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML decodes the XML-encoded data and stores the result in the VPXML value pointed to by vp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL