iuliia 1.0.0 copy "iuliia: ^1.0.0" to clipboard
iuliia: ^1.0.0 copied to clipboard

Transliterate Cyrillic → Latin in every possible way

iuliia (Dart) #

Transliterate Cyrillic → Latin in every possible way.

This is a Dart port of the incredible Python library iuliia by @nalgeon, based on the Java port.

Transliteration means representing Cyrillic characters (often in names, geographic locations, etc.) with Latin letters. It is used for passports, visas, driving licenses, mail delivery, and more.

Why use iuliia #

  • 20 transliteration schemas (rule sets), including major international and Russian standards.
  • Accurate: implements all the special rules for letter combinations and word endings.
  • Simple API with zero dependencies.

Installation #

Add iuliia to your pubspec.yaml:

dependencies:
  iuliia: ^1.0.0

Then run:

dart pub get

Usage #

import 'package:iuliia/iuliia.dart';

void main() {
  // Initialize with a specific schema, e.g., ICAO (Doc 9303).
  final iuliia = Iuliia(Schemas.icaoDoc9303);

  // Transliterate text.
  final result = iuliia.translate(
    'Юлия, съешь ещё этих мягких французских булок из Йошкар-Олы, да выпей алтайского чаю.'
  );
  
  print(result);
  // Outputs: Iuliia, sieesh eshche etikh miagkikh frantsuzskikh bulok iz Ioshkar-Oly, da vypei altaiskogo chaiu
}

Available Schemas #

iuliia provides multiple schemas. You can choose from standards like gost7034, gost779, icoDoc9303, mvd310, yandexMap, bgnPcgn, and many others. Check the Iullia.ru class to see the full list:

// For example:
Iuliia(Schemas.bgnPcgn).translate('Пример текста');
Iuliia(Schemas.yandexMap).translate('Пример текста');

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you want to change.
Make sure to add or update tests as appropriate.

License #

This Dart port is distributed under the MIT License. The same license applies to the original library.

1
likes
150
points
27
downloads

Publisher

verified publisheralheev.ru

Weekly Downloads

Transliterate Cyrillic → Latin in every possible way

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on iuliia