Skip to content

dchest/translit.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages