com.github.radist-nt:iuliia-java

Transliterate Cyrillic → Latin in every possible way https://dangry.ru/iuliia/

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.github.radist-nt
Идентификатор

Идентификатор

iuliia-java
Последняя версия

Последняя версия

0.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.github.radist-nt:iuliia-java
Transliterate Cyrillic → Latin in every possible way https://dangry.ru/iuliia/
Ссылка на сайт

Ссылка на сайт

https://github.com/radist-nt/iuliia-java
Система контроля версий

Система контроля версий

https://github.com/radist-nt/iuliia-java

Скачать iuliia-java

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.radist-nt/iuliia-java/ -->
<dependency>
    <groupId>com.github.radist-nt</groupId>
    <artifactId>iuliia-java</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.radist-nt/iuliia-java/
implementation 'com.github.radist-nt:iuliia-java:0.1.1'
// https://jarcasting.com/artifacts/com.github.radist-nt/iuliia-java/
implementation ("com.github.radist-nt:iuliia-java:0.1.1")
'com.github.radist-nt:iuliia-java:jar:0.1.1'
<dependency org="com.github.radist-nt" name="iuliia-java" rev="0.1.1">
  <artifact name="iuliia-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.radist-nt', module='iuliia-java', version='0.1.1')
)
libraryDependencies += "com.github.radist-nt" % "iuliia-java" % "0.1.1"
[com.github.radist-nt/iuliia-java "0.1.1"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
com.fasterxml.jackson.core : jackson-annotations jar 2.11.0
com.fasterxml.jackson.core : jackson-databind jar 2.11.0
com.google.code.findbugs : jsr305 Необязательный jar 3.0.2

test (2)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.8
commons-io : commons-io jar 2.7

Модули Проекта

Данный проект не имеет модулей.

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).

Requirements

Installation

Maven dependency (works fine with maven 3.6.3)

<!-- https://mvnrepository.com/artifact/com.github.radist-nt/iuliia-java -->
<dependency>
    <groupId>com.github.radist-nt</groupId>
    <artifactId>iuliia-java</artifactId>
    <version>0.1.1</version>
</dependency>

Usage

Simple example:

import com.radist_nt.iuliia.Iuliia;

public class Clazz {
    public static void test() {        
        Iuliia.transliterate("Юлия", Iuliia.ICAO_DOC_9303); //Iuliia
    }
}

Advanced usage example:

import com.radist_nt.iuliia.Iuliia;
import com.radist_nt.iuliia.Transliterator;

public class Clazz {
    private static final Transliterator ICAO_DOC_9303 = Iuliia.withSchema(Iuliia.ICAO_DOC_9303);
    public static void test() {
        ICAO_DOC_9303.transliterate("Юлия"); //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.

Test "testConstants" could fail after adding new transliteration schemas in https://github.com/nalgeon/iuliia. To make it pass, temporary enable the test "generateIuliiaConstants" and run mvn test. Reformat code before commiting (using built-in eclipse formatting settings).

License

MIT

Версии библиотеки

Версия
0.1.1
0.1