39个发布版本
0.12.2 | 2024年4月8日 |
---|---|
0.11.5 | 2024年3月23日 |
0.10.7 | 2023年5月24日 |
0.10.2 | 2023年3月21日 |
0.7.3 | 2022年11月29日 |
#410 in 文本处理
每月46次下载
265KB
680 行
quranize-rs
将音译编码为古兰经形式。
- Crate: https://crates.io/crates/quranize
- 文档: https://docs.rs/quranize
- 应用: https://github.com/quranize/quranize.github.io
相关项目
此项目的早期版本
许可
许可协议为以下之一
- Apache License, Version 2.0 (LICENSE-APACHE 或 https://apache.ac.cn/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT 或 http://opensource.org/licenses/MIT)
根据您的要求。
贡献
除非您明确声明,否则您提交的任何旨在包含在本作品中的贡献,根据Apache-2.0许可证定义,应按上述方式双重许可,不附加任何额外条款或条件。
lib.rs
:
将字母文本编码为古兰经文本。有关详细信息,请参阅Quranize
。
示例
将crate quranize添加到项目的依赖项中
运行 cargo add quranize
,或将以下行添加到Cargo.toml
文件中。
[dependencies]
quranize = "0.11"
将字母文本编码为古兰经文本
let q = quranize::Quranize::default();
assert_eq!(q.encode("alhamdulillah").first().unwrap().0, "الحَمدُ لِلَّهِ");
给定章节编号和节编号获取节文本
let aya_getter = quranize::AyaGetter::new();
assert_eq!(aya_getter.get(1, 1), Some("بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ"));