??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩电影在线观看完整版,日韩欧美中文字幕一区二区三区,国产成人亚洲综合http://www.aygfsteel.com/RenXiaoGuang/category/36099.htmlzh-cnThu, 20 Nov 2008 11:21:36 GMTThu, 20 Nov 2008 11:21:36 GMT60- 汉字转拼韻IPinYin4jQ?/title>http://www.aygfsteel.com/RenXiaoGuang/archive/2008/11/20/241556.htmlR_XiaoGuangR_XiaoGuangThu, 20 Nov 2008 01:56:00 GMThttp://www.aygfsteel.com/RenXiaoGuang/archive/2008/11/20/241556.htmlhttp://www.aygfsteel.com/RenXiaoGuang/comments/241556.htmlhttp://www.aygfsteel.com/RenXiaoGuang/archive/2008/11/20/241556.html#Feedback0http://www.aygfsteel.com/RenXiaoGuang/comments/commentRss/241556.htmlhttp://www.aygfsteel.com/RenXiaoGuang/services/trackbacks/241556.htmlhttp://pinyin4j.sourceforge.net/下蝲。下面是我做的一个Demo

import net.sourceforge.pinyin4j.PinyinHelper;
import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;
import net.sourceforge.pinyin4j.format.HanyuPinyinVCharType;
import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination;

public class HanZiToPinYin
{



public static String toPinYin(String hanzhis)
{
CharSequence s= hanzhis;
char [] hanzhi=new char[s.length()];

for(int i=0;i<s.length();i++)
{
hanzhi[i]=s.charAt(i);
}
char [] t1 =hanzhi;
String[] t2 = new String[s.length()];

/** *//**
* 讄输出格式
*/
net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat t3 = new
HanyuPinyinOutputFormat();
t3.setCaseType(HanyuPinyinCaseType.UPPERCASE);
t3.setToneType(HanyuPinyinToneType.WITHOUT_TONE);
t3.setVCharType(HanyuPinyinVCharType.WITH_V);
int t0=t1.length;
String py = "";

try
{
for (int i=0;i<t0;i++)

{
t2 = PinyinHelper.toHanyuPinyinStringArray(t1[i], t3);
py=py+t2[0].toString();
}
}

catch (BadHanyuPinyinOutputFormatCombination e1)
{
e1.printStackTrace();
}
return py.trim();
}

public static void main(String[] args)
{
System.err.println(ToPinYin.toPinYing("汉字转拼?/span>"));
}
}

输出l果Q?span style="color: rgb(255,0,0)">hanzizhuanpinyin
转换的正率Q还不错?br />
详细h看官Ҏ!

]]>
վ֩ģ壺
ȳ|
|
ɽ|
ɽ|
|
ɽ|
|
|
ƺ|
|
|
㽭ʡ|
˱|
Ǹ|
ʵ|
ƽ|
|
«Ϫ|
ګ|
|
|
¡|
ˮ|
Դ|
żҸ|
ƽ|
Ӻ|
|
ƺ|
۶|
|
̨|
|
ʯ|
|
ǭ|
ѳ|
|
ʡ|
|
|