24 releases (9 breaking)
new 0.10.2 | Mar 21, 2023 |
---|---|
0.9.0 | Mar 18, 2023 |
0.7.3 | Nov 29, 2022 |
#455 in Text processing
79 downloads per month
2MB
13K
SLoC
quranize-rs
Encoding transliterations into Quran forms.
- Crate: https://crates.io/crates/quranize
- Documentation: https://docs.rs/quranize
- Application: https://github.com/quranize/quranize.github.io
Related Project
Former version of this project
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
[dependencies]
quranize = "0.10"
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::default();
assert_eq!(aya_getter.get(1, 1), Some("بِسْمِ اللَّهِ الرَّحْمَـٰنِ الرَّحِيمِ"));