Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shmokmt/go-zhuyin

A utility tool that converts Chinese characters to Zhuyin
https://github.com/shmokmt/go-zhuyin

bopomofo taiwanese zhuyin

Last synced: 9 days ago
JSON representation

A utility tool that converts Chinese characters to Zhuyin

Awesome Lists containing this project

README

        

# go-zhuyin

[![Go Reference](https://pkg.go.dev/badge/github.com/shmokmt/go-zhuyin.svg)](https://pkg.go.dev/github.com/shmokmt/go-zhuyin)
[![Test](https://github.com/shmokmt/go-zhuyin/actions/workflows/go.yml/badge.svg)](https://github.com/shmokmt/go-zhuyin/actions/workflows/go.yml)

A utility tool that converts Chinese characters to zhuyin(a.k.a bopomofo).

## Usage

```go
package main

import (
"fmt"

"github.com/shmokmt/go-zhuyin"
)

func main() {
fmt.Print(zhuyin.Convert("日本人")) // ㄖˋ ㄅㄣˇ ㄖㄣˊ
}
```

```
$ zhuyin 日本人
ㄖˋ ㄅㄣˇ ㄖㄣˊ
```

## Author

shmokmt