jmdict

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 0 Imported by: 0

README

jmdict

This directory tests generating a Go struct for the JMdict project.

Since the JMdict project's data file is extremely large and includes profanity, it is not included in the repo by default.

To enable this test you must first download the data file by running this command in the the project's root directory:

$ curl -o internal/tests/jmdict/testdata/JMdict.gz ftp://ftp.edrdg.org/pub/Nihongo/JMdict.gz

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	EntSeq int     `xml:"ent_seq"`
	KEle   []KEle  `xml:"k_ele"`
	REle   []REle  `xml:"r_ele"`
	Sense  []Sense `xml:"sense"`
}

type Gloss

type Gloss struct {
	GType    *string `xml:"g_type,attr"`
	Lang     *string `xml:"lang,attr"`
	CharData string  `xml:",chardata"`
}

type JMDict

type JMDict struct {
	Entry []Entry `xml:"entry"`
}

type KEle

type KEle struct {
	KeInf []string `xml:"ke_inf"`
	KePri []string `xml:"ke_pri"`
	Keb   string   `xml:"keb"`
}

type LSource

type LSource struct {
	LSType   *string `xml:"ls_type,attr"`
	LSWasei  *string `xml:"ls_wasei,attr"`
	Lang     *string `xml:"lang,attr"`
	CharData string  `xml:",chardata"`
}

type REle

type REle struct {
	ReInf     []string  `xml:"re_inf"`
	ReNoKanji *struct{} `xml:"re_nokanji"`
	RePri     []string  `xml:"re_pri"`
	ReRestr   []string  `xml:"re_restr"`
	Reb       string    `xml:"reb"`
}

type Sense

type Sense struct {
	Ant     []string  `xml:"ant"`
	Dial    []string  `xml:"dial"`
	Field   []string  `xml:"field"`
	Gloss   []Gloss   `xml:"gloss"`
	LSource []LSource `xml:"lsource"`
	Misc    []string  `xml:"misc"`
	Pos     []string  `xml:"pos"`
	SInf    *string   `xml:"s_inf"`
	STagK   []string  `xml:"stagk"`
	STagR   []string  `xml:"stagr"`
	XRef    []string  `xml:"xref"`
}

Jump to

Keyboard shortcuts

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