Skip to content

Commit

Permalink
handle case husnul maab
Browse files Browse the repository at this point in the history
  • Loading branch information
alpancs committed Mar 16, 2024
1 parent 14cf60f commit 6b3e4e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ mod tests {
assert_eq!(q.e("laa yukallifullah"), vec!["لا يُكَلِّفُ اللَّهُ"]);
assert_eq!(q.e("robbil alamin"), vec!["رَبِّ العٰلَمينَ"]);
assert_eq!(q.e("qulhuwallahuahad"), vec!["قُل هُوَ اللَّهُ أَحَدٌ"]);
assert_eq!(q.e("husnul maab"), vec!["حُسنُ المَـٔابِ"]);
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions src/transliterations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub(crate) fn contextual_map(c0: char, c1: char) -> &'static [&'static str] {
(SPACE, LETTER_ALEF)
| (LETTER_ALEF, LETTER_LAM)
| (LETTER_HAMZA, LETTER_ALEF)
| (HAMZA_ABOVE, LETTER_ALEF)
| (LETTER_ALEF_WITH_MADDA_ABOVE, LETTER_LAM)
| (LETTER_WAW, LETTER_ALEF)
| (LETTER_AIN, LETTER_ALEF)
Expand Down

0 comments on commit 6b3e4e8

Please sign in to comment.