export

package
v0.0.0-...-339d664 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCitationExport

func CreateCitationExport(mythread int)

func CreateIiifManifest

func CreateIiifManifest(mythread int)

func IndexPos

func IndexPos(s []string, v string) int

func JSONMarshal

func JSONMarshal(t interface{}) ([]byte, error)

Types

type Baseline

type Baseline struct {
	XMLName xml.Name `xml:"Baseline"`
	Points  string   `xml:"points,attr" json:"points,omitempty"`
}

type Coords

type Coords struct {
	XMLName xml.Name `xml:"Coords"`
	Points  string   `xml:"points,attr" json:"points,omitempty"`
}

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 Metadata

type Metadata struct {
	XMLName    xml.Name `xml:"Metadata"`
	Creator    string   `xml:"Creator" json:"creator,omitempty"`
	Created    string   `xml:"Created" json:"created,omitempty"`
	LastChange string   `xml:"LastChange" json:"lastChange,omitempty"`
	Comments   string   `xml:"Comments" json:"comments,omitempty"`
}

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 PcGts

type PcGts struct {
	XMLName  xml.Name `xml:"PcGts" json:"pcgts,omitempty"`
	Metadata Metadata `xml:"Metadata" json:"metadata,omitempty"`
	Page     Page     `xml:"Page" json:"page,omitempty"`
}

type ReadingOrder

type ReadingOrder struct {
	XMLName      xml.Name     `xml:"ReadingOrder"`
	OrderedGroup OrderedGroup `xml:"OrderedGroup" json:"orderedGroup,omitempty"`
}

medadata

type RegionRefIndexed

type RegionRefIndexed struct {
	XMLName   xml.Name `xml:"RegionRefIndexed"`
	Index     int      `xml:"index,attr" json:"index,omitempty"`
	RegionRef string   `xml:"regionRef,attr" json:"regionRef,omitempty"`
}

type RegionRefSlice

type RegionRefSlice []RegionRefIndexed

func (RegionRefSlice) Len

func (d RegionRefSlice) Len() int

Len is part of sort.Interface.

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

func (RegionRefSlice) Swap

func (d RegionRefSlice) Swap(i, j int)

Swap is part of sort.Interface.

type TextEquiv

type TextEquiv struct {
	XMLName xml.Name `xml:"TextEquiv"`
	Conf    string   `xml:"conf,attr" json:"conf,omitempty"`
	Index   string   `xml:"index,attr" json:"index,omitempty"`
	Unicode Unicode  `xml:"Unicode" json:"unicode,omitempty"`
}

type TextLine

type TextLine struct {
	XMLName   xml.Name    `xml:"TextLine"`
	Id        string      `xml:"id,attr" json:"id,omitempty"`
	Baseline  Baseline    `xml:"Baseline" json:"Baseline,omitempty"`
	Coords    Coords      `xml:"Coords" json:"Coords,omitempty"`
	TextEquiv []TextEquiv `xml:"TextEquiv" json:"textEquiv,omitempty"`
}

type TextRegion

type TextRegion struct {
	XMLName  xml.Name   `xml:"TextRegion"`
	Id       string     `xml:"id,attr" json:"id,omitempty"`
	Type     string     `xml:"type,attr" json:"type,omitempty"`
	TextLine []TextLine `xml:"TextLine" json:"textLine,omitempty"`
}

fulltext

type Unicode

type Unicode struct {
	XMLName xml.Name `xml:"Unicode"`
	Value   string   `xml:",chardata" json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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