Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Add glossary attribute "g_type" for jmdict Rev 1.09 #2

Merged
merged 2 commits into from
Mar 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions jmdict.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ type JmdictGlossary struct {
// a noun in the target language. When absent, the gender is either
// not relevant or has yet to be provided.
Gender *string `xml:"g_gend"`

// g_type attribute added in jmdict Rev 1.09
// At present the values used are "lit", "fig", "expl" and "tm". It is
// proposed to add a "descr" value to indicate a gloss which is a
// description of the Japanese term rather than a translation or an
// explanation of the meaning.
Type *string `xml:"g_type,attr"`
}

type JmdictSense struct {
Expand Down