#bidirectional #transliteration #transliterator

macro bitranslit_derive

Macros for bitranslit, the bi-directional transliterator for Rust

4 releases (2 breaking)

0.3.1 Oct 31, 2023
0.3.0 Oct 17, 2023
0.2.0 Oct 16, 2023
0.1.0 Oct 16, 2023

#6 in #transliterator

39 downloads per month
Used in bitranslit

LGPL-2.1-or-later

15KB
158 lines

Crates.io Docs.rs Contributors Forks Stargazers Issues CI LGPL 2.1 License


Bitranslit

Bi-directional transliterator for Rust.
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

Bi-directional transliterator for Rust. Transliterates strings according to the rules specified in the language packs (source script <-> target script) and transliteration standards.

This crate uses the transliteration rules from the Python transliterate package by Artur Barseghyan.

It comes with language packs for the following languages:

  • Armenian
  • Bulgarian (beta)
  • Greek
  • Latin1
  • Makedonian (alpha)
  • Russian
  • Serbian (alpha)
  • Ukrainian (beta)

This code was developed to support investigations that took place at Der SPIEGEL and Paper Trail Media.

(back to top)

Getting Started

Installation

cargo add bitranslit

(back to top)

Usage

use bitranslit::Bulgarian;

let t = Bulgarian::new();

let _ = t.from_latin("Lorem ipsum dolor sit amet");
let _ = t.to_latin("Лорем ипсум долор сит амет");

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the LGPL-2.1-or-later License. See LICENSE.txt for more information.

(back to top)

Contact

Christo Buschek - @christo_buschek - christo.buschek@proton.me

Project Link: https://github.com/critocrito/bitranslit

(back to top)

Dependencies

~290–740KB
~18K SLoC