If I have a site available in "A" character set which has the same number of letters as "B" character set whose letters are just let's say cyrillic equivalents,
is it possible to use transliteration module in order to get two links (latin - cyrillic) on the site so that each one provides the content in its own specific character set.
I'm speaking about 1-on-1 relation between each character of "A" and "B" sets.

Is it possible with Transliteration module and how to do it? I'm not an experienced PHP programmer.

Thanks

Comments

smk-ka’s picture

Transliteration is one-way only, which means only non-ASCII input can be converted to ASCII (ie. plain english letters without any diacritics). Continuing your example, you can only convert B (cyrillic) to ASCII, but not the other way round.

If you need simple character mapping take a look at PHP's strtr() function (especially example #1).

ardelio’s picture

Thanks. At what level I would use strtr() function and would it be too slow to translate that way each letter for each page (before it goes to the cache)?
I guess that it should be done at some very low level in Drupal so that it can translate each letter of the whole page but I don't know where.
Please help if you know a solution.

smk-ka’s picture

Status: Active » Closed (fixed)

This question is now very unrelated to Transliteration, closing.