Question

Does .NET Transliteration library exists ? Note that this is not translation, something like this Perl lib :

http://www.lingua-systems.com/transliteration/Lingua-Translit-Perl-module/

I just find :

http://transliterator.codeplex.com/

Était-ce utile?

La solution

Check my UnidecodeSharpFork.

It's based on great Python Unidecode transliteration tables, support many languages.

Example usage:

Assert.AreEqual("CZSczs", "ČŽŠčžš".Unidecode());
Assert.AreEqual("Hello, World!", "Hello, World!".Unidecode());
Assert.AreEqual("Rabota s kirillitsey", "Работа с кириллицей".Unidecode());

Simple, fast and powerful. And it's easy to extend/modify transliteration table if you want to.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top