Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct {
Parts []*RecordItem
}
Definition contains translation items
type RawDict ¶
type RawDict struct {
// contains filtered or unexported fields
}
RawDict implements in-memory dictionary
type RawIdx ¶
type RawIdx struct {
// contains filtered or unexported fields
}
RawIdx implements an in-memory index for a dictionary
type RecordItem ¶
RecordItem contain single translation item
type StarDict ¶
type StarDict struct {
// contains filtered or unexported fields
}
StarDict stardict dictionary
func NewStarDict ¶
NewStarDict returns a new StarDict path - path to dictionary files name - name of dictionary to parse
func (*StarDict) BuildIndex ¶
func (*StarDict) GetBookName ¶
GetBookName returns book name
func (*StarDict) GetWordCount ¶
GetWordCount returns number of words in the dictionary
Click to show internal directories.
Click to hide internal directories.