4

How can I transliterate a Russian phrase with c# programmatically? For example: "Мне на кризис наплевать, вылез в топе гоу бухать?"

Reach
  • 41
  • 1
  • 4

3 Answers3

5

I don't know, use the Google Translate Javascript API?

Or maybe the Transliteration API?

John Bledsoe
  • 17,142
  • 5
  • 42
  • 59
1

Well, you need to come up with a set of transliteration rules (effectively a mapping from Cyrillic character codes to Latin alphabet character codes). Then for a given stream of words encoded in the Cyrillic alphabet, just apply the mapping and produce the resulting stream of words encoded in the Latin alphabet.

jason
  • 236,483
  • 35
  • 423
  • 525
  • 2
    +1. A small note: Since I've had some experience with transliterating my first language (Greek) I must add that this process is not always easy. The reason is that diphthongs in each language may produce totally different sounds than normally expected. So if the poster considers making mapping rules, make sure you prioritize diphthong parsing and then normal letter transliteration. – nantito Apr 28 '11 at 19:06
0
Мне на кризис наплевать, вылез в топе гоу бухать = 
Mne na krizis naplevat', vylez v tope gou bukhat'

Аа = a
Бб = b
Вв = v
Гг = g
Дд = d
Ее = e
Ёё = io
Жж = zh
Зз = z
Ии = i
Йй = y
Кк = k
Лл = l
Мм = m
Нн = n
Оо = o
Пп = p
Рр = r
Сс = s
Тт = t
Уу = u
Фф = f
Хх = kh
Цц = ts
Чч = ch
Шш = sh
Щщ = shch
Ъъ = '
Ыы = y
Ьь = '
Ээ = e
Юю = iu
Яя = ia
Just
  • 11