Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Go package translit implements non-standard one-way string transliteration from Cyrillic to Latin.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README
Octocat-spinner-32 translit.go
Octocat-spinner-32 translit_test.go
README
PACKAGE

package translit

Package translit implements non-standard one-way string transliteration from Cyrillic to Latin.


VARIABLES

// Mapping of Russian Cyrillic characters to ASCII Latin.
var RussianASCII map[int]string

// Mapping of Cyrillic characters to (Czech/Serbian) Latin.
var CyrillicLatin map[int]string


FUNCTIONS

func ToLatin(s string, table map[int]string) string

ToLatin returns a string transliterated using provided mapping table.
Runes that cannot be transliterated inserted as-is.


EXAMPLE

translit.ToLatin("Привет, Человек", translit.RussianASCII)
// Privet, Chelovek
Something went wrong with that request. Please try again.