Skip to content

Commit 6c071bc

Browse files
authored
Merge pull request #16 from Kuuuube/rarekana-forms
Add rare symbol to jmdict forms for rarekana
2 parents 9c5bef9 + 43f80fe commit 6c071bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jmdict_constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const (
99
edrdgAttribution = "This publication has included material from the JMdict (EDICT, etc.) dictionary files in accordance with the licence provisions of the Electronic Dictionaries Research Group. See http://www.edrdg.org/"
1010

1111
prioritySymbol = "★"
12-
rareKanjiSymbol = "🅁"
12+
rareSymbol = "🅁"
1313
irregularSymbol = "⚠"
1414
outdatedSymbol = "⛬"
1515
defaultSymbol = "㊒"

jmdict_forms.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ func (h *headword) InfoSymbols() string {
1313
if h.IsPriority {
1414
infoSymbols = append(infoSymbols, prioritySymbol)
1515
}
16-
if h.IsRareKanji {
17-
infoSymbols = append(infoSymbols, rareKanjiSymbol)
16+
if h.IsRareKanji || h.IsRareKana {
17+
infoSymbols = append(infoSymbols, rareSymbol)
1818
}
1919
if h.IsIrregular {
2020
infoSymbols = append(infoSymbols, irregularSymbol)

0 commit comments

Comments
 (0)