Em Andamento

Text Coloring script

I need a php script that will color text in a text file according to a set of simple rules. This should handle not only A-Z a-z alphabetic characters but also Chinese characters, dividing up the "words" based on whitespace. The file will always have whitespace or numbers between "words".

The script will choose the colors based on numbers that are included in the text.

The script should ignore numbers that stand alone (are surrounded by whitespace) as they are not representing a desired color change (for example, if there is a year in the text).

For the string "this1 is2 a3 sentence4, right5? Yes, 19,294 people1 say4 so3." the output should be:

"this is a sentence, right? Yes, 19,294 people say so."

and the colors of the words should be:

this = blue

is = green

a = black

sentence = red

right = gray

Yes = black (because it does not have a number on it)

19,294 = black

say = red

so = black

Punctuation should be black.

Habilidades: PHP, Instalação de Script, Shell Script

Ver mais: text to string, red or black, chinese characters, change text file, ignore text php, right5 script, right5, text based script php, whitespace, php number change text, sentence script, install string, chinese install, numbers coloring, php script output text file, coloring number, script change text, coloring text, change color text, output text, color text, chinese year, chinese characters numbers, number coloring, php script change text file

Acerca do Empregador:
( 24 comentários ) Albany, United States

ID do Projeto: #3605854

Premiar a:

diacubic

See private message.

$34 USD em 14 dias
(17 Avaliações)
3.4

7 freelancers estão ofertando em média $30 para este trabalho

kleelof

See private message.

$30.6 USD in 14 dias
(111 Comentários)
7.0
shihan033010

See private message.

$25.5 USD in 14 dias
(237 Comentários)
6.4
donkyaw

See private message.

$30 USD in 14 dias
(51 Comentários)
5.5
shannonx

See private message.

$20 USD in 14 dias
(60 Comentários)
4.6
nitacom

See private message.

$34 USD in 14 dias
(1 Comentário)
2.9
milad13

See private message.

$34 USD in 14 dias
(3 Comentários)
2.9