Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MIMEType defines the mime-type of page XML files. // See: https://github.com/PRImA-Research-Lab/PAGE-XML MIMEType = "application/alto+xml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Line ¶ added in v0.4.0
type Line struct { ID string // contains filtered or unexported fields }
Line represents a line of text in the page XML file.
func (Line) FindWordByID ¶ added in v0.4.0
FindWordByID searches for a line with the given ID.
func (Line) TextEquivUnicodeAt ¶ added in v0.4.0
TextEquivUnicodeAt returns the i-th TextEquiv/Unicode entry (indexing is zero-based).
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page represents an open page XML file.
func (Page) FindRegionByID ¶ added in v0.4.0
FindRegionByID returns the region with the given refID.
type Region ¶
type Region struct { ID string // contains filtered or unexported fields }
Region defines a text region in the page XML file.
func (Region) FindLineByID ¶
FindLineByID searches for a line with the given ID.
Click to show internal directories.
Click to hide internal directories.