Documentation ¶
Index ¶
- type Book
- type Collection
- type Container
- type Content
- type ContentFile
- type ContentFileType
- type ContentLocation
- type ContentType
- type Creator
- type Guide
- type Identifier
- type ItemRef
- type Link
- type LocalByteContentFile
- type LocalContentFile
- type LocalTextContentFile
- type Manifest
- type ManifestItem
- type Metadata
- type NavAnchor
- type NavLi
- type NavOl
- type NavSpan
- type Navigation
- type NavigationDocument
- type Package
- type Reference
- type RootFile
- type Spine
- type StructuralSemanticsProperty
- type Title
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Collection ¶
type Content ¶
type Content struct { Cover LocalByteContentFile Html []LocalTextContentFile Css []LocalTextContentFile Images []LocalByteContentFile Fonts []LocalByteContentFile Audios []LocalByteContentFile AllFiles []LocalContentFile }
type ContentFile ¶
type ContentFile struct { Key string ContentType ContentType ContentMimeType string ContentLocation ContentLocation ContentFileType ContentFileType }
type ContentFileType ¶
type ContentFileType int
const ( ContentFileTypeText ContentFileType = iota + 1 ContentFileTypeByteArray )
type ContentLocation ¶
type ContentLocation int
const ( ContentLocationLocal ContentLocation = iota + 1 ContentLocationRemote )
type ContentType ¶
type ContentType int
const ( ContentTypeImageGif ContentType = iota + 1 ContentTypeImageJpeg ContentTypeImagePng ContentTypeImageSvg ContentTypeImageWebp ContentTypeAudioMp3 ContentTypeAudioMp4 ContentTypeAudioOgg ContentTypeCss ContentTypeFontTruetype ContentTypeFontSfnt ContentTypeFontOpentype ContentTypeFontWoff ContentTypeFontWoff2 ContentTypeXhtml ContentTypeXml ContentTypeScript ContentTypeDtb ContentTypeDtbNcx ContentTypeSmil ContentTypeOeb1Document ContentTypeOeb1Css ContentTypeOther )
type Identifier ¶
type LocalByteContentFile ¶
type LocalByteContentFile struct { Content []byte ContentFile }
type LocalContentFile ¶
type LocalContentFile struct { FilePath string ContentFile }
type LocalTextContentFile ¶
type LocalTextContentFile struct { Content string ContentFile }
type Manifest ¶
type Manifest struct {
Items []ManifestItem `xml:"item"`
}
type ManifestItem ¶
type ManifestItem struct { ID string `xml:"id,attr"` Href string `xml:"href,attr"` MediaType string `xml:"media-type,attr"` MediaOverlay string `xml:"media-overlay,attr"` RequiredNamespace string `xml:"required-namespace,attr"` RequiredModules string `xml:"required-modules,attr"` Fallback string `xml:"fallback,attr"` FallbackStyle string `xml:"fallback-style,attr"` Properties string `xml:"properties,attr"` }
type Metadata ¶
type Metadata struct { Identifiers []Identifier `xml:"identifier"` Titles []Title `xml:"title"` Languages []string `xml:"language"` Contributers []string `xml:contributor` Coverages []string `xml:coverage` Creators []Creator `xml:"creator"` Dates []string `xml:"date"` Descriptions []string `xml:"description"` Formats []string `xml:"format"` Publishers []string `xml:"publisher"` Relations []string `xml:"relation"` Rights []string `xml:"right"` Sources []string `xml:"source"` Subjects []string `xml:"subject"` Types []string `xml:"types"` }
type Navigation ¶
type Navigation struct {}
type NavigationDocument ¶
type NavigationDocument struct {}
type Package ¶
type Package struct { XMLName xml.Name `xml:"package"` UniqueIdentifier string `xml:"unique-identifier,attr"` Version string `xml:"version,attr"` Metadata Metadata `xml:"metadata"` Manifest Manifest `xml:"manifest"` Spine Spine `xml:"spine"` Guide Guide `xml:"guide"` Collections []Collection `xml:"collection"` }
func ReadPackage ¶
func ReadPackage(r *zip.ReadCloser, rootfilePath string) (Package, error)
type StructuralSemanticsProperty ¶
type StructuralSemanticsProperty int
const ( SspCover StructuralSemanticsProperty = iota + 1 SspFrontMatter SspBodyMatter SspBackMatter SspVolume SspPart SspChapter SspSubChapter SspDivision SspAbstract SspForeword SspPreface SspPrologue SspIntroduction SspPreamble SspConclusion SspEpilogue SspAfterword SspEpigram SspToc SspTocBrief SspLandmarks SspLoa SspLoi SspLot SspLov SspAppendix SspColophon SspCredits SspKeywords SspIndex SspIndexHeadnotes SspIndexLegend SspIndexGroup SspIndexEntryList SspIndexEntry SspIndexTerm SspIndexEditorNote SspIndexLocator SspIndexLocatorList SspIndexLocatorName SspIndexXrefPreferred SspIndexXrefRelated SspIndexTermCategory SspIndexTermCategories SspGlossary SspGlossTerm SspGlossDef SspBibliography SspBibloEntry SspTitlePage SspHalfTitlePage SspCopyrightPage SspSeriesPage SspAcknowledgements SspImprint SspImprimatur SspContributors SspOtherCredits SspErrata SspDedication SspRevisionHistory SspCaseStudy SspHelp SspMarginalia SspNotice SspPullQuote SspSidebar SspTip SspWarning SspHalfTitle SspFullTitle SspCoverTitle SspTitle SspSubtitle SspLabel SspOrdinal SspBridgehead SspLearningObjective SspLearningObjectives SspLearningOutcome SspLearningOutcomes SspLearningResource SspLearningResources SspLearningStandard SspLearningStandards SspAnswer SspAnswers SspAssessment SspAssessments SspFeedback SspFillInTheBlankProblem SspGeneralProblem SspQna SspMatchProblem SspMultipleChoiceProblem SspPractice SspQuestion SspPractices SspTrueFalseProblem SspPanel SspPanelGroup SspBalloon SspTextArea SspSoundArea SspAnnotation SspNote SspFootnote SspEndnote SspRearnote SspFootnotes SspEndnotes SspRearnotes SspAnnoRef SspBiblioRef SspGlossRef SspNoteRef SspBacklink SspCredit SspKeyword SspTopicSentence SspConcludingSentence SspPagebreak SspPageList SspTable SspTableRow SspTableCell SspList SspListItem SspFigure SspAside SspUnknown )
Click to show internal directories.
Click to hide internal directories.