https://github.com/essentialkaos/translit
Go package for Russian text transliteration
https://github.com/essentialkaos/translit
golang golang-package transliteration
Last synced: 5 months ago
JSON representation
Go package for Russian text transliteration
- Host: GitHub
- URL: https://github.com/essentialkaos/translit
- Owner: essentialkaos
- License: apache-2.0
- Created: 2017-05-02T11:48:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-29T09:16:57.000Z (6 months ago)
- Last Synced: 2025-04-29T10:24:05.398Z (6 months ago)
- Topics: golang, golang-package, transliteration
- Language: Go
- Homepage: https://kaos.sh/g/translit.v3
- Size: 118 KB
- Stars: 33
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
CI Status • Usage Example • License
`translit` is a package for [Go 1.23+](https://github.com/essentialkaos/.github/blob/master/GO-VERSION-SUPPORT.md) for transliteration of Russian text.
Supported output formats:
* Scientific
* ISO 9:1995/A ГОСТ 7.79-2000/A
* ISO 9:1995/B ГОСТ 7.79-2000/Б
* BGN/PCGN
* ALA-LC
* BS 2979:1958
* ICAO (_ИКАО_)### [Usage example](https://go.dev/play/p/lrrxNRKu8rm)
```go
package mainimport (
"fmt"
"strings""github.com/essentialkaos/translit/v3"
)func main() {
firstName := "Владислав"
lastName := "Чернявенький"transliterator := translit.ICAO
tFistName := transliterator(strings.ToLower(firstName))[:1]
tLastName := transliterator(strings.ToLower(lastName))fmt.Printf("%s %s → %s.%s\n", firstName, lastName, tFistName, tLastName)
}
```### CI Status
| Branch | Status |
|------------|--------|
| `master` | [](https://kaos.sh/w/translit/ci?query=branch:master) |
| `develop` | [](https://kaos.sh/w/translit/ci?query=branch:develop) |### License
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)