Install

Add dependency to pom.xml:

<dependency>
    <groupId>io.github.paiv.uklatn</groupId>
    <artifactId>uklatn</artifactId>
    <version>1.20.2</version>
</dependency>

Usage

import io.github.paiv.uklatn.UkrainianLatin;

UkrainianLatin tr = new UkrainianLatin();

tr.encode("Доброго вечора!");
tr.decode("Paljanycja");

Set the transliteration scheme:

import static io.github.paiv.uklatn.UkrainianLatin.UKLatnTable;

tr.encode("Борщ", UKLatnTable.DSTU_9112_B);
tr.encode("Шевченко", UKLatnTable.KMU_55);

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.