Lengkap

SImple PHP script

Given a text file in UTF-8 encoding, written in Chinese characters:

Look up each individual character against an external text file hosted in the same directory (dictionary file) and add a number (1-6) after each character based on the entry in the dictionary file. Do NOT add a number after punctuation (Chinese or English), non-Chinese words (there will be English words in the files; these will have a white space before and after them) or whitespaces. Place a number "7" after any Chinese characters that are not found in the dictionary file. Place a number "6" after any Chinese characters that occur twice in the dictionary file with different values.

Example:

虾仁炒饭 好吃得很。

Example dictionary file:

虾,1

仁,2

吃,1

得,2

很,3

炒,3

得,3

好,3

Output:

虾1仁2炒3饭7 好3吃1得6很3。

Kemahiran: PHP, Kejuruteraan Perisian

Lihat lagi: chinese characters, php encoding, image upload script php simple, written english character, non english characters, simple php entry script, server status script php simple, php english chinese, english chinese characters, text file english dictionary, chinese architecture, english chinese dictionary, php dictionary, php chinese, chinese character, english dictionary words text file, update script php simple, simple dictionary php, dictionary text file, english dictionary text file

Tentang Majikan:
( 24 ulasan ) Albany, United States

ID Projek: #6314626

Dianugerahkan kepada:

eightsl

Hello I found a trick on how to distinguish chinese characters from english/punctuation. The rest of the requirements should be rather easy to implement. I'm making a demo as we speak. Thanks.

$25 USD dalam 3 hari
(7 Ulasan)
3.5

5 pekerja bebas membida secara purata $30 untuk pekerjaan ini

hamid8835

Hello Dear We phase similar type of problem for [login to view URL] this website because in this we used hebro , so i have experience to handle utf-8 character . Thanks

$25 USD dalam sehari
(9 Ulasan)
3.1
imaginationstech

hello i have good experience in joomla,wordpress,javascript,mvc,magento and jquery so i can do this if you want to i work for you then pm me . thanks

$35 USD dalam sehari
(3 Ulasan)
1.7
anilpatel8

A proposal has not yet been provided

$35 USD dalam sehari
(0 Ulasan)
0.0
evias

Hello, I think writing this script can be done pretty fast using PHP and I would appreciate you accepting my bid! I could provide you with a stand-alone PHP script within less than one day!

$30 USD dalam sehari
(0 Ulasan)
0.0