.
This commit is contained in:
parent
d0c5337c01
commit
0803d1a8bf
12
edict.go
12
edict.go
@ -85,7 +85,7 @@ type edictReading struct {
|
|||||||
// as a true reading of the kanji. It is typically used for words
|
// as a true reading of the kanji. It is typically used for words
|
||||||
// such as foreign place names, gairaigo which can be in kanji or
|
// such as foreign place names, gairaigo which can be in kanji or
|
||||||
// katakana, etc.
|
// katakana, etc.
|
||||||
NoKanji string `xml:"re_nokanji"`
|
NoKanji *string `xml:"re_nokanji"`
|
||||||
|
|
||||||
// This element is used to indicate when the reading only applies
|
// This element is used to indicate when the reading only applies
|
||||||
// to a subset of the keb elements in the entry. In its absence, all
|
// to a subset of the keb elements in the entry. In its absence, all
|
||||||
@ -234,7 +234,15 @@ type edictEntry struct {
|
|||||||
|
|
||||||
func processEdict(reader io.Reader, writer io.Writer) error {
|
func processEdict(reader io.Reader, writer io.Writer) error {
|
||||||
entries, err := loadEdict(reader)
|
entries, err := loadEdict(reader)
|
||||||
log.Print(entries)
|
|
||||||
|
for _, entry := range entries {
|
||||||
|
if len(entry.Reading) > 0 {
|
||||||
|
for _, reading := range entry.Reading {
|
||||||
|
log.Print(reading.NoKanji)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user