Is there a way to have 2 consecutive characters turn into 2 others?

For example the Greek "ευ" should turn to "ev", but that should happen only in this combination. Normally "ε" should turn to "e" and "υ" to "y". So, it would be helpful if in some way we could assign different transliterations to certain combinations.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

klonos’s picture

+1 patrida ;)

aleada’s picture

+1

zterry95’s picture

glad to see this inssue, actually we have the same problem for Chinese.

I spend some time to find a solution for this, that introduct a new hook for this module. see attachment.

How to use it?

 function HOOK_transliteration_preproceed() {
   return array(
     'test' => 'haha'
   );
 }

in your case, it will be

 function HOOK_transliteration_preproceed() {
   return array(
     'ευ' => 'ey'
   );
 }

I test this, it works fine for me. Hope it will help you too.

Any comments, feedback will be appreciated.

amateescu’s picture

Status: Active » Closed (won't fix)

I think this feature is out of scope for the Transliteration module, what you're looking for here is more a transription than a transliteration. See the difference here: http://en.wikipedia.org/wiki/Transliteration#Difference_from_transcription

klonos’s picture

Title: Can 2 characters change to one? » Support transcription (2 characters change to one)
Status: Closed (won't fix) » Postponed

Since there currently is no Transcription module available that I'm aware of and this still remains a valid problem seeking solution, can you please reconsider and can we please postpone this for when time permits.

Thanx in advance.