Add glossary attribute "g_type" for jmdict Rev 1.09

This commit is contained in:
Stephen Kraus 2022-03-24 17:27:19 -05:00 committed by GitHub
parent 8c7ddb0c20
commit b77b2f92fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" and "expl". 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 {