views:

812

answers:

4

I have a method which turns any Latin text (e.g. English, French, German, Polish) into its slug form,

e.g. "Alpha Bravo Charlie" => "alpha-bravo-charlie"

But it can't work for Cyrillic text (e.g. Russian), so what I'm wanting to do is transliterate the Cyrillic text to Latin characters, then slugify that.

Does anyone have a way to do such transliteration? Whether by actual source or a library.

I'm coding in C#, so a .NET library will work. Alternatively, if you have non-C# code, I'm sure I could convert it.

+2  A: 

Microsoft has a transliteration tool which includes a DLL you could hook into (you would need to check licensing restrictions if you're going to use it non-personally). You can read more about it in Dejan Vesić's blog post

jball
+2  A: 

Why can't you just take a transliteration table and make a small regex or subroutine?

Yacoder
A: 

try out http://ok-board.com

Serge
A: 

Open Notepad --> Edit --> Replace, done!

koko