39 releases

new 0.12.2 Apr 8, 2024
0.11.5 Mar 23, 2024
0.10.7 May 24, 2023
0.10.2 Mar 21, 2023
0.7.3 Nov 29, 2022

#289 in Text processing

Download history 15/week @ 2024-01-26 449/week @ 2024-02-23 92/week @ 2024-03-01 2/week @ 2024-03-08 491/week @ 2024-03-15 393/week @ 2024-03-22 64/week @ 2024-03-29 378/week @ 2024-04-05

1,326 downloads per month

MIT/Apache

265KB
680 lines

quranize-rs

Encoding transliterations into Quran forms.

Former version of this project

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Encodes alphabetic text to quran text. See Quranize for details.

Examples

Adding crate quranize to a project's dependencies

Run cargo add quranize, or add the following lines to Cargo.toml file.

[dependencies]
quranize = "0.11"

Encoding alphabetic text to quran text

let q = quranize::Quranize::default();
assert_eq!(q.encode("alhamdulillah").first().unwrap().0, "الحَمدُ لِلَّهِ");

Getting an aya text given surah number and ayah number

let aya_getter = quranize::AyaGetter::new();
assert_eq!(aya_getter.get(1, 1), Some("بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ"));

No runtime deps