Convert Chinese to Pinyin

Input

cjst.chineseToPinyin('恭喜發財').join(' ')

Output


	

Convert Chinese to Zhuyin

Input

JSON.stringify(cjst.chineseToZhuyin('恭喜發財'))

Output


	

Convert Pinyin to Zhuyin

Input

JSON.stringify(cjst.pinyinToZhuyin('hóng bāo ná lái'))

Output


	

Convert Simplified to Traditional

Input

cjst.simplifiedToTraditional('恭喜发财')

Output


	

Convert Traditional to Simplified

Input

cjst.traditionalToSimplified('恭喜發財')

Output


	

Detecting Chinese in strings

Input

cjst.hasChineseCharacters('Happy New Year!')
cjst.hasChineseCharacters('恭喜發財')
		

Output


	

Translating Chinese phrases and words to English

Input

cjst.translatePhrase('恭喜發財', {}, function(response) {
    console.log( response.translation.join('\n') );
});
		

Output


	

Adding Pinyin character tiles over elements on hover/mouseover.

Code

cjst.pinyinTileOnHover( $('#e08 .out') );

Result

恭喜發財  <- Hover over these characters

Adding Zhuyin character tiles over elements on hover/mouseover.

Code

cjst.zhuyinTileOnHover( $('#e09 .out') );

Result

恭喜發財  <- Hover over these characters

Adding Pinyin character titles over elements on hover/mouseover.

Code

cjst.pinyinTitleOnHover( $('#e10 .out') );

Result

恭喜發財  <- Hover over these characters

Adding Zhuyin character titles over elements on hover/mouseover.

Code

cjst.zhuyinTitleOnHover( $('#e11 .out') );

Result

恭喜發財  <- Hover over these characters