Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I'm afraid that Google does not find anything ready. And this is indeed a very difficult and complex task, quite unlike the work of mb_strtoupper(). With changing the case of characters, everything is simple - there are Unicode characters, there are correspondence tables. But there are no tables of "proximity in sound". And something tells me that it is impossible to create them regardless of the context of the language.
Even in phonetic languages, there is great arbitrariness in the sound of the same letters depending on the context. And the same Cyrillic alphabet is used in many languages, while sounding a little differently.
What can we say about hieroglyphs, which, being encoded by the same byte sequences, sound different for different peoples using them. Moreover, the sounds of languages with variable pitch are quite difficult to convey using ASCII.
But here, in particular, I found tables for Russian: textpattern.ru/html/transliteration-tables.htm
I think no.
> in any language,
you can imagine the scope of implementation and think you would do such a project??
Everything is simple. Take an array of matches 'yo'='yo' and feed it to the strtr() function.
As I understand it, the question is still open. The transliteration
module from drupal helped me.
There is a function there. You just need to saw off the binding to Drupal.
By the way, the sources are based on MediaWiki and Text::Unidecode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question