stardict_svc

package
v1.2.1-0...-837fef5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStardict

func NewStardict(dirItem *model.DirItem) (model.GeneralDictionary, error)

Types

type StarDict

type StarDict struct {
	DzFilePath   string
	DictFilePath string
	IfoFilePath  string
	IdxFilePath  string
	SDict        *stardict.StarDict
	BkTree       *bktree.BKTree
	// contains filtered or unexported fields
}

*

  • StarDict support stardict file type

func (*StarDict) BuildIndex

func (s *StarDict) BuildIndex() error

func (*StarDict) Description

func (s *StarDict) Description() *model.PlainDictionaryInfo

func (*StarDict) DictType

func (s *StarDict) DictType() model.DictType

func (*StarDict) KeyList

func (s *StarDict) KeyList() []string

func (*StarDict) Locate

func (s *StarDict) Locate(entry *model.KeyQueryIndex) ([]byte, error)

func (*StarDict) Lookup

func (s *StarDict) Lookup(keyword string) ([]byte, error)

func (*StarDict) LookupResource

func (s *StarDict) LookupResource(keyword string) ([]byte, error)

func (*StarDict) Name

func (s *StarDict) Name() string

func (*StarDict) Search

func (s *StarDict) Search(keyword string) ([]*model.KeyQueryIndex, error)

Jump to

Keyboard shortcuts

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