Multilingual transliteration in PHP?

0 like 0 dislike
10 views
Need of text in any language to similar-sounding text to ANSII.

Is there any solution in php?
by | 10 views

6 Answers

0 like 0 dislike
I'm ready Google finds. And this is a very difficult and complex task, quite unlike job mb_strtoupper(). Change the character case, everything is simple — there are Unicode characters, there are correspondence tables. But the tables of the "proximity sounding" — no. And something tells me that to create them, regardless of the language context is impossible.
\r
Even in phonetic languages, there is a large arbitrariness in the sound of the same letters depending on the context. And the same Cyrillic alphabet used in many languages, sounding a little different.
\r
What can we say about the characters that koterwas the same sequence of bytes, sound is different for different people using them. Moreover, the sounds of languages with variable tonality is quite difficult to pass through ASCII.
\r
But, in particular, found the table for the Russian: textpattern.ru/html/transliteration-tables.htm
by
0 like 0 dislike
I think not.
\r
>in any language
you imagine the volume of sales and think you would have this project to do ??
by
0 like 0 dislike
iconv //TRANSLIT checked? (I have never needed, just as an option)
by
0 like 0 dislike
It's simple. Take an array of matches 'e'='yo' and feed it to the function strtr().
by
0 like 0 dislike
As I understand it the issue is still open.
I helped the module of transliteration of drupal.
There is a ready function. You only need to cut a binding to the Drupal.
By the way, the source code is based on MediaWiki and Text::Unidecode.
by
0 like 0 dislike
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
3 answers
asked Mar 24, 2019 by p0is0n
0 like 0 dislike
1 answer
asked Mar 23, 2019 by Silversy
110,608 questions
257,186 answers
0 comments
1,245 users