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 (xmlerlimin@gmail.com)
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
没有合适的资源?快使用搜索试试~ 我知道了~
pinyin4j.jar+代码
共102个文件
html:78个
java:17个
txt:3个
5星 · 超过95%的资源 需积分: 10 24 下载量 14 浏览量
2018-05-17
14:30:14
上传
评论
收藏 360KB ZIP 举报
温馨提示
一分分享,帮助各位,不得不感叹一句,在中国做研发比外国要辛苦啊。起码字符集就多了那么多,而且也没得到很多基本的支持,然后引发的一连串问题。例如乱码,汉字排序,转拼音等什么的
资源推荐
资源详情
资源评论
收起资源包目录
pinyin4j.jar+代码 (102个子文件)
stylesheet.css 1KB
inherit.gif 57B
PinyinHelper.html 32KB
HanyuPinyinOutputFormat.html 23KB
ChineseToPinyinResource.html 18KB
PinyinRomanizationType.html 17KB
HanyuPinyinToneType.html 16KB
index-5.html 16KB
HanyuPinyinVCharType.html 16KB
GwoyeuRomatzyhResource.html 16KB
PinyinRomanizationResource.html 15KB
HanyuPinyinCaseType.html 14KB
PinyinFormatter.html 13KB
index-14.html 13KB
PinyinRomanizationType.html 13KB
ChineseToPinyinResource.Field.html 13KB
BadHanyuPinyinOutputFormatCombination.html 12KB
GwoyeuRomatzyhTranslator.html 12KB
PinyinRomanizationTranslator.html 12KB
HanyuPinyinToneType.html 12KB
HanyuPinyinVCharType.html 12KB
BadHanyuPinyinOutputFormatCombination.html 12KB
PinyinRomanizationResource.PinyinRomanizationSystemResourceHolder.html 12KB
HanyuPinyinOutputFormat.html 12KB
GwoyeuRomatzyhResource.GwoyeuRomatzyhSystemResourceHolder.html 12KB
ChineseToPinyinResource.ChineseToPinyinResourceHolder.html 12KB
HanyuPinyinCaseType.html 12KB
index-2.html 11KB
index-11.html 11KB
TextHelper.html 11KB
index-13.html 11KB
ResourceHelper.html 10KB
package-summary.html 10KB
help-doc.html 10KB
overview-tree.html 9KB
index-6.html 9KB
PinyinRomanizationResource.html 9KB
ChineseToPinyinResource.html 9KB
GwoyeuRomatzyhResource.html 9KB
index-17.html 9KB
package-tree.html 9KB
package-use.html 9KB
constant-values.html 8KB
package-use.html 8KB
index-7.html 8KB
index-10.html 8KB
index-12.html 8KB
package-summary.html 7KB
index-1.html 7KB
package-use.html 7KB
index-15.html 7KB
index-8.html 7KB
index-3.html 7KB
package-tree.html 7KB
index-4.html 7KB
index-9.html 7KB
index-16.html 7KB
deprecated-list.html 7KB
index-18.html 7KB
package-summary.html 7KB
PinyinRomanizationResource.PinyinRomanizationSystemResourceHolder.html 7KB
package-tree.html 6KB
GwoyeuRomatzyhResource.GwoyeuRomatzyhSystemResourceHolder.html 6KB
ChineseToPinyinResource.ChineseToPinyinResourceHolder.html 6KB
serialized-form.html 6KB
ChineseToPinyinResource.Field.html 6KB
PinyinRomanizationTranslator.html 6KB
overview-summary.html 6KB
GwoyeuRomatzyhTranslator.html 6KB
PinyinFormatter.html 6KB
ResourceHelper.html 6KB
PinyinHelper.html 6KB
TextHelper.html 6KB
allclasses-frame.html 4KB
allclasses-noframe.html 3KB
package-frame.html 3KB
overview-frame.html 1KB
package-frame.html 1KB
index.html 1KB
package-frame.html 1KB
pinyin4j-2.5.0.jar 184KB
Pinyin4jAppletDemo.java 29KB
PinyinHelperTest.java 25KB
PinyinHelper.java 14KB
PinyinFormatter.java 7KB
ChineseToPinyinResource.java 6KB
HanyuPinyinOutputFormat.java 5KB
PinyinRomanizationTranslator.java 3KB
GwoyeuRomatzyhResource.java 3KB
PinyinRomanizationResource.java 3KB
GwoyeuRomatzyhTranslator.java 3KB
HanyuPinyinToneType.java 3KB
HanyuPinyinVCharType.java 3KB
PinyinRomanizationType.java 2KB
HanyuPinyinCaseType.java 2KB
TextHelper.java 1KB
BadHanyuPinyinOutputFormatCombination.java 1KB
ResourceHelper.java 1KB
package-list 102B
COPYING.txt 15KB
共 102 条
- 1
- 2
资源评论
- fuxuming2020-08-25谢谢楼主分享
普通网友
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功