read

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVIndex

type CSVIndex struct {
	BookCol    int
	ChapterCol int
	VerseCol   int
	LineCol    int
	TextCol    int
}

type CSVReader

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

func NewCSVReader

func NewCSVReader(db db.DBAdapter) CSVReader

func (CSVReader) FindColIndexes

func (r CSVReader) FindColIndexes(heading []string) (CSVIndex, *log.Status)

func (CSVReader) ProcessFiles

func (r CSVReader) ProcessFiles(files []input.InputFile) *log.Status

func (CSVReader) Read

func (r CSVReader) Read(filePath string) *log.Status

type ColIndex

type ColIndex struct {
	BookCol      int
	ChapterCol   int
	VerseCol     int
	CharacterCol int
	ActorCol     int
	LineCol      int
	TextCol      int
}

type DBPTextEditReader

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

func NewDBPTextEditReader

func NewDBPTextEditReader(conn db.DBAdapter, req request.Request) DBPTextEditReader

func (*DBPTextEditReader) Process

func (d *DBPTextEditReader) Process() *log.Status

type DBPTextReader

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

func NewDBPTextReader

func NewDBPTextReader(conn db.DBAdapter, testament request.Testament) DBPTextReader

func (*DBPTextReader) ProcessFiles

func (d *DBPTextReader) ProcessFiles(files []input.InputFile) *log.Status

type ScriptReader

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

func NewScriptReader

func NewScriptReader(db db.DBAdapter, testament request.Testament) ScriptReader

func (ScriptReader) FindColIndexes

func (r ScriptReader) FindColIndexes(heading []string) (ColIndex, *log.Status)

func (ScriptReader) ProcessFiles

func (r ScriptReader) ProcessFiles(files []input.InputFile) *log.Status

func (ScriptReader) Read

func (r ScriptReader) Read(filePath string) *log.Status

type ScriptVersifier

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

func NewScriptVersifier

func NewScriptVersifier(conn db.DBAdapter) ScriptVersifier

func (ScriptVersifier) ParseScriptToVerses

func (s ScriptVersifier) ParseScriptToVerses(bookId string, chapter int, text string) []db.Script

func (ScriptVersifier) Process

func (s ScriptVersifier) Process() (db.DBAdapter, *log.Status)

type Stack

type Stack []string

func (Stack) Pop

func (s Stack) Pop() (Stack, string, error)

func (Stack) Push

func (s Stack) Push(v string) Stack

type StylePair

type StylePair struct {
	Style    string
	StyleNum string
	StyleEnd bool
}

func (StylePair) String

func (s StylePair) String() string

type USFMParser

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

func NewUSFMParser

func NewUSFMParser(conn db.DBAdapter) USFMParser

func (*USFMParser) BuildUSFMMap

func (p *USFMParser) BuildUSFMMap() map[string]USFMStyle

func (*USFMParser) ProcessFiles

func (p *USFMParser) ProcessFiles(inputFiles []input.InputFile) *log.Status

type USFMStack

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

func (*USFMStack) IsEmpty

func (s *USFMStack) IsEmpty() bool

func (*USFMStack) Len

func (s *USFMStack) Len() int

func (*USFMStack) Peek

func (s *USFMStack) Peek() (StylePair, bool)

func (*USFMStack) Pop

func (s *USFMStack) Pop() (StylePair, bool)

func (*USFMStack) Push

func (s *USFMStack) Push(style string, styleNum string, styleEnd bool)

type USFMStyle

type USFMStyle struct {
	StyleType string // "book", "chapter", "verse", "para", "char", "note", etc.
	Keep      bool
}

type USXParser

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

func NewUSXParser

func NewUSXParser(conn db.DBAdapter) USXParser

func (*USXParser) ProcessFiles

func (p *USXParser) ProcessFiles(inputFiles []input.InputFile) *log.Status

type WordParser

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

func NewWordParser

func NewWordParser(conn db.DBAdapter) WordParser

func (*WordParser) Parse

func (w *WordParser) Parse() *log.Status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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