拼音轉漢字

2022-01-09 20:53:50 字數 1184 閱讀 5832

/*

---description: pinyin, to get chinese pinyin from chinese.

license: mit-style

authors: bill lue

requires:

core/1.2.1: '*'

provides: [pinyin]

...*/

//(function( window, undefined ),

options =;

pinyin.fn = pinyin.prototype =,

initialize:

function

(ops);

this.polyphone = ;

},//提取拼音, 返回首字母大寫形式

getfullchars: function

(str)

else}}

return

result;

},//提取首字母,返回大寫形式

getcamelchars: function

(str)

//處理arrresult,返回所有可能的拼音首字母串陣列

return

this

._getresult(chars);

},//提取拼音

_getfullchar: function

(str)

}return

false

; },

//首字母大寫

_capitalize: function

(str)

},_getchar:

function

(ch),

_getresult:

function

(chars)

}else

//把複製並修改後的陣列連線到arrrslt上

result =result.concat(swap2);}}

}return

result;}};

var extend = function

(dst, src)

return

dst;

};return

newpinyin(arguments);

})();

漢字轉拼音

region 漢字轉拼音 漢字轉拼音類 用法 crazycoderpinyin.covent 漢字 長度 using system.text.regularexpressions build date 20030610 public class crazycoderpinyin 定義陣列 priva...

漢字轉拼音

工具pinyin4j 2.5.0.jar 整理了3個方法,1.漢字轉拼音 2.返回中文姓 中文名 英文姓 last name 英文名 first name 3.返回首字母 public class pinyin4jdemo char hanzi word.tochararray string t2 ...

漢字轉拼音

ios mac os x 漢字轉拼音 網路流行的漢字轉拼音方案是帶乙個拼音碼表,速度快。其實core foundation也提供了一種方案,而且還帶聲調!nsmutablestring ms nsmutablestring alloc initwithstring 我是中國人 if cfstring...