utils

package
v0.0.0-...-581adf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Languages = map[string]Language{}/* 7863 elements not displayed */

Languages are a list of languages

View Source
var (
	// TTLFiles are the dbnary files
	TTLFiles = []TTLFile{
		{"bg_dbnary_ontolex.ttl.bz2", "bul", "bulgarian"},
		{"de_dbnary_ontolex.ttl.bz2", "deu", "german"},
		{"el_dbnary_ontolex.ttl.bz2", "ell", "greek"},
		{"en_dbnary_ontolex.ttl.bz2", "eng", "english"},
		{"es_dbnary_ontolex.ttl.bz2", "spa", "spanish"},
		{"fi_dbnary_ontolex.ttl.bz2", "fin", "finnish"},
		{"fr_dbnary_ontolex.ttl.bz2", "fra", "french"},
		{"id_dbnary_ontolex.ttl.bz2", "ind", "indonesian"},
		{"it_dbnary_ontolex.ttl.bz2", "ita", "italian"},
		{"ja_dbnary_ontolex.ttl.bz2", "jpn", "japanese"},
		{"la_dbnary_ontolex.ttl.bz2", "lat", "latin"},
		{"lt_dbnary_ontolex.ttl.bz2", "lit", "lithuanian"},
		{"mg_dbnary_ontolex.ttl.bz2", "mlg", "malagasy"},
		{"nl_dbnary_ontolex.ttl.bz2", "nld", "dutch"},
		{"no_dbnary_ontolex.ttl.bz2", "nor", "norwegian"},
		{"pl_dbnary_ontolex.ttl.bz2", "pol", "polish"},
		{"pt_dbnary_ontolex.ttl.bz2", "por", "portuguese"},
		{"ru_dbnary_ontolex.ttl.bz2", "rus", "russian"},
		{"sh_dbnary_ontolex.ttl.bz2", "hbs", "serbo-croatian"},
		{"sv_dbnary_ontolex.ttl.bz2", "swe", "swedish"},
		{"tr_dbnary_ontolex.ttl.bz2", "tur", "turkish"},
	}
)

Functions

This section is empty.

Types

type Language

type Language struct {
	ID      string
	Part2B  string
	Part2T  string
	Part1   string
	Scope   LanguageScope
	Type    LanguageType
	Name    string
	Comment string
}

Language is a language

type LanguageScope

type LanguageScope uint8

LanguageScope is the scope of the language

const (
	// LanguageScopeIndividual is an individual language scope
	LanguageScopeIndividual LanguageScope = iota
	// LanguageScopeMacrolanguage is a macro language scope
	LanguageScopeMacrolanguage
	// LanguageScopeSpecial is a special language scope
	LanguageScopeSpecial
)

type LanguageType

type LanguageType uint8

LanguageType is a language type

const (
	// A is an ancient language type
	LanguageTypeAncient LanguageType = iota
	// LanguageTypeConstructed is a constructed language
	LanguageTypeConstructed
	// LanguageTypeExtinct is a extinct language
	LanguageTypeExtinct
	// LanguageTypeHistorical is a historical language
	LanguageTypeHistorical
	// LanguageTypeLiving is a living language
	LanguageTypeLiving
	// LanguageTypeSpecial is a special language
	LanguageTypeSpecial
)

type TTLFile

type TTLFile struct {
	Name, Key, Full string
}

TTLFile is a ttl file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL