Bir synthesizer sağlamak için kısaltmalar Patlayan bunları düzgün okur?

0 Cevap php

Ben bir konuşma sentezleyici beslemek (bu durumda festivali, ama hepsi için geçerlidir) Aşağıdaki metin bit ise:

"At the USPGA championship in the US, the BBC reporter went MIA". it reads "At the uspga championship in the us, the BBC reporter went mia".

Diğer bir deyişle, ben ünsüz bir küme, çünkü düzgün "BBC" okur ama diğerleri dışarı "sözlerini" yapar sanırım.

The simplest thing to do, I suppose, would be to run it through a php script which looked for 2 or more capital letters, and simply "explodes" the word into spaces, like U S P G A.

I realise it would would cause weirdness with things like "I told him N O T to do that", but in news reports that tends to happen less.

Here's the thing; I can "explode" a word OK, the problem is, I'm one of those people who, despite months of trying, just can't get their head round certain aspects of REGEX. In this case, it's looking for: two or more letters next to each other in capitals.

Kelime veya bir şey kısaltmaların belki bir db - Ben ya da yoluyla bulamamıştı Bunu yapmanın daha iyi bir yolu var bu durumda ben tüm pre-eşkin yukarıda verdiğim nedenidir.

0 Cevap