Merge pull request #2 from stephenmk/master

Add glossary attribute "g_type" for jmdict Rev 1.09
This commit is contained in:
Alex Yatskov 2022-03-30 09:31:49 -07:00 committed by GitHub
commit 5dd00f3bcb
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", "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 {