PHP 的拼音扩展 pinyin-php

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

软件介绍

pinyin-php是一个C语言编写的php扩展,用于将汉字翻译为汉语拼音。

v0.4.0
通过逆序中文分词的方法实现提高多音字识别。
将字词库置于程序之外通过php.ini配置文件指定路径加载。

配置
在php.ini中添加如下内容

extension=/path/to/pinyin.so
pinyin.chars=/path/to/chars.csv
pinyin.words=/path/to/words.csv

使用

echo pinyin("汉"),"\n";
// hàn
echo pinyin("わたしわ阿飞, and my English name is Rex Lee. 网名是独孤影! ^_^。下面是一段多音分词歧义测试,这个人无伤无臭味。"),"\n";
// わたしわāfēi, and my English name is Rex Lee. wǎngmíngshìdúgūyǐng! ^_^。xiàmiànshìyīduànduōyīnfēncíqíyìcèshì,zhègèrénwúshāngwúchòuwèi。

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

Chinese Authoritarianism in the Information Age

Chinese Authoritarianism in the Information Age

Routledge / 2018-2-13 / GBP 115.00

This book examines information and public opinion control by the authoritarian state in response to popular access to information and upgraded political communication channels among the citizens in co......一起来看看 《Chinese Authoritarianism in the Information Age》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具