read

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateWordPunct added in v1.2.0

func GenerateWordPunct(words []db.Word)

func IsSpace added in v1.2.0

func IsSpace(r rune) bool

isSpace reports whether r separates words. It is unicode.IsSpace plus the zero width space U+200B, which is category Cf (not White_Space) but is used as an invisible word separator by Khmer, Thai, Burmese and others.

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 []generic.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 []generic.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 []generic.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 []generic.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 []generic.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