iberiar

package module
v0.0.0-...-5de8a6f Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 15 Imported by: 0

README

IBERIAR.EU

Iberian script transcription program and website. You can visit it on https://iberiar.eu

Development

  • Before editting the text, install the iberian font from here.
  • You need to setup a Go programming environment.

Testing

Simply run this commands:

> make
> ./bin/iberiar
> firefox http://127.0.0.1:8080

Todo

  • Expose all the sillabaries to the website.
  • Add more SVG templates.
  • Complete the mapping tables.
  • Add references, tables etc to the website.
  • A lot.

Collaborating

For making bug reports, feature requests and donations visit one of the following links:

  1. gemini://harkadev.com/oss/
  2. https://harkadev.com/oss/

Documentation

Index

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 GetError

func GetError(err error, languages ...string) string

GetError returns the error string intended for the user.

func GetField

func GetField(err error) string

GetField returns the error field, or "" if none.

func GetString

func GetString(msg L10N, languages ...string) string

GetString translates the message to one of the languages. If none is found the default message is returned.

func GetTemplate

func GetTemplate(name string) (tmpl *template.Template, err error)

GetTemplate returns an SVG template.

func IberianSVG

func IberianSVG(ctx *gin.Context)

func IberianText

func IberianText(ctx *gin.Context)

func IndexPage

func IndexPage(ctx *gin.Context)

func InitWebsite

func InitWebsite(r *gin.Engine) (err error)

func LatinText

func LatinText(ctx *gin.Context)

func PrintInscription

func PrintInscription(ins Inscription, fp io.Writer, tmpl string) (err error)

PrintInscription .

func ToIberian

func ToIberian(txt string, runes []Rune) (iberian string, latin string, err error)

ToIberian writes the script in `txt` using the runes in `runes`.

Types

type Inscription

type Inscription struct {
	Line1 string
	Line2 string
	Line3 string
}

Inscription holds the text for a inscription.

func CreateInscription

func CreateInscription(txt string) (res Inscription)

CreateInscription .

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 (m Message) GetDomainLocaleDir() string

func (Message) GetDomainLocaleFS

func (m Message) GetDomainLocaleFS() embed.FS

func (Message) GetDomainName

func (m Message) GetDomainName() string

func (Message) GetUserMessage

func (m Message) GetUserMessage() string

func (Message) String

func (m Message) String() string

type Rune

type Rune struct {
	From      string
	ToLatin   string
	ToIberian string
}

Rune .

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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