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 ¶
- type Processor
- func (p *Processor) GenerateAnkiFile() (string, error)
- func (p *Processor) ProcessBatch() error
- func (p *Processor) ProcessSingleWord(word string) error
- func (p *Processor) ProcessWordWithTranslation(word, providedTranslation string) error
- func (p *Processor) ProcessWordWithTranslationAndType(word, providedTranslation string, cardType internal.CardType) error
- func (p *Processor) RunGUIMode() error
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 ¶
NewProcessor creates a new word processor
func (*Processor) GenerateAnkiFile ¶
GenerateAnkiFile generates the Anki import file and returns the output path
func (*Processor) ProcessBatch ¶
ProcessBatch processes multiple words from a batch file
func (*Processor) ProcessSingleWord ¶
ProcessSingleWord processes a single word from command line
func (*Processor) ProcessWordWithTranslation ¶
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 ¶
RunGUIMode launches the GUI application