1

Simplify declaration of constants

This commit is contained in:
stephenmk 2023-01-29 20:06:46 -06:00
parent 8b4b899959
commit aab031972c
No known key found for this signature in database
GPG Key ID: B6DA730DB06235F1

View File

@ -5,26 +5,28 @@ type LangCode struct {
code string code string
} }
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/" 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/"
const prioritySymbol = "★" prioritySymbol = "★"
const rareKanjiSymbol = "🅁" rareKanjiSymbol = "🅁"
const irregularSymbol = "⚠" irregularSymbol = "⚠"
const outdatedSymbol = "⛬" outdatedSymbol = "⛬"
const defaultSymbol = "㊒" defaultSymbol = "㊒"
const priorityTagName = "⭐" priorityTagName = "⭐"
const rareKanjiTagName = "R" rareKanjiTagName = "R"
const irregularTagName = "⚠️" irregularTagName = "⚠️"
const outdatedTagName = "⛬" outdatedTagName = "⛬"
const atejiTagName = "ateji" atejiTagName = "ateji"
const gikunTagName = "gikun" gikunTagName = "gikun"
const langMarker = "'🌐 '" langMarker = "'🌐 '"
const noteMarker = "'📝 '" noteMarker = "'📝 '"
const infoMarker = "' '" infoMarker = "' '"
const refMarker = "'➡️ '" refMarker = "'➡️ '"
const antonymMarker = "'🔄 '" antonymMarker = "'🔄 '"
)
var ISOtoFlag = map[string]string{ var ISOtoFlag = map[string]string{
"": "'🇬🇧 '", "": "'🇬🇧 '",