Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JMdict/JMnedict titles and Revision for KANJIDIC #24

Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions jmdict.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ func jmdictExportDb(inputPath string, outputPath string, languageName string, ti
title = "JMdict"
}
jmdictDate := jmdictPublicationDate(dictionary)
title = title + " [" + jmdictDate + "]"

index := dbIndex{
Title: title,
Expand Down
1 change: 1 addition & 0 deletions jmdict_forms.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func formsExportDb(inputPath, outputPath, languageName, title string, stride int
}

jmdictDate := jmdictPublicationDate(dictionary)
title = title + " [" + jmdictDate + "]"

index := dbIndex{
Title: title,
Expand Down
1 change: 1 addition & 0 deletions jmnedict.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func jmnedictExportDb(inputPath, outputPath, language, title string, stride int,
title = "JMnedict"
}
jmnedictDate := jmnedictPublicationDate(dictionary)
title = title + " [" + jmnedictDate + "]"

index := dbIndex{
Title: title,
Expand Down
4 changes: 3 additions & 1 deletion kanjidic.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func kanjidicExportDb(inputPath, outputPath, language, title string, stride int,
if title == "" {
title = "KANJIDIC2"
}
kanjidicDate := dict.Header.DatabaseVersion
title = title + " [" + kanjidicDate + "]"

tags := dbTagList{
dbTag{Name: "jouyou", Notes: "included in list of regular-use characters", Category: "frequent", Order: -5},
Expand Down Expand Up @@ -161,7 +163,7 @@ func kanjidicExportDb(inputPath, outputPath, language, title string, stride int,

index := dbIndex{
Title: title,
Revision: "kanjidic2",
Revision: "kanjidic2." + kanjidicDate,
Sequenced: false,
Attribution: edrdgAttribution,
}
Expand Down