skkdict

package module
v0.0.0-...-88a4fbe Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 6 Imported by: 1

README

SKK dictionary reader

GoDoc Build Status

Example

import skkdict "github.com/koron/go-skkdict"

f, err := os.Open("SKK-JISYO.utf-8.S")
if err != nil {
	panic(err)
}
defer f.Close()

r := skkdict.NewReader(f)
for {
	entry, err := r.Read()
	if err != nil {
		break
	}
	fmt.Printf("%+v\n", entry)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Label string
	Words []Word
}

Entry represents an entry in SKK dictionary.

type Reader

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

Reader reads SKK dictionary file and parses as Entry.

func NewReader

func NewReader(r io.Reader) *Reader

NewReader creates a SKK dictionary Reader.

func (*Reader) Read

func (r *Reader) Read() (*Entry, error)

Read reads an entry.

type Word

type Word struct {
	Text string
	Desc string
}

Word represents a word.

Jump to

Keyboard shortcuts

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