Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Go package translit implements non-standard one-way string transliteration from Cyrillic to Latin.
Go
Branch: master
Failed to load latest commit information.
.gitignore Add .gitignore
LICENSE Add license (MIT-like)
Makefile Initial commit.
README Add README.
translit.go Add license (MIT-like)
translit_test.go Add license (MIT-like)

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.