Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/essentialkaos/translit
Go package for Russian text transliteration
https://github.com/essentialkaos/translit
golang golang-package transliteration
Last synced: 15 days 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 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-14T22:59:53.000Z (19 days ago)
- Last Synced: 2024-12-14T23:24:07.289Z (19 days ago)
- Topics: golang, golang-package, transliteration
- Language: Go
- Homepage: https://kaos.sh/g/translit.v3
- Size: 138 KB
- Stars: 33
- Watchers: 4
- 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.22+](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/PiuGUfXiM9y)
```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` | [![CI](https://kaos.sh/w/translit/ci.svg?branch=master)](https://kaos.sh/w/translit/ci?query=branch:master) |
| `develop` | [![CI](https://kaos.sh/w/translit/ci.svg?branch=develop)](https://kaos.sh/w/translit/ci?query=branch:develop) |### License
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)