Domanda

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/

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top