Does .NET transliteration library exists? [closed]

折月煮酒 提交于 2019-12-19 17:43:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!