Skip to content

Commit

Permalink
Merge pull request #24 from MarvNC/23-update-jmdictjmnedict-titles-an…
Browse files Browse the repository at this point in the history
…d-revision-for-kanjidic
  • Loading branch information
MarvNC authored Jul 26, 2024
2 parents 1a7618b + d9dd1bf commit 3aadf87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
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

0 comments on commit 3aadf87

Please sign in to comment.