Transliteration script refactoring