Skip to content

Powershell Module for Cyrillic/Latin text transliteration

License

Notifications You must be signed in to change notification settings

PsModules/TranslitModule

Repository files navigation

Translit - Cyrillic/Latin text transliteration

PowerShell 3 PowerShell 4, 5 & Core on Windows build Linux & MacOS build latest version downloads

ConsoleDemo

The functionality of this module is based on Transliteration Nuget Library Nuget: NuGet Badge

Instalation

Powershell Gallery:

https://www.powershellgallery.com/packages/TranslitModule/

PowerShellGet Installation :

Install-Module -Name TranslitModule

Direct download instalation:

iex ('$module="TranslitModule"'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/stadub/PowershellBinary/master/install.ps1'))

Module import:

Import-Module TranslitModule

Commands

ConvertTo-LatinTransliteration - Convert cyrillic text to latin
  [-Text] <string>
  [-Language] (Optional) Slavic translit language [if not set - system language is used] 
  

ConvertFrom-LatinTransliteration  - Convert latin-cyrillic text to cyrillic
  [-Text] <string>
  [-Language] (Optional) Slavic translit language [if not set - system language is used] 
  

Aliases

Cmdlet Alias
ConvertTo-LatinTransliteration translit
ConvertFrom-LatinTransliteration untranslit

Usage

Convert from cyrillic to latin:

/> translit -Text "фва" -Language Bulgarian
/> ConvertTo-LatinTransliteration -Text "цукен" -Lng mk
/> "текст" | ConvertTo-LatinTransliteration -Language Russian
/> "купалiнка цемная ночка, дзеж твая дочка" | ConvertTo-LatinTransliteration -Language Belorussian
/> "Поплакала і знов фіалка розцвіла Засяяв день таємними знаками " | ConvertTo-LatinTransliteration -Language Ukrainian

Convert from latin to cyrillic:

/> untranslit -Text "fva" -Language Bulgarian
/> ConvertFrom-LatinTransliteration -Text "czuke" -Lng mk
/> "tekst" | ConvertFrom-LatinTransliteration -Language Russian
/> "kastrychniczkaya" | ConvertFrom-LatinTransliteration -Language Belorussian
/> "zakoxana" | ConvertFrom-LatinTransliteration -Language Ukrainian

Changelog

[v1.0.0] Apr 29, 2020

  • Create module
  • Replace some translitiration letters

Donate

The modules are created and actively maintained during evenings and weekends for my own needs. If it's useful for you too, that's great. I don't demand anything in return.

However, if you like it and feel the urge to give something back, a coffee or a beer is always appreciated. Thank you very much in advance.

Buy Me A Coffee Support by Yandex

If you have any idea or suggestion - please add a github issue.

About

Powershell Module for Cyrillic/Latin text transliteration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published