Skip to content

Commit

Permalink
Merge pull request #16 from Kuuuube/rarekana-forms
Browse files Browse the repository at this point in the history
Add rare symbol to jmdict forms for rarekana
  • Loading branch information
jamesmaa authored Jun 18, 2024
2 parents 9c5bef9 + 43f80fe commit 6c071bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jmdict_constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const (
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/"

prioritySymbol = "★"
rareKanjiSymbol = "🅁"
rareSymbol = "🅁"
irregularSymbol = "⚠"
outdatedSymbol = "⛬"
defaultSymbol = "㊒"
Expand Down
4 changes: 2 additions & 2 deletions jmdict_forms.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ func (h *headword) InfoSymbols() string {
if h.IsPriority {
infoSymbols = append(infoSymbols, prioritySymbol)
}
if h.IsRareKanji {
infoSymbols = append(infoSymbols, rareKanjiSymbol)
if h.IsRareKanji || h.IsRareKana {
infoSymbols = append(infoSymbols, rareSymbol)
}
if h.IsIrregular {
infoSymbols = append(infoSymbols, irregularSymbol)
Expand Down

0 comments on commit 6c071bc

Please sign in to comment.