https://github.com/xuender/godecode
ASCII transliterations of Unicode text for go lang
https://github.com/xuender/godecode
Last synced: 2 months ago
JSON representation
ASCII transliterations of Unicode text for go lang
- Host: GitHub
- URL: https://github.com/xuender/godecode
- Owner: xuender
- License: mit
- Created: 2014-10-03T09:12:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-03T14:21:14.000Z (over 10 years ago)
- Last Synced: 2025-02-09T19:41:01.144Z (4 months ago)
- Language: Go
- Homepage:
- Size: 238 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GoDecode
========
[](https://travis-ci.org/xuender/godecode)ASCII transliterations of Unicode text for go lang.
## How to Use ##
### Install
```shell
go get github.com/xuender/godecode
```### Decode
```go
var gd godecode.GoDecode
gd.Init("/path/data")
fmt.Println(gd.Decode("南无阿弥陀佛"))
Nan Wu A Mi Tuo Fofmt.Println(gd.Decode("一条会走路的鱼"));
Yi Tiao Hui Zou Lu De Yufmt.Println(gd.Decode("あみだにょらい"));
amidaniyorai
```
### Initials
```go
fmt.Println(gd.Initials("南无阿弥陀佛"));
NWAMTFfmt.Println(gd.Initials("不怨人就是成佛的大道根"));
BYRJSCFDDDGfmt.Println(gd.Initials("Κνωσός"));
K
```## Reference ##
[GoDecode2](https://github.com/xuender/godecode2)
[Unidecode for Java](https://github.com/xuender/unidecode)
[Unidecode for Python](https://pypi.python.org/pypi/Unidecode)