parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentOpf

func ContentOpf(e *epub.Epub) (*files.FileContent[string], error)

ContentOpf generates the Open Packaging Format (OPF) file. This is the "brain" of the EPUB, containing the manifest of all files, the spine (reading order), and the guide (semantic sections).

func CreateResourceFileContent

func CreateResourceFileContent(r resource.Resource) (*files.FileContent[[]byte], error)

CreateResourceFileContent reads a physical file from the disk based on a resource and wraps it in a FileContent struct for the archive.

func TocNcx

func TocNcx(e *epub.Epub) files.FileContent[string]

TocNcx generates the Navigation Control file for XML (NCX). This provides the Table of Contents that allows e-readers to display a navigation menu outside of the book content.

Types

type Xhtml

type Xhtml struct {
	// contains filtered or unexported fields
}

Xhtml internal helper to track file numbering and naming during parsing.

Jump to

Keyboard shortcuts

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