Documentation ¶
Overview ¶
Package ccst provides Conversion between Simplified and Traditional Chinese-Characters.
This is a simple implementation of Chinese one-to-one conversion. If you need more advanced converter, please visit OpenCC https://github.com/BYVoid/OpenCC
Package ccst - Chinese-Characters Simplified <=> Traditional
Example (Output) ¶
for standalone test, change package to main and the next func def to, func main() {
package main import ( "fmt" ccst "github.com/go-cc/cc-jianfan" ) func main() { sj := "看书学习。\n名著:《红楼梦》〖清〗曹雪芹 著、高鹗 续/『人民文学』出版社/1996—9月30日/59.70【元】,《三国演义》〖明〗罗贯中。" sf := ccst.S2T(sj) fmt.Println(sf)
Output: 看書學習。 名著:《紅樓夢》〖清〗曹雪芹 著、高鶚 續/『人民文學』齣版社/1996—9月30日/59.70【元】,《三國演義》〖明〗羅貫中。 看书学习。 名著:《红楼梦》〖清〗曹雪芹 著、高鹗 续/『人民文学』出版社/1996—9月30日/59.70【元】,《三国演义》〖明〗罗贯中。 增补台湾标准IT词汇。 增補臺灣標準IT詞匯。
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.