Documentation
¶
Index ¶
- func CreateCitationExport(mythread int)
- func CreateIiifManifest(mythread int)
- func IndexPos(s []string, v string) int
- func JSONMarshal(t interface{}) ([]byte, error)
- type Baseline
- type Coords
- type Entry
- type InfoJsonRetrievalJob
- type Metadata
- type OrderedGroup
- type Page
- type PcGts
- type ReadingOrder
- type RegionRefIndexed
- type RegionRefSlice
- type TextEquiv
- type TextLine
- type TextRegion
- type Unicode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCitationExport ¶
func CreateCitationExport(mythread int)
func CreateIiifManifest ¶
func CreateIiifManifest(mythread int)
func JSONMarshal ¶
Types ¶
type Entry ¶
type Entry struct {
//XMLName xml.Name `json:"range"`
Order int `json:"order" yaml:"order"`
RegionBlock int `json:"regionBlock" yaml:"regionBlock"`
Text string `json:"text" yaml:"text"`
TextArray []string `json:"textArray" yaml:"textArray"`
StartPage string `json:"startPage" yaml:"startPage"`
PossiblePageBreak bool `json:"possiblePageBreak" yaml:"possiblePageBreak"`
IsPageBreak bool `json:"isPageBreak" yaml:"isPageBreak"`
}
type InfoJsonRetrievalJob ¶
type InfoJsonRetrievalJob struct {
Document string `json:"document"`
Context string `json:"context"`
Product string `json:"product"`
Page string `json:"page"`
Format string `json:"format"`
Key string `json:"key"`
InfoJsonKey string `json:"infojsonkey"`
PageKey string `json:"pagekey"`
ForceOverwrite bool `json:"forceoverwrite"`
}
type OrderedGroup ¶
type OrderedGroup struct {
XMLName xml.Name `xml:"OrderedGroup"`
Id string `xml:"id,attr" json:"id,omitempty"`
RegionRefIndexed []RegionRefIndexed `xml:"RegionRefIndexed" json:"regionRefIndexed,omitempty"`
}
type Page ¶
type Page struct {
XMLName xml.Name `xml:"Page"`
ImageFilename string `xml:"imageFilename,attr" json:"imageFilename,omitempty"`
ImageHeight string `xml:"imageHeight,attr" json:"imageHeight,omitempty"`
ImageWidth string `xml:"imageWidth,attr" json:"imageWidth,omitempty"`
Orientation string `xml:"orientation,attr" json:"orientation,omitempty"`
ReadingDirection string `xml:"readingDirection,attr" json:"readingDirection,omitempty"`
TextLineOrder string `xml:"textLineOrder,attr" json:"textLineOrder,omitempty"`
ReadingOrder ReadingOrder `xml:"ReadingOrder" json:"readingOrder,omitempty"`
TextRegion []TextRegion `xml:"TextRegion" json:"textRegion,omitempty"`
}
type ReadingOrder ¶
type ReadingOrder struct {
XMLName xml.Name `xml:"ReadingOrder"`
OrderedGroup OrderedGroup `xml:"OrderedGroup" json:"orderedGroup,omitempty"`
}
medadata
type RegionRefIndexed ¶
type RegionRefSlice ¶
type RegionRefSlice []RegionRefIndexed
func (RegionRefSlice) Less ¶
func (d RegionRefSlice) Less(i, j int) bool
Less is part of sort.Interface. We use count as the value to sort by
Click to show internal directories.
Click to hide internal directories.