Readme of pinyin4j
Table of content
I. Main Features
II. Future work
III.How to install
IV. Getting start
V. Author
VI. Copyright
I. Main Features
1. Support convertion from Chinese character (both Simplified and Tranditional) to different Chinese Romanization systems
2. Support various target Chinese Romanization systems, including Hanyu Pinyin, Tongyong Pinyin, Wade-Giles, MPS2 (Mandarin Phonetic Symbols 2), Yale and Gwoyeu Romatzyh
2. Support multiple pronounciations of a single Chinese character
3. Several output format
3.1. Uppercase or lowercase
3.2. v or u: or unicode ü
3.3. unicode output with tone numbers, with tone marks or without tone
II. Future work
1. Provide format functions to other Chinese Romanization systems excluding Hanyu Pinyin
2. Provide Pinyin to Chinese
3. Provide coverage test to discover unknown Chinese characters
III. How to install
1. Add lib/pinyin4j-2.5.0.jar to your classpath
2. Import necessary class files
import net.sourceforge.pinyin4j.PinyinHelper
import net.sourceforge.pinyin4j.format.* // this import is necessary only when you use the output format function
IV. Getting start
1. open command-line window, type
cd ${pinyin-install-dir}\lib
2. In lib directory, there is a JAR file named pinyin4j-2.5.0.jar, type
java -jar pinyin4j-2.5.0.jar
run the GUI demo application
3. If you want to modify the source and compile it, you may need download sparta.jar from http://sparta-xml.sourceforge.net/ and add it to classpath.
(Pinyin4j adds sparta-xml library into pinyin4j-2.5.0.jar file already. Therefore you don't need the sparta.jar if you simply use pinyin4j without re-compiling it.)
NOTE: the java files using pinyin4j should be save as unicode-supporting encoding, such as UTF-8
V. Author
Li Min ([email protected])
You can reach me at:
Blogger: http://lemann.blogspot.com/
My.Opera: http://my.opera.com/lemann/
VI. Copyright
1. The dictionary file contains Chinese Unicode to Hanyu Pinyin mapping is got from internet, named "uc-to-py.tbl". The auther is stolfi.
2. The comparsion table among Tongyong Pinyin, Wade-Giles, MPS2, Yale, Hanyu Pinyin, and Gwoyeu Romatzyh are got from http://www.pinyin.info/romanization/compare/tongyong.html
3. The algorithm for placing tone marks is got from http://en.wikipedia.org/wiki/Pinyin#Rules_for_placing_the_tone_mark
4. The XML and XPath parsing library is got from http://sparta-xml.sourceforge.net/
5. The release of Pinyin4j library is based on GNU GENERAL PUBLIC LICENSE (GPL). See more details about GPL, please refer to COPYING.txt
没有合适的资源?快使用搜索试试~ 我知道了~
利用Java开源库把汉字转拼音

共103个文件
html:78个
java:17个
txt:3个


温馨提示
pinyin4j能够根据中文字符获取其对应的拼音,而且拼音的格式可以定制。 pinyin4j是一个支持将中文转换到拼音的Java开源类库。 支持简体中文和繁体中文字符; 支持转换到汉语拼音,通用拼音, 威妥玛拼音(威玛拼法), 注音符号第二式, 耶鲁拼法和国语罗马字; 支持多音字,即可以获取一个中文字符的多种发音; 支持多种字符串输出格式,比如支持Unicode格式的字符ü和声调符号(阴平 "ˉ",阳平"ˊ",上声"ˇ",去声"ˋ")的输出。
资源推荐
资源详情
资源评论

















收起资源包目录





































































































共 103 条
- 1
- 2
资源评论

- socialchen2013-11-23对我有帮助,感谢分享
- Passest2015-02-05这个可以用 我用JAVA写的代码可以转汉字拼音
- 少爷凡隐2013-01-01很有帮助,虽然没有达到自己预想的目标
- ld312122011-11-30没发现怎么识别多音字。还是很有帮助的,很好的资源

hebeiliuzhao0909
- 粉丝: 5
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 上海市建设工程建筑渣土承运合同.doc
- 办公大楼综合布线系统设计方案二.doc
- GMP培训教材-提取车间安全生产操作知识解释问答.doc
- 普外科出科考试试题.doc
- 广东高速公路桥梁墩柱施工技术交底.doc
- 财务工资管理系统解决方案.doc
- VDA6.3-提问表(潜在供方分析P1).docx
- 华为技术有限公司是一家生产销售通信设备的民营通信科技公司.doc
- 中石化物流培训方案-3-16.doc
- 土石方开挖放坡系数计算法.doc
- 磨床砂轮主轴热处理工艺设计周延源.docx
- 2023年云计算云服务考试试题答案解析试题库完整.doc
- -培训与开发(习题).doc
- HR试题新版.docx
- 如何提高物流配送水平精.doc
- 软件著作权申请截图完整的要求.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
