Install

Add package dependency:

{:uklatn, "~> 1.17"}

Usage

import Paiv.UkrainianLatin

encode("Доброго вечора!")
#=> "Dobroğo večora!"

decode("Paljanycja")
#=> "Паляниця"

Select a transliteration scheme:

encode("Борщ", :DSTU_9112_B)
#=> "Borshch"

encode("Шевченко", :KMU_55)
#=> "Shevchenko"

Notes

Input is assumed to be in Ukrainian (Cyrillic or Latin script), and will be processed in full. If your data has mixed languages, do preprocessing to extract Ukrainian chunks.