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 Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page represents an open page XML file.
func (Page) FindRegionByRefID ¶
FindRegionByRefID returns the region with the given refID.
func (Page) FindRegionsByGroupID ¶
FindRegionsByGroupID returns all regions with the given group ID.
type Region ¶
type Region struct {
GroupID, RefID 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.
type TextLine ¶
type TextLine struct {
ID string
// contains filtered or unexported fields
}
TextLine represents a line of text in the page XML file.
func (TextLine) FindWordByID ¶
FindWordByID searches for a line with the given ID.
func (TextLine) TextEquivUnicodeAt ¶
TextEquivUnicodeAt returns the i-th TextEquiv/Unicode element (the indexing is zero-based).
Click to show internal directories.
Click to hide internal directories.