Documentation ¶
Index ¶
- Variables
- func GetError(err error, languages ...string) string
- func GetField(err error) string
- func GetString(msg L10N, languages ...string) string
- func GetTemplate(name string) (tmpl *template.Template, err error)
- func IberianSVG(ctx *gin.Context)
- func IberianText(ctx *gin.Context)
- func IndexPage(ctx *gin.Context)
- func InitWebsite(r *gin.Engine) (err error)
- func LatinText(ctx *gin.Context)
- func PrintInscription(ins Inscription, fp io.Writer, tmpl string) (err error)
- func ToIberian(txt string, runes []Rune) (iberian string, latin string, err error)
- type Inscription
- type L10N
- type Message
- type Rune
Constants ¶
This section is empty.
Variables ¶
View Source
var SillabaryNorthEastDual []Rune = []Rune{
{" *", "", ""},
{"[,.;]", "·", ""},
{"h", "", ""},
{"a", "A", ""},
{"e", "E", ""},
{"i", "I", ""},
{"o", "O", ""},
{"u", "U", ""},
{"ga", "GA", ""},
{"ge", "GE", ""},
{"gi", "GI", ""},
{"go", "GO", ""},
{"ka", "KA", ""},
{"ke", "KE", ""},
{"ki", "KI", ""},
{"ko", "KO", ""},
{"[gk]u", "KU", ""},
{"ba", "BA", ""},
{"be", "BE", ""},
{"bi", "BI", ""},
{"bo", "BO", ""},
{"bu", "BU", ""},
{"da", "DA", ""},
{"de", "DE", ""},
{"di", "DI", ""},
{"do", "DO", ""},
{"du", "DU", ""},
{"ta", "TA", ""},
{"te", "TE", ""},
{"ti", "TI", ""},
{"to", "TO", ""},
{"tu", "TU", ""},
{"t?z", "Z", ""},
{"s", "S", ""},
{"x", "S", ""},
{"rr", "RR", ""},
{"r", "R", ""},
{"l", "L", ""},
{"m", "M", ""},
{"n", "N", ""},
{"p", "P", ""},
}
SillabaryNorthEastDual .
View Source
var SillabaryNorthEastNonDual []Rune = []Rune{
{" *", "", ""},
{"[,.;]", "·", ""},
{"h", "", ""},
{"a", "A", ""},
{"e", "E", ""},
{"i", "I", ""},
{"o", "O", ""},
{"u", "U", ""},
{"[gkc]a", "(G/K)A", ""},
{"[gkc]e", "(G/K)E", ""}, {"que", "(G/K)E", ""},
{"[gkc]i", "(G/K)I", ""}, {"qui", "(G/K)I", ""},
{"[gkc]o", "(G/K)O", ""},
{"[gkc]u", "(G/K)U", ""},
{"[bv]a", "BA", ""},
{"[bv]e", "BE", ""},
{"[bv]i", "BI", ""},
{"[bv]o", "BO", ""},
{"[bv]u", "BU", ""},
{"[dt]a", "(D/T)A", ""},
{"[dt]e", "(D/T)E", ""},
{"[dt]i", "(D/T)I", ""},
{"[dt]o", "(D/T)O", ""},
{"[dt]u", "(D/T)U", ""},
{"t?z", "Z", ""},
{"s", "S", ""},
{"x", "S", ""},
{"rr", "RR", ""},
{"r", "R", ""},
{"l", "L", ""},
{"m", "M", ""},
{"n|ñ", "N", ""},
{"p", "P", ""},
{"k", "[K]", ""}, {"c", "[K]", ""},
{"t", "[T]", ""}, {"ch", "[T]", ""},
}
SillabaryNorthEastNonDual .
Functions ¶
func GetString ¶
GetString translates the message to one of the languages. If none is found the default message is returned.
func GetTemplate ¶
GetTemplate returns an SVG template.
func IberianSVG ¶
func IberianText ¶
func InitWebsite ¶
func PrintInscription ¶
func PrintInscription(ins Inscription, fp io.Writer, tmpl string) (err error)
PrintInscription .
Types ¶
type Inscription ¶
Inscription holds the text for a inscription.
type L10N ¶
type L10N interface { GetUserMessage() string GetDomainName() string GetDomainLocaleDir() string GetDomainLocaleFS() embed.FS }
L10N is an localizable (l10n) text. You can translate it with "GetString()".
type Message ¶
type Message struct {
S string
}
Internationalizable text. Execute "genl10n_go" in your project to generate "l10n.go" with functions to extract internationalized texts from this.
func (Message) GetDomainLocaleDir ¶
func (Message) GetDomainLocaleFS ¶
func (Message) GetDomainName ¶
func (Message) GetUserMessage ¶
Click to show internal directories.
Click to hide internal directories.