transliteration

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 1 Imported by: 1

README

Transliteration

GO library for transliteration. 🇺🇦 🇬🇧 🔡

Build Status CodeCov Go Report Card License Gitter GoDoc

Requirements 🧐

  • GO >= 1.20

Available transliteration methods 🎁

From To Rules
Ukrainian Latin Resolution of the Cabinet of Ministers of Ukraine №55 dated January 27, 2010
https://zakon.rada.gov.ua/laws/show/55-2010-%D0%BF#Text

Using 👨‍🎓

main.go
package main

import (
    "fmt"
    "os"
    "strings"

    "github.com/fre5h/transliteration-go"
)

func main() {
    inputString := strings.Join(os.Args[1:], " ")
    transliteratedString := transliteration.UkrToLat(inputString)

    fmt.Println("transliterated text: ", transliteratedString)
}
bash
$ go get "github.com/fre5h/transliteration-go"@v1.1.5
go: downloading github.com/fre5h/transliteration-go v1.1.5
go: added github.com/fre5h/transliteration-go v1.1.5

$ go run main.go Слава Україні!
transliterated text: Slava Ukraini!
Some examples of Ukrainian-to-Latin transliteration ℹ️
Ukrainian text Transliterated text
Володимир Volodymyr
Богдан Bohdan
Жанна Zhanna
Наталія Nataliia
Олексій Oleksii
Уляна Uliana
Юрій Yurii

Contributing 🤝

See CONTRIBUTING file.

Documentation

Overview

Package transliteration does translit from Ukrainian to Latin.

According to the rules of transliteration, that are described in the resolution of the Cabinet of Ministers of Ukraine №55 dated January 27, 2010.

https://zakon.rada.gov.ua/laws/show/55-2010-%D0%BF#Text

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func UkrToLat

func UkrToLat(ukrainianText string) (transliteratedText string)

UkrToLat transliterates Ukrainian text into Latin in accordance with established rules

Example
fmt.Println(transliteration.UkrToLat("Слава Україні!"))
Output:

Slava Ukraini!

Types

This section is empty.

Jump to

Keyboard shortcuts

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