From 79b5b2ae109f7ae2c35da019fe96a81869f9e84b Mon Sep 17 00:00:00 2001 From: Said Bakr Date: Thu, 13 Mar 2025 21:00:45 +0200 Subject: [PATCH] Solve undefined index issue with verse 6 of Surat Al Bakara In some Quranic text an undefined index error is generated due to the absence of some vowels. I fetched for one of them and I found the *arabic ligature shadda with dammatan isolated form (U+FC5E)* is absent and I added it to `$crntChar string by concatenate it to the already string. This solution solve also another verses issues with that error such as Verse 18 of the same sura --- src/Arabic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Arabic.php b/src/Arabic.php index c6e734e..f4540d6 100644 --- a/src/Arabic.php +++ b/src/Arabic.php @@ -2710,7 +2710,7 @@ private function arGlyphsPreConvert($str) // handle the case of HARAKAT if (mb_strpos($this->arGlyphsVowel, $crntChar) !== false) { - if ($crntChar == 'ّ') { + if ($crntChar == 'ّ'.'ﱞ') { if (mb_strpos($this->arGlyphsVowel, $chars[$i - 1]) !== false) { // check if the SHADDA & HARAKA in the middle of connected letters (form 3) if (