#latin #transliteration #cyrillic #ukrainian

ukraine

Glory to Ukraine. Library for transliterating Ukrainian Cyrillic text into Latin script representation

4 stable releases

new 1.0.3 Apr 10, 2025
1.0.2 Sep 20, 2022

#1 in #latin

LGPL-3.0-only

19KB
178 lines

Ukraine 🇺🇦

Crates.io Documentation License: LGPL-3.0-only Build

A Rust library for transliterating Ukrainian Cyrillic text into Latin-script representations. In the hope that one day the Ukrainian Latin script will be widely adopted and the last remnants of russian aggressive imperialism will be erased from the history of modern Ukraine 💙💛

Support Ukraine

United24

Overview

This Rust crate provides functionality for converting Ukrainian Cyrillic text into various transliteration schemes described on this page

https://en.m.wikipedia.org/wiki/Ukrainian_Latin_alphabet

⭐️ Early stage of development, the goal is to draw attention to the implementation of the Ukrainian Latin alphabet and provide a technical solution for this. ⭐️

Features

  • Greeting: Say hello in various forms—formal or casual.
  • Ukrainian Transliteration: Convert Ukrainian text from Cyrillic to Latin script.
  • Number Conversion: Convert numbers into Ukrainian words.
  • Ordinal Number Conversion:: Conversion for ordinal numbers (e.g., "1st" to "перший")
  • Date and Time Conversion: Format dates and times according to Ukrainian standards.
  • Counting Endings: Properly display singular and plural forms.
  • Feminization: Convert masculine forms to feminine forms and vice versa.
  • Currency Formatting: Convert numerical currency values into Ukrainian words.
  • Name generation: Generate placeholder names for persons, cities, and companies.
  • Address Conversion: Convert address to Ukrainan standards.
  • Phone Number Formatting: Convert phone number to Ukrainan standards.

Installation

Add the following line to your Cargo.toml dependencies:

[dependencies]
ukraine = "1"

Documentation

The full API documentation is available at docs.rs/ukraine.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

Dependencies

~10KB