Skip to content

Commit

Permalink
handle case 'majreeha wamursaha'
Browse files Browse the repository at this point in the history
  • Loading branch information
alpancs committed Apr 8, 2024
1 parent 9c46bae commit 368587c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/quranize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ mod tests {
q.assert_encode("yu'minun", &["يُؤمِنونَ"]);
q.assert_encode("hudan lil muttaqin", &["هُدًى لِلمُتَّقينَ"]);
q.assert_encode("khusnul ma'ab", &["حُسنُ المَـٔابِ"]);
q.assert_encode("majreha wamursaha", &["مَجر۪ىٰها وَمُرسىٰها"]);
q.assert_encode("majreeha wamursaha", &["مَجر۪ىٰها وَمُرسىٰها"]);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/quranize/transliterations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub(super) fn map(c: char) -> &'static [&'static str] {
pub(super) fn contextual_map(prev_c: char, c: char) -> &'static [&'static str] {
match (prev_c, c) {
('\0', LETTER_ALEF) => &["u", "i", ""],
(LETTER_REH, EMPTY_CENTRE_LOW_STOP) => &["e"],
(LETTER_REH, EMPTY_CENTRE_LOW_STOP) => &["e", "ee"],
(SPACE | LETTER_HAMZA | LETTER_WAW | FATHATAN | KASRA | HAMZA_ABOVE, LETTER_ALEF)
| (LETTER_ALEF | KASRA, LETTER_LAM)
| (LETTER_AIN, LETTER_WAW | LETTER_YEH | LETTER_SUPERSCRIPT_ALEF)
Expand Down

0 comments on commit 368587c

Please sign in to comment.