Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 2.28 KB

README.md

File metadata and controls

63 lines (42 loc) · 2.28 KB

NickBuhro.Translit

License NuGet Badge Build status Coverage Status

C# library for cyrillic-latin transliteration by ISO 9 (ГОСТ 7.79—2000) on System B (only for slavic languages).

Both direction transliteration is supported:

  • cyrillic to latin
  • latin to cyrillic

It could be specified concrete language from list:

  • Russian
  • Belorussian
  • Ukrainian
  • Bulgarian
  • Makedonian

Installation

It's available over NuGet:

Install-Package NickBuhro.Translit

Usage

// Cyrillic to latin example

var latin = Transliteration.CyrillicToLatin("Предками данная мудрость народная!", Language.Russian);
Console.WriteLine(latin);	// Output: Predkami dannaya mudrost` narodnaya!

// Latin to cyrillic example

var cyrillic = Transliteration.LatinToCyrillic("Predkami dannaya mudrost` narodnaya!", Language.Russian);
Console.WriteLine(cyrillic);	// Output: Предками данная мудрость народная!

Running the tests

Solution includes:

Compatibility

The library uses no references except for System - it has no external dependencies. It is cross compiled to:

  • .NET Framework 2.0 and above
  • .NET Standard 1.3