The functionality of this module is based on Transliteration Nuget Library Nuget:
Powershell Gallery:
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
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]
Cmdlet | Alias |
---|---|
ConvertTo-LatinTransliteration | translit |
ConvertFrom-LatinTransliteration | untranslit |
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
- Create module
- Replace some translitiration letters
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.
If you have any idea or suggestion - please add a github issue.