com.github.radist-nt:iuliia-java

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

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.github.radist-nt
ArtifactId

ArtifactId

iuliia-java
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

com.github.radist-nt:iuliia-java
Transliterate Cyrillic → Latin in every possible way https://dangry.ru/iuliia/
Project URL

Project URL

https://github.com/radist-nt/iuliia-java
Source Code Management

Source Code Management

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

Download iuliia-java

How to add to project

<!-- 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"]

Dependencies

compile (3)

Group / Artifact Type Version
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 Optional jar 3.0.2

test (2)

Group / Artifact Type Version
org.testng : testng jar 6.8
commons-io : commons-io jar 2.7

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.1.1
0.1