processor

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package processor contains the core business logic for processing Bulgarian words. It orchestrates audio generation, image downloading, translation, phonetic information fetching, and Anki file generation. This package serves as the main coordinator between all other components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

Processor handles the main word processing logic

func NewProcessor

func NewProcessor(flags *cli.Flags) *Processor

NewProcessor creates a new word processor

func (*Processor) GenerateAnkiFile

func (p *Processor) GenerateAnkiFile() (string, error)

GenerateAnkiFile generates the Anki import file and returns the output path

func (*Processor) ProcessBatch

func (p *Processor) ProcessBatch() error

ProcessBatch processes multiple words from a batch file

func (*Processor) ProcessSingleWord

func (p *Processor) ProcessSingleWord(word string) error

ProcessSingleWord processes a single word from command line

func (*Processor) ProcessWordWithTranslation

func (p *Processor) ProcessWordWithTranslation(word, providedTranslation string) error

ProcessWordWithTranslation processes a word with optional provided translation (en-bg mode)

func (*Processor) ProcessWordWithTranslationAndType added in v0.8.0

func (p *Processor) ProcessWordWithTranslationAndType(word, providedTranslation string, cardType internal.CardType) error

ProcessWordWithTranslationAndType processes a word with optional provided translation and card type

func (*Processor) RunGUIMode

func (p *Processor) RunGUIMode() error

RunGUIMode launches the GUI application

Jump to

Keyboard shortcuts

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