pinyingo

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StyleNormal      = 1
	StyleTone        = 2
	StyleInitials    = 3
	StyleFirstLetter = 4
	UseSegment       = true
	NoSegment        = false
)

常量

Variables

This section is empty.

Functions

func Init

func Init(confDir string)

Init 用户指定多音词表和汉字库表文件

Types

type Py

type Py struct {
	// contains filtered or unexported fields
}

Py 拼音对象

func NewPy

func NewPy(style int, segment bool) *Py

NewPy 返回一个拼音配置对象

func (*Py) Convert

func (py *Py) Convert(strs string) []string

Convert 根据配置返回拼音字符串

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址