cyrla
Library for two-way conversion between latin and cyrillic script, written in Rust.
Getting started
To use cyrla, add following to your Cargo.toml
file:
[]
= "0.1"
Usage
use ConverterBuilder;
let converter = new.build;
// conversion from latin to cyrillic script
let cyrillic_text = converter.lat_to_cyr;
assert_eq!;
// conversion from cyrillic to latin script
let latin_text = converter.cyr_to_lat;
assert_eq!;
You can also configure builder for your needs:
use ConverterBuilder;
let mut builder = new;
let mut prefixes = vec!;
let converter = builder
.extend_dictionary
.build;
let cyrillic_text = converter.lat_to_cyr;
assert_eq!;
You can find all available options in the ConverterBuilder
documentation.
License
This project is licensed under the terms of MIT license.