My favorites | Sign in
Project Logo
                
Search
for
PZPinyinReader_pzpinyin_pinyin_convert_phrase  
Converts several pinyin types to user specified pinyin type

PZPinyinReader->pzpinyin_pinyin_convert_phrase ( )

pzpinyin_pinyin_convert_phrase -- converts several pinyin types to user specified pinyin type

Description

string pzpinyin_pinyin_convert_phrase ( string $pinyinSourceString , {int $destinationPinyinNumber})

pinyinSourceString is required.

destinationPinyinNumber is optional.

requires idx55.txt pinyin index file.

See table below for the number set used in the pinyin index file.

Romanization Destination Number
Zhuyin 0
Wade-Giles 1
MPS2 2
Tongyong Pinyin 3
Yale 4
Hanyu Pinyin 5 (default)
Gwoyeu Romatzyh Tone 1 6
Gwoyeu Romatzyh Tone 2 7
Gwoyeu Romatzyh Tone 3 8
Gwoyeu Romatzyh Tone 4 9

pinyin index file (idx55.txt)

This is the pinyin index file used by PZPinyinReader functions to convert pinyin.

It was extracted from the table called "Hanyu Pinyin romanization system for Mandarin Chinese" located on the World Wide Web at:

File is encoded as UTF-8.


Sign in to add a comment
Hosted by Google Code