汉字转拼音应用 alchemic_pinyin

码农软件 · 软件分类 · 拼音转换工具包 · 2019-08-04 10:28:05

软件介绍

alchemic_pinyin是一个中文汉字转拼音应用。

安装

添加“pinyin”到您 mix.exs 中的依赖列表 

def deps do
  [{:alchemic_pinyin, "~> 0.1.0"}]
end

确保“pinyin”已经启动

def application do
  [applications: [:alchemic_pinyin]]
end

用法

iex> Pinyin.from_string("龡龢龣龤龥癩")
"chui he jue xie yu la"
iex> Pinyin.from_string("龡龢龣龤龥癩", tone: true)
"chùi hé júe xíe yù là"
iex> Pinyin.from_string("龡龢龣龤龥癩", splitter: "-")
"chui-he-jue-xie-yu-la"
iex> Pinyin.from_string("龡龢龣龤龥癩", [], &String.first/1)
"c"

基准测试

mix bench

OS X

2.7 GHz Intel Core i5 8 GB 1867 MHz DDR3

Settings:
  duration:      1.0 s

BasicBench
  [14:01:23] 1/1: hello pinyin

Finished in 4.11 seconds

BasicBench
  hello pinyin      500000   6.73 µs/op

本文地址:https://codercto.com/soft/d/11614.html

Realm of Racket

Realm of Racket

Matthias Felleisen、Conrad Barski M.D.、David Van Horn、Eight Students Northeastern University of / No Starch Press / 2013-6-25 / USD 39.95

Racket is the noble descendant of Lisp, a programming language renowned for its elegance and power. But while Racket retains the functional goodness of Lisp that makes programming purists drool, it wa......一起来看看 《Realm of Racket》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具