java2men / iuliia-java

Transliterate Cyrillic → Latin in every possible way (Java version)

Home Page:https://iuliia.ru/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Iuliia

Transliterate Cyrillic → Latin in every possible way

Transliteration means representing Cyrillic data (mainly names and geographic locations) with Latin letters. It is used for international passports, visas, green cards, driving licenses, mail and goods delivery etc.

Why use Iuliia

  • 20 transliteration schemas (rule sets), including all main international and Russian standards.
  • Correctly implements not only the base mapping, but all the special rules for letter combinations and word endings (AFAIK, Iuliia is the only library which does so).
  • Simple API.

For schema details and other information, see https://dangry.ru/iuliia (in Russian).

Installation

Maven dependency

<!-- https://mvnrepository.com/artifact/ru.homyakin/iuliia-java -->
<dependency>
    <groupId>ru.homyakin</groupId>
    <artifactId>iuliia-java</artifactId>
    <version>1.8</version>
</dependency>

Gradle

implementation 'ru.homyakin:iuliia-java:1.8'

Usage (Java 11 and higher)

Transliterate using specified schema:

import ru.homyakin.iuliia.Schemas;
import ru.homyakin.iuliia.Translator;

public class Clazz {
    public static void test() {        
        var translator = new Translator(Schemas.ICAO_DOC_9303);
        translator.translate("Юлия"); //Iuliia
    }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Make sure to add or update tests as appropriate.

License

MIT

About

Transliterate Cyrillic → Latin in every possible way (Java version)

https://iuliia.ru/

License:MIT License


Languages

Language:Java 100.0%