问题
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/
回答1:
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.
来源:https://stackoverflow.com/questions/10027001/does-net-transliteration-library-exists